From: Patrick Plitzner
Date: Mon, 16 Nov 2015 09:38:02 +0000 (+0100)
Subject: Move "link with taxon selection" action to main toolbar
X-Git-Tag: 3.12.0^2~62^2~7^2
X-Git-Url: https://dev.e-taxonomy.eu/gitweb/taxeditor.git/commitdiff_plain/8f0650661e4167e053fdebd91427a31f9fd870a0
Move "link with taxon selection" action to main toolbar
---
diff --git a/eu.etaxonomy.taxeditor.editor/plugin.xml b/eu.etaxonomy.taxeditor.editor/plugin.xml
index b7ca0b2d2..9ef904dfb 100644
--- a/eu.etaxonomy.taxeditor.editor/plugin.xml
+++ b/eu.etaxonomy.taxeditor.editor/plugin.xml
@@ -1011,19 +1011,25 @@
-
-
-
-
-
-
+ locationURI="toolbar:org.eclipse.ui.main.toolbar?after=eu.etaxonomy.taxeditor.navigation.search.toolbar">
+
+
+
+
+
+
+
+
+
+
+ name="Link with taxon selection">
diff --git a/eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/derivate/searchFilter/DerivateSearchComposite.java b/eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/derivate/searchFilter/DerivateSearchComposite.java
index 02f3e5d05..b34b7ab19 100644
--- a/eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/derivate/searchFilter/DerivateSearchComposite.java
+++ b/eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/derivate/searchFilter/DerivateSearchComposite.java
@@ -43,7 +43,6 @@ public class DerivateSearchComposite extends Composite {
private Label lbltaxonAssignment;
private Combo comboTaxonAssignment;
private Label lblTitleCache;
- private Button buttonToggleLink;
/**
* Create the composite.
@@ -82,11 +81,7 @@ public class DerivateSearchComposite extends Composite {
formToolkit.adapt(comboTaxonAssignment);
formToolkit.paintBordersFor(comboTaxonAssignment);
comboTaxonAssignment.select(ALL_SPECIMENS);
-
- buttonToggleLink = new Button(this, SWT.NONE);
- buttonToggleLink.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
- buttonToggleLink.setImage(ResourceManager.getPluginImage("eu.etaxonomy.taxeditor.editor", "icons/synced.gif"));
- formToolkit.adapt(buttonToggleLink, true, true);
+ new Label(this, SWT.NONE);
lblTitleCache = new Label(this, SWT.NONE);
lblTitleCache.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
@@ -161,7 +156,4 @@ public class DerivateSearchComposite extends Composite {
public Label getLbltaxonAssignment() {
return lbltaxonAssignment;
}
- public Button getButtonToggleLink() {
- return buttonToggleLink;
- }
}
diff --git a/eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/derivate/searchFilter/DerivateSearchCompositeController.java b/eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/derivate/searchFilter/DerivateSearchCompositeController.java
index 50d91e66a..e87fcc5aa 100644
--- a/eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/derivate/searchFilter/DerivateSearchCompositeController.java
+++ b/eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/derivate/searchFilter/DerivateSearchCompositeController.java
@@ -65,7 +65,6 @@ public class DerivateSearchCompositeController implements Listener{
derivateSearchComposite.getButtonSearch().addListener(SWT.Selection, this);
derivateSearchComposite.getBtnBrowseTaxa().addListener(SWT.Selection, this);
derivateSearchComposite.getBtnClearTaxon().addListener(SWT.Selection, this);
- derivateSearchComposite.getButtonToggleLink().addListener(SWT.Selection, this);
}
@@ -146,9 +145,6 @@ public class DerivateSearchCompositeController implements Listener{
derivateSearchComposite.getComboTaxonAssignment().setEnabled(true);
derivateSearchComposite.getLbltaxonAssignment().setEnabled(true);
}
- else if(eventSource==derivateSearchComposite.getButtonToggleLink()){
- derivativeEditor.toggleListenToSelectionChange();
- }
}
/**