public abstract class DefaultOpenHandlerBaseE4<T>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.e4.ui.model.application.MApplication |
application |
protected org.eclipse.e4.core.contexts.IEclipseContext |
context |
protected org.eclipse.e4.ui.workbench.modeling.EModelService |
modelService |
Constructor and Description |
---|
DefaultOpenHandlerBaseE4() |
Modifier and Type | Method and Description |
---|---|
boolean |
canExecute(org.eclipse.e4.ui.model.application.ui.menu.MHandledMenuItem menuItem,
org.eclipse.e4.ui.model.application.ui.basic.MPart activePart) |
protected abstract boolean |
canExecute(T entity) |
void |
execute(org.eclipse.swt.widgets.Shell shell,
org.eclipse.e4.ui.model.application.ui.menu.MHandledMenuItem menuItem,
org.eclipse.e4.ui.workbench.modeling.EModelService modelService,
org.eclipse.e4.ui.workbench.modeling.EPartService partService,
org.eclipse.e4.ui.model.application.MApplication application,
org.eclipse.e4.core.contexts.IEclipseContext context) |
protected abstract T |
getEntity(java.util.UUID uuid) |
protected java.lang.String |
getPartId()
Returns the part id for the part this handler opens.
|
protected abstract void |
open(T entity,
org.eclipse.swt.widgets.Shell shell,
org.eclipse.e4.ui.workbench.modeling.EPartService partService) |
protected org.eclipse.e4.core.contexts.IEclipseContext context
protected org.eclipse.e4.ui.model.application.MApplication application
protected org.eclipse.e4.ui.workbench.modeling.EModelService modelService
@Execute public void execute(@Named(value="activeShell") org.eclipse.swt.widgets.Shell shell, org.eclipse.e4.ui.model.application.ui.menu.MHandledMenuItem menuItem, org.eclipse.e4.ui.workbench.modeling.EModelService modelService, org.eclipse.e4.ui.workbench.modeling.EPartService partService, org.eclipse.e4.ui.model.application.MApplication application, org.eclipse.e4.core.contexts.IEclipseContext context)
@CanExecute public boolean canExecute(org.eclipse.e4.ui.model.application.ui.menu.MHandledMenuItem menuItem, @Named(value="e4ActivePart") org.eclipse.e4.ui.model.application.ui.basic.MPart activePart)
protected abstract T getEntity(java.util.UUID uuid)
protected abstract void open(T entity, org.eclipse.swt.widgets.Shell shell, org.eclipse.e4.ui.workbench.modeling.EPartService partService)
protected abstract boolean canExecute(T entity)
protected java.lang.String getPartId()
Copyright © 2007-2018. All Rights Reserved.