private void editElementEntry(CPElement element) {
    IPath path = (IPath) element.getAttribute(CPElement.BASE_REF);
    if (path != null && !path.equals(Path.EMPTY)) {
      return;
    } else if (element.getEntryKind() == IPathEntry.CDT_MACRO) {
      addSymbol(element);
    } else if (element.getEntryKind() == IPathEntry.CDT_INCLUDE) {
      path = (IPath) element.getAttribute(CPElement.BASE);
      if (path != null && !path.equals(Path.EMPTY)) {
        CPElement[] includes = openWorkspacePathEntryDialog(null);
        if (includes != null && includes.length > 0) {
          includes[0].setExported(element.isExported());
        }
      } else {
        addInclude(element);
      }
    } else if (element.getEntryKind() == IPathEntry.CDT_CONTAINER) {
      CPElement[] res = null;

      res = openContainerSelectionDialog(element);
      if (res != null && res.length > 0) {
        CPElement curr = res[0];
        curr.setExported(element.isExported());
        fTopGroup.replaceChild(element, curr);
        fIncludeSymPathsList.refresh();
      }
    }
  }
 private void exportEntry() {
   CPElement element = (CPElement) getSelection().get(0);
   element.setExported(!element.isExported()); // toggle
   fIncludeSymPathsList.refresh(element);
 }
 private void addExport(CPElement cpentry, StringBuffer str) {
   if (bShowExported && cpentry.isExported()) {
     str.append(' ');
     str.append(CPathEntryMessages.CPElementLabelProvider_export_label);
   }
 }