DescriptiveViewPart_EXPAND_ALL=Expand All
DescriptiveViewPart_FACTUAL_DATA=Factual Data
DescriptiveViewPart_SHOW_ALL_DATA=Show all factual data
+
+ConceptGraphView_VIEWER_NAME=Concept Graph
+ConceptViewPart_VIEWER_NAME=Concept Relations
+UsesViewPart_VIEWER_NAME=Uses
DescriptiveViewPart_EXPAND_ALL=Alles ausklappen
DescriptiveViewPart_FACTUAL_DATA=Faktendaten
DescriptiveViewPart_SHOW_ALL_DATA=Zeige alle Faktendaten
+
+ConceptGraphView_VIEWER_NAME=Konzeptgraph
+ConceptViewPart_VIEWER_NAME=Konzeptrelationen
+UsesViewPart_VIEWER_NAME=Nutzung
*/
public class Messages extends NLS {
private static final String BUNDLE_NAME = "OSGI-INF/l10n/messages"; //$NON-NLS-1$
- public static String CreateDerivateContextMenu_ADD;
+ public static String ConceptGraphView_VIEWER_NAME;
+ public static String ConceptViewPart_VIEWER_NAME;
+ public static String CreateDerivateContextMenu_ADD;
public static String CreateDerivateContextMenu_DNA_SAMPLE;
public static String CreateDerivateContextMenu_MEDIA;
public static String CreateDerivateContextMenu_MEDIA_EXISTING;
public static String SingleReadSequenceContextMenu_REMOVE_FROM_SEQUENCE;
public static String SingleReadSequenceContextMenu_REUSE_FOR_SEQUENCE;
public static String SingleReadSequenceContextMenu_REUSE_SINGLE_READ_HERE;
+ public static String UsesViewPart_VIEWER_NAME;
static {
// initialize resource bundle
NLS.initializeMessages(BUNDLE_NAME, Messages.class);
import eu.etaxonomy.cdm.model.taxon.Taxon;
import eu.etaxonomy.cdm.model.taxon.TaxonRelationship;
import eu.etaxonomy.taxeditor.bulkeditor.BulkEditor;
+import eu.etaxonomy.taxeditor.editor.Messages;
import eu.etaxonomy.taxeditor.editor.MultiPageTaxonEditor;
import eu.etaxonomy.taxeditor.editor.TaxonEditorInput;
import eu.etaxonomy.taxeditor.editor.key.AbstractGraphKeyEditor;
public class ConceptViewPart extends AbstractCdmEditorViewPart
implements IPartContentHasDetails, IPartContentHasSupplementalData{
- public static final String ID = "eu.etaxonomy.taxeditor.editor.view.concept";
+ public static final String ID = "eu.etaxonomy.taxeditor.editor.view.concept"; //$NON-NLS-1$
private ConceptRelationViewer viewer;
@Override
protected String getViewName() {
- return "Concept Relations";
+ return Messages.ConceptViewPart_VIEWER_NAME;
}
}
import eu.etaxonomy.taxeditor.bulkeditor.BulkEditor;
import eu.etaxonomy.taxeditor.editor.EditorUtil;
+import eu.etaxonomy.taxeditor.editor.Messages;
import eu.etaxonomy.taxeditor.editor.MultiPageTaxonEditor;
import eu.etaxonomy.taxeditor.view.AbstractCdmEditorViewPart;
*/
public class ConceptGraphView extends AbstractCdmEditorViewPart {
- public static final String ID = "eu.etaxonomy.taxeditor.editor.view.concept.graph";
+ public static final String ID = "eu.etaxonomy.taxeditor.editor.view.concept.graph"; //$NON-NLS-1$
private GraphViewer viewer;
private LayoutAlgorithm layoutAlgoritm;
@Override
protected String getViewName() {
- return "Concept Graph";
+ return Messages.ConceptGraphView_VIEWER_NAME;
}
-/**\r
- * Copyright (C) 2011 EDIT\r
- * European Distributed Institute of Taxonomy\r
- * http://www.e-taxonomy.eu\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
-package eu.etaxonomy.taxeditor.editor.view.uses;\r
-\r
-import org.eclipse.jface.viewers.TreeViewer;\r
-import org.eclipse.swt.SWT;\r
-import org.eclipse.swt.dnd.Transfer;\r
-import org.eclipse.swt.widgets.Composite;\r
-import org.eclipse.swt.widgets.Tree;\r
-\r
-import eu.etaxonomy.cdm.model.common.CdmBase;\r
-import eu.etaxonomy.taxeditor.editor.view.descriptive.DescriptionElementDragListener;\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
-\r
-\r
-/**\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 {\r
-\r
- public UsesViewPart() {\r
- super();\r
- }\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
- 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
- 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
- // Propagate selection from viewer\r
- getSite().setSelectionProvider(viewer);\r
-\r
- showAllElementsAction = new ToggleDescriptionAction(false);\r
- hideAllElementsAction = new ToggleDescriptionAction(true);\r
-\r
- // Add context menu to tree\r
- createMenu();\r
-\r
- createToolbar();\r
-\r
- }\r
-\r
- @Override\r
- protected String getViewName(){\r
- return "Uses";\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
+/**
+ * Copyright (C) 2011 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.editor.view.uses;
+
+import org.eclipse.jface.viewers.TreeViewer;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.dnd.Transfer;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Tree;
+
+import eu.etaxonomy.cdm.model.common.CdmBase;
+import eu.etaxonomy.taxeditor.editor.Messages;
+import eu.etaxonomy.taxeditor.editor.view.descriptive.DescriptionElementDragListener;
+import eu.etaxonomy.taxeditor.editor.view.descriptive.DescriptionElementDropAdapter;
+import eu.etaxonomy.taxeditor.editor.view.descriptive.DescriptionElementTransfer;
+import eu.etaxonomy.taxeditor.editor.view.descriptive.DescriptiveViewPart;
+
+
+/**
+ * The Class create a specific Use View to keep the taxonomic view clean
+ * @author a.theys
+ * @created mar 13, 2012
+ * @version 1.0
+ */
+public class UsesViewPart extends DescriptiveViewPart {
+
+ public UsesViewPart() {
+ super();
+ }
+
+ /** Constant <code>ID="eu.etaxonomy.taxeditor.editor.view.uses"</code> */
+ public static final String ID = "eu.etaxonomy.taxeditor.editor.view.uses"; //$NON-NLS-1$
+ /** {@inheritDoc} */
+ @Override
+ public void createViewer(Composite parent) {
+
+ viewer = new TreeViewer(new Tree(parent, SWT.MULTI | SWT.H_SCROLL
+ | SWT.V_SCROLL | SWT.FULL_SELECTION));
+ viewer.setContentProvider(new UsesContentProvider(featureNodeContainerCache));
+ viewer.setLabelProvider(new UsesLabelProvider());
+ viewer.setAutoExpandLevel(2);
+
+
+
+ Transfer[] transfers = new Transfer[] { DescriptionElementTransfer.getInstance() };
+ viewer.addDragSupport(dndOperations, transfers, new DescriptionElementDragListener(
+ this));
+ viewer.addDropSupport(dndOperations, transfers,
+ new DescriptionElementDropAdapter(viewer));
+
+ // Propagate selection from viewer
+ getSite().setSelectionProvider(viewer);
+
+ showAllElementsAction = new ToggleDescriptionAction(false);
+ hideAllElementsAction = new ToggleDescriptionAction(true);
+
+ // Add context menu to tree
+ createMenu();
+
+ createToolbar();
+
+ }
+
+ @Override
+ protected String getViewName(){
+ return Messages.UsesViewPart_VIEWER_NAME;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public boolean postOperation(CdmBase objectAffectedByOperation) {
+ viewer.refresh();
+ return super.postOperation(objectAffectedByOperation);
+ }
+
+
+
+}
SearchManager_LARGE_RESULT_EXPECTED=Large result expected
SearchManager_LONG_SEARCH_WARNING=The current search will return %s objects. This will take a long time and/or might render the editor unusable. Please consider refining your search.\nSearch anyway?
+
+SupplementalDataViewPart_VIEWER_NAME=Supplemental Data
+DetailsViewPart_VIEWER_NAME=Details
\ No newline at end of file
SearchManager_LARGE_RESULT_EXPECTED=Große Anzahl an Suchergebnissen
SearchManager_LONG_SEARCH_WARNING=Die aktuelle Suche wird %s Objekte laden. Dies kann einige Zeit dauern und den Editor währenddessen unbedienbar machen. Bitte erstellen sie eine detailliertere Suche.\nTrotzdem suchen?
+
+SupplementalDataViewPart_VIEWER_NAME=Zusatzdaten
+DetailsViewPart_VIEWER_NAME=Details
public static String CdmStoreConnector_SCHEME_NOT_COMPATIBLE;
public static String CdmStoreConnector_UPDATE_DATASOUREC_OR_CHOOSE_NEW_DATASOURCE;
public static String CdmStoreConnector_UPDATE_EDITOR_OR_CHOOSE_COMPATIBLE_DATASOURCE;
+ public static String DetailsViewPart_VIEWER_NAME;
public static String EditPasswordElement_PLEASE_CREATE_OR_SAVE_USER;
public static String EditPasswordElement_USERNAME_DOES_NOT_EXIST;
public static String PasswordWizard_COULD_NOT_CHANGE_PWD;
public static String RemotingLoginDialog_TASK_LAUNCHING_SERVER;
public static String SearchManager_LARGE_RESULT_EXPECTED;
public static String SearchManager_LONG_SEARCH_WARNING;
+ public static String SupplementalDataViewPart_VIEWER_NAME;
static {
// initialize resource bundle
NLS.initializeMessages(BUNDLE_NAME, Messages.class);
import eu.etaxonomy.cdm.model.common.CdmBase;
import eu.etaxonomy.cdm.model.description.Feature;
import eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase;
+import eu.etaxonomy.taxeditor.Messages;
import eu.etaxonomy.taxeditor.model.AbstractUtility;
import eu.etaxonomy.taxeditor.model.FeatureNodeContainer;
import eu.etaxonomy.taxeditor.model.IPartContentHasDetails;
public class DetailsViewPart extends AbstractCdmEditorViewPart implements IPartContentHasSupplementalData{
/** Constant <code>ID="eu.etaxonomy.taxeditor.editor.forms.det"{trunked}</code> */
- public static String ID = "eu.etaxonomy.taxeditor.view.detail";
+ public static String ID = "eu.etaxonomy.taxeditor.view.detail"; //$NON-NLS-1$
private DetailsViewer viewer;
@Override
protected String getViewName(){
- return "Details";
+ return Messages.DetailsViewPart_VIEWER_NAME;
}
@Override
selectedObject = ((TreeNode) selectedObject).getValue();
}
if(selectedObject instanceof SpecimenOrObservationBase){
- return getViewName()+": "+HibernateProxyHelper.deproxy(selectedObject, SpecimenOrObservationBase.class).getRecordBasis();
+ return getViewName()+": "+HibernateProxyHelper.deproxy(selectedObject, SpecimenOrObservationBase.class).getRecordBasis(); //$NON-NLS-1$
}
if(selectedObject instanceof CdmBase){
- return getViewName()+": "+HibernateProxyHelper.deproxy(selectedObject, CdmBase.class).getClass().getSimpleName();
+ return getViewName()+": "+HibernateProxyHelper.deproxy(selectedObject, CdmBase.class).getClass().getSimpleName(); //$NON-NLS-1$
}
- return getViewName()+": "+selectedObject.getClass().getSimpleName();
+ return getViewName()+": "+selectedObject.getClass().getSimpleName(); //$NON-NLS-1$
}
return getViewName();
}
import eu.etaxonomy.cdm.api.facade.DerivedUnitFacade;
import eu.etaxonomy.cdm.ext.occurrence.gbif.GbifResponse;
import eu.etaxonomy.cdm.model.description.PolytomousKeyNode;
+import eu.etaxonomy.taxeditor.Messages;
import eu.etaxonomy.taxeditor.model.AbstractUtility;
import eu.etaxonomy.taxeditor.model.FeatureNodeContainer;
import eu.etaxonomy.taxeditor.model.IPartContentHasSupplementalData;
public class SupplementalDataViewPart extends AbstractCdmEditorViewPart {
/** Constant <code>ID="eu.etaxonomy.taxeditor.editor.view.supp"{trunked}</code> */
- public static final String ID = "eu.etaxonomy.taxeditor.view.supplementalData";
+ public static final String ID = "eu.etaxonomy.taxeditor.view.supplementalData"; //$NON-NLS-1$
private SupplementalDataViewer viewer;
@Override
protected String getViewName() {
- return "Supplemental Data";
+ return Messages.SupplementalDataViewPart_VIEWER_NAME;
}
}