Examples of selectReveal()


Examples of org.eclipse.ui.navigator.CommonNavigator.selectReveal()

        target = new StructuredSelection(cdf);
      }
      //select and reveal the cdf in the navigator
//      CommonViewer viewer = toolNavigator.getCommonViewer();
//      viewer.expandToLevel(target, 1);
      toolNavigator.selectReveal(target);
      if (cdf!=null){
        //now open it in the cdf editor
        IEditorInput editorInput = new FileEditorInput(cdf);
        //invoke the editor
        page.openEditor(editorInput, ClassEditor.ID);
View Full Code Here

Examples of org.eclipse.ui.part.ISetSelectionTarget.selectReveal()

                // select and reveal resource
                final ISetSelectionTarget finalTarget = target;
                window.getShell().getDisplay().asyncExec(new Runnable() {
                    @Override
                    public void run() {
                        finalTarget.selectReveal(selection);
                    }
                });
            }
        }
    }
View Full Code Here

Examples of org.eclipse.ui.part.ISetSelectionTarget.selectReveal()

            return;
        }
        IViewPart part = getView(JavaUI.ID_PACKAGES);
        if (part instanceof ISetSelectionTarget) {
            ISetSelectionTarget target = (ISetSelectionTarget) part;
            target.selectReveal(new StructuredSelection(data));
        }
    }

    private IViewPart getView(String id) {
        IViewPart part;
View Full Code Here

Examples of org.fusesource.ide.fabric8.ui.navigator.FabricNavigator.selectReveal()

          Object oSel = Selections.getFirstSelection(event.getSelection());
          if (oSel != null && oSel instanceof ProfileStatusDTO) {
            ProfileStatusDTO s = asProfileStatus(oSel);
            String profileId = s.getProfile();
            ProfileNode profileNode = searchProfile(nav, profileId, getFabric().getVersionsNode());
            if (profileNode != null) nav.selectReveal(new StructuredSelection(profileNode));
          }
        }
      }
    });
   
View Full Code Here

Examples of org.fusesource.ide.fabric8.ui.navigator.FabricNavigator.selectReveal()

                    if (oSel != null && oSel instanceof ProfileStatusDTO) {
                        ProfileStatusDTO s = asProfileStatus(oSel);
                        String profileId = s.getProfile();
                        ProfileNode profileNode = searchProfile(nav, profileId, current.getVersionsNode());
                        if (profileNode != null)
                            nav.selectReveal(new StructuredSelection(profileNode));
                    }
                }
            }
        });
View Full Code Here

Examples of org.fusesource.ide.fabric8.ui.navigator.FabricNavigator.selectReveal()

                    if (oSel != null && oSel instanceof VersionDTO) {
                        VersionDTO s = asVersionDTO(oSel);
                        String versionId = s.getId();
                        VersionNode versionNode = searchVersion(nav, versionId);
                        if (versionNode != null)
                            nav.selectReveal(new StructuredSelection(versionNode));
                    }
                }
            }
        });
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.