1 19 20 package org.netbeans.modules.versioning.system.cvss.ui.actions.commit; 21 22 import org.openide.util.NbBundle; 23 24 27 abstract class CommitOptions { 28 29 public static final CommitOptions ADD_TEXT = new Add("CTL_CommitOption_AddAsText"); public static final CommitOptions ADD_BINARY = new Add("CTL_CommitOption_AddAsBinary"); public static final CommitOptions COMMIT = new Commit("CTL_CommitOption_Commit"); public static final CommitOptions COMMIT_REMOVE = new Commit("CTL_CommitOption_CommitRemove"); public static final CommitOptions EXCLUDE = new Commit("CTL_CommitOption_Exclude"); 35 private final String bundleKey; 36 37 public CommitOptions(String bundleKey) { 38 this.bundleKey = bundleKey; 39 } 40 41 public String toString() { 42 return NbBundle.getMessage(CommitOptions.class, bundleKey); 43 } 44 45 static class Add extends CommitOptions { 46 47 public Add(String bundleKey) { 48 super(bundleKey); 49 } 50 } 51 52 static class Commit extends CommitOptions { 53 54 public Commit(String bundleKey) { 55 super(bundleKey); 56 } 57 } 58 } 59 60 | Popular Tags |