コード例 #1
0
 /** {@inheritDoc} */
 protected INewWizard createWizard() throws CoreException {
   BPListElement newEntrie =
       new BPListElement(fSelectedProject, IBuildpathEntry.BPE_SOURCE, false);
   BPListElement[] existing = BPListElement.createFromExisting(fSelectedProject);
   boolean isProjectSrcFolder = BPListElement.isProjectSourceFolder(existing, fSelectedProject);
   fAddSourceFolderWizard =
       new AddSourceFolderWizard(
           existing, newEntrie, fIsLinked, false, false, isProjectSrcFolder, isProjectSrcFolder);
   return fAddSourceFolderWizard;
 }
コード例 #2
0
 @Override
 public String getCPListElementText(BPListElement cpentry) {
   String result = LabelProviderUtil.getVariableName(cpentry.getPath(), cpentry.getEntryKind());
   if (result == null) {
     result = super.getCPListElementText(cpentry);
   }
   if (PharUIUtil.isInvalidPharBuildEntry(cpentry)) {
     result = result + fInvalidLabel;
   }
   return result;
 }
コード例 #3
0
  protected ImageDescriptor getCPListElementBaseImage(BPListElement cpentry) {

    if (cpentry.getEntryKind() == IBuildpathEntry.BPE_LIBRARY) {
      return DLTKPluginImages.getDescriptor(DLTKPluginImages.IMG_OBJS_LIBRARY);
    } else if (cpentry.getEntryKind() == IBuildpathEntry.BPE_SOURCE) {
      // handling Folder special case - need to decide if it's in the
      // build path or not.
      ImageDescriptor folderBaseImage = getFolderBaseImage(cpentry.getResource());
      if (null != folderBaseImage) return folderBaseImage;
    }
    return super.getCPListElementBaseImage(cpentry);
  }