/** {@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 IRefactorC refactor() throws RemoteException { reafactorC.setTreeItem(treeItem); reafactorC.setTreeItemType(type); return reafactorC; }