Package org.eclipse.ui.dialogs

Examples of org.eclipse.ui.dialogs.ResourceListSelectionDialog.open()


     **/
    protected void browseFiles() {
        IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
        ResourceListSelectionDialog dialog = new ResourceListSelectionDialog(getShell(), root, IResource.FILE);
        dialog.setTitle(Constants.SEARCH_TITLE);
        if (dialog.open() == Window.OK) {
            Object[] files = dialog.getResult();
            IFile file = (IFile) files[0];
            fileText.setText(file.getFullPath().toString());
        }

View Full Code Here


     **/
    protected void browseFiles() {
        IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
        ResourceListSelectionDialog dialog = new ResourceListSelectionDialog(getShell(), root, IResource.FILE);
        dialog.setTitle(Constants.SEARCH_TITLE);
        if (dialog.open() == Window.OK) {
            Object[] files = dialog.getResult();
            IFile file = (IFile) files[0];
            fileText.setText(file.getFullPath().toString());
        }

View Full Code Here

     
    } catch (Exception e) {
      e.printStackTrace();
    }
   
    if(listSelection.open() == ResourceListSelectionDialog.OK)
    {
      Object[] result = listSelection.getResult();
     
      if(result.length == 1)
      {
View Full Code Here

     
    } catch (Exception e) {
      e.printStackTrace();
    }
   
    if(listSelection.open() == ResourceListSelectionDialog.OK)
    {
      Object[] result = listSelection.getResult();
     
      if(result.length == 1)
      {
View Full Code Here

      e.printStackTrace();
    }
   
    listSelection.setTitle("Find CFUnit Test");
   
    if(listSelection.open() == ResourceListSelectionDialog.OK) {
      Object[] result = listSelection.getResult();
     
      if(result.length == 1) {
        IResource resource = (IResource)result[0];
        CFUnitTestSuite.getInstence().setTest( CFUnitTestCase.getResourceFullName( resource ) );
View Full Code Here

      );     
    } catch (Exception e) {
      e.printStackTrace();
    }
   
    if(listSelection.open() == ResourceListSelectionDialog.OK) {
      Object[] result = listSelection.getResult();
     
      if(result.length == 1) {
        futResource = (IResource)result[0];
        futLocation.setText( futResource.getFullPath().toString() );
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.