taxeditor-bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/handler/SetMarkerFlagHandler.java -text
taxeditor-bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/handler/SetMergeCandidateHandler.java -text
taxeditor-bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/handler/SetMergeTargetHandler.java -text
-taxeditor-bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/handler/ShowReferencingObjectsHandler.java -text
taxeditor-bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/input/AbstractBulkEditorInput.java -text
taxeditor-bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/input/AgentEditorInput.java -text
taxeditor-bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/input/GroupEditorInput.java -text
name="taxeditor-bulkeditor.separator1"\r
visible="true">\r
</separator>\r
- <command\r
- commandId="org.eclipse.ui.views.showView"\r
- label="Show Details"\r
- style="push">\r
- <parameter\r
- name="org.eclipse.ui.views.showView.viewId"\r
- value="eu.etaxonomy.taxeditor.editor.forms.detailsView">\r
- </parameter>\r
- </command>\r
- <command\r
- commandId="bulkeditor.commands.referencingobjects"\r
- label="Show Referencing Objects"\r
- style="push">\r
- </command>\r
- <separator\r
- name="taxeditor-bulkeditor.separator4"\r
- visible="true">\r
- </separator>\r
<command\r
commandId="bulkeditor.commands.setmergetarget"\r
label="Set Current Line as Target for Duplicate Removal"\r
id="bulkeditor.commands.setmergetarget"\r
name="Set as Target for Group Merge">\r
</command>\r
- <command\r
- defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.ShowReferencingObjectsHandler"\r
- id="bulkeditor.commands.referencingobjects"\r
- name="Show Referencing Objects">\r
- </command>\r
<command\r
defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.OpenBulkEditorHandler"\r
id="taxeditor-bulkeditor.dynamicopenmenu"\r
commandId="org.eclipse.ui.edit.delete">\r
<activeWhen>\r
<with\r
- variable="activePartId">\r
- <equals\r
- value="bulkeditor.editor">\r
- </equals>\r
+ variable="selection">\r
+ <instanceof\r
+ value="eu.etaxonomy.taxeditor.model.LineSelection">\r
+ </instanceof>\r
</with>\r
</activeWhen>\r
</handler>\r
menu.remove(ITextEditorActionConstants.SHIFT_RIGHT);
menu.remove(ITextEditorActionConstants.SHIFT_LEFT);
menu.remove(ITextEditorActionConstants.CONTEXT_PREFERENCES);
-
- IMenuManager showInMenu = menu.findMenuUsingPath("viewsShowIn");
- System.out.println(showInMenu);
}
}
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
+import eu.etaxonomy.taxeditor.bulkeditor.BulkEditorUtil;
+
/**
* @author n.hoffmann
* @created Mar 11, 2011
*/
@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
- // TODO Auto-generated method stub
+ BulkEditorUtil.warningDialog("Not implemented yet", getClass(), "Delete was not implemented yet.");
return null;
}
+++ /dev/null
-// $Id$
-/**
-* Copyright (C) 2007 EDIT
-* European Distributed Institute of Taxonomy
-* http://www.e-taxonomy.eu
-*
-* The contents of this file are subject to the Mozilla Public License Version 1.1
-* See LICENSE.TXT at the top of this package for the full license terms.
-*/
-
-package eu.etaxonomy.taxeditor.bulkeditor.handler;
-
-import org.apache.log4j.Logger;
-import org.eclipse.core.commands.AbstractHandler;
-import org.eclipse.core.commands.ExecutionEvent;
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.ui.PartInitException;
-import org.eclipse.ui.handlers.HandlerUtil;
-
-import eu.etaxonomy.taxeditor.bulkeditor.referencingobjects.ReferencingObjectsView;
-
-/**
- * <p>ShowReferencingObjectsHandler class.</p>
- *
- * @author p.ciardelli
- * @created 08.07.2009
- * @version 1.0
- */
-public class ShowReferencingObjectsHandler extends AbstractHandler {
- private static final Logger logger = Logger
- .getLogger(ShowReferencingObjectsHandler.class);
-
- /* (non-Javadoc)
- * @see org.eclipse.core.commands.IHandler#execute(org.eclipse.core.commands.ExecutionEvent)
- */
- /** {@inheritDoc} */
- public Object execute(ExecutionEvent event) throws ExecutionException {
- try {
- ReferencingObjectsView view = (ReferencingObjectsView) HandlerUtil.getActiveWorkbenchWindow(event).getActivePage().
- showView(ReferencingObjectsView.ID);
-// view.updateReferencingObjects();
- } catch (PartInitException e) {
- logger.error("PartInitException when updating referncing objects view", e);
- }
- return null;
- }
-
-}
class="eu.etaxonomy.taxeditor.editor.name.handler.DeleteTaxonBaseHandler"
commandId="org.eclipse.ui.edit.delete">
<activeWhen>
- <with
- variable="activePartId">
- <equals
- value="eu.etaxonomy.taxeditor.editor.taxon.name">
- </equals>
- </with>
+ <and>
+ <reference
+ definitionId="isTaxonBase">
+ </reference>
+ <not>
+ <reference
+ definitionId="isAcceptedTaxon">
+ </reference>
+ </not>
+ </and>
</activeWhen>
</handler>
<handler
class="eu.etaxonomy.taxeditor.editor.view.descriptive.handler.DeleteHandler"
commandId="org.eclipse.ui.edit.delete">
- <with
- variable="activePartId">
- <equals
- value="eu.etaxonomy.taxeditor.editor.view.descriptive">
- </equals>
- </with>
+ <activeWhen>
+ <with
+ variable="activePartId">
+ <equals
+ value="eu.etaxonomy.taxeditor.editor.view.descriptive">
+ </equals>
+ </with>
+ </activeWhen>
</handler>
<handler
class="eu.etaxonomy.taxeditor.editor.key.polytomous.handler.DeleteNodeHandler"
@Override
public void createViewer(Composite parent) {
- viewer = new TreeViewer(new Tree(parent, SWT.NULL));
+ viewer = new TreeViewer(new Tree(parent, SWT.MULTI | SWT.H_SCROLL
+ | SWT.V_SCROLL | SWT.FULL_SELECTION));
viewer.setContentProvider(new DescriptiveContentProvider(featureNodeContainerCache));
viewer.setLabelProvider(new DescriptiveLabelProvider());
// ConversationHolder conversation = CdmStore.createConversation();
- ISelection selection = HandlerUtil.getActiveMenuSelection(event);
+ ISelection selection = HandlerUtil.getCurrentSelection(event);
if(selection instanceof IStructuredSelection){
@Override
public void createViewer(Composite parent) {
- viewer = new TreeViewer(new Tree(parent, SWT.NULL));
+ viewer = new TreeViewer(new Tree(parent, SWT.MULTI | SWT.H_SCROLL
+ | SWT.V_SCROLL | SWT.FULL_SELECTION));
viewer.setContentProvider(new MediaContentProvider());
viewer.setLabelProvider(new MediaLabelProvider());
" This case is not handled yet by the software.");
}else if(acceptedTaxa.size() == 0){
// this is an undesired state
- warningDialog("Incorrect state", NavigationUtil.class, "The accepted taxon is not in a taxonomic view. This should not have happened.");
+ warningDialog("Not implemented yet", NavigationUtil.class, "This taxon is not connected to a classification. Currently editing of such taxa is not supported yet.");
}
}
/** {@inheritDoc} */
public Object execute(ExecutionEvent event) throws ExecutionException {
- ISelection selection = HandlerUtil.getCurrentSelection(event);//navigator.getSelection();
+ ISelection selection = HandlerUtil.getCurrentSelection(event);
if(selection instanceof StructuredSelection){
final StructuredSelection structuredSelection = (StructuredSelection) selection;