Skip to content

Commit 0ff8919

Browse files
committed
Add option key to Type
1 parent 1008612 commit 0ff8919

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

src/main/java/com/junichi11/netbeans/modules/github/issues/query/GitHubDefaultQueries.java

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,19 @@ public final class GitHubDefaultQueries {
5454

5555
public enum Type {
5656

57-
ASSIGNED_TO_ME,
58-
CREATED_BY_ME,
57+
// must not change option key name
58+
ASSIGNED_TO_ME("query.assigned.to.me"), // NOI18N
59+
CREATED_BY_ME("query.created.by.me"); // NOI18N
60+
private final String optionKey;
61+
62+
private Type(String optionKey) {
63+
this.optionKey = optionKey;
64+
}
65+
66+
public String getOptionKey() {
67+
return optionKey;
68+
}
69+
5970
}
6071
private static final Logger LOGGER = Logger.getLogger(GitHubDefaultQueries.class.getName());
6172

0 commit comments

Comments
 (0)