Package fitedit.resource

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


    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

  @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

  @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

    progressMonitor.done();
  }

  @Override
  public String getElementName(Object item) {
    FitResource r = (FitResource) item;
    return r.getName();
  }
View Full Code Here

TOP

Related Classes of fitedit.resource.FitResource

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.