类org.eclipse.ui.views.properties.IPropertySheetPage源码实例Demo

下面列出了怎么用org.eclipse.ui.views.properties.IPropertySheetPage的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: neoscada   文件: ProtocolEditor.java
/**
 * This is how the framework determines which interfaces we implement.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings ( "rawtypes" )
@Override
public Object getAdapter ( Class key )
{
    if ( key.equals ( IContentOutlinePage.class ) )
    {
        return showOutlineView () ? getContentOutlinePage () : null;
    }
    else if ( key.equals ( IPropertySheetPage.class ) )
    {
        return getPropertySheetPage ();
    }
    else if ( key.equals ( IGotoMarker.class ) )
    {
        return this;
    }
    else
    {
        return super.getAdapter ( key );
    }
}
 
源代码2 项目: neoscada   文件: ProtocolEditor.java
/**
 * This accesses a cached version of the property sheet.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public IPropertySheetPage getPropertySheetPage ()
{
    PropertySheetPage propertySheetPage =
            new ExtendedPropertySheetPage ( editingDomain )
            {
                @Override
                public void setSelectionToViewer ( List<?> selection )
                {
                    ProtocolEditor.this.setSelectionToViewer ( selection );
                    ProtocolEditor.this.setFocus ();
                }

                @Override
                public void setActionBars ( IActionBars actionBars )
                {
                    super.setActionBars ( actionBars );
                    getActionBarContributor ().shareGlobalActions ( this, actionBars );
                }
            };
    propertySheetPage.setPropertySourceProvider ( new AdapterFactoryContentProvider ( adapterFactory ) );
    propertySheetPages.add ( propertySheetPage );

    return propertySheetPage;
}
 
源代码3 项目: neoscada   文件: ChartEditor.java
/**
 * This is how the framework determines which interfaces we implement.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * 
 * @generated
 */
@SuppressWarnings ( "rawtypes" )
@Override
public Object getAdapter ( final Class key )
{
    if ( key.equals ( IContentOutlinePage.class ) )
    {
        return showOutlineView () ? getContentOutlinePage () : null;
    }
    else if ( key.equals ( IPropertySheetPage.class ) )
    {
        return getPropertySheetPage ();
    }
    else if ( key.equals ( IGotoMarker.class ) )
    {
        return this;
    }
    else
    {
        return super.getAdapter ( key );
    }
}
 
源代码4 项目: neoscada   文件: ChartEditor.java
/**
 * This accesses a cached version of the property sheet.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * 
 * @generated
 */
public IPropertySheetPage getPropertySheetPage ()
{
    final PropertySheetPage propertySheetPage = new ExtendedPropertySheetPage (
            this.editingDomain ) {
        @Override
        public void setSelectionToViewer ( final List<?> selection )
        {
            ChartEditor.this.setSelectionToViewer ( selection );
            ChartEditor.this.setFocus ();
        }

        @Override
        public void setActionBars ( final IActionBars actionBars )
        {
            super.setActionBars ( actionBars );
            getActionBarContributor ().shareGlobalActions ( this, actionBars );
        }
    };
    propertySheetPage
            .setPropertySourceProvider ( new AdapterFactoryContentProvider (
                    this.adapterFactory ) );
    this.propertySheetPages.add ( propertySheetPage );

    return propertySheetPage;
}
 
源代码5 项目: neoscada   文件: ChartConfiguratorView.java
/**
 * This accesses a cached version of the property sheet. <!-- begin-user-doc
 * --> <!-- end-user-doc -->
 *
 * @generated
 */
public IPropertySheetPage getPropertySheetPage ()
{
    if ( this.propertySheetPage == null )
    {
        this.propertySheetPage = new ExtendedPropertySheetPage ( this.editingDomain ) {
            @Override
            public void setSelectionToViewer ( final List<?> selection )
            {
                ChartConfiguratorView.this.setSelectionToViewer ( selection );
                ChartConfiguratorView.this.setFocus ();
            }

            @Override
            public void setActionBars ( final IActionBars actionBars )
            {
                super.setActionBars ( actionBars );
                // getActionBarContributor ().shareGlobalActions ( this, actionBars );
            }
        };
        this.propertySheetPage.setPropertySourceProvider ( new AdapterFactoryContentProvider ( this.factory ) );
    }

    return this.propertySheetPage;
}
 
源代码6 项目: neoscada   文件: DetailViewEditor.java
/**
 * This is how the framework determines which interfaces we implement.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings ( "rawtypes" )
@Override
public Object getAdapter ( Class key )
{
    if ( key.equals ( IContentOutlinePage.class ) )
    {
        return showOutlineView () ? getContentOutlinePage () : null;
    }
    else if ( key.equals ( IPropertySheetPage.class ) )
    {
        return getPropertySheetPage ();
    }
    else if ( key.equals ( IGotoMarker.class ) )
    {
        return this;
    }
    else
    {
        return super.getAdapter ( key );
    }
}
 
源代码7 项目: neoscada   文件: DetailViewEditor.java
/**
 * This accesses a cached version of the property sheet.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public IPropertySheetPage getPropertySheetPage ()
{
    PropertySheetPage propertySheetPage =
            new ExtendedPropertySheetPage ( editingDomain )
            {
                @Override
                public void setSelectionToViewer ( List<?> selection )
                {
                    DetailViewEditor.this.setSelectionToViewer ( selection );
                    DetailViewEditor.this.setFocus ();
                }

                @Override
                public void setActionBars ( IActionBars actionBars )
                {
                    super.setActionBars ( actionBars );
                    getActionBarContributor ().shareGlobalActions ( this, actionBars );
                }
            };
    propertySheetPage.setPropertySourceProvider ( new AdapterFactoryContentProvider ( adapterFactory ) );
    propertySheetPages.add ( propertySheetPage );

    return propertySheetPage;
}
 
源代码8 项目: neoscada   文件: VisualInterfaceEditor.java
/**
 * This is how the framework determines which interfaces we implement.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings ( "rawtypes" )
@Override
public Object getAdapter ( Class key )
{
    if ( key.equals ( IContentOutlinePage.class ) )
    {
        return showOutlineView () ? getContentOutlinePage () : null;
    }
    else if ( key.equals ( IPropertySheetPage.class ) )
    {
        return getPropertySheetPage ();
    }
    else if ( key.equals ( IGotoMarker.class ) )
    {
        return this;
    }
    else
    {
        return super.getAdapter ( key );
    }
}
 
源代码9 项目: neoscada   文件: VisualInterfaceEditor.java
/**
 * This accesses a cached version of the property sheet.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public IPropertySheetPage getPropertySheetPage ()
{
    PropertySheetPage propertySheetPage = new ExtendedPropertySheetPage ( editingDomain ) {
        @Override
        public void setSelectionToViewer ( List<?> selection )
        {
            VisualInterfaceEditor.this.setSelectionToViewer ( selection );
            VisualInterfaceEditor.this.setFocus ();
        }

        @Override
        public void setActionBars ( IActionBars actionBars )
        {
            super.setActionBars ( actionBars );
            getActionBarContributor ().shareGlobalActions ( this, actionBars );
        }
    };
    propertySheetPage.setPropertySourceProvider ( new AdapterFactoryContentProvider ( adapterFactory ) );
    propertySheetPages.add ( propertySheetPage );

    return propertySheetPage;
}
 
源代码10 项目: neoscada   文件: DeploymentEditor.java
/**
 * This accesses a cached version of the property sheet.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public IPropertySheetPage getPropertySheetPage ()
{
    PropertySheetPage propertySheetPage = new ExtendedPropertySheetPage ( editingDomain, ExtendedPropertySheetPage.Decoration.MANUAL) {
        @Override
        public void setSelectionToViewer ( List<?> selection )
        {
            DeploymentEditor.this.setSelectionToViewer ( selection );
            DeploymentEditor.this.setFocus ();
        }

        @Override
        public void setActionBars ( IActionBars actionBars )
        {
            super.setActionBars ( actionBars );
            getActionBarContributor ().shareGlobalActions ( this, actionBars );
        }
    };
    propertySheetPage.setPropertySourceProvider ( new AdapterFactoryContentProvider ( adapterFactory ) );
    propertySheetPages.add ( propertySheetPage );

    return propertySheetPage;
}
 
源代码11 项目: neoscada   文件: SetupEditor.java
/**
 * This is how the framework determines which interfaces we implement.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings ( "rawtypes" )
@Override
public Object getAdapter ( Class key )
{
    if ( key.equals ( IContentOutlinePage.class ) )
    {
        return showOutlineView () ? getContentOutlinePage () : null;
    }
    else if ( key.equals ( IPropertySheetPage.class ) )
    {
        return getPropertySheetPage ();
    }
    else if ( key.equals ( IGotoMarker.class ) )
    {
        return this;
    }
    else
    {
        return super.getAdapter ( key );
    }
}
 
源代码12 项目: neoscada   文件: SetupEditor.java
/**
 * This accesses a cached version of the property sheet.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public IPropertySheetPage getPropertySheetPage ()
{
    PropertySheetPage propertySheetPage = new ExtendedPropertySheetPage ( editingDomain, ExtendedPropertySheetPage.Decoration.MANUAL) {
        @Override
        public void setSelectionToViewer ( List<?> selection )
        {
            SetupEditor.this.setSelectionToViewer ( selection );
            SetupEditor.this.setFocus ();
        }

        @Override
        public void setActionBars ( IActionBars actionBars )
        {
            super.setActionBars ( actionBars );
            getActionBarContributor ().shareGlobalActions ( this, actionBars );
        }
    };
    propertySheetPage.setPropertySourceProvider ( new AdapterFactoryContentProvider ( adapterFactory ) );
    propertySheetPages.add ( propertySheetPage );

    return propertySheetPage;
}
 
源代码13 项目: neoscada   文件: ProfileEditor.java
/**
 * This is how the framework determines which interfaces we implement.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings ( "rawtypes" )
@Override
public Object getAdapter ( Class key )
{
    if ( key.equals ( IContentOutlinePage.class ) )
    {
        return showOutlineView () ? getContentOutlinePage () : null;
    }
    else if ( key.equals ( IPropertySheetPage.class ) )
    {
        return getPropertySheetPage ();
    }
    else if ( key.equals ( IGotoMarker.class ) )
    {
        return this;
    }
    else
    {
        return super.getAdapter ( key );
    }
}
 
源代码14 项目: neoscada   文件: ProfileEditor.java
/**
 * This accesses a cached version of the property sheet.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public IPropertySheetPage getPropertySheetPage ()
{
    PropertySheetPage propertySheetPage = new ExtendedPropertySheetPage ( editingDomain, ExtendedPropertySheetPage.Decoration.MANUAL) {
        @Override
        public void setSelectionToViewer ( List<?> selection )
        {
            ProfileEditor.this.setSelectionToViewer ( selection );
            ProfileEditor.this.setFocus ();
        }

        @Override
        public void setActionBars ( IActionBars actionBars )
        {
            super.setActionBars ( actionBars );
            getActionBarContributor ().shareGlobalActions ( this, actionBars );
        }
    };
    propertySheetPage.setPropertySourceProvider ( new AdapterFactoryContentProvider ( adapterFactory ) );
    propertySheetPages.add ( propertySheetPage );

    return propertySheetPage;
}
 
源代码15 项目: neoscada   文件: OsgiEditor.java
/**
 * This is how the framework determines which interfaces we implement.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings ( "rawtypes" )
@Override
public Object getAdapter ( Class key )
{
    if ( key.equals ( IContentOutlinePage.class ) )
    {
        return showOutlineView () ? getContentOutlinePage () : null;
    }
    else if ( key.equals ( IPropertySheetPage.class ) )
    {
        return getPropertySheetPage ();
    }
    else if ( key.equals ( IGotoMarker.class ) )
    {
        return this;
    }
    else
    {
        return super.getAdapter ( key );
    }
}
 
源代码16 项目: neoscada   文件: OsgiEditor.java
/**
 * This accesses a cached version of the property sheet.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public IPropertySheetPage getPropertySheetPage ()
{
    PropertySheetPage propertySheetPage = new ExtendedPropertySheetPage ( editingDomain, ExtendedPropertySheetPage.Decoration.MANUAL) {
        @Override
        public void setSelectionToViewer ( List<?> selection )
        {
            OsgiEditor.this.setSelectionToViewer ( selection );
            OsgiEditor.this.setFocus ();
        }

        @Override
        public void setActionBars ( IActionBars actionBars )
        {
            super.setActionBars ( actionBars );
            getActionBarContributor ().shareGlobalActions ( this, actionBars );
        }
    };
    propertySheetPage.setPropertySourceProvider ( new AdapterFactoryContentProvider ( adapterFactory ) );
    propertySheetPages.add ( propertySheetPage );

    return propertySheetPage;
}
 
源代码17 项目: neoscada   文件: WorldEditor.java
/**
 * This is how the framework determines which interfaces we implement.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings ( "rawtypes" )
@Override
public Object getAdapter ( Class key )
{
    if ( key.equals ( IContentOutlinePage.class ) )
    {
        return showOutlineView () ? getContentOutlinePage () : null;
    }
    else if ( key.equals ( IPropertySheetPage.class ) )
    {
        return getPropertySheetPage ();
    }
    else if ( key.equals ( IGotoMarker.class ) )
    {
        return this;
    }
    else
    {
        return super.getAdapter ( key );
    }
}
 
源代码18 项目: neoscada   文件: WorldEditor.java
/**
 * This accesses a cached version of the property sheet.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public IPropertySheetPage getPropertySheetPage ()
{
    PropertySheetPage propertySheetPage = new ExtendedPropertySheetPage ( editingDomain, ExtendedPropertySheetPage.Decoration.MANUAL) {
        @Override
        public void setSelectionToViewer ( List<?> selection )
        {
            WorldEditor.this.setSelectionToViewer ( selection );
            WorldEditor.this.setFocus ();
        }

        @Override
        public void setActionBars ( IActionBars actionBars )
        {
            super.setActionBars ( actionBars );
            getActionBarContributor ().shareGlobalActions ( this, actionBars );
        }
    };
    propertySheetPage.setPropertySourceProvider ( new AdapterFactoryContentProvider ( adapterFactory ) );
    propertySheetPages.add ( propertySheetPage );

    return propertySheetPage;
}
 
源代码19 项目: neoscada   文件: MemoryEditor.java
/**
 * This is how the framework determines which interfaces we implement.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings ( "rawtypes" )
@Override
public Object getAdapter ( Class key )
{
    if ( key.equals ( IContentOutlinePage.class ) )
    {
        return showOutlineView () ? getContentOutlinePage () : null;
    }
    else if ( key.equals ( IPropertySheetPage.class ) )
    {
        return getPropertySheetPage ();
    }
    else if ( key.equals ( IGotoMarker.class ) )
    {
        return this;
    }
    else
    {
        return super.getAdapter ( key );
    }
}
 
源代码20 项目: neoscada   文件: MemoryEditor.java
/**
 * This accesses a cached version of the property sheet.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public IPropertySheetPage getPropertySheetPage ()
{
    PropertySheetPage propertySheetPage = new ExtendedPropertySheetPage ( editingDomain) {
        @Override
        public void setSelectionToViewer ( List<?> selection )
        {
            MemoryEditor.this.setSelectionToViewer ( selection );
            MemoryEditor.this.setFocus ();
        }

        @Override
        public void setActionBars ( IActionBars actionBars )
        {
            super.setActionBars ( actionBars );
            getActionBarContributor ().shareGlobalActions ( this, actionBars );
        }
    };
    propertySheetPage.setPropertySourceProvider ( new AdapterFactoryContentProvider ( adapterFactory ) );
    propertySheetPages.add ( propertySheetPage );

    return propertySheetPage;
}
 
源代码21 项目: neoscada   文件: RecipeEditor.java
/**
 * This is how the framework determines which interfaces we implement.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings ( "rawtypes" )
@Override
public Object getAdapter ( Class key )
{
    if ( key.equals ( IContentOutlinePage.class ) )
    {
        return showOutlineView () ? getContentOutlinePage () : null;
    }
    else if ( key.equals ( IPropertySheetPage.class ) )
    {
        return getPropertySheetPage ();
    }
    else if ( key.equals ( IGotoMarker.class ) )
    {
        return this;
    }
    else
    {
        return super.getAdapter ( key );
    }
}
 
源代码22 项目: neoscada   文件: RecipeEditor.java
/**
 * This accesses a cached version of the property sheet.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public IPropertySheetPage getPropertySheetPage ()
{
    PropertySheetPage propertySheetPage = new ExtendedPropertySheetPage ( editingDomain, ExtendedPropertySheetPage.Decoration.MANUAL) {
        @Override
        public void setSelectionToViewer ( List<?> selection )
        {
            RecipeEditor.this.setSelectionToViewer ( selection );
            RecipeEditor.this.setFocus ();
        }

        @Override
        public void setActionBars ( IActionBars actionBars )
        {
            super.setActionBars ( actionBars );
            getActionBarContributor ().shareGlobalActions ( this, actionBars );
        }
    };
    propertySheetPage.setPropertySourceProvider ( new AdapterFactoryContentProvider ( adapterFactory ) );
    propertySheetPages.add ( propertySheetPage );

    return propertySheetPage;
}
 
源代码23 项目: neoscada   文件: InfrastructureEditor.java
/**
 * This is how the framework determines which interfaces we implement.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings ( "rawtypes" )
@Override
public Object getAdapter ( Class key )
{
    if ( key.equals ( IContentOutlinePage.class ) )
    {
        return showOutlineView () ? getContentOutlinePage () : null;
    }
    else if ( key.equals ( IPropertySheetPage.class ) )
    {
        return getPropertySheetPage ();
    }
    else if ( key.equals ( IGotoMarker.class ) )
    {
        return this;
    }
    else
    {
        return super.getAdapter ( key );
    }
}
 
源代码24 项目: neoscada   文件: InfrastructureEditor.java
/**
 * This accesses a cached version of the property sheet.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 *
 * @generated NOT
 */
public IPropertySheetPage getPropertySheetPage ()
{
    final PropertySheetPage propertySheetPage = new ExtendedPropertySheetPage ( this.editingDomain, ExtendedPropertySheetPage.Decoration.MANUAL, InfrastructureEditorPlugin.getPlugin ().getDialogSettings () ) {
        @Override
        public void setSelectionToViewer ( final List<?> selection )
        {
            InfrastructureEditor.this.setSelectionToViewer ( selection );
            InfrastructureEditor.this.setFocus ();
        }

        @Override
        public void setActionBars ( final IActionBars actionBars )
        {
            super.setActionBars ( actionBars );
            getActionBarContributor ().shareGlobalActions ( this, actionBars );
        }
    };
    propertySheetPage.setPropertySourceProvider ( new ExtendedAdapterFactoryContentProvider ( this.adapterFactory ) );
    this.propertySheetPages.add ( propertySheetPage );

    return propertySheetPage;
}
 
源代码25 项目: neoscada   文件: SecurityEditor.java
/**
 * This is how the framework determines which interfaces we implement.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings ( "rawtypes" )
@Override
public Object getAdapter ( Class key )
{
    if ( key.equals ( IContentOutlinePage.class ) )
    {
        return showOutlineView () ? getContentOutlinePage () : null;
    }
    else if ( key.equals ( IPropertySheetPage.class ) )
    {
        return getPropertySheetPage ();
    }
    else if ( key.equals ( IGotoMarker.class ) )
    {
        return this;
    }
    else
    {
        return super.getAdapter ( key );
    }
}
 
源代码26 项目: neoscada   文件: SecurityEditor.java
/**
 * This accesses a cached version of the property sheet.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public IPropertySheetPage getPropertySheetPage ()
{
    PropertySheetPage propertySheetPage =
            new ExtendedPropertySheetPage ( editingDomain )
            {
                @Override
                public void setSelectionToViewer ( List<?> selection )
                {
                    SecurityEditor.this.setSelectionToViewer ( selection );
                    SecurityEditor.this.setFocus ();
                }

                @Override
                public void setActionBars ( IActionBars actionBars )
                {
                    super.setActionBars ( actionBars );
                    getActionBarContributor ().shareGlobalActions ( this, actionBars );
                }
            };
    propertySheetPage.setPropertySourceProvider ( new AdapterFactoryContentProvider ( adapterFactory ) );
    propertySheetPages.add ( propertySheetPage );

    return propertySheetPage;
}
 
源代码27 项目: neoscada   文件: GlobalizeEditor.java
/**
 * This is how the framework determines which interfaces we implement.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings ( "rawtypes" )
@Override
public Object getAdapter ( Class key )
{
    if ( key.equals ( IContentOutlinePage.class ) )
    {
        return showOutlineView () ? getContentOutlinePage () : null;
    }
    else if ( key.equals ( IPropertySheetPage.class ) )
    {
        return getPropertySheetPage ();
    }
    else if ( key.equals ( IGotoMarker.class ) )
    {
        return this;
    }
    else
    {
        return super.getAdapter ( key );
    }
}
 
源代码28 项目: neoscada   文件: GlobalizeEditor.java
/**
 * This accesses a cached version of the property sheet.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public IPropertySheetPage getPropertySheetPage ()
{
    PropertySheetPage propertySheetPage = new ExtendedPropertySheetPage ( editingDomain ) {
        @Override
        public void setSelectionToViewer ( List<?> selection )
        {
            GlobalizeEditor.this.setSelectionToViewer ( selection );
            GlobalizeEditor.this.setFocus ();
        }

        @Override
        public void setActionBars ( IActionBars actionBars )
        {
            super.setActionBars ( actionBars );
            getActionBarContributor ().shareGlobalActions ( this, actionBars );
        }
    };
    propertySheetPage.setPropertySourceProvider ( new AdapterFactoryContentProvider ( adapterFactory ) );
    propertySheetPages.add ( propertySheetPage );

    return propertySheetPage;
}
 
源代码29 项目: neoscada   文件: ComponentEditor.java
/**
 * This is how the framework determines which interfaces we implement.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings ( "rawtypes" )
@Override
public Object getAdapter ( Class key )
{
    if ( key.equals ( IContentOutlinePage.class ) )
    {
        return showOutlineView () ? getContentOutlinePage () : null;
    }
    else if ( key.equals ( IPropertySheetPage.class ) )
    {
        return getPropertySheetPage ();
    }
    else if ( key.equals ( IGotoMarker.class ) )
    {
        return this;
    }
    else
    {
        return super.getAdapter ( key );
    }
}
 
源代码30 项目: neoscada   文件: ComponentEditor.java
/**
 * This accesses a cached version of the property sheet.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 *
 * @generated NOT
 */
public IPropertySheetPage getPropertySheetPage ()
{
    final ExtendedSortedPropertySheetPage propertySheetPage = new ExtendedSortedPropertySheetPage ( this.editingDomain, ExtendedPropertySheetPage.Decoration.MANUAL, ComponentEditorPlugin.getPlugin ().getDialogSettings ()) {
        @Override
        public void setSelectionToViewer ( final List<?> selection )
        {
            ComponentEditor.this.setSelectionToViewer ( selection );
            ComponentEditor.this.setFocus ();
        }

        @Override
        public void setActionBars ( final IActionBars actionBars )
        {
            super.setActionBars ( actionBars );
            getActionBarContributor ().shareGlobalActions ( this, actionBars );
        }
    };
    propertySheetPage.setPropertySourceProvider ( new ExtendedAdapterFactoryContentProvider ( this.adapterFactory ) );
    this.propertySheetPages.add ( propertySheetPage );

    return propertySheetPage;
}
 
 类所在包
 同包方法