private DockFrontendPerspective wrap( CPerspective perspective, boolean includeWorkingAreas, PerspectiveElementFactory factory ){ DockFrontendPerspective frontend = control.getOwner().intern().getPerspective( !includeWorkingAreas, factory ); PredefinedPerspective inner = frontend.getPerspective(); factory.setBasePerspective( inner ); CommonSingleDockableFactory singleDockableFactory = new CommonSingleDockableFactory( control.getOwner(), perspective ); inner.getSituation().add( singleDockableFactory ); inner.getSituation().addBackup( new RegisteringDockFactory<CommonDockable, CommonElementPerspective, CommonSingleDockableLayout>( control.getOwner().intern(), singleDockableFactory ) ); inner.getSituation().add( new CommonDockStationFactory( control.getOwner(), factory, singleDockableFactory ) ); return frontend; }
private DockFrontendPerspective wrap( CPerspective perspective, boolean includeWorkingAreas, PerspectiveElementFactory factory ){ DockFrontendPerspective frontend = control.getOwner().intern().getPerspective( !includeWorkingAreas, factory ); PredefinedPerspective inner = frontend.getPerspective(); factory.setBasePerspective( inner ); CommonSingleDockableFactory singleDockableFactory = new CommonSingleDockableFactory( control.getOwner(), perspective ); inner.getSituation().add( singleDockableFactory ); inner.getSituation().addBackup( new RegisteringDockFactory<CommonDockable, CommonElementPerspective, CommonSingleDockableLayout>( control.getOwner().intern(), singleDockableFactory ) ); inner.getSituation().add( new CommonDockStationFactory( control.getOwner(), factory, singleDockableFactory ) ); return frontend; }
situation.addBackup( new RegisteringDockFactory( frontend.getFrontend(), backup ) );