public NodeList createNodes(Project project) {

      //            ImportantFilesLookupItem item =
      // project.getLookup().lookup(ImportantFilesLookupItem.class);
      //            if (item != null) {
      try {
        ImportantFilesNode nd = new ImportantFilesNode(project);
        return NodeFactorySupport.fixedNodeList(nd);
      } catch (DataObjectNotFoundException ex) {
        Exceptions.printStackTrace(ex);
      }
      //            }

      return NodeFactorySupport.fixedNodeList();
    }
Example #2
0
  public static final NodeList<?> createJedaConfigurationNode(final Project project) {
    final ProjectType projectType = lookup(project);
    if (projectType == null) {
      return NodeFactorySupport.fixedNodeList();
    }

    final Node node =
        ProjectFile.get(project, JEDA_PROPERTIES)
            .createNode(
                "Jeda Configuration",
                new InfoAction(projectType, project),
                new UpdateLibraryAction(projectType, project));

    if (node == null) {
      return NodeFactorySupport.fixedNodeList();
    }

    return NodeFactorySupport.fixedNodeList(node);
  }