1 19 20 package org.netbeans.modules.subversion.ui.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 ADD_DIRECTORY = new Add("CTL_CommitOption_AddDirectory"); 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"); 36 private final String bundleKey; 37 38 public CommitOptions(String bundleKey) { 39 this.bundleKey = bundleKey; 40 } 41 42 public String toString() { 43 return NbBundle.getMessage(CommitOptions.class, bundleKey); 44 } 45 46 static class Add extends CommitOptions { 47 48 public Add(String bundleKey) { 49 super(bundleKey); 50 } 51 } 52 53 static class Commit extends CommitOptions { 54 55 public Commit(String bundleKey) { 56 super(bundleKey); 57 } 58 } 59 } 60 61 | Popular Tags |