Package org.eclipse.jdt.ui

Examples of org.eclipse.jdt.ui.JavaElementComparator


    data.widthHint= SIZING_SELECTION_WIDGET_WIDTH;
    fTableViewer.getTable().setLayoutData(data);

    fTableViewer.setLabelProvider(new JavaElementLabelProvider());
    fTableViewer.setContentProvider(new StandardJavaElementContentProvider());
    fTableViewer.setComparator(new JavaElementComparator());
    fTableViewer.getControl().setFont(font);

//    Button checkbox= new Button(composite, SWT.CHECK);
//    checkbox.setText(PreferencesMessages.ProjectSelectionDialog_filter);
//    checkbox.setLayoutData(new GridData(SWT.BEGINNING, SWT.CENTER, true, false));
View Full Code Here


    final DecoratingLabelProvider provider = new DecoratingLabelProvider(
        new JavaElementLabelProvider(labelFlags),
        new ProblemsLabelDecorator(null));
    ElementTreeSelectionDialog dialog = new ElementTreeSelectionDialog(
        shell, provider, new StandardJavaElementContentProvider());
    dialog.setComparator(new JavaElementComparator());
    dialog.setAllowMultiple(false);
    dialog.setValidator(new ISelectionStatusValidator() {
      public IStatus validate(Object[] selection) {
        StatusInfo res = new StatusInfo();
        // only single selection
View Full Code Here

    final DecoratingLabelProvider provider = new DecoratingLabelProvider(
        new JavaElementLabelProvider(labelFlags),
        new ProblemsLabelDecorator(null));
    ElementTreeSelectionDialog dialog = new ElementTreeSelectionDialog(
        shell, provider, new WorkbenchContentProvider());
    dialog.setComparator(new JavaElementComparator());
    dialog.setAllowMultiple(false);
    dialog.setValidator(new ISelectionStatusValidator() {
      public IStatus validate(Object[] selection) {
        StatusInfo res = new StatusInfo();
        // only single selection
View Full Code Here

    StandardJavaElementContentProvider provider= new StandardJavaElementContentProvider();
    ILabelProvider labelProvider= new JavaElementLabelProvider(JavaElementLabelProvider.SHOW_DEFAULT);
    ElementTreeSelectionDialog dialog= new ElementTreeSelectionDialog(getShell(), labelProvider, provider);
    dialog.setValidator(validator);
    dialog.setComparator(new JavaElementComparator());
    dialog.setTitle(NewWizardMessages.NewContainerWizardPage_ChooseSourceContainerDialog_title);
    dialog.setMessage(NewWizardMessages.NewContainerWizardPage_ChooseSourceContainerDialog_description);
    dialog.addFilter(filter);
    dialog.setInput(JavaCore.create(fWorkspaceRoot));
    dialog.setInitialSelection(initElement);
View Full Code Here

    StandardJavaElementContentProvider provider= new StandardJavaElementContentProvider();
    ILabelProvider labelProvider= new JavaElementLabelProvider(JavaElementLabelProvider.SHOW_DEFAULT);
    ElementTreeSelectionDialog dialog= new ElementTreeSelectionDialog(getShell(), labelProvider, provider);
    dialog.setValidator(validator);
    dialog.setComparator(new JavaElementComparator());
    dialog.setTitle(NewWizardMessages.NewContainerWizardPage_ChooseSourceContainerDialog_title);
    dialog.setMessage(NewWizardMessages.NewContainerWizardPage_ChooseSourceContainerDialog_description);
    dialog.addFilter(filter);
    dialog.setInput(JavaCore.create(fWorkspaceRoot));
    dialog.setInitialSelection(initElement);
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.ui.JavaElementComparator

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.