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;
@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();
}