return commandContributionItemParam;
}
protected List<MavenCommand> loadPreferences() {
IEclipsePreferences store = new InstanceScope().getNode(Activator.PLUGIN_ID);
List<MavenCommand> commands = new ArrayList<MavenCommand>();
int commandNumber = 0;
String[] keys;
try {
keys = store.keys();
if (keys != null)
for (String key : keys) {
if (key.contains(PreferencesConstants.MAVEN_COMMAND_ALIAS)) {
String sId = key
.substring(PreferencesConstants.MAVEN_COMMAND_ALIAS
.length() + 1);
commandNumber = Integer.parseInt(sId);
MavenCommand command = new MavenCommand();
command.setId("" + commandNumber);
command.setAliasValue(store.get(
PreferencesConstants.MAVEN_COMMAND_ALIAS + "."
+ commandNumber, null));
command.setCommandLine(store.get(
PreferencesConstants.MAVEN_COMMANDLINE + "."
+ commandNumber, null));
commands.add(command);
}
}