org.eclipse.ui.actions.ActionFactory.IWorkbenchAction Java Examples

The following examples show how to use org.eclipse.ui.actions.ActionFactory.IWorkbenchAction. 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: SavePerspectiveHandler.java    From translationstudio8 with GNU General Public License v2.0 5 votes vote down vote up
public Object execute(ExecutionEvent event) throws ExecutionException {
	IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
	IWorkbenchAction savePerspectiveAction = ActionFactory.SAVE_PERSPECTIVE.create(window);
	savePerspectiveAction.run();
	
	return null;
}
 
Example #2
Source File: SavePerspectiveHandler.java    From tmxeditor8 with GNU General Public License v2.0 5 votes vote down vote up
public Object execute(ExecutionEvent event) throws ExecutionException {
	IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
	IWorkbenchAction savePerspectiveAction = ActionFactory.SAVE_PERSPECTIVE.create(window);
	savePerspectiveAction.run();
	
	return null;
}
 
Example #3
Source File: CreateItemViewActionDelegate.java    From ice with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
 */
@Override
public void run(IAction action) {

	// Local Declarations
	IWorkbenchAction createItemAction = new CreateItemAction(viewPart
			.getSite().getWorkbenchWindow());

	// Launch the action
	createItemAction.run();

	return;
}
 
Example #4
Source File: CreateItemActionDelegate.java    From ice with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
 */
@Override
public void run(IAction action) {

	// Local Declarations
	IWorkbenchAction createItemAction = new CreateItemAction(activeWindow);

	// Launch the action
	createItemAction.run();

	return;
}
 
Example #5
Source File: ResetPerspectiveHandler.java    From translationstudio8 with GNU General Public License v2.0 4 votes vote down vote up
public Object execute(ExecutionEvent event) throws ExecutionException {
	IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
	IWorkbenchAction resetPerspectiveAction = ActionFactory.RESET_PERSPECTIVE.create(window);
	resetPerspectiveAction.run();
	return null;
}
 
Example #6
Source File: ResetPerspectiveHandler.java    From tmxeditor8 with GNU General Public License v2.0 4 votes vote down vote up
public Object execute(ExecutionEvent event) throws ExecutionException {
	IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
	IWorkbenchAction resetPerspectiveAction = ActionFactory.RESET_PERSPECTIVE.create(window);
	resetPerspectiveAction.run();
	return null;
}