-1

I am trying to create a file browser when the user clicks on a button at the property I have generated. The following code I use,it fetches the whole files at my workspace. However,I need to browse over all my PC.

IFile[] files = WorkspaceResourceDialog.openFileSelection(null, "File selection", "Please select any file", false, null, null);

Any ideas!

4

1 回答 1

0
      ResourceDialog resourceDialog=
     new ResourceDialog(Display.getCurrent().getActiveShell(), 
"Select your image", SWT.OPEN);

        resourceDialog.create();
        resourceDialog.open();
        String path=resourceDialog.getURIText();
于 2013-04-08T15:56:08.417 回答