Examples of FitResource


Examples of fitedit.resource.FitResource

  private static final String CONCAT_STRING = " - ";

  @Override
  public String getText(Object element) {
    if (element instanceof FitResource) {
      FitResource r = (FitResource) element;
      return getBasicText(r);
    }

    return super.getText(element);
  }
View Full Code Here

Examples of fitedit.resource.FitResource

    if (returnCode != FitResourceSelectionDialog.OK) {
      return null;
    }

    FitResource r = (FitResource) dialog.getFirstResult();
    if (r == null) {
      return null;
    }

    IFile file = ResourcesPlugin
        .getWorkspace()
        .getRoot()
        .getFile(
            new Path(r.getPath() + IPath.SEPARATOR
                + Constants.CONTENT_TXT));
    if (file == null) {
      return null;
    }
View Full Code Here

Examples of fitedit.resource.FitResource

  @Override
  protected ItemsFilter createFilter() {
    return new ItemsFilter() {
      public boolean matchItem(Object item) {
        FitResource r = (FitResource) item;
        return matches(r.getName());
      }

      public boolean isConsistentItem(Object item) {
        return true;
      }
View Full Code Here

Examples of fitedit.resource.FitResource

  @Override
  protected Comparator getItemsComparator() {
    return new Comparator() {
      public int compare(Object arg0, Object arg1) {
        FitResource a = (FitResource) arg0;
        FitResource b = (FitResource) arg1;

        return a.compareTo(b);
      }
    };
  }
View Full Code Here

Examples of fitedit.resource.FitResource

    progressMonitor.done();
  }

  @Override
  public String getElementName(Object item) {
    FitResource r = (FitResource) item;
    return r.getName();
  }
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.