Method Summary |
|
public static boolean | addDependency(NbModuleProject target, NbModuleProject dependency) Delegates to
Util.addDependency(NbModuleProject,String) . |
public static boolean | addDependency(NbModuleProject target, String codeNameBase) Delegates to
Util.addDependency(NbModuleProjectStringStringSpecificationVersionboolean) . |
public static boolean | addDependency(NbModuleProject target, String codeNameBase, String releaseVersion, SpecificationVersion version, boolean useInCompiler) Makes target project to be dependend on the given
dependency project. |
public static Element | findElement(Element parent, String name, String namespace) Search for an XML element in the direct children of a parent.
DOM provides a similar method but it does a recursive search
which we do not want. |
public static URL | findJavadoc(ModuleDependency dep, NbPlatform platform) Find Javadoc URL for the given module dependency using Javadoc roots of
the given platform. |
public static URL | findJavadocForNetBeansOrgModules(ModuleDependency dep) Find Javadoc URL for NetBeans.org modules. |
public static LocalizedBundleInfo | findLocalizedBundleInfo(FileObject sourceDir, Manifest manifest) Search for an appropriate localized bundle (i.e.
OpenIDE-Module-Localizing-Bundle) entry in the given
manifest taking into account branding and localization
(using
NbBundle.getLocalizingSuffixes ) and returns an
appropriate valid
LocalizedBundleInfo instance. |
public static LocalizedBundleInfo | findLocalizedBundleInfo(File projectDir) Actually deletages to
Util.findLocalizedBundleInfo(FileObject,Manifest) . |
public static LocalizedBundleInfo | findLocalizedBundleInfoFromJAR(File binaryProject) The same as
Util.findLocalizedBundleInfo(FileObject,Manifest) but
searching in the given JAR representing a NetBeans module. |
public static List<Element> | findSubElements(Element parent) Find all direct child elements of an element. |
public static String | findText(Element parent) Extract nested text from an element. |
public static String | getDisplayName(FileObject projectDir) Tries to find
Project in the given directory. |
public static Manifest | getManifest(FileObject manifestFO) |
public static NbModuleProvider.NbModuleType | getModuleType(Project project) Returns
NbModuleProvider.NbModuleType from a project's lookup. |
public static FileObject | getResourceDirectory(Project prj) when ever there is need for non-java files creation or lookup,
use this method to get the right location for all projects. |
public static boolean | isValidJavaFQN(String name) |
public static boolean | isValidSFSPath(String path) |
public static EditableManifest | loadManifest(FileObject manifestFO) Convenience method for loading
EditableManifest from a
FileObject .
Parameters: manifestFO - file representing manifest exception: FileNotFoundException - if the file represented by the givenFileObject does not exists, is a folder rather than a regularfile or is invalid. |
public static EditableProperties | loadProperties(FileObject propsFO) Convenience method for loading
EditableProperties from a
FileObject . |
public static String | normalizeCNB(String value) Normalizes the given value to a regular dotted code name base. |
public static Comparator<Project> | projectDisplayNameComparator() Order projects by display name. |
public static void | scanJarForPackageNames(Set<String> packages, File jarFile) Scans a given jar file for all packages which contains at least one
.class file. |
public static SortedSet<String> | scanProjectForPackageNames(File prjDir) Finds all available packages in a given project directory. |
public static void | storeManifest(FileObject manifestFO, EditableManifest em) Convenience method for storing
EditableManifest into a
FileObject . |
public static void | storeProperties(FileObject propsFO, EditableProperties props) Convenience method for storing
EditableProperties into a
FileObject . |
public static Element | translateXML(Element from, String namespace) Convert an XML fragment from one namespace to another. |
public static URL | urlForDir(File dir) Creates a URL for a directory on disk. |
public static URL | urlForDirOrJar(File location) Creates a URL for a directory on disk or the root of a JAR. |
public static URL | urlForJar(File jar) Creates a URL for the root of a JAR on disk. |