Lines 36-41
Link Here
|
36 |
private static final String ATTR_NBM_HOME_PAGE = "nbmhomepage"; // NOI18N |
36 |
private static final String ATTR_NBM_HOME_PAGE = "nbmhomepage"; // NOI18N |
37 |
private static final String ATTR_NBM_FILE_NAME = "nbmfilename"; // NOI18N |
37 |
private static final String ATTR_NBM_FILE_NAME = "nbmfilename"; // NOI18N |
38 |
private static final String ATTR_NBM_NEEDS_RESTART = "nbmneedsrestart"; // NOI18N |
38 |
private static final String ATTR_NBM_NEEDS_RESTART = "nbmneedsrestart"; // NOI18N |
|
|
39 |
private static final String ATTR_NBM_IS_GLOBAL = "nbmisglobal"; // NOI18N |
39 |
private static final String ATTR_NBM_RELEASE_DATE = "nbmreleasedate"; // NOI18N |
40 |
private static final String ATTR_NBM_RELEASE_DATE = "nbmreleasedate"; // NOI18N |
40 |
private static final String ATTR_NBM_MODULE_AUTHOR = "nbmmoduleauthor"; // NOI18N |
41 |
private static final String ATTR_NBM_MODULE_AUTHOR = "nbmmoduleauthor"; // NOI18N |
41 |
|
42 |
|
Lines 69-75
Link Here
|
69 |
return module; |
70 |
return module; |
70 |
}*/ |
71 |
}*/ |
71 |
|
72 |
|
72 |
public void putModule(String name, String codename, String path, String nbmfilename, String nbmhomepage, String nbmneedsrestart, String nbmreleasedate, String nbmmoduleauthor, String[] files) { |
73 |
public void putModule(String name, String codename, String path, String nbmfilename, String nbmhomepage, String nbmneedsrestart, String nbmreleasedate, String nbmmoduleauthor, String nbmisglobal, String[] files) { |
73 |
Module modByName = tracking.getModule(name); |
74 |
Module modByName = tracking.getModule(name); |
74 |
Module modByCodeName = tracking.getModuleByCodeName(codename); |
75 |
Module modByCodeName = tracking.getModuleByCodeName(codename); |
75 |
Module module = null; |
76 |
Module module = null; |
Lines 95-100
Link Here
|
95 |
module.setNbmNeedsRestart(nbmneedsrestart); |
96 |
module.setNbmNeedsRestart(nbmneedsrestart); |
96 |
if (module.getNbmReleaseDate().equals("")) // NOI18N |
97 |
if (module.getNbmReleaseDate().equals("")) // NOI18N |
97 |
module.setNbmReleaseDate(nbmreleasedate); |
98 |
module.setNbmReleaseDate(nbmreleasedate); |
|
|
99 |
if (module.getNbmIsGlobal().equals ("")) { // NOI18N |
100 |
module.setNbmIsGlobal(nbmisglobal); |
101 |
} |
98 |
/** |
102 |
/** |
99 |
System.out.println(" module == "+name); |
103 |
System.out.println(" module == "+name); |
100 |
System.out.println(" path == "+path); |
104 |
System.out.println(" path == "+path); |
Lines 103-108
Link Here
|
103 |
System.out.println(" homepage == "+module.getNbmHomePage()); |
107 |
System.out.println(" homepage == "+module.getNbmHomePage()); |
104 |
System.out.println(" author == "+module.getNbmModuleAuthor()); |
108 |
System.out.println(" author == "+module.getNbmModuleAuthor()); |
105 |
System.out.println(" needsrestart == "+module.getNbmNeedsRestart()); |
109 |
System.out.println(" needsrestart == "+module.getNbmNeedsRestart()); |
|
|
110 |
System.out.println(" global == "+module.getNbmIsGlobal ()); |
106 |
System.out.println(" releasedate == "+module.getNbmReleaseDate()); |
111 |
System.out.println(" releasedate == "+module.getNbmReleaseDate()); |
107 |
*/ |
112 |
*/ |
108 |
module.putFiles( files ); |
113 |
module.putFiles( files ); |
Lines 143-148
Link Here
|
143 |
e_module.setAttribute(ATTR_NBM_HOME_PAGE, mod.getNbmHomePage()); |
148 |
e_module.setAttribute(ATTR_NBM_HOME_PAGE, mod.getNbmHomePage()); |
144 |
e_module.setAttribute(ATTR_NBM_MODULE_AUTHOR, mod.getNbmModuleAuthor()); |
149 |
e_module.setAttribute(ATTR_NBM_MODULE_AUTHOR, mod.getNbmModuleAuthor()); |
145 |
e_module.setAttribute(ATTR_NBM_NEEDS_RESTART, mod.getNbmNeedsRestart()); |
150 |
e_module.setAttribute(ATTR_NBM_NEEDS_RESTART, mod.getNbmNeedsRestart()); |
|
|
151 |
e_module.setAttribute(ATTR_NBM_IS_GLOBAL, mod.getNbmIsGlobal ()); |
146 |
e_module.setAttribute(ATTR_NBM_RELEASE_DATE, mod.getNbmReleaseDate()); |
152 |
e_module.setAttribute(ATTR_NBM_RELEASE_DATE, mod.getNbmReleaseDate()); |
147 |
e_module_tracking.appendChild( e_module ); |
153 |
e_module_tracking.appendChild( e_module ); |
148 |
Iterator it3 = mod.getFiles().iterator(); |
154 |
Iterator it3 = mod.getFiles().iterator(); |
Lines 239-244
Link Here
|
239 |
if (attr.getName().equals(ATTR_NBM_NEEDS_RESTART)) { // <module nbmneedsrestart="???"> |
245 |
if (attr.getName().equals(ATTR_NBM_NEEDS_RESTART)) { // <module nbmneedsrestart="???"> |
240 |
module.setNbmNeedsRestart( attr.getValue() ); |
246 |
module.setNbmNeedsRestart( attr.getValue() ); |
241 |
} |
247 |
} |
|
|
248 |
if (attr.getName().equals(ATTR_NBM_IS_GLOBAL)) { // <module nbmisglobal="???"> |
249 |
module.setNbmIsGlobal( attr.getValue() ); |
250 |
} |
242 |
if (attr.getName().equals(ATTR_NBM_RELEASE_DATE)) { // <module nbmreleasedate="???"> |
251 |
if (attr.getName().equals(ATTR_NBM_RELEASE_DATE)) { // <module nbmreleasedate="???"> |
243 |
module.setNbmReleaseDate( attr.getValue() ); |
252 |
module.setNbmReleaseDate( attr.getValue() ); |
244 |
} |
253 |
} |
Lines 335-340
Link Here
|
335 |
/** Holds value of property nbmneedsrestart. */ |
344 |
/** Holds value of property nbmneedsrestart. */ |
336 |
private String nbmneedsrestart = ""; // NOI18N |
345 |
private String nbmneedsrestart = ""; // NOI18N |
337 |
|
346 |
|
|
|
347 |
/** Holds value of property nbmisglobal. */ |
348 |
private String nbmisglobal = ""; // NOI18N |
349 |
|
338 |
/** Holds value of property nbmreleasedate. */ |
350 |
/** Holds value of property nbmreleasedate. */ |
339 |
private String nbmreleasedate = ""; // NOI18N |
351 |
private String nbmreleasedate = ""; // NOI18N |
340 |
|
352 |
|
Lines 417-422
Link Here
|
417 |
void setNbmNeedsRestart (String nbmnr) { |
429 |
void setNbmNeedsRestart (String nbmnr) { |
418 |
if (!(nbmnr == null)) |
430 |
if (!(nbmnr == null)) |
419 |
this.nbmneedsrestart = nbmnr; |
431 |
this.nbmneedsrestart = nbmnr; |
|
|
432 |
} |
433 |
|
434 |
/** Setter for property nbmisglobal */ |
435 |
void setNbmIsGlobal (String isGlobal) { |
436 |
if (!(isGlobal == null)) |
437 |
this.nbmisglobal = isGlobal; |
438 |
} |
439 |
|
440 |
/** Getter for property nbmisglobal */ |
441 |
String getNbmIsGlobal () { |
442 |
return this.nbmisglobal; |
420 |
} |
443 |
} |
421 |
|
444 |
|
422 |
/** Getter for property nbmreleasedate */ |
445 |
/** Getter for property nbmreleasedate */ |