Project

General

Profile

Revision 2f17d56c

ID2f17d56cca01af53071b42dd9e9a7ecd1b47c85b
Parent 6c235432
Child 12cf452e

Added by Patrick Plitzner over 2 years ago

ref #6902 Fix toolbar elements for AlignmentEditor

View differences:

eu.etaxonomy.taxeditor.molecular/META-INF/MANIFEST.MF
13 13
 eu.etaxonomy.taxeditor.editor,
14 14
 eu.etaxonomy.taxeditor.store,
15 15
 eu.etaxonomy.taxeditor.molecular.lib,
16
 eu.etaxonomy.taxeditor.workbench,
16 17
 org.eclipse.core.databinding.observable;bundle-version="1.4.0",
17 18
 org.eclipse.core.databinding;bundle-version="1.4.0",
18 19
 org.eclipse.jface.databinding;bundle-version="1.5.0",
eu.etaxonomy.taxeditor.molecular/src/main/java/eu/etaxonomy/taxeditor/molecular/editor/e4/AlignmentEditorE4.java
15 15
import java.net.URI;
16 16
import java.util.ArrayList;
17 17
import java.util.Collection;
18
import java.util.Collections;
19 18
import java.util.Iterator;
20 19
import java.util.List;
21 20
import java.util.Map;
......
36 35
import org.eclipse.swt.widgets.Composite;
37 36
import org.eclipse.swt.widgets.Display;
38 37
import org.eclipse.ui.PartInitException;
39
import org.eclipse.ui.PlatformUI;
40
import org.eclipse.ui.commands.ICommandService;
41 38

  
42 39
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
43 40
import eu.etaxonomy.cdm.api.service.molecular.ISequenceService;
......
56 53
import eu.etaxonomy.taxeditor.molecular.l10n.Messages;
57 54
import eu.etaxonomy.taxeditor.store.CdmStore;
58 55
import eu.etaxonomy.taxeditor.view.derivateSearch.DerivateLabelProvider;
56
import eu.etaxonomy.taxeditor.workbench.StatusBar;
59 57
import info.bioinfweb.commons.swt.SWTUtils;
60 58
import info.bioinfweb.libralign.alignmentarea.AlignmentArea;
61 59
import info.bioinfweb.libralign.alignmentarea.selection.SelectionModel;
......
152 150

  
153 151

  
154 152
    private void refreshToolbarElement(String id) {
155
		ICommandService commandService =
156
				PlatformUI.getWorkbench().getActiveWorkbenchWindow().getService(ICommandService.class);
157
		if (commandService != null) {
158
			commandService.refreshElements(id, Collections.EMPTY_MAP);
159
		}
153
        //TODO E4 migrate/remove
154
//		ICommandService commandService =
155
//				PlatformUI.getWorkbench().getActiveWorkbenchWindow().getService(ICommandService.class);
156
//		if (commandService != null) {
157
//			commandService.refreshElements(id, Collections.EMPTY_MAP);
158
//		}
160 159
    }
161 160

  
162 161

  
......
393 392

  
394 393

  
395 394
	private void updateStatusBar() {
396
	    //FIXME E4 migrate
397
//        IActionBars bars = getEditorSite().getActionBars();
398
//        bars.getStatusLineManager().setMessage(
399
//                Messages.AlignmentEditor_EDIT_MODE + (getReadsArea().getEditSettings().isInsert() ? Messages.AlignmentEditor_INSERT : Messages.AlignmentEditor_OVERWRITE) + "  " + //$NON-NLS-1$
400
//        		Messages.AlignmentEditor_INSERTION_PHEROGRAM +
401
//	       		(getReadsArea().getEditSettings().isInsertLeftInDataArea() ? Messages.AlignmentEditor_LEFT : Messages.AlignmentEditor_RIGHT));  //TODO multi language
395
        String message = Messages.AlignmentEditor_EDIT_MODE + (getReadsArea().getEditSettings().isInsert() ? Messages.AlignmentEditor_INSERT : Messages.AlignmentEditor_OVERWRITE) + "  " + //$NON-NLS-1$
396
        Messages.AlignmentEditor_INSERTION_PHEROGRAM +
397
        (getReadsArea().getEditSettings().isInsertLeftInDataArea() ? Messages.AlignmentEditor_LEFT : Messages.AlignmentEditor_RIGHT);
398
        StatusBar.setStatus(message);
402 399
    }
403 400

  
404 401

  
eu.etaxonomy.taxeditor.molecular/src/main/java/eu/etaxonomy/taxeditor/molecular/l10n/messages_de.properties
39 39
AlignmentEditor_NEW_READ_FAILURE=Das Erzeugen neuer Reads im Alignment-Editor ist nicht implementiert.
40 40
AlignmentEditor_NO_ATTACHED_PHEROGRAM=Die ausgew?hlte Sequenz hat kein angehangenes Pherogramm.
41 41
AlignmentEditor_OVERWRITE=?berschreiben
42
AlignmentEditor_RIGHT=REchts
42
AlignmentEditor_RIGHT=Rechts
43 43
AlignmentEditor_RIGHT_END_OUTSIDE=Das rechte Ende der Auswahl liegt au?erhalb des Pherogramms dieser Sequenz.
44 44
AlignmentEditor_SAVING_ALIGNMENT=Alignment speichern
45 45
AlignmentEditorInput_EDITOR_NAME=Alignment-Editor

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)