/** * Adds a placeholder to <code>destination</code> and makes sure at the same time that * <code>placeholder</code> is not used by any other node. * @param destination a child of this perspective * @param placeholder the placeholder to insert */ public void addPlaceholder( Entry destination, Path placeholder ){ if( !destination.isAnchestor( getRoot() ) ){ throw new IllegalArgumentException( "destination is not child of this perspective" ); } clearPlaceholder( placeholder, destination ); destination.getPlaceholders().add( placeholder ); }
/** * Adds a placeholder to <code>destination</code> and makes sure at the same time that * <code>placeholder</code> is not used by any other node. * @param destination a child of this perspective * @param placeholder the placeholder to insert */ public void addPlaceholder( Entry destination, Path placeholder ){ if( !destination.isAnchestor( getRoot() ) ){ throw new IllegalArgumentException( "destination is not child of this perspective" ); } clearPlaceholder( placeholder, destination ); destination.getPlaceholders().add( placeholder ); }