Changeset 846 for vanHelsing/trunk/gui/src/de/dass_it/vanhelsing/gui
- Timestamp:
- Mar 19, 2010, 11:40:42 AM (15 years ago)
- Location:
- vanHelsing/trunk/gui/src/de/dass_it/vanhelsing/gui
- Files:
-
- 3 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
vanHelsing/trunk/gui/src/de/dass_it/vanhelsing/gui/ConfigurationBean.java
r844 r846 25 25 ResourceInfo[] ri; 26 26 Client c = new Client(); 27 String[] nodes = {"Director", " Client", "FileSet", "Schedule",28 "SDStorage", "C atalog", "SDDevice", "Job", "JobDefs"};27 String[] nodes = {"Director", "Storage", "Catalog", "Autochanger", "Client", "FileSet", "FDClient", "Schedule", 28 "SDStorage", "Console", "Catalog", "SDDevice", "Job", "JobDefs", "Messages", "Pool"}; 29 29 setTree(super.createTree(root, nodes, "Configuration")); 30 30 … … 37 37 lrt.setResourceType(type); 38 38 ri = c.getListResources(lrt); 39 if (ri .length == 0) continue;39 if (ri == null || ri.length == 0) continue; 40 40 for (int j = 0; j < ri.length; j++){ 41 41 myNode = null; -
vanHelsing/trunk/gui/src/de/dass_it/vanhelsing/gui/TreeNavigation.java
r844 r846 58 58 methods = myClass.getMethods(); 59 59 for (Method m : methods){ 60 System.err.println(m.getName());60 //System.err.println(m.getName()); 61 61 if(m.getName().contains("setValue")){ 62 62 m.invoke(item, title); … … 107 107 && !(n.getName().contains("OMElement") || n.getName().contains("PullParser"))){ 108 108 109 System.err.println("Name: " + n.getName() +" Feld: "+ n.getName().substring(3));109 //System.err.println("Name: " + n.getName() +" Feld: "+ n.getName().substring(3)); 110 110 for (Method m : methods){ 111 111 if (m.getName().equals("set"+n.getName().substring(3))){ 112 112 m.invoke(item, n.invoke(ri, (Object[])null)); 113 break; 113 114 } 114 115 } … … 118 119 119 120 } 121 //Value-Wert für die TreeView übertragen 122 ((ItemType)o).setValue(((ItemType)o).getResName()); 120 123 //ItemObjekt erzeugen und an das UserObjekt referenzieren 121 124 userObject.setUserObjectItem((UserObjectItem)o);
Note:
See TracChangeset
for help on using the changeset viewer.