/** * Removes this object from the object bench. This will also remove it from the view of the object * bench. Once the object is removed from the bench it will not be available again. * * @throws ProjectNotOpenException if the project to which this object belongs has been closed by * the user. * @throws PackageNotFoundException if the package to which this object belongs has been deleted * by the user. */ public void removeFromBench() throws ProjectNotOpenException, PackageNotFoundException { Package aPackage = wrapperId.getBluejPackage(); PkgMgrFrame aFrame = wrapperId.getPackageFrame(); ObjectBench aBench = aFrame.getObjectBench(); aBench.removeObject(objectWrapper, aPackage.getId()); objectWrapper = null; }