Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.DirectoryDialog.open()


        else
        {
            dialog.setFilterPath( exportMultipleFilesText.getText() );
        }

        String selectedDirectory = dialog.open();
        if ( selectedDirectory != null )
        {
            exportMultipleFilesText.setText( selectedDirectory );
        }
    }
View Full Code Here


        browseButton.addSelectionListener(new SelectionAdapter(){
            public void widgetSelected( SelectionEvent e ) {
                DirectoryDialog directoryDialog = new DirectoryDialog(Display.getDefault()
                        .getActiveShell());
                directoryDialog.setText(Messages.getString("jgrasswizard.choosefolder")); //$NON-NLS-1$
                String selectedDirectory = directoryDialog.open();
                urlCombo.setText(selectedDirectory);
                url = selectedDirectory;
                try {
                    getResources(new NullProgressMonitor());
                    setPageComplete(true);
View Full Code Here

        DirectoryDialog dialog = new DirectoryDialog(getContainer().getShell(),
                SWT.SAVE);
        dialog.setMessage("Choose a destination directory for the PDF document."); //$NON-NLS-1$
        dialog.setText("Destination Directory"); //$NON-NLS-1$
        dialog.setFilterPath(getDestinationDir());
        String selectedDirectoryName = dialog.open();

        //set chosen directory on the wizard page
        if (selectedDirectoryName != null) {
            setErrorMessage(null);
            setDestinationDir(selectedDirectoryName);
View Full Code Here

        folderButton.setText("...");
        folderButton.addSelectionListener(new org.eclipse.swt.events.SelectionAdapter(){
            public void widgetSelected( org.eclipse.swt.events.SelectionEvent e ) {
                DirectoryDialog directoryDialog = new DirectoryDialog(fileSelectionArea.getShell(), SWT.OPEN);
                directoryDialog.setText("Select geopaparazzi folder");
                geopaparazziFolderPath = directoryDialog.open();
                if (geopaparazziFolderPath == null || geopaparazziFolderPath.length() < 1) {
                    geopaparazziFolderText.setText("");
                } else {
                    geopaparazziFolderText.setText(geopaparazziFolderPath);
                }
View Full Code Here

        outputFolderButton.setText("...");
        outputFolderButton.addSelectionListener(new org.eclipse.swt.events.SelectionAdapter(){
            public void widgetSelected( org.eclipse.swt.events.SelectionEvent e ) {
                DirectoryDialog directoryDialog = new DirectoryDialog(fileSelectionArea.getShell(), SWT.SAVE);
                directoryDialog.setText("Select output folder");
                outputFolderPath = directoryDialog.open();
                if (outputFolderPath == null || outputFolderPath.length() < 1) {
                    outputFolderText.setText("");
                } else {
                    outputFolderText.setText(outputFolderPath);
                }
View Full Code Here

        }

        public void widgetSelected(SelectionEvent e) {
            DirectoryDialog d = new DirectoryDialog(e.widget.getDisplay()
                    .getActiveShell());
            String selection = d.open();
            if (selection != null) {
                destText.setText(selection);
            }
        }
View Full Code Here

        outFolderButton.setLayoutData(new GridData(SWT.BEGINNING, SWT.CENTER, false, false));
        outFolderButton.setText("..."); //$NON-NLS-1$
        outFolderButton.addSelectionListener(new org.eclipse.swt.events.SelectionAdapter(){
            public void widgetSelected( org.eclipse.swt.events.SelectionEvent e ) {
                DirectoryDialog folderDialog = new DirectoryDialog(outFolderButton.getShell(), SWT.OPEN);
                String path = folderDialog.open();
                if (path == null || path.length() < 1) {
                    outFolderText.setText(""); //$NON-NLS-1$
                    folderPath = null;
                } else {
                    outFolderText.setText(path);
View Full Code Here

        }

        public void widgetSelected(SelectionEvent e) {
            DirectoryDialog d = new DirectoryDialog(e.widget.getDisplay()
                    .getActiveShell());
            String selection = d.open();
            if (selection != null) {
                destText.setText(selection);
            }
        }
View Full Code Here

        wkspaceButton.setLayoutData(new GridData(SWT.BEGINNING, SWT.CENTER, false, false));
        wkspaceButton.setText("..."); //$NON-NLS-1$
        wkspaceButton.addSelectionListener(new org.eclipse.swt.events.SelectionAdapter(){
            public void widgetSelected( org.eclipse.swt.events.SelectionEvent e ) {
                DirectoryDialog fileDialog = new DirectoryDialog(parent.getShell(), SWT.OPEN);
                String path = fileDialog.open();
                if (path == null || path.length() < 1) {
                    wkspaceText.setText(""); //$NON-NLS-1$
                } else {
                    wkspaceText.setText(path);
                }
View Full Code Here

            FileDialog browse = new FileDialog(parent.getShell(), SWT.OPEN);
            browse.setFilterExtensions(new String[]{wrapExtension(extension)});
            path = browse.open();
        } else {
            DirectoryDialog browse = new DirectoryDialog(parent.getShell(), SWT.OPEN);
            path = browse.open();
        }

        if (path != null) {
            String text = null;
            if (File.class.isAssignableFrom(targetClass)) {
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.