Search in sources :

Example 1 with INestable

use of org.eclipse.ui.internal.services.INestable in project tdi-studio-se by Talend.

the class MultiPageSqlBuilderEditor method createPartControl2.

public final void createPartControl2(Composite parent) {
    //super.createPartControl(parent);
    Composite pageContainer = createPageContainer(parent);
    this.container = createContainer(pageContainer);
    createPages();
    // done
    if (getActivePage() == -1) {
        setActivePage(0);
        IEditorPart part = getEditor(0);
        if (part != null) {
            final IServiceLocator serviceLocator = part.getEditorSite();
            if (serviceLocator instanceof INestable) {
                activeServiceLocator = (INestable) serviceLocator;
                activeServiceLocator.activate();
            }
        }
    }
}
Also used : SQLBuilderDesignerComposite(org.talend.sqlbuilder.ui.SQLBuilderDesignerComposite) ErDiagramComposite(org.talend.sqlbuilder.erdiagram.ui.ErDiagramComposite) Composite(org.eclipse.swt.widgets.Composite) AbstractSQLEditorComposite(org.talend.sqlbuilder.ui.AbstractSQLEditorComposite) SQLBuilderEditorComposite(org.talend.sqlbuilder.ui.SQLBuilderEditorComposite) IServiceLocator(org.eclipse.ui.services.IServiceLocator) INestable(org.eclipse.ui.internal.services.INestable) IEditorPart(org.eclipse.ui.IEditorPart)

Aggregations

Composite (org.eclipse.swt.widgets.Composite)1 IEditorPart (org.eclipse.ui.IEditorPart)1 INestable (org.eclipse.ui.internal.services.INestable)1 IServiceLocator (org.eclipse.ui.services.IServiceLocator)1 ErDiagramComposite (org.talend.sqlbuilder.erdiagram.ui.ErDiagramComposite)1 AbstractSQLEditorComposite (org.talend.sqlbuilder.ui.AbstractSQLEditorComposite)1 SQLBuilderDesignerComposite (org.talend.sqlbuilder.ui.SQLBuilderDesignerComposite)1 SQLBuilderEditorComposite (org.talend.sqlbuilder.ui.SQLBuilderEditorComposite)1