當前位置: 首頁>>代碼示例>>Java>>正文


Java ContentOutlinePage類代碼示例

本文整理匯總了Java中org.eclipse.ui.views.contentoutline.ContentOutlinePage的典型用法代碼示例。如果您正苦於以下問題:Java ContentOutlinePage類的具體用法?Java ContentOutlinePage怎麽用?Java ContentOutlinePage使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


ContentOutlinePage類屬於org.eclipse.ui.views.contentoutline包,在下文中一共展示了ContentOutlinePage類的12個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: outlineSwitch

import org.eclipse.ui.views.contentoutline.ContentOutlinePage; //導入依賴的package包/類
public void outlineSwitch( )
{
	if ( !getActivePageInstance( ).getId( ).equals( XMLSourcePage_ID )
			|| outlinePage == null )
	{
		return;
	}

	if ( outlinePage.getCurrentPage( ) instanceof DesignerOutlinePage )
	{
		outlinePage.setActivePage( (IPageBookViewPage) getActivePageInstance( ).getAdapter( ContentOutlinePage.class ) );
	}
	else
	{
		outlinePage.setActivePage( (IPageBookViewPage) getActivePageInstance( ).getAdapter( IContentOutlinePage.class ) );
	}
	outlinePage.getSite( ).getActionBars( ).updateActionBars( );
}
 
開發者ID:eclipse,項目名稱:birt,代碼行數:19,代碼來源:MultiPageReportEditor.java

示例2: reloadOutlinePage

import org.eclipse.ui.views.contentoutline.ContentOutlinePage; //導入依賴的package包/類
public boolean reloadOutlinePage( )
{
	if ( !getActivePageInstance( ).getId( ).equals( XMLSourcePage_ID )
			|| outlinePage == null
			|| !getCurrentPageInstance( ).getId( )
					.equals( XMLSourcePage_ID ) )
	{
		return false;
	}

	if ( outlinePage.getCurrentPage( ) instanceof DesignerOutlinePage
			|| outlinePage.getCurrentPage( ) == null
			|| outlinePage.getCurrentPage( ) instanceof EmptyPage )
	{
		outlinePage.setActivePage( (IPageBookViewPage) getActivePageInstance( ).getAdapter( IContentOutlinePage.class ) );
	}
	else
	{
		outlinePage.setActivePage( (IPageBookViewPage) getActivePageInstance( ).getAdapter( ContentOutlinePage.class ) );
	}
	if ( outlinePage.getSite( ) != null )
	{
		outlinePage.getSite( ).getActionBars( ).updateActionBars( );
	}
	return true;
}
 
開發者ID:eclipse,項目名稱:birt,代碼行數:27,代碼來源:MultiPageReportEditor.java

示例3: createOutlinePage

import org.eclipse.ui.views.contentoutline.ContentOutlinePage; //導入依賴的package包/類
/** {@inheritDoc} */
@Override
protected ContentOutlinePage createOutlinePage() {
	return new XmlModelEditorOutlinePage(
			(ScalableFreeformRootEditPart) getGraphicalViewer()
					.getRootEditPart(), rootModel) {
		@Override
		protected IContentProvider createTreeContentProvider() {
			return new CqTreeContentProvider();
		}

		@Override
		protected ILabelProvider createTreeLabelProvider() {
			return new CQLabelProvider();
		}
	};
}
 
開發者ID:vimaier,項目名稱:conqat,代碼行數:18,代碼來源:ConQATBlockGraphicalEditor.java

示例4: getAdapter

import org.eclipse.ui.views.contentoutline.ContentOutlinePage; //導入依賴的package包/類
public Object getAdapter( Class required )
{
	if ( required.equals( ITextEditor.class ) )
	{
		return reportXMLEditor;
	}
	if ( required.equals( ActionRegistry.class ) )
	{
		if ( registry == null )
		{
			registry = new ActionRegistry( );
		}
		return registry;
	}
	else if ( IContentOutlinePage.class.equals( required ) )
	{
		if ( getModel( ) != null )
		{
			DesignerOutlinePage outlinePage = new DesignerOutlinePage( getModel( ) );
			getModelEventManager( ).addModelEventProcessor( outlinePage.getModelProcessor( ) );
			registerOutlineSwitchAction( );
			getOutlineSwitchAction( ).setText( SWITCH_REPORT_OUTLINE );
			return outlinePage;
		}
	}
	else if ( ContentOutlinePage.class.equals( required ) )
	{
		getOutlineSwitchAction( ).setText( SWITCH_REPORT_XML_OUTLINE );
		return reportXMLEditor.getAdapter( IContentOutlinePage.class );
	}
	return super.getAdapter( required );
}
 
開發者ID:eclipse,項目名稱:birt,代碼行數:33,代碼來源:ReportXMLSourceEditorFormPage.java

示例5: getContentOutlinePage

import org.eclipse.ui.views.contentoutline.ContentOutlinePage; //導入依賴的package包/類
/**
 * This accesses a cached version of the content outliner.
 * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
 * @generated
 */
   public IContentOutlinePage getContentOutlinePage() {
	if (contentOutlinePage == null) {
		// The content outline is just a tree.
		//
		class MyContentOutlinePage extends ContentOutlinePage {
			@Override
			public void createControl(Composite parent) {
				super.createControl(parent);
				contentOutlineViewer = getTreeViewer();
				contentOutlineViewer.addSelectionChangedListener(this);

				// Set up the tree viewer.
				//
				contentOutlineViewer.setUseHashlookup(true);
				contentOutlineViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));
				contentOutlineViewer.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
				contentOutlineViewer.setInput(editingDomain.getResourceSet());

				// Make sure our popups work.
				//
				createContextMenuFor(contentOutlineViewer);

				if (!editingDomain.getResourceSet().getResources().isEmpty()) {
				  // Select the root object in the view.
				  //
				  contentOutlineViewer.setSelection(new StructuredSelection(editingDomain.getResourceSet().getResources().get(0)), true);
				}
			}

			@Override
			public void makeContributions(IMenuManager menuManager, IToolBarManager toolBarManager, IStatusLineManager statusLineManager) {
				super.makeContributions(menuManager, toolBarManager, statusLineManager);
				contentOutlineStatusLineManager = statusLineManager;
			}

			@Override
			public void setActionBars(IActionBars actionBars) {
				super.setActionBars(actionBars);
				getActionBarContributor().shareGlobalActions(this, actionBars);
			}
		}

		contentOutlinePage = new MyContentOutlinePage();

		// Listen to selection so that we can handle it is a special way.
		//
		contentOutlinePage.addSelectionChangedListener
			(new ISelectionChangedListener() {
				 // This ensures that we handle selections correctly.
				 //
				 public void selectionChanged(SelectionChangedEvent event) {
					 handleContentOutlineSelection(event.getSelection());
				 }
			 });
	}

	return contentOutlinePage;
}
 
開發者ID:IncQueryLabs,項目名稱:smarthome-cep-demonstrator,代碼行數:65,代碼來源:SmarthomeEditor.java

示例6: getContentOutlinePage

import org.eclipse.ui.views.contentoutline.ContentOutlinePage; //導入依賴的package包/類
/**
 * This accesses a cached version of the content outliner.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public IContentOutlinePage getContentOutlinePage() {
	if (contentOutlinePage == null) {
		// The content outline is just a tree.
		//
		class MyContentOutlinePage extends ContentOutlinePage {
			@Override
			public void createControl(Composite parent) {
				super.createControl(parent);
				contentOutlineViewer = getTreeViewer();
				contentOutlineViewer.addSelectionChangedListener(this);

				// Set up the tree viewer.
				//
				contentOutlineViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));
				contentOutlineViewer.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
				contentOutlineViewer.setInput(editingDomain.getResourceSet());

				// Make sure our popups work.
				//
				createContextMenuFor(contentOutlineViewer);

				if (!editingDomain.getResourceSet().getResources().isEmpty()) {
				  // Select the root object in the view.
				  //
				  contentOutlineViewer.setSelection(new StructuredSelection(editingDomain.getResourceSet().getResources().get(0)), true);
				}
			}

			@Override
			public void makeContributions(IMenuManager menuManager, IToolBarManager toolBarManager, IStatusLineManager statusLineManager) {
				super.makeContributions(menuManager, toolBarManager, statusLineManager);
				contentOutlineStatusLineManager = statusLineManager;
			}

			@Override
			public void setActionBars(IActionBars actionBars) {
				super.setActionBars(actionBars);
				getActionBarContributor().shareGlobalActions(this, actionBars);
			}
		}

		contentOutlinePage = new MyContentOutlinePage();

		// Listen to selection so that we can handle it is a special way.
		//
		contentOutlinePage.addSelectionChangedListener
			(new ISelectionChangedListener() {
				 // This ensures that we handle selections correctly.
				 //
				 public void selectionChanged(SelectionChangedEvent event) {
					 handleContentOutlineSelection(event.getSelection());
				 }
			 });
	}

	return contentOutlinePage;
}
 
開發者ID:cetic,項目名稱:SimQRI,代碼行數:64,代碼來源:MetamodelEditor.java

示例7: getContentOutlinePage

import org.eclipse.ui.views.contentoutline.ContentOutlinePage; //導入依賴的package包/類
/**
 * This accesses a cached version of the content outliner.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public IContentOutlinePage getContentOutlinePage ()
{
    if ( contentOutlinePage == null )
    {
        // The content outline is just a tree.
        //
        class MyContentOutlinePage extends ContentOutlinePage
        {
            @Override
            public void createControl ( Composite parent )
            {
                super.createControl ( parent );
                contentOutlineViewer = getTreeViewer ();
                contentOutlineViewer.addSelectionChangedListener ( this );

                // Set up the tree viewer.
                //
                contentOutlineViewer.setContentProvider ( new AdapterFactoryContentProvider ( adapterFactory ) );
                contentOutlineViewer.setLabelProvider ( new AdapterFactoryLabelProvider ( adapterFactory ) );
                contentOutlineViewer.setInput ( editingDomain.getResourceSet () );

                // Make sure our popups work.
                //
                createContextMenuFor ( contentOutlineViewer );

                if ( !editingDomain.getResourceSet ().getResources ().isEmpty () )
                {
                    // Select the root object in the view.
                    //
                    contentOutlineViewer.setSelection ( new StructuredSelection ( editingDomain.getResourceSet ().getResources ().get ( 0 ) ), true );
                }
            }

            @Override
            public void makeContributions ( IMenuManager menuManager, IToolBarManager toolBarManager, IStatusLineManager statusLineManager )
            {
                super.makeContributions ( menuManager, toolBarManager, statusLineManager );
                contentOutlineStatusLineManager = statusLineManager;
            }

            @Override
            public void setActionBars ( IActionBars actionBars )
            {
                super.setActionBars ( actionBars );
                getActionBarContributor ().shareGlobalActions ( this, actionBars );
            }
        }

        contentOutlinePage = new MyContentOutlinePage ();

        // Listen to selection so that we can handle it is a special way.
        //
        contentOutlinePage.addSelectionChangedListener
                ( new ISelectionChangedListener ()
                {
                    // This ensures that we handle selections correctly.
                    //
                    public void selectionChanged ( SelectionChangedEvent event )
                    {
                        handleContentOutlineSelection ( event.getSelection () );
                    }
                } );
    }

    return contentOutlinePage;
}
 
開發者ID:eclipse,項目名稱:neoscada,代碼行數:73,代碼來源:ProtocolEditor.java

示例8: getContentOutlinePage

import org.eclipse.ui.views.contentoutline.ContentOutlinePage; //導入依賴的package包/類
/**
 * This accesses a cached version of the content outliner.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public IContentOutlinePage getContentOutlinePage ()
{
    if ( contentOutlinePage == null )
    {
        // The content outline is just a tree.
        //
        class MyContentOutlinePage extends ContentOutlinePage
        {
            @Override
            public void createControl ( Composite parent )
            {
                super.createControl ( parent );
                contentOutlineViewer = getTreeViewer ();
                contentOutlineViewer.addSelectionChangedListener ( this );

                // Set up the tree viewer.
                //
                contentOutlineViewer.setContentProvider ( new AdapterFactoryContentProvider ( adapterFactory ) );
                contentOutlineViewer.setLabelProvider ( new DelegatingStyledCellLabelProvider ( new DecoratingColumLabelProvider.StyledLabelProvider ( new AdapterFactoryLabelProvider.StyledLabelProvider ( adapterFactory, contentOutlineViewer ), new DiagnosticDecorator.Styled ( editingDomain.getResourceSet (), contentOutlineViewer ) ) ) );
                contentOutlineViewer.setInput ( editingDomain.getResourceSet () );

                new ColumnViewerInformationControlToolTipSupport ( contentOutlineViewer, new DiagnosticDecorator.Styled.EditingDomainLocationListener ( editingDomain, contentOutlineViewer ) );

                // Make sure our popups work.
                //
                createContextMenuFor ( contentOutlineViewer );

                if ( !editingDomain.getResourceSet ().getResources ().isEmpty () )
                {
                    // Select the root object in the view.
                    //
                    contentOutlineViewer.setSelection ( new StructuredSelection ( editingDomain.getResourceSet ().getResources ().get ( 0 ) ), true );
                }
            }

            @Override
            public void makeContributions ( IMenuManager menuManager, IToolBarManager toolBarManager, IStatusLineManager statusLineManager )
            {
                super.makeContributions ( menuManager, toolBarManager, statusLineManager );
                contentOutlineStatusLineManager = statusLineManager;
            }

            @Override
            public void setActionBars ( IActionBars actionBars )
            {
                super.setActionBars ( actionBars );
                getActionBarContributor ().shareGlobalActions ( this, actionBars );
            }
        }

        contentOutlinePage = new MyContentOutlinePage ();

        // Listen to selection so that we can handle it is a special way.
        //
        contentOutlinePage.addSelectionChangedListener ( new ISelectionChangedListener () {
            // This ensures that we handle selections correctly.
            //
            public void selectionChanged ( SelectionChangedEvent event )
            {
                handleContentOutlineSelection ( event.getSelection () );
            }
        } );
    }

    return contentOutlinePage;
}
 
開發者ID:eclipse,項目名稱:neoscada,代碼行數:73,代碼來源:DeploymentEditor.java

示例9: getContentOutlinePage

import org.eclipse.ui.views.contentoutline.ContentOutlinePage; //導入依賴的package包/類
/**
 * This accesses a cached version of the content outliner.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public IContentOutlinePage getContentOutlinePage ()
{
    if ( contentOutlinePage == null )
    {
        // The content outline is just a tree.
        //
        class MyContentOutlinePage extends ContentOutlinePage
        {
            @Override
            public void createControl ( Composite parent )
            {
                super.createControl ( parent );
                contentOutlineViewer = getTreeViewer ();
                contentOutlineViewer.addSelectionChangedListener ( this );

                // Set up the tree viewer.
                //
                contentOutlineViewer.setContentProvider ( new AdapterFactoryContentProvider ( adapterFactory ) );
                contentOutlineViewer.setLabelProvider ( new DelegatingStyledCellLabelProvider ( new AdapterFactoryLabelProvider.StyledLabelProvider ( adapterFactory, contentOutlineViewer ) ) );
                contentOutlineViewer.setInput ( editingDomain.getResourceSet () );

                // Make sure our popups work.
                //
                createContextMenuFor ( contentOutlineViewer );

                if ( !editingDomain.getResourceSet ().getResources ().isEmpty () )
                {
                    // Select the root object in the view.
                    //
                    contentOutlineViewer.setSelection ( new StructuredSelection ( editingDomain.getResourceSet ().getResources ().get ( 0 ) ), true );
                }
            }

            @Override
            public void makeContributions ( IMenuManager menuManager, IToolBarManager toolBarManager, IStatusLineManager statusLineManager )
            {
                super.makeContributions ( menuManager, toolBarManager, statusLineManager );
                contentOutlineStatusLineManager = statusLineManager;
            }

            @Override
            public void setActionBars ( IActionBars actionBars )
            {
                super.setActionBars ( actionBars );
                getActionBarContributor ().shareGlobalActions ( this, actionBars );
            }
        }

        contentOutlinePage = new MyContentOutlinePage ();

        // Listen to selection so that we can handle it is a special way.
        //
        contentOutlinePage.addSelectionChangedListener ( new ISelectionChangedListener () {
            // This ensures that we handle selections correctly.
            //
            public void selectionChanged ( SelectionChangedEvent event )
            {
                handleContentOutlineSelection ( event.getSelection () );
            }
        } );
    }

    return contentOutlinePage;
}
 
開發者ID:eclipse,項目名稱:neoscada,代碼行數:71,代碼來源:MemoryEditor.java

示例10: getContentOutlinePage

import org.eclipse.ui.views.contentoutline.ContentOutlinePage; //導入依賴的package包/類
/**
 * This accesses a cached version of the content outliner.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public IContentOutlinePage getContentOutlinePage ()
{
    if ( contentOutlinePage == null )
    {
        // The content outline is just a tree.
        //
        class MyContentOutlinePage extends ContentOutlinePage
        {
            @Override
            public void createControl ( Composite parent )
            {
                super.createControl ( parent );
                contentOutlineViewer = getTreeViewer ();
                contentOutlineViewer.addSelectionChangedListener ( this );

                // Set up the tree viewer.
                //
                contentOutlineViewer.setContentProvider ( new AdapterFactoryContentProvider ( adapterFactory ) );
                contentOutlineViewer.setLabelProvider ( new DelegatingStyledCellLabelProvider ( new DecoratingColumLabelProvider.StyledLabelProvider ( new AdapterFactoryLabelProvider.StyledLabelProvider ( adapterFactory, contentOutlineViewer ), new DiagnosticDecorator.Styled ( editingDomain, contentOutlineViewer, InfrastructureEditorPlugin.getPlugin ().getDialogSettings () ) ) ) );
                contentOutlineViewer.setInput ( editingDomain.getResourceSet () );

                new ColumnViewerInformationControlToolTipSupport ( contentOutlineViewer, new DiagnosticDecorator.Styled.EditingDomainLocationListener ( editingDomain, contentOutlineViewer ) );

                // Make sure our popups work.
                //
                createContextMenuFor ( contentOutlineViewer );

                if ( !editingDomain.getResourceSet ().getResources ().isEmpty () )
                {
                    // Select the root object in the view.
                    //
                    contentOutlineViewer.setSelection ( new StructuredSelection ( editingDomain.getResourceSet ().getResources ().get ( 0 ) ), true );
                }
            }

            @Override
            public void makeContributions ( IMenuManager menuManager, IToolBarManager toolBarManager, IStatusLineManager statusLineManager )
            {
                super.makeContributions ( menuManager, toolBarManager, statusLineManager );
                contentOutlineStatusLineManager = statusLineManager;
            }

            @Override
            public void setActionBars ( IActionBars actionBars )
            {
                super.setActionBars ( actionBars );
                getActionBarContributor ().shareGlobalActions ( this, actionBars );
            }
        }

        contentOutlinePage = new MyContentOutlinePage ();

        // Listen to selection so that we can handle it is a special way.
        //
        contentOutlinePage.addSelectionChangedListener ( new ISelectionChangedListener () {
            // This ensures that we handle selections correctly.
            //
            public void selectionChanged ( SelectionChangedEvent event )
            {
                handleContentOutlineSelection ( event.getSelection () );
            }
        } );
    }

    return contentOutlinePage;
}
 
開發者ID:eclipse,項目名稱:neoscada,代碼行數:73,代碼來源:InfrastructureEditor.java

示例11: getContentOutlinePage

import org.eclipse.ui.views.contentoutline.ContentOutlinePage; //導入依賴的package包/類
/**
 * This accesses a cached version of the content outliner.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public IContentOutlinePage getContentOutlinePage ()
{
    if ( contentOutlinePage == null )
    {
        // The content outline is just a tree.
        //
        class MyContentOutlinePage extends ContentOutlinePage
        {
            @Override
            public void createControl ( Composite parent )
            {
                super.createControl ( parent );
                contentOutlineViewer = getTreeViewer ();
                contentOutlineViewer.addSelectionChangedListener ( this );

                // Set up the tree viewer.
                //
                contentOutlineViewer.setContentProvider ( new AdapterFactoryContentProvider ( adapterFactory ) );
                contentOutlineViewer.setLabelProvider ( new DelegatingStyledCellLabelProvider ( new DecoratingColumLabelProvider.StyledLabelProvider ( new AdapterFactoryLabelProvider.StyledLabelProvider ( adapterFactory, contentOutlineViewer ), new DiagnosticDecorator.Styled ( editingDomain, contentOutlineViewer, ComponentEditorPlugin.getPlugin ().getDialogSettings () ) ) ) );
                contentOutlineViewer.setInput ( editingDomain.getResourceSet () );

                new ColumnViewerInformationControlToolTipSupport ( contentOutlineViewer, new DiagnosticDecorator.Styled.EditingDomainLocationListener ( editingDomain, contentOutlineViewer ) );

                // Make sure our popups work.
                //
                createContextMenuFor ( contentOutlineViewer );

                if ( !editingDomain.getResourceSet ().getResources ().isEmpty () )
                {
                    // Select the root object in the view.
                    //
                    contentOutlineViewer.setSelection ( new StructuredSelection ( editingDomain.getResourceSet ().getResources ().get ( 0 ) ), true );
                }
            }

            @Override
            public void makeContributions ( IMenuManager menuManager, IToolBarManager toolBarManager, IStatusLineManager statusLineManager )
            {
                super.makeContributions ( menuManager, toolBarManager, statusLineManager );
                contentOutlineStatusLineManager = statusLineManager;
            }

            @Override
            public void setActionBars ( IActionBars actionBars )
            {
                super.setActionBars ( actionBars );
                getActionBarContributor ().shareGlobalActions ( this, actionBars );
            }
        }

        contentOutlinePage = new MyContentOutlinePage ();

        // Listen to selection so that we can handle it is a special way.
        //
        contentOutlinePage.addSelectionChangedListener ( new ISelectionChangedListener () {
            // This ensures that we handle selections correctly.
            //
            public void selectionChanged ( SelectionChangedEvent event )
            {
                handleContentOutlineSelection ( event.getSelection () );
            }
        } );
    }

    return contentOutlinePage;
}
 
開發者ID:eclipse,項目名稱:neoscada,代碼行數:73,代碼來源:ComponentEditor.java

示例12: getContentOutlinePage

import org.eclipse.ui.views.contentoutline.ContentOutlinePage; //導入依賴的package包/類
/**
 * This accesses a cached version of the content outliner.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public IContentOutlinePage getContentOutlinePage() {
	if (contentOutlinePage == null) {
		// The content outline is just a tree.
		//
		class MyContentOutlinePage extends ContentOutlinePage {
			@Override
			public void createControl(Composite parent) {
				super.createControl(parent);
				contentOutlineViewer = getTreeViewer();
				contentOutlineViewer.addSelectionChangedListener(this);

				// Set up the tree viewer.
				//
				contentOutlineViewer.setUseHashlookup(true);
				contentOutlineViewer.setContentProvider(new AdapterFactoryContentProvider(adapterFactory));
				contentOutlineViewer.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
				contentOutlineViewer.setInput(editingDomain.getResourceSet());

				// Make sure our popups work.
				//
				createContextMenuFor(contentOutlineViewer);

				if (!editingDomain.getResourceSet().getResources().isEmpty()) {
				  // Select the root object in the view.
				  //
				  contentOutlineViewer.setSelection(new StructuredSelection(editingDomain.getResourceSet().getResources().get(0)), true);
				}
			}

			@Override
			public void makeContributions(IMenuManager menuManager, IToolBarManager toolBarManager, IStatusLineManager statusLineManager) {
				super.makeContributions(menuManager, toolBarManager, statusLineManager);
				contentOutlineStatusLineManager = statusLineManager;
			}

			@Override
			public void setActionBars(IActionBars actionBars) {
				super.setActionBars(actionBars);
				getActionBarContributor().shareGlobalActions(this, actionBars);
			}
		}

		contentOutlinePage = new MyContentOutlinePage();

		// Listen to selection so that we can handle it is a special way.
		//
		contentOutlinePage.addSelectionChangedListener
			(new ISelectionChangedListener() {
				 // This ensures that we handle selections correctly.
				 //
				 public void selectionChanged(SelectionChangedEvent event) {
					 handleContentOutlineSelection(event.getSelection());
				 }
			 });
	}

	return contentOutlinePage;
}
 
開發者ID:occiware,項目名稱:OCCI-Studio,代碼行數:65,代碼來源:OCCIEditor.java


注:本文中的org.eclipse.ui.views.contentoutline.ContentOutlinePage類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。