Package org.eclipse.ui.part

Examples of org.eclipse.ui.part.IContributedContentsView


        // When the active part changes and does not select a FeatureType
        // we still need to trigger aboutToBeHidden() and aboutToBeShown().
        if (!thisActivated && !part.equals(contributor)) {
            // check if this view is a proxy for another contributor
            IContributedContentsView view = (IContributedContentsView) part
                    .getAdapter(IContributedContentsView.class);

            if (view != null && view.getContributingPart() != null
                    && view.getContributingPart().equals(contributor)) {
                // this view is a proxy for our current contributor
            } else {
                // we are actually switching contributors
                if (activePropertySheet) {
                    if (currentTab != null) {
View Full Code Here


    /* (non-Javadoc)
     * Method declared on IAdaptable.
     */
    public Object getAdapter(Class key) {
        if (key == IContributedContentsView.class) {
      return new IContributedContentsView() {
                public IWorkbenchPart getContributingPart() {
                    return getContributingEditor();
                }
            };
    }
View Full Code Here

    IWorkbenchPart contributingPart;
    if (part instanceof IEditorPart) {
      contributingPart = part;
    }
    else {
      IContributedContentsView contentsView = (IContributedContentsView)part.getAdapter(IContributedContentsView.class);
      if (contentsView != null) {
        contributingPart = contentsView.getContributingPart();
      }
      else {
        contributingPart = part;
      }
    }
View Full Code Here

    IWorkbenchPart contributingPart;
    if (part instanceof IEditorPart) {
      contributingPart = part;
    }
    else {
      IContributedContentsView contentsView = (IContributedContentsView)part.getAdapter(IContributedContentsView.class);
      if (contentsView != null) {
        contributingPart = contentsView.getContributingPart();
      }
      else {
        contributingPart = part;
      }
    }
View Full Code Here

   */
  @Override
  protected IDiagramEditor getDiagramEditor() {
    IWorkbenchPart part = getPart();
    if (part instanceof IContributedContentsView) {
      IContributedContentsView contributedView = (IContributedContentsView) part
          .getAdapter(IContributedContentsView.class);
      if (contributedView != null) {
        part = contributedView.getContributingPart();
      }
    }

    if (part instanceof IDiagramEditor) {
      return (IDiagramEditor) part;
View Full Code Here

TOP

Related Classes of org.eclipse.ui.part.IContributedContentsView

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.