Package org.eclipse.jdt.internal.ui.dialogs

Examples of org.eclipse.jdt.internal.ui.dialogs.OpenTypeSelectionDialog2


  protected void handleBehaviourSearchButtonSelected() {
    Shell shell = getShell();
   
    IJavaProject javaProject = getJavaProject();
   
    OpenTypeSelectionDialog2 dialog= new OpenTypeSelectionDialog2(
        shell, false,
        PlatformUI.getWorkbench().getProgressService(),
        null, IJavaSearchConstants.TYPE);
      dialog.setTitle("Search Behaviour Class");
      dialog.setMessage("Search for the behaviour class to verify");
     
      int result= dialog.open();
      if (result != IDialogConstants.OK_ID)
        return;
     
      Object[] types= dialog.getResult();
      if (types != null && types.length > 0) {
        IType type= (IType)types[0];
        behaviourText.setText(type.getFullyQualifiedName('.'));
        javaProject = type.getJavaProject();
        projectText.setText(javaProject.getElementName());
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.internal.ui.dialogs.OpenTypeSelectionDialog2

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.