Java Code Examples for org.openide.modules.ModuleInfo#getCodeName()
The following examples show how to use
org.openide.modules.ModuleInfo#getCodeName() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: XMLSettingsSupport.java From netbeans with Apache License 2.0 | 6 votes |
private static void storeModule(ModuleInfo mi, PrintWriter pw) throws IOException { if (mi == null) return; String modulName = mi.getCodeName(); SpecificationVersion spec = mi.getSpecificationVersion(); StringBuffer sb = new StringBuffer (80); sb.append(" <module"); // NOI18N if (modulName != null && modulName.length() != 0) { sb.append(" name=\"").append(modulName).append('"');// NOI18N } if (spec != null) { sb.append(" spec=\"").append(spec.toString()).append('"');// NOI18N } sb.append("/>"); // NOI18N pw.println(sb.toString()); }
Example 2
Source File: EnabledModulesCollector.java From netbeans with Apache License 2.0 | 5 votes |
static String[] getModuleNames(List<ModuleInfo> modules) { String[] names = new String[modules.size()]; int i = 0; for (ModuleInfo m : modules) { SpecificationVersion specVersion = m.getSpecificationVersion(); if (specVersion != null) { names[i++] = m.getCodeName() + " [" + specVersion.toString() + "]"; } else { names[i++] = m.getCodeName(); } } return names; }