Example #1
0
 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);
 }
Example #2
0
 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];
 }