/** * Exchanges the element that is represented by this perspective. This operation does not change any * placeholders. * @param dockable the new element, can be <code>null</code> */ public void setDockable( PerspectiveDockable dockable ){ SplitDockPerspective perspective = getPerspective(); if( perspective == null ){ this.dockable = dockable; } else{ PerspectiveDockable oldDockable = this.dockable; this.dockable = dockable; for( EntryListener listener : perspective.listeners() ){ listener.modified( this, oldDockable, dockable ); } } }
/** * Exchanges the element that is represented by this perspective. This operation does not change any * placeholders. * @param dockable the new element, can be <code>null</code> */ public void setDockable( PerspectiveDockable dockable ){ SplitDockPerspective perspective = getPerspective(); if( perspective == null ){ this.dockable = dockable; } else{ PerspectiveDockable oldDockable = this.dockable; this.dockable = dockable; for( EntryListener listener : perspective.listeners() ){ listener.modified( this, oldDockable, dockable ); } } }