Package org.eclipse.ui.part

Examples of org.eclipse.ui.part.IShowInSource


            };
        }

        if ( IShowInSource.class.equals( required ) )
        {
            return new IShowInSource()
            {
                public ShowInContext getShowInContext()
                {
                    return new ShowInContext( getMainWidget().getViewer().getInput(), getMainWidget().getViewer()
                        .getSelection() );
View Full Code Here


            };
        }

        if ( IShowInSource.class.equals( required ) )
        {
            return new IShowInSource()
            {
                public ShowInContext getShowInContext()
                {
                    ISelection selection = getConfiguration().getCursor( getMainWidget().getViewer() ).getSelection();
                    return new ShowInContext( getMainWidget().getViewer().getInput(), selection );
View Full Code Here

     * Subclasses may extend or reimplement.
     *
     * @return the <code>ShowInContext</code> to show or <code>null</code>
     */
    private ShowInContext getContext(IWorkbenchPart sourcePart) {
        IShowInSource source = getShowInSource(sourcePart);
        if (source != null) {
            ShowInContext context = source.getShowInContext();
            if (context != null) {
                return context;
            }
        } else if (sourcePart instanceof IEditorPart) {
            Object input = ((IEditorPart) sourcePart).getEditorInput();
View Full Code Here

    if (IAnnotationAccess.class.equals(adapter))
      return getAnnotationAccess();

    if (adapter == IShowInSource.class) {
      return new IShowInSource() {
        public ShowInContext getShowInContext() {
          ISelection selection= null;
          ISelectionProvider selectionProvider= getSelectionProvider();
          if (selectionProvider != null)
            selection= selectionProvider.getSelection();
View Full Code Here

      adapter = new ShowInTarget();
    }
    final IEditorPart editor = fEditor;

    if (key.equals(IShowInSource.class) && editor != null) {
      adapter = new IShowInSource() {
        public ShowInContext getShowInContext() {
          return new ShowInContext(editor.getEditorInput(), editor.getEditorSite().getSelectionProvider().getSelection());
        }
      };
    }
View Full Code Here

      adapter = new ShowInTarget();
    }
    final IEditorPart editor = fEditor;

    if (key.equals(IShowInSource.class) && editor != null) {
      adapter = new IShowInSource() {
        public ShowInContext getShowInContext() {
          return new ShowInContext(editor.getEditorInput(), editor.getEditorSite().getSelectionProvider().getSelection());
        }
      };
    }
View Full Code Here

            };
        }

        if ( IShowInSource.class.equals( required ) )
        {
            return new IShowInSource()
            {
                public ShowInContext getShowInContext()
                {
                    return new ShowInContext( getMainWidget().getViewer().getInput(), getMainWidget().getViewer()
                        .getSelection() );
View Full Code Here

            };
        }

        if ( IShowInSource.class.equals( required ) )
        {
            return new IShowInSource()
            {
                public ShowInContext getShowInContext()
                {
                    ISelection selection = getConfiguration().getCursor( getMainWidget().getViewer() ).getSelection();
                    return new ShowInContext( getMainWidget().getViewer().getInput(), selection );
View Full Code Here

            };
        }

        if ( IShowInSource.class.equals( required ) )
        {
            return new IShowInSource()
            {
                public ShowInContext getShowInContext()
                {
                    return new ShowInContext( getMainWidget().getViewer().getInput(), getMainWidget().getViewer()
                        .getSelection() );
View Full Code Here

            };
        }

        if ( IShowInSource.class.equals( required ) )
        {
            return new IShowInSource()
            {
                public ShowInContext getShowInContext()
                {
                    ISelection selection = getConfiguration().getCursor( getMainWidget().getViewer() ).getSelection();
                    return new ShowInContext( getMainWidget().getViewer().getInput(), selection );
View Full Code Here

TOP

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

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.