Source:
public void createPartControl(final Composite parent) { if (session == null && getEditorInput() instanceof SessionEditorInput) { SessionEditorInput sessionEditorInput = (SessionEditorInput) getEditorInput(); IStatus status = sessionEditorInput.getStatus(); if (status != null && status.getSeverity() >= IStatus.ERROR) { Composite composite = new Composite(parent, SWT.NO_BACKGROUND); GridLayout gridLayout = new GridLayout(); composite.setLayout(gridLayout); StyledText widget = new StyledText(composite, SWT.READ_ONLY | SWT.MULTI); widget.setBackground(parent.getBackground()); widget.setText(status.getMessage()); GridData layoutData = new GridData(); layoutData.grabExcessHorizontalSpace = true; layoutData.grabExcessVerticalSpace = true; layoutData.horizontalAlignment = SWT.CENTER; layoutData.verticalAlignment = SWT.CENTER; widget.setLayoutData(layoutData); return; } } super.createPartControl(parent); DslCommonPlugin.PROFILER.startWork(SiriusTasksKey.CREATE_TABLE_KEY); if (getTableModel() == null) { final Label errorLabel = new Label(parent, SWT.CENTER); errorLabel.setText(org.eclipse.sirius.table.metamodel.table.provider.Messages.AbstractDTableEditor_tableNotSaved); return; } treeViewerManager = new DTableViewerManager(parent, getTableModel(), getEditingDomain(), accessor, (ITableCommandFactory) emfCommandFactory, this); DslCommonPlugin.PROFILER.stopWork(SiriusTasksKey.CREATE_TABLE_KEY); getSite().setSelectionProvider(treeViewerManager.getTreeViewer()); if (session != null) { InterpreterRegistry.prepareImportsFromSession(session.getInterpreter(), session); } refreshAtOpeningActivator = new RefreshAtOpeningActivator(session, this); getSite().getPage().addPartListener(refreshAtOpeningActivator); IContextService contextService = (IContextService) getSite().getService(IContextService.class); contextService.activateContext(CONTEXT_ID); }

Target:
public void createPartControl(final Composite parent) { if (session == null && getEditorInput() instanceof SessionEditorInput) { SessionEditorInput sessionEditorInput = (SessionEditorInput) getEditorInput(); IStatus status = sessionEditorInput.getStatus(); if (status != null && status.getSeverity() >= IStatus.ERROR) { Composite composite = new Composite(parent, SWT.NO_BACKGROUND); GridLayout gridLayout = new GridLayout(); composite.setLayout(gridLayout); Text widget = new Text(composite, SWT.READ_ONLY); widget.setBackground(parent.getBackground()); widget.setText(status.getMessage()); GridData layoutData = new GridData(); layoutData.grabExcessHorizontalSpace = true; layoutData.grabExcessVerticalSpace = true; layoutData.horizontalAlignment = SWT.CENTER; layoutData.verticalAlignment = SWT.CENTER; widget.setLayoutData(layoutData); return; } } super.createPartControl(parent); DslCommonPlugin.PROFILER.startWork(SiriusTasksKey.CREATE_TABLE_KEY); if (getTableModel() == null) { final Label errorLabel = new Label(parent, SWT.CENTER); errorLabel.setText(org.eclipse.sirius.table.metamodel.table.provider.Messages.AbstractDTableEditor_tableNotSaved); return; } treeViewerManager = new DTableViewerManager(parent, getTableModel(), getEditingDomain(), accessor, (ITableCommandFactory) emfCommandFactory, this); DslCommonPlugin.PROFILER.stopWork(SiriusTasksKey.CREATE_TABLE_KEY); getSite().setSelectionProvider(treeViewerManager.getTreeViewer()); if (session != null) { InterpreterRegistry.prepareImportsFromSession(session.getInterpreter(), session); } refreshAtOpeningActivator = new RefreshAtOpeningActivator(session, this); getSite().getPage().addPartListener(refreshAtOpeningActivator); IContextService contextService = (IContextService) getSite().getService(IContextService.class); contextService.activateContext(CONTEXT_ID); }