Revision 0fa0610e
Added by Patrick Plitzner over 6 years ago
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/key/polytomous/PolytomousKeyViewPart.java | ||
---|---|---|
25 | 25 |
import org.eclipse.swt.layout.GridLayout; |
26 | 26 |
import org.eclipse.swt.widgets.Composite; |
27 | 27 |
import org.eclipse.swt.widgets.Control; |
28 |
import org.eclipse.swt.widgets.Display; |
|
29 | 28 |
import org.eclipse.swt.widgets.Event; |
30 | 29 |
import org.eclipse.swt.widgets.Menu; |
31 | 30 |
import org.eclipse.swt.widgets.Text; |
... | ... | |
120 | 119 |
private ListViewer viewer; |
121 | 120 |
private ConversationHolder conversation; |
122 | 121 |
private IContextListener contextListener; |
123 |
private final CdmFormFactory formFactory;
|
|
122 |
private CdmFormFactory formFactory; |
|
124 | 123 |
private Text text_filter; |
125 | 124 |
private ICdmEntitySession cdmEntitySession; |
126 | 125 |
|
127 | 126 |
private PolytomousKeyViewPartDataChangeBehavior dataChangeBehavior; |
128 | 127 |
|
129 | 128 |
public PolytomousKeyViewPart(){ |
130 |
formFactory = new CdmFormFactory(Display.getDefault()); |
|
129 |
// formFactory = new CdmFormFactory(Display.getDefault());
|
|
131 | 130 |
} |
132 | 131 |
|
133 | 132 |
/* (non-Javadoc) |
... | ... | |
171 | 170 |
} |
172 | 171 |
|
173 | 172 |
public void openSelectedKeyNodes() { |
174 |
ICommandService commandService = (ICommandService)getSite().getService(ICommandService.class);
|
|
173 |
ICommandService commandService = getSite().getService(ICommandService.class); |
|
175 | 174 |
|
176 | 175 |
Command command = commandService.getCommand(OPEN_COMMAND_ID); |
177 | 176 |
if(command.isEnabled()) { |
178 |
IHandlerService handlerService = (IHandlerService)getSite().getService(IHandlerService.class);
|
|
177 |
IHandlerService handlerService = getSite().getService(IHandlerService.class); |
|
179 | 178 |
try { |
180 | 179 |
handlerService.executeCommand(OPEN_COMMAND_ID, null); |
181 | 180 |
} catch (NotDefinedException e) { |
Also available in: Unified diff
ref #6913 Remove org.eclipse.ui dependency from AbstractUtility