public void createPartControl(Composite parent) { Server server = ServerManager.getInstance().getServer(serverId); if (server != null) displayObjType = server.getCounterEngine().getDisplayNameObjectType(objType); this.setPartName(displayObjType + " - Service[Throughput]"); super.createPartControl(parent); }
public void init(IViewSite site) throws PartInitException { super.init(site); String secId = site.getSecondaryId(); String ids[] = secId.split("&"); serverId = Integer.valueOf(ids[0]); objType = ids[1]; }