Examples of ResourceSorter


Examples of org.eclipse.ui.views.navigator.ResourceSorter

    dialog.setTitle(Activator.getResourceString(DIALOG_TITLE));
    dialog.setMessage(Activator.getResourceString(DIALOG_MESSAGE));
    dialog.addFilter(new ConfigFileFilter(new String[] { "xml" }));
    dialog.setValidator(new FileSelectionValidator(true));
    dialog.setInput(element);
    dialog.setSorter(new ResourceSorter(ResourceSorter.NAME));
    if (dialog.open() == ElementTreeSelectionDialog.OK) {
      Object[] selection = dialog.getResult();
      if (selection != null && selection.length > 0) {
        for (int i = 0; i < selection.length; i++) {
          IFile file = (IFile) selection[i];
View Full Code Here

Examples of org.eclipse.ui.views.navigator.ResourceSorter

    dialog.setTitle(Activator.getResourceString(DIALOG_TITLE));
    dialog.setMessage(Activator.getResourceString(DIALOG_MESSAGE));
    dialog.addFilter(new ConfigFileFilter(new String[] { "xml" }));
    dialog.setValidator(new FileSelectionValidator(true));
    dialog.setInput(element);
    dialog.setSorter(new ResourceSorter(ResourceSorter.NAME));
    dialog.setInitialSelections(contentProvider.getElements(project
        .getProject()));

    if (dialog.open() == ElementTreeSelectionDialog.OK) {
      Object[] selection = dialog.getResult();
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.