Package tool.commands.findtype

Examples of tool.commands.findtype.TypeSelectionDialog.open()


      public void widgetSelected(SelectionEvent e) {
        ToolType typeClass = ToolClass.fetch(so.getProject(), so.getType());
        TypeSelectionDialog dialog = new TypeSelectionDialog(getSite().getWorkbenchWindow().getShell(), true);
        dialog.setInitialPattern(soClassText.getText());
        dialog.setBlockOnOpen(true);
        if (dialog.open() == Dialog.OK){
          // find the resource and edit it
          Object[] result = dialog.getResult();
          if (result.length > 0){
            IFile file = (IFile) result[0];
            so.setType(file.getName().substring(0, file.getName().lastIndexOf('.')));
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.