Project

General

Profile

« Previous | Next » 

Revision ae137b34

Added by Patrick Plitzner about 7 years ago

ref #4611 some l10n for taxeditor and taxeditor.editor plugin

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/TaxonNameEditor.java
55 55
import eu.etaxonomy.taxeditor.editor.IDropTargetable;
56 56
import eu.etaxonomy.taxeditor.editor.IMultiPageTaxonEditorPage;
57 57
import eu.etaxonomy.taxeditor.editor.ISecuredEditor;
58
import eu.etaxonomy.taxeditor.editor.Messages;
58 59
import eu.etaxonomy.taxeditor.editor.MultiPageTaxonEditor;
59 60
import eu.etaxonomy.taxeditor.editor.SimpleSelectionProvider;
60 61
import eu.etaxonomy.taxeditor.editor.TaxonEditorInput;
......
91 92
		ISelectionListener, IDropTargetable, ISecuredEditor {
92 93

  
93 94
	/** Constant <code>ID="eu.etaxonomy.taxeditor.editor.taxon.name"</code> */
94
	public static final String ID = "eu.etaxonomy.taxeditor.editor.taxon.name";
95
	public static final String ID = "eu.etaxonomy.taxeditor.editor.taxon.name"; //$NON-NLS-1$
95 96

  
96 97
	private Taxon taxon;
97 98

  
......
276 277
	    PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell().setFocus();
277 278
		if (getSelectedContainer() == null) {
278 279
			throw new IllegalStateException(
279
					"There should always be a selected object.");
280
					Messages.TaxonNameEditor_THERE_SHOULD_ALWAYS_BE);
280 281
		}
281 282
		getSelectedContainer().setSelected();
282 283

  
......
468 469
	@Override
469 470
	public void doSave(IProgressMonitor monitor) {
470 471

  
471
		monitor.beginTask("Saving names", getGroupedContainers().size());
472
		monitor.beginTask(Messages.TaxonNameEditor_SAVING_NAMES, getGroupedContainers().size());
472 473

  
473 474
		try {
474 475
			// check for empty names
475 476
			for (AbstractGroupedContainer container : getGroupedContainers()) {
476 477

  
477
				monitor.subTask("Saving composite: "
478
				monitor.subTask(Messages.TaxonNameEditor_SAVING_COMPOSITES
478 479
						+ container.getTaxonBase().getTitleCache());
479 480
				container.persistName();
480 481

  
......
505 506
			throws PartInitException {
506 507

  
507 508
		if (!(input != null)) {
508
            throw new PartInitException("Invalid Input: Must be IEditorInput");
509
            throw new PartInitException(Messages.TaxonNameEditor_INVALID_INPUT);
509 510
        }
510 511

  
511 512
		if (input.getAdapter(Taxon.class) != null) {
512 513
			taxon = CdmBase.deproxy(input.getAdapter(Taxon.class), Taxon.class);
513 514
		} else {
514
			throw new PartInitException("Invalid Input: Taxon cannot be null");
515
			throw new PartInitException(Messages.TaxonNameEditor_INVALID_INPUT_TAXON_NULL);
515 516
		}
516 517

  
517 518
		setSite(site);

Also available in: Unified diff