private void initActions() {
actionManager = ActionManager.getInstance();
// exit
final AbstractActionExt exitAction = new AbstractActionExt() {
public void actionPerformed(ActionEvent e) {
exit();
}
};
exitAction.setName(MESSAGES.getString("ExitAction.Text"));
exitAction.setShortDescription(MESSAGES.getString("ExitAction.Tooltip"));
exitAction.setActionCommand(EXIT_ACTION);
actionManager.addAction(exitAction);
// open file
final AbstractActionExt openFileAction = new AbstractActionExt() {
public void actionPerformed(ActionEvent e) {
openFile();
}
};
openFileAction.setName(MESSAGES.getString("OpenFileAction.Text"));
openFileAction.setShortDescription(MESSAGES.getString("OpenFileAction.Tooltip"));
openFileAction.setSmallIcon(ICONS.getIcon("OpenFileAction"));
openFileAction.setActionCommand(OPEN_FILE_ACTION);
actionManager.addAction(openFileAction);
// filter
final AbstractActionExt filterAction = new AbstractActionExt() {
public void actionPerformed(ActionEvent e) {
filterTree();
}
};
filterAction.setName(MESSAGES.getString("FilterAction.Text"));
filterAction.setActionCommand(FILTER_ACTION);
actionManager.addAction(filterAction);
// clear filter
final AbstractActionExt clearFilterAction = new AbstractActionExt() {
public void actionPerformed(ActionEvent e) {
getFilterCombo().setSelectedItem("");
filterTree();
}
};
clearFilterAction.setName(MESSAGES.getString("ClearFilterAction.Text"));
clearFilterAction.setActionCommand(CLEAR_FILTER_ACTION);
actionManager.addAction(clearFilterAction);
}