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 |
|
ref #6902 Fix toolbar elements for AlignmentEditor