org.eclipse.ui.actions.SelectionListenerAction Java Examples

The following examples show how to use org.eclipse.ui.actions.SelectionListenerAction. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: GamlActionProvider.java    From gama with GNU General Public License v3.0 6 votes vote down vote up
private void makeActions() {
	runAction = new SelectionListenerAction("Run...") {
		@Override
		public void run() {
			selection.handleDoubleClick();
		}

	};
	runAction.setId("run.experiment");
	runAction.setEnabled(true);
	revealAction = new SelectionListenerAction("Reveal...") {
		@Override
		public void run() {
			GAMA.getGui().editModel(null, selection.getElement().getElement());
		}
	};
	revealAction.setId("reveal.item");
	revealAction.setEnabled(true);
}