Package org.eclipse.ui.part

Examples of org.eclipse.ui.part.IShowInTarget


     */
    public Object getAdapter( Class required )
    {
        if ( IShowInTarget.class.equals( required ) )
        {
            return new IShowInTarget()
            {
                public boolean show( ShowInContext context )
                {
                    StructuredSelection selection = ( StructuredSelection ) context.getSelection();
                    Object obj = selection.getFirstElement();
View Full Code Here


     */
    public Object getAdapter( Class required )
    {
        if ( IShowInTarget.class.equals( required ) )
        {
            return new IShowInTarget()
            {
                public boolean show( ShowInContext context )
                {
                    StructuredSelection selection = ( StructuredSelection ) context.getSelection();
                    Object obj = selection.getFirstElement();
View Full Code Here

     */
    public Object getAdapter( Class required )
    {
        if ( IShowInTarget.class.equals( required ) )
        {
            return new IShowInTarget()
            {
                public boolean show( ShowInContext context )
                {
                    StructuredSelection selection = ( StructuredSelection ) context.getSelection();
                    Object obj = selection.getFirstElement();
View Full Code Here

     */
    public Object getAdapter( Class required )
    {
        if ( IShowInTarget.class.equals( required ) )
        {
            return new IShowInTarget()
            {
                public boolean show( ShowInContext context )
                {
                    StructuredSelection selection = ( StructuredSelection ) context.getSelection();
                    Object obj = selection.getFirstElement();
View Full Code Here

            return;
        }

        try {
            IViewPart view = page.showView(desc.getId());
            IShowInTarget target = getShowInTarget(view);
            if (target != null && target.show(context)) {
                // success
            } else {
                beep();
            }
            ((WorkbenchPage) page).performedShowIn(desc.getId()); // TODO: move back up
View Full Code Here

     */
    public Object getAdapter( Class required )
    {
        if ( IShowInTarget.class.equals( required ) )
        {
            return new IShowInTarget()
            {
                public boolean show( ShowInContext context )
                {
                    StructuredSelection selection = ( StructuredSelection ) context.getSelection();
                    Object obj = selection.getFirstElement();
View Full Code Here

    private void highlightResult(final VmResource formattedResource,
        final IWorkbenchPart workbenchPart, Shell shell) {
      shell.getDisplay().asyncExec(new Runnable() {
        public void run() {
          if (workbenchPart instanceof IShowInTarget) {
            IShowInTarget showInTarget = (IShowInTarget) workbenchPart;
            ShowInContext showInContext =
                new ShowInContext(formattedResource.getVProjectFile(), null);
            showInTarget.show(showInContext);
          } else {
            openFileInEditorAsync(formattedResource, workbenchPart.getSite().getWorkbenchWindow());
          }
        }
      });
View Full Code Here

     */
    public Object getAdapter( Class required )
    {
        if ( IShowInTarget.class.equals( required ) )
        {
            return new IShowInTarget()
            {
                public boolean show( ShowInContext context )
                {
                    StructuredSelection selection = ( StructuredSelection ) context.getSelection();
                    Object obj = selection.getFirstElement();
View Full Code Here

     */
    public Object getAdapter( Class required )
    {
        if ( IShowInTarget.class.equals( required ) )
        {
            return new IShowInTarget()
            {
                public boolean show( ShowInContext context )
                {
                    StructuredSelection selection = ( StructuredSelection ) context.getSelection();
                    Object obj = selection.getFirstElement();
View Full Code Here

    public Object getAdapter( Class required )
    {

        if ( IShowInTarget.class.equals( required ) )
        {
            return new IShowInTarget()
            {
                public boolean show( ShowInContext context )
                {
                    StructuredSelection selection = ( StructuredSelection ) context.getSelection();
                    Object obj = selection.getFirstElement();
View Full Code Here

TOP

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

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.