Package org.springframework.ide.eclipse.ui.dialogs

Examples of org.springframework.ide.eclipse.ui.dialogs.FilteredElementTreeSelectionDialog.addFilter()


  private void handleAddButtonPressed() {
    SelectionStatusDialog dialog;
    if (SpringCoreUtils.isEclipseSameOrNewer(3, 2)) {
      FilteredElementTreeSelectionDialog selDialog = new FilteredElementTreeSelectionDialog(SpringUIUtils
          .getStandardDisplay().getActiveShell(), new LabelProvider(), new NonJavaResourceContentProvider());
      selDialog.addFilter(new ConfigFileFilter(project.getConfigSuffixes()));
      selDialog.setValidator(new StorageSelectionValidator(true));
      selDialog.setInput(project.getProject());
      selDialog.setSorter(new JavaElementSorter());
      dialog = selDialog;
    }
View Full Code Here


      dialog = selDialog;
    }
    else {
      ElementTreeSelectionDialog selDialog = new ElementTreeSelectionDialog(SpringUIUtils.getStandardDisplay()
          .getActiveShell(), new LabelProvider(), new NonJavaResourceContentProvider());
      selDialog.addFilter(new ConfigFileFilter(project.getConfigSuffixes()));
      selDialog.setValidator(new StorageSelectionValidator(true));
      selDialog.setInput(project.getProject());
      selDialog.setSorter(new JavaElementSorter());
      dialog = selDialog;
    }
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.