Package bndtools.utils

Examples of bndtools.utils.FileExtensionFilter


                return new Status(IStatus.ERROR, Plugin.PLUGIN_ID, IStatus.ERROR, "", null); //$NON-NLS-1$
            }
        });
        dialog.setAllowMultiple(true);
        dialog.setTitle("JAR File Selection");
        dialog.addFilter(new FileExtensionFilter("jar")); //$NON-NLS-1$
        dialog.setInput(ResourcesPlugin.getWorkspace().getRoot());

        if (dialog.open() == Window.OK) {
            Object[] result = dialog.getResult();
            List<File> added = new ArrayList<File>(result.length);
View Full Code Here


            }
        });
        dialog.setAllowMultiple(false);
        dialog.setTitle("Run File Selection");
        dialog.setMessage("Select the Run File to launch.");
        dialog.addFilter(new FileExtensionFilter(LaunchConstants.EXT_BNDRUN));
        dialog.setInput(ResourcesPlugin.getWorkspace());

        if (dialog.open() == Window.OK) {
            Object[] files = dialog.getResult();
            if (files != null && files.length == 1) {
View Full Code Here

    private void doAddJar() {
        ElementTreeSelectionDialog dialog = new ElementTreeSelectionDialog(getSection().getShell(), new WorkbenchLabelProvider(), new WorkbenchContentProvider());
        dialog.setAllowMultiple(true);
        dialog.setTitle("JAR Selection");
        dialog.setMessage("Select JAR Files to add to the Classpath.");
        dialog.addFilter(new FileExtensionFilter("jar")); //$NON-NLS-1$

        IResource resource = getInputResource();
        dialog.setInput(resource.getProject());

        if (dialog.open() == Window.OK) {
View Full Code Here

                    }
                });
                dialog.setAllowMultiple(true);
                dialog.setTitle("JAR File Selection");
                dialog.setMessage("Select one or more JAR files.");
                dialog.addFilter(new FileExtensionFilter("jar")); //$NON-NLS-1$
                dialog.setInput(ResourcesPlugin.getWorkspace());

                if (dialog.open() == Window.OK) {
                    Object[] files = dialog.getResult();
                    List<IPath> added = new ArrayList<IPath>(files.length);
View Full Code Here

TOP

Related Classes of bndtools.utils.FileExtensionFilter

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.