KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mmbase > applications > packaging > projects > Target


1 /*
2  * This software is OSI Certified Open Source Software.
3  * OSI Certified is a certification mark of the Open Source Initiative.
4  * The license (Mozilla version 1.0) can be read at the MMBase site.
5  * See http://www.MMBase.org/license
6  */

7 package org.mmbase.applications.packaging.projects;
8
9 import java.io.DataOutputStream JavaDoc;
10 import java.io.File JavaDoc;
11 import java.io.FileOutputStream JavaDoc;
12 import java.util.ArrayList JavaDoc;
13 import java.util.HashMap JavaDoc;
14 import java.util.Iterator JavaDoc;
15
16 import org.mmbase.applications.packaging.BundleManager;
17 import org.mmbase.applications.packaging.PackageManager;
18 import org.mmbase.applications.packaging.ProviderManager;
19 import org.mmbase.applications.packaging.bundlehandlers.BundleInterface;
20 import org.mmbase.applications.packaging.packagehandlers.PackageInterface;
21 import org.mmbase.applications.packaging.projects.creators.CreatorInterface;
22 import org.mmbase.applications.packaging.providerhandlers.ProviderInterface;
23 import org.mmbase.applications.packaging.util.ExtendedDocumentReader;
24 import org.mmbase.util.logging.Logger;
25 import org.mmbase.util.logging.Logging;
26
27 /**
28  * @author Daniel Ockeloen
29  *
30  */

31 public class Target {
32
33     // logger
34
private static Logger log = Logging.getLoggerInstance(Target.class.getName());
35
36     String JavaDoc name;
37     String JavaDoc depends;
38     String JavaDoc path;
39     String JavaDoc basedir = "";
40     String JavaDoc type;
41     String JavaDoc publishprovider;
42     String JavaDoc publishsharepassword;
43     boolean publishstate;
44     boolean isbundle;
45     private ArrayList JavaDoc screenshots = new ArrayList JavaDoc();
46     private ArrayList JavaDoc starturls = new ArrayList JavaDoc();
47     HashMap JavaDoc items = new HashMap JavaDoc();
48     ExtendedDocumentReader reader;
49     Project parent;
50
51     CreatorInterface creator;
52
53
54     /**
55      *Constructor for the Target object
56      *
57      * @param name Description of the Parameter
58      */

59     public Target(Project parent,String JavaDoc name) {
60         this.name = name;
61     this.parent = parent;
62         depends = "";
63         type = "basic/macro";
64         isbundle = false;
65     }
66
67
68     /**
69      * Gets the reader attribute of the Target object
70      *
71      * @return The reader value
72      */

73     public ExtendedDocumentReader getReader() {
74         return reader;
75     }
76
77
78     /**
79      * Gets the name attribute of the Target object
80      *
81      * @return The name value
82      */

83     public String JavaDoc getName() {
84         return name;
85     }
86
87
88     /**
89      * Gets the depends attribute of the Target object
90      *
91      * @return The depends value
92      */

93     public String JavaDoc getDepends() {
94         return depends;
95     }
96
97     public ArrayList JavaDoc getScreenshots() {
98         return screenshots;
99     }
100
101     public ArrayList JavaDoc getStarturls() {
102         return starturls;
103     }
104
105     /**
106      * Gets the path attribute of the Target object
107      *
108      * @return The path value
109      */

110     public String JavaDoc getPath() {
111         return path;
112     }
113
114     public String JavaDoc getFullPath() {
115         return basedir+path;
116     }
117
118
119     /**
120      * Gets the type attribute of the Target object
121      *
122      * @return The type value
123      */

124     public String JavaDoc getType() {
125         return type;
126     }
127
128
129     /**
130      * Sets the bundle attribute of the Target object
131      *
132      * @param state The new bundle value
133      */

134     public void setBundle(boolean state) {
135         isbundle = state;
136     }
137
138     public String JavaDoc getState() {
139     return creator.getState();
140     }
141
142
143     /**
144      * Gets the bundle attribute of the Target object
145      *
146      * @return The bundle value
147      */

148     public boolean isBundle() {
149         return isbundle;
150     }
151
152
153     /**
154      * Sets the creator attribute of the Target object
155      *
156      * @param cr The new creator value
157      */

158     public void setCreator(CreatorInterface cr) {
159         creator = cr;
160         File JavaDoc file = new File JavaDoc(basedir + path);
161         if (file.exists()) {
162             reader = new ExtendedDocumentReader(basedir + path, creator.getClass());
163             cr.decodeItems(this);
164         }
165     }
166
167     public CreatorInterface getCreator() {
168     return creator;
169     }
170
171
172     /**
173      * Sets the defaults attribute of the Target object
174      */

175     public void setDefaults() {
176         creator.setDefaults(this);
177     }
178
179
180     /**
181      * Sets the depends attribute of the Target object
182      *
183      * @param depends The new depends value
184      */

185     public void setDepends(String JavaDoc depends) {
186         this.depends = depends;
187     }
188
189
190     /**
191      * Sets the baseDir attribute of the Target object
192      *
193      * @param basedir The new baseDir value
194      */

195     public void setBaseDir(String JavaDoc basedir) {
196         this.basedir = basedir;
197     }
198
199
200     /**
201      * Gets the baseDir attribute of the Target object
202      *
203      * @return The baseDir value
204      */

205     public String JavaDoc getBaseDir() {
206         return basedir;
207     }
208
209
210     /**
211      * Sets the path attribute of the Target object
212      *
213      * @param path The new path value
214      */

215     public void setPath(String JavaDoc path) {
216     // map to internal path
217
path=path.replace('\\',File.separatorChar);
218     path=path.replace('/',File.separatorChar);
219         this.path = path;
220     }
221
222
223     /**
224      * Sets the type attribute of the Target object
225      *
226      * @param type The new type value
227      */

228     public void setType(String JavaDoc type) {
229         this.type = type;
230     }
231
232
233     /**
234      * Gets the lastVersion attribute of the Target object
235      *
236      * @return The lastVersion value
237      */

238     public int getLastVersion() {
239         return creator.getLastVersion(this);
240     }
241
242
243     /**
244      * Gets the nextVersion attribute of the Target object
245      *
246      * @return The nextVersion value
247      */

248     public int getNextVersion() {
249         return creator.getNextVersion(this);
250     }
251
252
253     /**
254      * Gets the lastDate attribute of the Target object
255      *
256      * @return The lastDate value
257      */

258     public String JavaDoc getLastDate() {
259         return creator.getLastDate(this);
260     }
261
262     public void createPackageThreaded(int version) {
263     creator.createPackageThreaded(this, version);
264     ProviderManager.resetSleepCounter();
265     }
266
267     /**
268      * Description of the Method
269      *
270      * @param version Description of the Parameter
271      * @return Description of the Return Value
272      */

273     public boolean createPackage(int version) {
274     boolean result=creator.createPackage(this, version);
275     if (result) {
276         ProviderManager.resetSleepCounter();
277     }
278     return result;
279     }
280
281
282     /**
283      * Adds a feature to the PackageDepends attribute of the Target object
284      *
285      * @param packageid The feature to be added to the PackageDepends attribute
286      * @param version The feature to be added to the PackageDepends attribute
287      * @return Description of the Return Value
288      */

289     public boolean addPackageDepends(String JavaDoc packageid, String JavaDoc version) {
290         return creator.addPackageDepends(this, packageid, version);
291     }
292
293     public void addScreenshot(String JavaDoc name, String JavaDoc file, String JavaDoc description) {
294     screenshots.add(name);
295     screenshots.add(file);
296     screenshots.add(description);
297     }
298
299
300     public void addStarturl(String JavaDoc name, String JavaDoc link, String JavaDoc description) {
301     starturls.add(name);
302     starturls.add(link);
303     starturls.add(description);
304     }
305
306
307
308     /**
309      * Description of the Method
310      *
311      * @param packageid Description of the Parameter
312      * @param version Description of the Parameter
313      * @param versionmode Description of the Parameter
314      * @return Description of the Return Value
315      */

316     public boolean delPackageDepends(String JavaDoc packageid, String JavaDoc version, String JavaDoc versionmode) {
317         return creator.delPackageDepends(this, packageid, version, versionmode);
318     }
319
320
321     /**
322      * Sets the packageDepends attribute of the Target object
323      *
324      * @param packageid The new packageDepends value
325      * @param oldversion The new packageDepends value
326      * @param oldversionmode The new packageDepends value
327      * @param newversion The new packageDepends value
328      * @param newversionmode The new packageDepends value
329      * @return Description of the Return Value
330      */

331     public boolean setPackageDepends(String JavaDoc packageid, String JavaDoc oldversion, String JavaDoc oldversionmode, String JavaDoc newversion, String JavaDoc newversionmode) {
332         return creator.setPackageDepends(this, packageid, oldversion, oldversionmode, newversion, newversionmode);
333     }
334
335
336     /**
337      * Gets the packageSteps attribute of the Target object
338      *
339      * @return The packageSteps value
340      */

341     public Iterator JavaDoc getPackageSteps() {
342         return creator.getPackageSteps();
343     }
344
345
346     /**
347      * Gets the packageSteps attribute of the Target object
348      *
349      * @param logid Description of the Parameter
350      * @return The packageSteps value
351      */

352     public Iterator JavaDoc getPackageSteps(int logid) {
353         return creator.getPackageSteps(logid);
354     }
355
356
357     /**
358      * Description of the Method
359      */

360     public void clearPackageSteps() {
361         creator.clearPackageSteps();
362     }
363
364
365     /**
366      * Gets the maintainer attribute of the Target object
367      *
368      * @return The maintainer value
369      */

370     public String JavaDoc getMaintainer() {
371         return creator.getMaintainer(this);
372     }
373
374
375     /**
376      * Gets the description attribute of the Target object
377      *
378      * @return The description value
379      */

380     public String JavaDoc getDescription() {
381         return creator.getDescription(this);
382     }
383
384
385     /**
386      * Sets the description attribute of the Target object
387      *
388      * @param newdescription The new description value
389      * @return Description of the Return Value
390      */

391     public boolean setDescription(String JavaDoc newdescription) {
392         return creator.setDescription(this, newdescription);
393     }
394
395
396     /**
397      * Sets the name attribute of the Target object
398      *
399      * @param newname The new name value
400      * @return Description of the Return Value
401      */

402     public boolean setName(String JavaDoc newname) {
403         return creator.setName(this, newname);
404     }
405
406
407     /**
408      * Sets the maintainer attribute of the Target object
409      *
410      * @param newmaintainer The new maintainer value
411      * @return Description of the Return Value
412      */

413     public boolean setMaintainer(String JavaDoc newmaintainer) {
414         return creator.setMaintainer(this, newmaintainer);
415     }
416
417
418     /**
419      * Sets the licenseVersion attribute of the Target object
420      *
421      * @param newlicenseversion The new licenseVersion value
422      * @return Description of the Return Value
423      */

424     public boolean setLicenseVersion(String JavaDoc newlicenseversion) {
425         return creator.setLicenseVersion(this, newlicenseversion);
426     }
427
428
429     /**
430      * Sets the licenseType attribute of the Target object
431      *
432      * @param newlicensetype The new licenseType value
433      * @return Description of the Return Value
434      */

435     public boolean setLicenseType(String JavaDoc newlicensetype) {
436         return creator.setLicenseType(this, newlicensetype);
437     }
438
439
440     /**
441      * Adds a feature to the PackageInitiator attribute of the Target object
442      *
443      * @param newname The feature to be added to the PackageInitiator attribute
444      * @param newcompany The feature to be added to the PackageInitiator attribute
445      * @return Description of the Return Value
446      */

447     public boolean addPackageInitiator(String JavaDoc newname, String JavaDoc newcompany) {
448         return creator.addPackageInitiator(this, newname, newcompany);
449     }
450
451
452     /**
453      * Sets the packageInitiator attribute of the Target object
454      *
455      * @param oldname The new packageInitiator value
456      * @param newname The new packageInitiator value
457      * @param oldcompany The new packageInitiator value
458      * @param newcompany The new packageInitiator value
459      * @return Description of the Return Value
460      */

461     public boolean setPackageInitiator(String JavaDoc oldname, String JavaDoc newname, String JavaDoc oldcompany, String JavaDoc newcompany) {
462         return creator.setPackageInitiator(this, oldname, newname, oldcompany, newcompany);
463     }
464
465
466     /**
467      * Description of the Method
468      *
469      * @param oldname Description of the Parameter
470      * @param oldcompany Description of the Parameter
471      * @return Description of the Return Value
472      */

473     public boolean delPackageInitiator(String JavaDoc oldname, String JavaDoc oldcompany) {
474         return creator.delPackageInitiator(this, oldname, oldcompany);
475     }
476
477
478     /**
479      * Adds a feature to the PackageContact attribute of the Target object
480      *
481      * @param newreason The feature to be added to the PackageContact attribute
482      * @param newname The feature to be added to the PackageContact attribute
483      * @param newemail The feature to be added to the PackageContact attribute
484      * @return Description of the Return Value
485      */

486     public boolean addPackageContact(String JavaDoc newreason, String JavaDoc newname, String JavaDoc newemail) {
487         return creator.addPackageContact(this, newreason, newname, newemail);
488     }
489
490
491     /**
492      * Sets the packageContact attribute of the Target object
493      *
494      * @param oldreason The new packageContact value
495      * @param newreason The new packageContact value
496      * @param oldname The new packageContact value
497      * @param newname The new packageContact value
498      * @param oldemail The new packageContact value
499      * @param newemail The new packageContact value
500      * @return Description of the Return Value
501      */

502     public boolean setPackageContact(String JavaDoc oldreason, String JavaDoc newreason, String JavaDoc oldname, String JavaDoc newname, String JavaDoc oldemail, String JavaDoc newemail) {
503         return creator.setPackageContact(this, oldreason, newreason, oldname, newname, oldemail, newemail);
504     }
505
506
507     /**
508      * Description of the Method
509      *
510      * @param oldreason Description of the Parameter
511      * @param oldname Description of the Parameter
512      * @param oldemail Description of the Parameter
513      * @return Description of the Return Value
514      */

515     public boolean delPackageContact(String JavaDoc oldreason, String JavaDoc oldname, String JavaDoc oldemail) {
516         return creator.delPackageContact(this, oldreason, oldname, oldemail);
517     }
518
519
520     /**
521      * Adds a feature to the PackageDeveloper attribute of the Target object
522      *
523      * @param newname The feature to be added to the PackageDeveloper attribute
524      * @param newcompany The feature to be added to the PackageDeveloper attribute
525      * @return Description of the Return Value
526      */

527     public boolean addPackageDeveloper(String JavaDoc newname, String JavaDoc newcompany) {
528         return creator.addPackageDeveloper(this, newname, newcompany);
529     }
530
531
532     /**
533      * Sets the packageDeveloper attribute of the Target object
534      *
535      * @param oldname The new packageDeveloper value
536      * @param newname The new packageDeveloper value
537      * @param oldcompany The new packageDeveloper value
538      * @param newcompany The new packageDeveloper value
539      * @return Description of the Return Value
540      */

541     public boolean setPackageDeveloper(String JavaDoc oldname, String JavaDoc newname, String JavaDoc oldcompany, String JavaDoc newcompany) {
542         return creator.setPackageDeveloper(this, oldname, newname, oldcompany, newcompany);
543     }
544
545
546     /**
547      * Description of the Method
548      *
549      * @param oldname Description of the Parameter
550      * @param oldcompany Description of the Parameter
551      * @return Description of the Return Value
552      */

553     public boolean delPackageDeveloper(String JavaDoc oldname, String JavaDoc oldcompany) {
554         return creator.delPackageDeveloper(this, oldname, oldcompany);
555     }
556
557
558     /**
559      * Adds a feature to the PackageSupporter attribute of the Target object
560      *
561      * @param newcompany The feature to be added to the PackageSupporter attribute
562      * @return Description of the Return Value
563      */

564     public boolean addPackageSupporter(String JavaDoc newcompany) {
565         return creator.addPackageSupporter(this, newcompany);
566     }
567
568
569     /**
570      * Sets the packageSupporter attribute of the Target object
571      *
572      * @param oldcompany The new packageSupporter value
573      * @param newcompany The new packageSupporter value
574      * @return Description of the Return Value
575      */

576     public boolean setPackageSupporter(String JavaDoc oldcompany, String JavaDoc newcompany) {
577         return creator.setPackageSupporter(this, oldcompany, newcompany);
578     }
579
580
581     /**
582      * Description of the Method
583      *
584      * @param oldcompany Description of the Parameter
585      * @return Description of the Return Value
586      */

587     public boolean delPackageSupporter(String JavaDoc oldcompany) {
588         return creator.delPackageSupporter(this, oldcompany);
589     }
590
591
592     /**
593      * Sets the licenseName attribute of the Target object
594      *
595      * @param newlicensename The new licenseName value
596      * @return Description of the Return Value
597      */

598     public boolean setLicenseName(String JavaDoc newlicensename) {
599         return creator.setLicenseName(this, newlicensename);
600     }
601
602
603     /**
604      * Gets the releaseNotes attribute of the Target object
605      *
606      * @return The releaseNotes value
607      */

608     public String JavaDoc getReleaseNotes() {
609         return creator.getReleaseNotes(this);
610     }
611
612
613     /**
614      * Gets the installationNotes attribute of the Target object
615      *
616      * @return The installationNotes value
617      */

618     public String JavaDoc getInstallationNotes() {
619         return creator.getInstallationNotes(this);
620     }
621
622
623     /**
624      * Gets the packageName attribute of the Target object
625      *
626      * @return The packageName value
627      */

628     public String JavaDoc getPackageName() {
629         return creator.getName(this);
630     }
631
632
633     /**
634      * Gets the licenseType attribute of the Target object
635      *
636      * @return The licenseType value
637      */

638     public String JavaDoc getLicenseType() {
639         return creator.getLicenseType(this);
640     }
641
642
643     /**
644      * Gets the licenseName attribute of the Target object
645      *
646      * @return The licenseName value
647      */

648     public String JavaDoc getLicenseName() {
649         return creator.getLicenseName(this);
650     }
651
652
653     /**
654      * Gets the licenseVersion attribute of the Target object
655      *
656      * @return The licenseVersion value
657      */

658     public String JavaDoc getLicenseVersion() {
659         return creator.getLicenseVersion(this);
660     }
661
662
663     /**
664      * Gets the relatedPeople attribute of the Target object
665      *
666      * @param type Description of the Parameter
667      * @return The relatedPeople value
668      */

669     public ArrayList JavaDoc getRelatedPeople(String JavaDoc type) {
670         return creator.getRelatedPeople(type, this);
671     }
672
673
674     /**
675      * Gets the packageDepends attribute of the Target object
676      *
677      * @return The packageDepends value
678      */

679     public ArrayList JavaDoc getPackageDepends() {
680         return creator.getPackageDepends(this);
681     }
682
683
684     /**
685      * Gets the includedPackages attribute of the Target object
686      *
687      * @return The includedPackages value
688      */

689     public ArrayList JavaDoc getIncludedPackages() {
690         if (isBundle()) {
691             return creator.getIncludedPackages(this);
692         }
693         return null;
694     }
695
696
697     /**
698      * Adds a feature to the Package attribute of the Target object
699      *
700      * @param newpackage The feature to be added to the Package attribute
701      * @return Description of the Return Value
702      */

703     public boolean addPackage(String JavaDoc newpackage) {
704         if (isBundle()) {
705             return creator.addPackage(this, newpackage);
706         }
707         return false;
708     }
709
710
711     /**
712      * Sets the includedVersion attribute of the Target object
713      *
714      * @param id The new includedVersion value
715      * @param newversion The new includedVersion value
716      * @return Description of the Return Value
717      */

718     public boolean setIncludedVersion(String JavaDoc id, String JavaDoc newversion) {
719         return creator.setIncludedVersion(this, id, newversion);
720     }
721
722
723     /**
724      * Description of the Method
725      *
726      * @param id Description of the Parameter
727      * @return Description of the Return Value
728      */

729     public boolean delIncludedPackage(String JavaDoc id) {
730         return creator.delIncludedPackage(this, id);
731     }
732
733
734     /**
735      * Sets the item attribute of the Target object
736      *
737      * @param name The new item value
738      * @param item The new item value
739      * @return Description of the Return Value
740      */

741     public boolean setItem(String JavaDoc name, Object JavaDoc item) {
742         items.put(name, item);
743         return true;
744     }
745
746
747     /**
748      * Gets the item attribute of the Target object
749      *
750      * @param name Description of the Parameter
751      * @return The item value
752      */

753     public Object JavaDoc getItem(String JavaDoc name) {
754         Object JavaDoc o = items.get(name);
755         return o;
756     }
757
758
759     /**
760      * Description of the Method
761      *
762      * @return Description of the Return Value
763      */

764     public boolean save() {
765         // check if the dirs are created, if not create them
766
String JavaDoc dirsp = basedir + path.substring(0, path.lastIndexOf(File.separator));
767         File JavaDoc dirs = new File JavaDoc(dirsp);
768         if (!dirs.exists()) {
769             dirs.mkdirs();
770         }
771         String JavaDoc body = creator.getXMLFile(this);
772         // write back to disk
773
File JavaDoc sfile = new File JavaDoc(basedir + getPath());
774         try {
775             DataOutputStream JavaDoc scan = new DataOutputStream JavaDoc(new FileOutputStream JavaDoc(sfile));
776             scan.writeBytes(body);
777             scan.flush();
778             scan.close();
779         } catch (Exception JavaDoc e) {
780         log.error("Target can't save updated packaging file : "+basedir+getPath());
781         }
782         return true;
783     }
784
785
786     /**
787      * Description of the Method
788      *
789      * @return Description of the Return Value
790      */

791     public boolean hasSyntaxErrors() {
792         // performs several syntax checks to signal
793
// the users in the gui tools on possible problems
794
if (getDescription().equals("")) {
795             return true;
796         }
797         if (getMaintainer().equals("")) {
798             return true;
799         }
800         if (getDescription().equals("")) {
801             return true;
802         }
803         if (getRelatedPeople("initiators") == null || getRelatedPeople("initiators").size() == 0) {
804             return true;
805         }
806         if (getRelatedPeople("developers") == null || getRelatedPeople("developers").size() == 0) {
807             return true;
808         }
809         if (getRelatedPeople("contacts") == null || getRelatedPeople("contacts").size() == 0) {
810             return true;
811         }
812         return false;
813     }
814
815     public String JavaDoc getId() {
816         String JavaDoc id = getPackageName() + "@" + getMaintainer() + "_" + getType();
817         id = id.replace(' ', '_');
818         id = id.replace('/', '_');
819     return id;
820     }
821
822     public void setPublishProvider(String JavaDoc publishprovider) {
823     this.publishprovider = publishprovider;
824     }
825
826     public void setPublishState(boolean publishstate) {
827     this.publishstate = publishstate;
828     }
829
830     public void setPublishSharePassword(String JavaDoc publishsharepassword) {
831     this.publishsharepassword = publishsharepassword;
832     }
833
834     public boolean getPublishState() {
835     return publishstate;
836     }
837
838     public String JavaDoc getPublishProvider() {
839     return publishprovider;
840     }
841
842     public String JavaDoc getPublishSharePassword() {
843     return publishsharepassword;
844     }
845
846     public boolean publish(int version,packageStep step) {
847     // extra delay to test the background threader
848
if (isBundle()) {
849         BundleInterface b = BundleManager.getBundle(getId(),""+version);
850         while (b==null) {
851             // again this is done because it might take the provider
852
// discovery system a few seconds before it detects the
853
// new package even if we made it ourselfs.
854
try {
855                 Thread.sleep(1000);
856             } catch(Exception JavaDoc e) {
857                 e.printStackTrace();
858             }
859             b = BundleManager.getBundle(getId(),""+version);
860         }
861         ProviderInterface o=ProviderManager.getProvider(publishprovider);
862         if (o != null && b !=null) {
863             o.setPackageStep(step);
864             boolean result = o.publish(getCreator(),b,getPublishSharePassword());
865             return result;
866         }
867     } else if (!isBundle()) {
868         PackageInterface p = PackageManager.getPackage(getId(),""+version);
869         while (p==null) {
870             // again this is done because it might take the provider
871
// discovery system a few seconds before it detects the
872
// new package even if we made it ourselfs.
873
try {
874                 Thread.sleep(1000);
875             } catch(Exception JavaDoc e) {
876                 e.printStackTrace();
877             }
878             p = PackageManager.getPackage(getId(),""+version);
879         }
880         ProviderInterface o=ProviderManager.getProvider(publishprovider);
881         if (o != null && p !=null) {
882             o.setPackageStep(step);
883             boolean result = o.publish(getCreator(),p,getPublishSharePassword());
884             return result;
885         }
886     }
887     return false;
888     }
889
890     public Project getParent() {
891     return parent;
892     }
893
894     public void addRelatedTargetsCreate(Target t) {
895     creator.addRelatedTargetsCreate(t);
896     }
897
898     public int getProgressBarValue() {
899         return creator.getProgressBarValue();
900     }
901
902     public int getSubProgressBarValue() {
903         return creator.getSubProgressBarValue();
904     }
905     
906 }
907
908
Popular Tags