import eu.etaxonomy.taxeditor.editor.IDropTargetable;
import eu.etaxonomy.taxeditor.editor.IMultiPageTaxonEditorPage;
import eu.etaxonomy.taxeditor.editor.ISecuredEditor;
+import eu.etaxonomy.taxeditor.editor.Messages;
import eu.etaxonomy.taxeditor.editor.MultiPageTaxonEditor;
import eu.etaxonomy.taxeditor.editor.SimpleSelectionProvider;
import eu.etaxonomy.taxeditor.editor.TaxonEditorInput;
ISelectionListener, IDropTargetable, ISecuredEditor {
/** Constant <code>ID="eu.etaxonomy.taxeditor.editor.taxon.name"</code> */
- public static final String ID = "eu.etaxonomy.taxeditor.editor.taxon.name";
+ public static final String ID = "eu.etaxonomy.taxeditor.editor.taxon.name"; //$NON-NLS-1$
private Taxon taxon;
ContainerFactory.createOrUpdateHeterotypicSynonymyGroups(this);
ContainerFactory.createOrUpdateMisapplicationsGroup(this);
+
// Redraw composite
managedForm.reflow(true);
}
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell().setFocus();
if (getSelectedContainer() == null) {
throw new IllegalStateException(
- "There should always be a selected object.");
+ Messages.TaxonNameEditor_THERE_SHOULD_ALWAYS_BE);
}
getSelectedContainer().setSelected();
@Override
public void doSave(IProgressMonitor monitor) {
- monitor.beginTask("Saving names", getGroupedContainers().size());
+ monitor.beginTask(Messages.TaxonNameEditor_SAVING_NAMES, getGroupedContainers().size());
try {
// check for empty names
for (AbstractGroupedContainer container : getGroupedContainers()) {
- monitor.subTask("Saving composite: "
+ monitor.subTask(Messages.TaxonNameEditor_SAVING_COMPOSITES
+ container.getTaxonBase().getTitleCache());
container.persistName();
throws PartInitException {
if (!(input != null)) {
- throw new PartInitException("Invalid Input: Must be IEditorInput");
+ throw new PartInitException(Messages.TaxonNameEditor_INVALID_INPUT);
}
if (input.getAdapter(Taxon.class) != null) {
taxon = CdmBase.deproxy(input.getAdapter(Taxon.class), Taxon.class);
} else {
- throw new PartInitException("Invalid Input: Taxon cannot be null");
+ throw new PartInitException(Messages.TaxonNameEditor_INVALID_INPUT_TAXON_NULL);
}
setSite(site);