org.eclipse.ui.views.contentoutline.IContentOutlinePage Java Examples
The following examples show how to use
org.eclipse.ui.views.contentoutline.IContentOutlinePage.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ExtensionsEditor.java From ifml-editor with MIT License | 6 votes |
/** * 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); } }
Example #2
Source File: MultiPageReportEditor.java From birt with Eclipse Public License 1.0 | 6 votes |
private void updateOutLineView( IFormPage activePageInstance ) { if ( outlinePage == null ) { return; } if ( reloadOutlinePage( ) ) { return; } Object designOutLinePage = activePageInstance.getAdapter( IContentOutlinePage.class ); if ( designOutLinePage instanceof DesignerOutlinePage ) { ( (DesignerOutlinePage) designOutLinePage ).setBackupState( outlineBackup ); } outlinePage.setActivePage( (IPageBookViewPage) designOutLinePage ); }
Example #3
Source File: MultiPageReportEditor.java From birt with Eclipse Public License 1.0 | 6 votes |
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( ); }
Example #4
Source File: OsgiEditor.java From neoscada with Eclipse Public License 1.0 | 6 votes |
/** * 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 ); } }
Example #5
Source File: WorldEditor.java From neoscada with Eclipse Public License 1.0 | 6 votes |
/** * 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 ); } }
Example #6
Source File: ProfileEditor.java From neoscada with Eclipse Public License 1.0 | 6 votes |
/** * 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 ); } }
Example #7
Source File: SetupEditor.java From neoscada with Eclipse Public License 1.0 | 6 votes |
/** * 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 ); } }
Example #8
Source File: DeploymentEditor.java From neoscada with Eclipse Public License 1.0 | 6 votes |
/** * 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 ); } }
Example #9
Source File: VisualInterfaceEditor.java From neoscada with Eclipse Public License 1.0 | 6 votes |
/** * 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 ); } }
Example #10
Source File: DetailViewEditor.java From neoscada with Eclipse Public License 1.0 | 6 votes |
/** * 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 ); } }
Example #11
Source File: ERDiagramEditor.java From ermaster-b with Apache License 2.0 | 6 votes |
/** * {@inheritDoc} */ @Override public Object getAdapter(Class type) { if (type == ZoomManager.class) { return ((ScalableFreeformRootEditPart) getGraphicalViewer() .getRootEditPart()).getZoomManager(); } if (type == IContentOutlinePage.class) { return this.outlinePage; } if (type == IGotoMarker.class) { return this.gotoMaker; } if (type == IPropertySheetPage.class) { return this.propertySheetPage; } return super.getAdapter(type); }
Example #12
Source File: ChartEditor.java From neoscada with Eclipse Public License 1.0 | 6 votes |
/** * 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 ); } }
Example #13
Source File: MultiPageReportEditor.java From birt with Eclipse Public License 1.0 | 6 votes |
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; }
Example #14
Source File: MemoryEditor.java From neoscada with Eclipse Public License 1.0 | 6 votes |
/** * 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 ); } }
Example #15
Source File: RecipeEditor.java From neoscada with Eclipse Public License 1.0 | 6 votes |
/** * 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 ); } }
Example #16
Source File: AbstractLangStructureEditor.java From goclipse with Eclipse Public License 1.0 | 6 votes |
@SuppressWarnings("unchecked") @Override public <T> T getAdapter(Class<T> requestedClass) { if (IContentOutlinePage.class.equals(requestedClass)) { IContentOutlinePage outlinePage = this.outlinePage; return (T) outlinePage; } if(requestedClass == IShowInTargetList.class) { return (T) new IShowInTargetList() { @Override public String[] getShowInTargetIds() { return array(IPageLayout.ID_OUTLINE); } }; } return super.getAdapter(requestedClass); }
Example #17
Source File: InfrastructureEditor.java From neoscada with Eclipse Public License 1.0 | 6 votes |
/** * 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 ); } }
Example #18
Source File: CoreEditor.java From ifml-editor with MIT License | 6 votes |
/** * 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); } }
Example #19
Source File: SecurityEditor.java From neoscada with Eclipse Public License 1.0 | 6 votes |
/** * 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 ); } }
Example #20
Source File: MainDiagramEditor.java From erflute with Apache License 2.0 | 6 votes |
@Override public Object getAdapter(@SuppressWarnings("rawtypes") Class type) { if (type == ZoomManager.class) { return ((ScalableFreeformRootEditPart) getGraphicalViewer().getRootEditPart()).getZoomManager(); } if (type == IContentOutlinePage.class) { return outlinePage; } if (type == IGotoMarker.class) { return gotoMaker; } if (type == IPropertySheetPage.class) { return propertySheetPage; } return super.getAdapter(type); }
Example #21
Source File: GlobalizeEditor.java From neoscada with Eclipse Public License 1.0 | 6 votes |
/** * 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 ); } }
Example #22
Source File: EipEditor.java From eip-designer with Apache License 2.0 | 6 votes |
/** * 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); } }
Example #23
Source File: JsonEditor.java From KaiZen-OpenAPI-Editor with Eclipse Public License 1.0 | 6 votes |
@Override @SuppressWarnings("rawtypes") public Object getAdapter(Class required) { Object adapter = super.getAdapter(required); if (IContentOutlinePage.class.equals(required)) { if (contentOutline == null) { contentOutline = new JsonContentOutlinePage(getDocumentProvider(), this); if (getEditorInput() != null) { contentOutline.setInput(getEditorInput()); } } adapter = contentOutline; } return adapter; }
Example #24
Source File: StatechartDiagramEditor.java From statecharts with Eclipse Public License 1.0 | 6 votes |
@Override public Object getAdapter(@SuppressWarnings("rawtypes") Class type) { if (IContentOutlinePage.class.equals(type)) { return createOutline(type); } else if (IValidationIssueStore.class.equals(type)) { return issueStore; } else if (EObject.class.equals(type)) { return this.getContextObject(); } else if (TransactionalEditingDomain.class.equals(type)) { return getTransactionalEditingDomain(); } else if (Diagram.class.equals(type)) { return getDiagram(); } else if (DiagramEditPart.class.equals(type)) { return getDiagramEditPart(); } return super.getAdapter(type); }
Example #25
Source File: ItemEditor.java From neoscada with Eclipse Public License 1.0 | 6 votes |
/** * 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 ); } }
Example #26
Source File: ConfigurationEditor.java From neoscada with Eclipse Public License 1.0 | 6 votes |
/** * 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 ); } }
Example #27
Source File: CrossflowEditor.java From scava with Eclipse Public License 2.0 | 6 votes |
/** * This is how the framework determines which interfaces we implement. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public <T> T getAdapter(Class<T> key) { if (key.equals(IContentOutlinePage.class)) { return showOutlineView() ? key.cast(getContentOutlinePage()) : null; } else if (key.equals(IPropertySheetPage.class)) { return key.cast(getPropertySheetPage()); } else if (key.equals(IGotoMarker.class)) { return key.cast(this); } else { return super.getAdapter(key); } }
Example #28
Source File: BeansEditor.java From hybris-commerce-eclipse-plugin with Apache License 2.0 | 6 votes |
/** * 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); } }
Example #29
Source File: AbstractOutlineWorkbenchTest.java From n4js with Eclipse Public License 1.0 | 6 votes |
protected void openOutlineView() throws PartInitException, InterruptedException { outlineView = editor.getEditorSite().getPage().showView("org.eclipse.ui.views.ContentOutline"); executeAsyncDisplayJobs(); Object adapter = editor.getAdapter(IContentOutlinePage.class); assertTrue(adapter instanceof OutlinePage); outlinePage = new SyncableOutlinePage((OutlinePage) adapter); outlinePage.resetSyncer(); try { outlinePage.waitForUpdate(EXPECTED_TIMEOUT); } catch (TimeoutException e) { System.out.println("Expected timeout exceeded: " + EXPECTED_TIMEOUT);// timeout is OK here } treeViewer = outlinePage.getTreeViewer(); assertSelected(treeViewer); assertExpanded(treeViewer); assertTrue(treeViewer.getInput() instanceof IOutlineNode); IOutlineNode rootNode = (IOutlineNode) treeViewer.getInput(); List<IOutlineNode> children = rootNode.getChildren(); assertEquals(1, children.size()); modelNode = children.get(0); }
Example #30
Source File: XtextEditor.java From xtext-eclipse with Eclipse Public License 2.0 | 6 votes |
private IContentOutlinePage createOutlinePage() { IContentOutlinePage page = null; if (outlinePageProvider != null) { // can be null, optional injection page = outlinePageProvider.get(); if (page != null) { if (page instanceof ISourceViewerAware) { ((ISourceViewerAware) page).setSourceViewer(getSourceViewer()); } if (page instanceof IXtextEditorAware) { ((IXtextEditorAware) page).setEditor(this); } } } return page; }