/**\r
* Copyright (C) 2011 EDIT\r
- * European Distributed Institute of Taxonomy \r
+ * European Distributed Institute of Taxonomy\r
* http://www.e-taxonomy.eu\r
- * \r
+ *\r
* The contents of this file are subject to the Mozilla Public License Version 1.1\r
* See LICENSE.TXT at the top of this package for the full license terms.\r
*/\r
import eu.etaxonomy.taxeditor.editor.view.descriptive.DescriptionElementDropAdapter;\r
import eu.etaxonomy.taxeditor.editor.view.descriptive.DescriptionElementTransfer;\r
import eu.etaxonomy.taxeditor.editor.view.descriptive.DescriptiveViewPart;\r
-import eu.etaxonomy.taxeditor.model.IPartContentHasDetails;\r
-import eu.etaxonomy.taxeditor.model.IPartContentHasSupplementalData;\r
\r
\r
/**\r
- * The Class create a speific Use View to keep the taxonomic view clean\r
- * @author a.theys \r
+ * The Class create a specific Use View to keep the taxonomic view clean\r
+ * @author a.theys\r
* @created mar 13, 2012\r
* @version 1.0\r
*/\r
-public class UsesViewPart extends DescriptiveViewPart implements IPartContentHasDetails, IPartContentHasSupplementalData {\r
+public class UsesViewPart extends DescriptiveViewPart {\r
\r
/** Constant <code>ID="eu.etaxonomy.taxeditor.editor.view.uses"</code> */\r
public static final String ID = "eu.etaxonomy.taxeditor.editor.view.uses";\r
/** {@inheritDoc} */\r
@Override\r
public void createViewer(Composite parent) {\r
- \r
+\r
viewer = new TreeViewer(new Tree(parent, SWT.MULTI | SWT.H_SCROLL\r
| SWT.V_SCROLL | SWT.FULL_SELECTION));\r
viewer.setContentProvider(new UsesContentProvider(featureNodeContainerCache));\r
viewer.setLabelProvider(new UsesLabelProvider());\r
viewer.setAutoExpandLevel(2);\r
- \r
- \r
- \r
+\r
+\r
+\r
Transfer[] transfers = new Transfer[] { DescriptionElementTransfer.getInstance() };\r
viewer.addDragSupport(dndOperations, transfers, new DescriptionElementDragListener(\r
this));\r
viewer.addDropSupport(dndOperations, transfers,\r
new DescriptionElementDropAdapter(viewer));\r
- \r
+\r
// Propagate selection from viewer\r
getSite().setSelectionProvider(viewer);\r
- \r
- showAllElementsAction = new ToggleDescriptionAction(false); \r
+\r
+ showAllElementsAction = new ToggleDescriptionAction(false);\r
hideAllElementsAction = new ToggleDescriptionAction(true);\r
- \r
+\r
// Add context menu to tree\r
createMenu();\r
- \r
+\r
createToolbar();\r
\r
}\r
- \r
+\r
/** {@inheritDoc} */\r
@Override\r
public boolean postOperation(CdmBase objectAffectedByOperation) {\r
viewer.refresh();\r
return super.postOperation(objectAffectedByOperation);\r
}\r
- \r
+\r
\r
\r
}\r