Skip to contentMethod: getPackage()
      1: package gui.wrapperobjects;
2: 
3: import model.ConfiguredPackage;
4: 
5: /**
6:  * Wrapper-class for configured packages.
7:  */
8: public class ConfiguredPackageWrapper implements TreeElement {
9:         /**
10:          * The package to wrap.
11:          */
12:         private final ConfiguredPackage pkg;
13: 
14:         /**
15:          * The ConfiguredPackageWrapper constructor.
16:          * 
17:          * @param pkg
18:          *            The package to wrap.
19:          */
20:         public ConfiguredPackageWrapper(final ConfiguredPackage pkg) {
21:                 this.pkg = pkg;
22:         }
23: 
24:         /**
25:          * @return the package.
26:          */
27:         public ConfiguredPackage getPackage() {
28:                 return this.pkg;
29:         }
30: 
31:         @Override
32:         public String toString() {
33:                 return this.pkg.getName();
34:         }
35: 
36:         @Override
37:         public void accept(final TreeElementVisitor vis) {
38:                 vis.visit(this);
39:         }
40: }