1 19 20 package org.netbeans.modules.autoupdate; 21 22 import java.io.*; 23 import java.util.*; 24 import java.util.jar.Attributes ; 25 26 import org.openide.modules.Dependency; 27 import org.openide.modules.ModuleInfo; 28 29 31 class IdeDescription extends Object { 32 33 private static ModuleInfo ideDescription = null; 34 35 36 private IdeDescription ( ) { 37 } 38 39 40 41 static String getName() { 42 return Dependency.IDE_NAME; 43 } 44 45 46 static ModuleInfo getIdeDescription() { 47 48 if ( ideDescription == null ) { 49 Attributes attrs = new Attributes (); 50 51 attrs.putValue("OpenIDE-Module", Dependency.IDE_NAME); if (Dependency.IDE_SPEC != null) { 53 attrs.putValue("OpenIDE-Module-Specification-Version", Dependency.IDE_SPEC.toString()); } 55 if (Dependency.IDE_IMPL != null) { 56 attrs.putValue("OpenIDE-Module-Implementation-Version", Dependency.IDE_IMPL); } 58 attrs.putValue("OpenIDE-Module-Name", "IDE Core"); 61 ideDescription = new DummyModuleInfo(attrs); 62 } 63 return ideDescription; 64 } 65 } 66 | Popular Tags |