Project

General

Profile

« Previous | Next » 

Revision 713438dc

Added by Patrick Plitzner over 6 years ago

ref #6909 Adapt to interace changes

View differences:

eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/key/polytomous/handler/EditPolytomousKeyNodesHandler.java
19 19
import org.eclipse.jface.viewers.ISelection;
20 20
import org.eclipse.jface.viewers.StructuredSelection;
21 21
import org.eclipse.swt.widgets.Display;
22
import org.eclipse.ui.PlatformUI;
22 23

  
23 24
import eu.etaxonomy.cdm.model.description.PolytomousKey;
24 25
import eu.etaxonomy.taxeditor.navigation.NavigationUtil;
......
59 60

  
60 61
								@Override
61 62
								public void run() {
62
									NavigationUtil.openEditor((PolytomousKey) selectedObject);
63
									NavigationUtil.openEditor((PolytomousKey) selectedObject, PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell());
63 64
								}
64 65

  
65 66
							});
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