Revision cc330739
i18n for view titles
eu.etaxonomy.taxeditor.editor/OSGI-INF/l10n/messages.properties | ||
---|---|---|
47 | 47 |
DescriptiveViewPart_EXPAND_ALL=Expand All |
48 | 48 |
DescriptiveViewPart_FACTUAL_DATA=Factual Data |
49 | 49 |
DescriptiveViewPart_SHOW_ALL_DATA=Show all factual data |
50 |
|
|
51 |
ConceptGraphView_VIEWER_NAME=Concept Graph |
|
52 |
ConceptViewPart_VIEWER_NAME=Concept Relations |
|
53 |
UsesViewPart_VIEWER_NAME=Uses |
eu.etaxonomy.taxeditor.editor/OSGI-INF/l10n/messages_de.properties | ||
---|---|---|
47 | 47 |
DescriptiveViewPart_EXPAND_ALL=Alles ausklappen |
48 | 48 |
DescriptiveViewPart_FACTUAL_DATA=Faktendaten |
49 | 49 |
DescriptiveViewPart_SHOW_ALL_DATA=Zeige alle Faktendaten |
50 |
|
|
51 |
ConceptGraphView_VIEWER_NAME=Konzeptgraph |
|
52 |
ConceptViewPart_VIEWER_NAME=Konzeptrelationen |
|
53 |
UsesViewPart_VIEWER_NAME=Nutzung |
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/Messages.java | ||
---|---|---|
18 | 18 |
*/ |
19 | 19 |
public class Messages extends NLS { |
20 | 20 |
private static final String BUNDLE_NAME = "OSGI-INF/l10n/messages"; //$NON-NLS-1$ |
21 |
public static String CreateDerivateContextMenu_ADD; |
|
21 |
public static String ConceptGraphView_VIEWER_NAME; |
|
22 |
public static String ConceptViewPart_VIEWER_NAME; |
|
23 |
public static String CreateDerivateContextMenu_ADD; |
|
22 | 24 |
public static String CreateDerivateContextMenu_DNA_SAMPLE; |
23 | 25 |
public static String CreateDerivateContextMenu_MEDIA; |
24 | 26 |
public static String CreateDerivateContextMenu_MEDIA_EXISTING; |
... | ... | |
57 | 59 |
public static String SingleReadSequenceContextMenu_REMOVE_FROM_SEQUENCE; |
58 | 60 |
public static String SingleReadSequenceContextMenu_REUSE_FOR_SEQUENCE; |
59 | 61 |
public static String SingleReadSequenceContextMenu_REUSE_SINGLE_READ_HERE; |
62 |
public static String UsesViewPart_VIEWER_NAME; |
|
60 | 63 |
static { |
61 | 64 |
// initialize resource bundle |
62 | 65 |
NLS.initializeMessages(BUNDLE_NAME, Messages.class); |
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/concept/ConceptViewPart.java | ||
---|---|---|
31 | 31 |
import eu.etaxonomy.cdm.model.taxon.Taxon; |
32 | 32 |
import eu.etaxonomy.cdm.model.taxon.TaxonRelationship; |
33 | 33 |
import eu.etaxonomy.taxeditor.bulkeditor.BulkEditor; |
34 |
import eu.etaxonomy.taxeditor.editor.Messages; |
|
34 | 35 |
import eu.etaxonomy.taxeditor.editor.MultiPageTaxonEditor; |
35 | 36 |
import eu.etaxonomy.taxeditor.editor.TaxonEditorInput; |
36 | 37 |
import eu.etaxonomy.taxeditor.editor.key.AbstractGraphKeyEditor; |
... | ... | |
50 | 51 |
public class ConceptViewPart extends AbstractCdmEditorViewPart |
51 | 52 |
implements IPartContentHasDetails, IPartContentHasSupplementalData{ |
52 | 53 |
|
53 |
public static final String ID = "eu.etaxonomy.taxeditor.editor.view.concept"; |
|
54 |
public static final String ID = "eu.etaxonomy.taxeditor.editor.view.concept"; //$NON-NLS-1$
|
|
54 | 55 |
|
55 | 56 |
private ConceptRelationViewer viewer; |
56 | 57 |
|
... | ... | |
172 | 173 |
|
173 | 174 |
@Override |
174 | 175 |
protected String getViewName() { |
175 |
return "Concept Relations";
|
|
176 |
return Messages.ConceptViewPart_VIEWER_NAME;
|
|
176 | 177 |
} |
177 | 178 |
|
178 | 179 |
} |
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/concept/graph/ConceptGraphView.java | ||
---|---|---|
19 | 19 |
|
20 | 20 |
import eu.etaxonomy.taxeditor.bulkeditor.BulkEditor; |
21 | 21 |
import eu.etaxonomy.taxeditor.editor.EditorUtil; |
22 |
import eu.etaxonomy.taxeditor.editor.Messages; |
|
22 | 23 |
import eu.etaxonomy.taxeditor.editor.MultiPageTaxonEditor; |
23 | 24 |
import eu.etaxonomy.taxeditor.view.AbstractCdmEditorViewPart; |
24 | 25 |
|
... | ... | |
28 | 29 |
*/ |
29 | 30 |
public class ConceptGraphView extends AbstractCdmEditorViewPart { |
30 | 31 |
|
31 |
public static final String ID = "eu.etaxonomy.taxeditor.editor.view.concept.graph"; |
|
32 |
public static final String ID = "eu.etaxonomy.taxeditor.editor.view.concept.graph"; //$NON-NLS-1$
|
|
32 | 33 |
|
33 | 34 |
private GraphViewer viewer; |
34 | 35 |
private LayoutAlgorithm layoutAlgoritm; |
... | ... | |
125 | 126 |
|
126 | 127 |
@Override |
127 | 128 |
protected String getViewName() { |
128 |
return "Concept Graph";
|
|
129 |
return Messages.ConceptGraphView_VIEWER_NAME;
|
|
129 | 130 |
} |
130 | 131 |
|
131 | 132 |
|
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/uses/UsesViewPart.java | ||
---|---|---|
1 |
/** |
|
2 |
* Copyright (C) 2011 EDIT |
|
3 |
* European Distributed Institute of Taxonomy |
|
4 |
* http://www.e-taxonomy.eu |
|
5 |
* |
|
6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
|
7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
|
8 |
*/ |
|
9 |
package eu.etaxonomy.taxeditor.editor.view.uses; |
|
10 |
|
|
11 |
import org.eclipse.jface.viewers.TreeViewer; |
|
12 |
import org.eclipse.swt.SWT; |
|
13 |
import org.eclipse.swt.dnd.Transfer; |
|
14 |
import org.eclipse.swt.widgets.Composite; |
|
15 |
import org.eclipse.swt.widgets.Tree; |
|
16 |
|
|
17 |
import eu.etaxonomy.cdm.model.common.CdmBase; |
|
18 |
import eu.etaxonomy.taxeditor.editor.view.descriptive.DescriptionElementDragListener; |
|
19 |
import eu.etaxonomy.taxeditor.editor.view.descriptive.DescriptionElementDropAdapter; |
|
20 |
import eu.etaxonomy.taxeditor.editor.view.descriptive.DescriptionElementTransfer; |
|
21 |
import eu.etaxonomy.taxeditor.editor.view.descriptive.DescriptiveViewPart; |
|
22 |
|
|
23 |
|
|
24 |
/** |
|
25 |
* The Class create a specific Use View to keep the taxonomic view clean |
|
26 |
* @author a.theys |
|
27 |
* @created mar 13, 2012 |
|
28 |
* @version 1.0 |
|
29 |
*/ |
|
30 |
public class UsesViewPart extends DescriptiveViewPart { |
|
31 |
|
|
32 |
public UsesViewPart() { |
|
33 |
super(); |
|
34 |
} |
|
35 |
|
|
36 |
/** Constant <code>ID="eu.etaxonomy.taxeditor.editor.view.uses"</code> */ |
|
37 |
public static final String ID = "eu.etaxonomy.taxeditor.editor.view.uses"; |
|
38 |
/** {@inheritDoc} */ |
|
39 |
@Override |
|
40 |
public void createViewer(Composite parent) { |
|
41 |
|
|
42 |
viewer = new TreeViewer(new Tree(parent, SWT.MULTI | SWT.H_SCROLL |
|
43 |
| SWT.V_SCROLL | SWT.FULL_SELECTION)); |
|
44 |
viewer.setContentProvider(new UsesContentProvider(featureNodeContainerCache)); |
|
45 |
viewer.setLabelProvider(new UsesLabelProvider()); |
|
46 |
viewer.setAutoExpandLevel(2); |
|
47 |
|
|
48 |
|
|
49 |
|
|
50 |
Transfer[] transfers = new Transfer[] { DescriptionElementTransfer.getInstance() }; |
|
51 |
viewer.addDragSupport(dndOperations, transfers, new DescriptionElementDragListener( |
|
52 |
this)); |
|
53 |
viewer.addDropSupport(dndOperations, transfers, |
|
54 |
new DescriptionElementDropAdapter(viewer)); |
|
55 |
|
|
56 |
// Propagate selection from viewer |
|
57 |
getSite().setSelectionProvider(viewer); |
|
58 |
|
|
59 |
showAllElementsAction = new ToggleDescriptionAction(false); |
|
60 |
hideAllElementsAction = new ToggleDescriptionAction(true); |
|
61 |
|
|
62 |
// Add context menu to tree |
|
63 |
createMenu(); |
|
64 |
|
|
65 |
createToolbar(); |
|
66 |
|
|
67 |
} |
|
68 |
|
|
69 |
@Override |
|
70 |
protected String getViewName(){ |
|
71 |
return "Uses"; |
|
72 |
} |
|
73 |
|
|
74 |
/** {@inheritDoc} */ |
|
75 |
@Override |
|
76 |
public boolean postOperation(CdmBase objectAffectedByOperation) { |
|
77 |
viewer.refresh(); |
|
78 |
return super.postOperation(objectAffectedByOperation); |
|
79 |
} |
|
80 |
|
|
81 |
|
|
82 |
|
|
83 |
} |
|
1 |
/** |
|
2 |
* Copyright (C) 2011 EDIT |
|
3 |
* European Distributed Institute of Taxonomy |
|
4 |
* http://www.e-taxonomy.eu |
|
5 |
* |
|
6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
|
7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
|
8 |
*/ |
|
9 |
package eu.etaxonomy.taxeditor.editor.view.uses; |
|
10 |
|
|
11 |
import org.eclipse.jface.viewers.TreeViewer; |
|
12 |
import org.eclipse.swt.SWT; |
|
13 |
import org.eclipse.swt.dnd.Transfer; |
|
14 |
import org.eclipse.swt.widgets.Composite; |
|
15 |
import org.eclipse.swt.widgets.Tree; |
|
16 |
|
|
17 |
import eu.etaxonomy.cdm.model.common.CdmBase; |
|
18 |
import eu.etaxonomy.taxeditor.editor.Messages; |
|
19 |
import eu.etaxonomy.taxeditor.editor.view.descriptive.DescriptionElementDragListener; |
|
20 |
import eu.etaxonomy.taxeditor.editor.view.descriptive.DescriptionElementDropAdapter; |
|
21 |
import eu.etaxonomy.taxeditor.editor.view.descriptive.DescriptionElementTransfer; |
|
22 |
import eu.etaxonomy.taxeditor.editor.view.descriptive.DescriptiveViewPart; |
|
23 |
|
|
24 |
|
|
25 |
/** |
|
26 |
* The Class create a specific Use View to keep the taxonomic view clean |
|
27 |
* @author a.theys |
|
28 |
* @created mar 13, 2012 |
|
29 |
* @version 1.0 |
|
30 |
*/ |
|
31 |
public class UsesViewPart extends DescriptiveViewPart { |
|
32 |
|
|
33 |
public UsesViewPart() { |
|
34 |
super(); |
|
35 |
} |
|
36 |
|
|
37 |
/** Constant <code>ID="eu.etaxonomy.taxeditor.editor.view.uses"</code> */ |
|
38 |
public static final String ID = "eu.etaxonomy.taxeditor.editor.view.uses"; //$NON-NLS-1$ |
|
39 |
/** {@inheritDoc} */ |
|
40 |
@Override |
|
41 |
public void createViewer(Composite parent) { |
|
42 |
|
|
43 |
viewer = new TreeViewer(new Tree(parent, SWT.MULTI | SWT.H_SCROLL |
|
44 |
| SWT.V_SCROLL | SWT.FULL_SELECTION)); |
|
45 |
viewer.setContentProvider(new UsesContentProvider(featureNodeContainerCache)); |
|
46 |
viewer.setLabelProvider(new UsesLabelProvider()); |
|
47 |
viewer.setAutoExpandLevel(2); |
|
48 |
|
|
49 |
|
|
50 |
|
|
51 |
Transfer[] transfers = new Transfer[] { DescriptionElementTransfer.getInstance() }; |
|
52 |
viewer.addDragSupport(dndOperations, transfers, new DescriptionElementDragListener( |
|
53 |
this)); |
|
54 |
viewer.addDropSupport(dndOperations, transfers, |
|
55 |
new DescriptionElementDropAdapter(viewer)); |
|
56 |
|
|
57 |
// Propagate selection from viewer |
|
58 |
getSite().setSelectionProvider(viewer); |
|
59 |
|
|
60 |
showAllElementsAction = new ToggleDescriptionAction(false); |
|
61 |
hideAllElementsAction = new ToggleDescriptionAction(true); |
|
62 |
|
|
63 |
// Add context menu to tree |
|
64 |
createMenu(); |
|
65 |
|
|
66 |
createToolbar(); |
|
67 |
|
|
68 |
} |
|
69 |
|
|
70 |
@Override |
|
71 |
protected String getViewName(){ |
|
72 |
return Messages.UsesViewPart_VIEWER_NAME; |
|
73 |
} |
|
74 |
|
|
75 |
/** {@inheritDoc} */ |
|
76 |
@Override |
|
77 |
public boolean postOperation(CdmBase objectAffectedByOperation) { |
|
78 |
viewer.refresh(); |
|
79 |
return super.postOperation(objectAffectedByOperation); |
|
80 |
} |
|
81 |
|
|
82 |
|
|
83 |
|
|
84 |
} |
eu.etaxonomy.taxeditor.store/OSGI-INF/l10n/messages.properties | ||
---|---|---|
111 | 111 |
|
112 | 112 |
SearchManager_LARGE_RESULT_EXPECTED=Large result expected |
113 | 113 |
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? |
114 |
|
|
115 |
SupplementalDataViewPart_VIEWER_NAME=Supplemental Data |
|
116 |
DetailsViewPart_VIEWER_NAME=Details |
eu.etaxonomy.taxeditor.store/OSGI-INF/l10n/messages_de.properties | ||
---|---|---|
111 | 111 |
|
112 | 112 |
SearchManager_LARGE_RESULT_EXPECTED=Gro?e Anzahl an Suchergebnissen |
113 | 113 |
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? |
114 |
|
|
115 |
SupplementalDataViewPart_VIEWER_NAME=Zusatzdaten |
|
116 |
DetailsViewPart_VIEWER_NAME=Details |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/Messages.java | ||
---|---|---|
69 | 69 |
public static String CdmStoreConnector_SCHEME_NOT_COMPATIBLE; |
70 | 70 |
public static String CdmStoreConnector_UPDATE_DATASOUREC_OR_CHOOSE_NEW_DATASOURCE; |
71 | 71 |
public static String CdmStoreConnector_UPDATE_EDITOR_OR_CHOOSE_COMPATIBLE_DATASOURCE; |
72 |
public static String DetailsViewPart_VIEWER_NAME; |
|
72 | 73 |
public static String EditPasswordElement_PLEASE_CREATE_OR_SAVE_USER; |
73 | 74 |
public static String EditPasswordElement_USERNAME_DOES_NOT_EXIST; |
74 | 75 |
public static String PasswordWizard_COULD_NOT_CHANGE_PWD; |
... | ... | |
124 | 125 |
public static String RemotingLoginDialog_TASK_LAUNCHING_SERVER; |
125 | 126 |
public static String SearchManager_LARGE_RESULT_EXPECTED; |
126 | 127 |
public static String SearchManager_LONG_SEARCH_WARNING; |
128 |
public static String SupplementalDataViewPart_VIEWER_NAME; |
|
127 | 129 |
static { |
128 | 130 |
// initialize resource bundle |
129 | 131 |
NLS.initializeMessages(BUNDLE_NAME, Messages.class); |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/detail/DetailsViewPart.java | ||
---|---|---|
23 | 23 |
import eu.etaxonomy.cdm.model.common.CdmBase; |
24 | 24 |
import eu.etaxonomy.cdm.model.description.Feature; |
25 | 25 |
import eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase; |
26 |
import eu.etaxonomy.taxeditor.Messages; |
|
26 | 27 |
import eu.etaxonomy.taxeditor.model.AbstractUtility; |
27 | 28 |
import eu.etaxonomy.taxeditor.model.FeatureNodeContainer; |
28 | 29 |
import eu.etaxonomy.taxeditor.model.IPartContentHasDetails; |
... | ... | |
39 | 40 |
public class DetailsViewPart extends AbstractCdmEditorViewPart implements IPartContentHasSupplementalData{ |
40 | 41 |
|
41 | 42 |
/** Constant <code>ID="eu.etaxonomy.taxeditor.editor.forms.det"{trunked}</code> */ |
42 |
public static String ID = "eu.etaxonomy.taxeditor.view.detail"; |
|
43 |
public static String ID = "eu.etaxonomy.taxeditor.view.detail"; //$NON-NLS-1$
|
|
43 | 44 |
|
44 | 45 |
private DetailsViewer viewer; |
45 | 46 |
|
... | ... | |
91 | 92 |
|
92 | 93 |
@Override |
93 | 94 |
protected String getViewName(){ |
94 |
return "Details";
|
|
95 |
return Messages.DetailsViewPart_VIEWER_NAME;
|
|
95 | 96 |
} |
96 | 97 |
|
97 | 98 |
@Override |
... | ... | |
101 | 102 |
selectedObject = ((TreeNode) selectedObject).getValue(); |
102 | 103 |
} |
103 | 104 |
if(selectedObject instanceof SpecimenOrObservationBase){ |
104 |
return getViewName()+": "+HibernateProxyHelper.deproxy(selectedObject, SpecimenOrObservationBase.class).getRecordBasis(); |
|
105 |
return getViewName()+": "+HibernateProxyHelper.deproxy(selectedObject, SpecimenOrObservationBase.class).getRecordBasis(); //$NON-NLS-1$
|
|
105 | 106 |
} |
106 | 107 |
if(selectedObject instanceof CdmBase){ |
107 |
return getViewName()+": "+HibernateProxyHelper.deproxy(selectedObject, CdmBase.class).getClass().getSimpleName(); |
|
108 |
return getViewName()+": "+HibernateProxyHelper.deproxy(selectedObject, CdmBase.class).getClass().getSimpleName(); //$NON-NLS-1$
|
|
108 | 109 |
} |
109 |
return getViewName()+": "+selectedObject.getClass().getSimpleName(); |
|
110 |
return getViewName()+": "+selectedObject.getClass().getSimpleName(); //$NON-NLS-1$
|
|
110 | 111 |
} |
111 | 112 |
return getViewName(); |
112 | 113 |
} |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/supplementaldata/SupplementalDataViewPart.java | ||
---|---|---|
22 | 22 |
import eu.etaxonomy.cdm.api.facade.DerivedUnitFacade; |
23 | 23 |
import eu.etaxonomy.cdm.ext.occurrence.gbif.GbifResponse; |
24 | 24 |
import eu.etaxonomy.cdm.model.description.PolytomousKeyNode; |
25 |
import eu.etaxonomy.taxeditor.Messages; |
|
25 | 26 |
import eu.etaxonomy.taxeditor.model.AbstractUtility; |
26 | 27 |
import eu.etaxonomy.taxeditor.model.FeatureNodeContainer; |
27 | 28 |
import eu.etaxonomy.taxeditor.model.IPartContentHasSupplementalData; |
... | ... | |
38 | 39 |
public class SupplementalDataViewPart extends AbstractCdmEditorViewPart { |
39 | 40 |
|
40 | 41 |
/** Constant <code>ID="eu.etaxonomy.taxeditor.editor.view.supp"{trunked}</code> */ |
41 |
public static final String ID = "eu.etaxonomy.taxeditor.view.supplementalData"; |
|
42 |
public static final String ID = "eu.etaxonomy.taxeditor.view.supplementalData"; //$NON-NLS-1$
|
|
42 | 43 |
|
43 | 44 |
private SupplementalDataViewer viewer; |
44 | 45 |
|
... | ... | |
127 | 128 |
|
128 | 129 |
@Override |
129 | 130 |
protected String getViewName() { |
130 |
return "Supplemental Data";
|
|
131 |
return Messages.SupplementalDataViewPart_VIEWER_NAME;
|
|
131 | 132 |
} |
132 | 133 |
} |
Also available in: Unified diff