Examples of WorkbenchLabelProvider


Examples of org.eclipse.ui.model.WorkbenchLabelProvider

       
        _detailSection.setVisible(false);
    }

    protected void handleBrowserLayout(Text textControl) {
        ElementTreeSelectionDialog dialog = new ElementTreeSelectionDialog(Display.getCurrent().getActiveShell(), new WorkbenchLabelProvider(), new BaseWorkbenchContentProvider());
        IFile syncInfo = ((IFileEditorInput)getEditorInput()).getFile();
        WGADesignStructureHelper helper = new WGADesignStructureHelper(syncInfo);       
        dialog.setInput(helper.getTmlRoot());
        dialog.setAllowMultiple(false);
        dialog.setHelpAvailable(false);
View Full Code Here

Examples of org.eclipse.ui.model.WorkbenchLabelProvider

        setControl(composite);
    }

    void doAdd() {
        ElementTreeSelectionDialog dialog = new ElementTreeSelectionDialog(getShell(), new WorkbenchLabelProvider(), new WorkbenchContentProvider());
        dialog.setValidator(new ISelectionStatusValidator() {
            public IStatus validate(Object[] selection) {
                if (selection.length > 0 && selection[0] instanceof IFile) {
                    return new Status(IStatus.OK, Plugin.PLUGIN_ID, IStatus.OK, "", null); //$NON-NLS-1$
                }
View Full Code Here

Examples of org.eclipse.ui.model.WorkbenchLabelProvider

        return projectGroup;
    }

    void doBrowseProject() {
        ElementListSelectionDialog dialog = new ElementListSelectionDialog(launchTargetTxt.getShell(), new WorkbenchLabelProvider());
        dialog.setTitle("Project Selection");

        dialog.setMessage("Select a project to constrain your search.");

        List<IProject> projects = loadProjects();
View Full Code Here

Examples of org.eclipse.ui.model.WorkbenchLabelProvider

            launchTargetTxt.setText(selected.getName());
        }
    }

    void doBrowseBndrun() {
        ElementTreeSelectionDialog dialog = new ElementTreeSelectionDialog(launchTargetTxt.getShell(), new WorkbenchLabelProvider(), new WorkbenchContentProvider());
        dialog.setValidator(new ISelectionStatusValidator() {
            public IStatus validate(Object[] selection) {
                if (selection.length > 0 && selection[0] instanceof IFile) {
                    return new Status(IStatus.OK, Plugin.PLUGIN_ID, IStatus.OK, "", null); //$NON-NLS-1$
                }
View Full Code Here

Examples of org.eclipse.ui.model.WorkbenchLabelProvider

        gd.heightHint = 75;
        table.setLayoutData(gd);
    }

    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$
View Full Code Here

Examples of org.eclipse.ui.model.WorkbenchLabelProvider

            }
        }
    }

    private void doAddFolder() {
        ElementTreeSelectionDialog dialog = new ElementTreeSelectionDialog(getSection().getShell(), new WorkbenchLabelProvider(), new WorkbenchContentProvider());
        dialog.setAllowMultiple(true);
        dialog.setTitle("Class Folder Selection");
        dialog.setMessage("Select Class Folders to add to the Classpath.");
        dialog.addFilter(new ClassFolderFilter());
View Full Code Here

Examples of org.eclipse.ui.model.WorkbenchLabelProvider

    private ILabelProvider provider;
   
    public OpenFileIconsLayer() {
        this.imageDesc = CodemapIcons.descriptor(FILE);
        // TODO: dispose the LabelProvider when no longer needed
        this.provider = new WorkbenchLabelProvider();
    }
View Full Code Here

Examples of org.eclipse.ui.model.WorkbenchLabelProvider

        tree.setLayoutData(data);

        viewer = new CheckboxTreeViewer(tree);
        IProject base = getProjectModel().getProject();
        viewer.setContentProvider(new BaseWorkbenchContentProvider());
        viewer.setLabelProvider(new WorkbenchLabelProvider());
        viewer.addCheckStateListener(this);
        resourcesFilter = new ExcludedResourcesFilter();
        viewer.addFilter(resourcesFilter);
        viewer.setInput(base);
View Full Code Here

Examples of org.eclipse.ui.model.WorkbenchLabelProvider

                        updateFile(null);
                    }
                }
            }
        });
        viewer.setLabelProvider(new WorkbenchLabelProvider());

        tree.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));

        return composite;
    }
View Full Code Here

Examples of org.eclipse.ui.model.WorkbenchLabelProvider

            final IProject project = (IProject) ((IStructuredSelection) fSelection)
                    .getFirstElement();

            ElementTreeSelectionDialog dialog = new ElementTreeSelectionDialog(
                    getDisplay().getActiveShell(),
                    new WorkbenchLabelProvider(),
                    new BaseWorkbenchContentProvider());
            dialog.setMessage("Select content sync root location (containing the jcr root)");
            dialog.setTitle("Content Sync Root");
            IContainer initialContainer = ProjectHelper
                    .getInferredContentProjectContentRoot(project);
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.