/** * Set the description. */ public void setDescription(IComponentDescription desc) { getTextField("Name").setText(desc.getName().getName()); getTextField("Type").setText(desc.getType()); getTextField("Model name").setText(desc.getModelName()); getTextField("Creator").setText(desc.getCreator()!=null? desc.getCreator().getName(): "n/a"); getTextField("Ownership").setText(desc.getOwnership()); getTextField("State").setText(desc.getState()); String gid = desc.getResourceIdentifier().getGlobalIdentifier()!=null? desc.getResourceIdentifier().getGlobalIdentifier().getResourceId(): "n/a"; ILocalResourceIdentifier lid = desc.getResourceIdentifier().getLocalIdentifier(); getTextField("Resource Identifier").setText(gid==null? "n/a": gid); getTextField("(global / local)").setText(lid==null? "n/a": lid.toString()); // getTextField("Processing state").setText(desc.getProcessingState()); getCheckBox("Master").setSelected(desc.getMaster()==null? false: desc.getMaster().booleanValue()); getCheckBox("Daemon").setSelected(desc.getDaemon()==null? false: desc.getDaemon().booleanValue()); getCheckBox("Auto shutdown").setSelected(desc.getAutoShutdown()==null? false: desc.getAutoShutdown().booleanValue()); JTable list = (JTable)getComponent("Addresses"); String[] addresses = desc.getName().getAddresses(); DefaultTableModel dtm = new DefaultTableModel(); dtm.addColumn("Addresses", addresses!=null?addresses:SUtil.EMPTY_STRING_ARRAY); list.setModel(dtm); } }
&& (adesc.getState()==null || adesc.getState().equals(test.getState())) && (adesc.getModelName()==null || adesc.getModelName().equals(test.getModelName())))
&& (adesc.getState()==null || adesc.getState().equals(test.getState())) && (adesc.getModelName()==null || adesc.getModelName().equals(test.getModelName())))
&& (adesc.getState()==null || adesc.getState().equals(test.getState())) && (adesc.getModelName()==null || adesc.getModelName().equals(test.getModelName())))
&& (adesc.getState()==null || adesc.getState().equals(test.getState())) && (adesc.getModelName()==null || adesc.getModelName().equals(test.getModelName())))
/** * Create a new component node. */ public ISwingTreeNode createComponentNode(final IComponentDescription desc) { ISwingTreeNode node = getModel().getNode(desc.getName()); if(node==null) { boolean proxy = "jadex.platform.service.remote.Proxy".equals(desc.getModelName()) // Only create proxy nodes for local proxy components to avoid infinite nesting. && ((IActiveComponentTreeNode)getModel().getRoot()).getComponentIdentifier().getName().equals(desc.getName().getPlatformName()); if(proxy) { node = new ProxyComponentTreeNode(ComponentTreeNode.this, getModel(), getTree(), desc, cms, iconcache, access); } else { node = new ComponentTreeNode(ComponentTreeNode.this, getModel(), getTree(), desc, cms, iconcache, access); } } return node; }