/** {@link ContextMenusInPEView} is a singleton, but inheritance is possible. */ public static ContextMenusInPEView getInstance() { if (self != null) return self; self = new ContextMenusInPEView(); teamC = TeamC.getInstance(); reafactorC = RefactorC.getInstance(); newC = NewC.getInstance(); shareWithC = ShareWithC.getInstance(); return self; }
public ITeamC team() throws RemoteException { teamC.setTreeItem(treeItem); return teamC; }