Revision 713438dc
Added by Patrick Plitzner over 6 years ago
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/TaxonNavigator.java | ||
---|---|---|
30 | 30 |
import org.eclipse.ui.IMemento; |
31 | 31 |
import org.eclipse.ui.IViewSite; |
32 | 32 |
import org.eclipse.ui.PartInitException; |
33 |
import org.eclipse.ui.PlatformUI; |
|
33 | 34 |
import org.eclipse.ui.navigator.CommonNavigator; |
34 | 35 |
|
35 | 36 |
import eu.etaxonomy.cdm.api.application.CdmApplicationState; |
36 | 37 |
import eu.etaxonomy.cdm.api.application.CdmChangeEvent; |
37 |
import eu.etaxonomy.cdm.api.application.CdmChangeEvent.Action; |
|
38 | 38 |
import eu.etaxonomy.cdm.api.application.ICdmChangeListener; |
39 | 39 |
import eu.etaxonomy.cdm.api.conversation.ConversationHolder; |
40 | 40 |
import eu.etaxonomy.cdm.api.conversation.IConversationEnabled; |
... | ... | |
137 | 137 |
// closing the whole application |
138 | 138 |
// should be handled by the state manager too |
139 | 139 |
root = new Root(conversation); |
140 |
|
|
140 |
|
|
141 | 141 |
return root; |
142 | 142 |
} |
143 | 143 |
return new EmptyRoot(); |
... | ... | |
166 | 166 |
CdmApplicationState.getCurrentDataChangeService().register(this); |
167 | 167 |
} |
168 | 168 |
CdmStore.getLoginManager().addObserver(this); |
169 |
|
|
170 |
|
|
169 |
|
|
170 |
|
|
171 | 171 |
} |
172 | 172 |
|
173 | 173 |
/** |
... | ... | |
469 | 469 |
if(selection instanceof IStructuredSelection){ |
470 | 470 |
Object firstElement = ((IStructuredSelection) selection).getFirstElement(); |
471 | 471 |
if(firstElement instanceof ICdmBase){ |
472 |
NavigationUtil.openEditor((ICdmBase) firstElement); |
|
472 |
NavigationUtil.openEditor((ICdmBase) firstElement, PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell());
|
|
473 | 473 |
} |
474 | 474 |
} |
475 | 475 |
// If the double click is passed up to the super-class it will |
Also available in: Unified diff
ref #6909 Adapt to interace changes