minor
authorKatja Luther <k.luther@bgbm.org>
Thu, 19 Jun 2014 13:25:51 +0000 (13:25 +0000)
committerKatja Luther <k.luther@bgbm.org>
Thu, 19 Jun 2014 13:25:51 +0000 (13:25 +0000)
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/TaxonNavigator.java

index e375d2c0e06358c65133757c11c190055f399187..1e30eb0b2218703ccd14347ecd162f0d28cba098 100644 (file)
@@ -21,20 +21,16 @@ import java.util.UUID;
 import org.eclipse.core.runtime.IAdaptable;
 import org.eclipse.core.runtime.IProgressMonitor;
 import org.eclipse.jface.viewers.DoubleClickEvent;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.SelectionChangedEvent;
 import org.eclipse.jface.viewers.TreePath;
 import org.eclipse.ui.IMemento;
 import org.eclipse.ui.IViewSite;
 import org.eclipse.ui.PartInitException;
 import org.eclipse.ui.navigator.CommonNavigator;
-import org.eclipse.jface.viewers.ISelectionChangedListener;
 
 import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
 import eu.etaxonomy.cdm.api.conversation.IConversationEnabled;
 import eu.etaxonomy.cdm.api.service.IClassificationService;
 import eu.etaxonomy.cdm.model.common.CdmBase;
-import eu.etaxonomy.cdm.model.description.FeatureTree;
 import eu.etaxonomy.cdm.model.taxon.TaxonComparatorSearch;
 import eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap;
 import eu.etaxonomy.taxeditor.model.DataChangeBridge;
@@ -83,17 +79,6 @@ public class TaxonNavigator extends CommonNavigator implements
                TaxonComparatorSearch comparator = new TaxonComparatorSearch();
                TaxonNodeComparator viewerComparator = new TaxonNodeComparator(comparator);
                this.getCommonViewer().setComparator(viewerComparator);
-               this.getCommonViewer().addSelectionChangedListener(new ISelectionChangedListener() {
-                       
-                       @Override
-                       public void selectionChanged(SelectionChangedEvent arg0) {
-                               IStructuredSelection selection = (IStructuredSelection) getCommonViewer().getSelection();
-                               
-                               Object firstElement =  selection.getFirstElement();
-                               NavigationUtil.executeEditHandler();
-                               
-                       }
-               } );
                
                if (CdmStore.isActive()) {
                        
@@ -112,7 +97,6 @@ public class TaxonNavigator extends CommonNavigator implements
        public void init(IViewSite site) throws PartInitException {
                super.init(site);
                init();
-               
        }
 
        /**
@@ -126,7 +110,6 @@ public class TaxonNavigator extends CommonNavigator implements
                        conversation.registerForDataStoreChanges(TaxonNavigator.this);
                }
                CdmStore.getLoginManager().addObserver(this);
-               
        }
 
        /**