import org.eclipse.swt.layout.FillLayout;\r
import org.eclipse.swt.widgets.Composite;\r
import org.eclipse.swt.widgets.Control;\r
-import org.eclipse.swt.widgets.Display;\r
import org.eclipse.swt.widgets.Menu;\r
import org.eclipse.swt.widgets.Tree;\r
import org.eclipse.swt.widgets.TreeItem;\r
import org.eclipse.ui.IWorkbenchActionConstants;\r
-import org.eclipse.ui.forms.IManagedForm;\r
-import org.eclipse.ui.forms.ManagedForm;\r
-import org.eclipse.ui.forms.events.HyperlinkAdapter;\r
-import org.eclipse.ui.forms.events.HyperlinkEvent;\r
-import org.eclipse.ui.forms.widgets.Hyperlink;\r
-import org.eclipse.ui.forms.widgets.TableWrapLayout;\r
import org.eclipse.ui.part.ViewPart;\r
\r
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;\r
private TreeViewer treeViewer;\r
\r
private ConversationHolder conversation;\r
- \r
- private IManagedForm hyperlinkForm;\r
\r
private IDataChangeBehavior dataChangeBehavior;\r
\r
\r
}\r
\r
- /**\r
- * inactive at the moment. I would not put to much effort in it either.\r
- */\r
- private void createNoRootTaxaHyperlinkForm(){\r
- \r
- // If there are no root taxa, provide a link to create this tree's initial root taxon\r
- logger.warn("No root taxa found");\r
- \r
- hyperlinkForm = new ManagedForm(parent);\r
- Composite linkBody = hyperlinkForm.getForm().getBody();\r
- \r
- TableWrapLayout linkLayout = new TableWrapLayout();\r
- linkLayout.leftMargin = 20;\r
- linkLayout.rightMargin = 20;\r
- linkBody.setLayout(linkLayout);\r
- linkBody.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_WHITE));\r
- \r
- Hyperlink link = hyperlinkForm.getToolkit().createHyperlink(linkBody, \r
- "Your data source is empty. Click here to create a root taxon.", SWT.WRAP);\r
- \r
- link.addHyperlinkListener(new HyperlinkAdapter() {\r
- public void linkActivated(HyperlinkEvent e) {\r
- NavigationUtil.openEmpty(null);\r
- logger.warn("New Editor should be opened with empty taxon.");\r
- } \r
- });\r
- }\r
- \r
/**\r
* On double click, open name editor\r
*/\r