]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
(refs #7152) Remove extra line number indicators in status bar 28/428/1
authorHannu Niemistö <hannu.niemisto@semantum.fi>
Wed, 19 Apr 2017 13:08:54 +0000 (16:08 +0300)
committerHannu Niemistö <hannu.niemisto@semantum.fi>
Wed, 19 Apr 2017 13:08:54 +0000 (16:08 +0300)
Change-Id: Ib8f7b09260f3e64bb123fcbe26ade29937e1b429

bundles/org.simantics.scl.ui/src/org/simantics/scl/ui/editor2/SCLModuleEditor2.java

index 6fa46b2b200006edf54001fe58e67ef0458df7f0..1398f2c07a5423510f058aab0b122d8469e4a141 100644 (file)
@@ -10,8 +10,6 @@ import org.eclipse.ui.IEditorSite;
 import org.eclipse.ui.PartInitException;
 import org.eclipse.ui.contexts.IContextService;
 import org.eclipse.ui.editors.text.TextEditor;
-import org.eclipse.ui.texteditor.ITextEditorActionConstants;
-import org.eclipse.ui.texteditor.StatusLineContributionItem;
 import org.simantics.scl.ui.editor.SCLSourceViewerConfigurationNew;
 import org.simantics.scl.ui.editor.completion.SCLTextEditorEnvironment;
 
@@ -41,13 +39,6 @@ public class SCLModuleEditor2 extends TextEditor {
     @Override
     public void createPartControl(Composite parent) {
         super.createPartControl(parent);
-        StatusLineContributionItem statusLineContribution = new StatusLineContributionItem(
-                ITextEditorActionConstants.STATUS_CATEGORY_INPUT_POSITION,
-                true, 14);
-        setStatusField(statusLineContribution,
-                ITextEditorActionConstants.STATUS_CATEGORY_INPUT_POSITION);
-        getEditorSite().getActionBars().getStatusLineManager().add(statusLineContribution);
-        getEditorSite().getActionBars().updateActionBars();
         getEditorSite().getService(IContextService.class).activateContext("org.simantics.scl.ui.editor");
         updatePartName();
     }