public void aside( final AsideRequest request ){ PlaceholderMap placeholders = request.getLayout(); StackDockPerspective stack = new StackDockPerspective(); if( placeholders != null && stack.canRead( placeholders ) ){ stack.setPlaceholders( placeholders ); } if( stack.getItemCount() == 0 ){ insert( stack, request.getLocation() ); } int index = indexOf( stack, request.getLocation() ); if( index == -1 ){ index = stack.getDockableCount(); if( index == 0 ){ index = 1; } } else{ index++; } index = Math.min( stack.getItemCount(), index ); if( request.getPlaceholder() != null ){ stack.insertPlaceholder( index, request.getPlaceholder(), Level.BASE ); } request.answer( new StackDockProperty( index, request.getPlaceholder() ), stack.getPlaceholders() ); }
public void aside( AsideRequest request ){ DockableProperty location = request.getLocation(); if( location instanceof ScreenDockProperty ){ ScreenDockProperty screenLocation = (ScreenDockProperty)location; DockablePlaceholderList<ScreenDockWindowHandle>.Item item = getItem( screenLocation ); if( item != null ){ delegate().combine( item, getCombiner(), request ); } ScreenDockProperty copy = screenLocation.copy(); copy.setSuccessor( null ); copy.setPlaceholder( request.getPlaceholder() ); request.answer( copy ); } }
public void aside( AsideRequest request ){ DockableProperty location = request.getLocation(); if( location instanceof FlapDockProperty ){ FlapDockProperty flapLocation = (FlapDockProperty)location; DockablePlaceholderList<DockableHandle>.Item item = getItem( flapLocation ); if( item != null ){ delegate().combine( item, getCombiner(), request ); } FlapDockProperty copy = flapLocation.copy(); copy.setSuccessor( null ); copy.setPlaceholder( request.getPlaceholder() ); request.answer( copy ); } }
public void aside( AsideRequest request ){ DockableProperty location = request.getLocation(); int index; Path newPlaceholder = request.getPlaceholder(); if( location instanceof StackDockProperty ){ StackDockProperty stackLocation = (StackDockProperty)location; index = dockables.getNextListIndex( stackLocation.getIndex(), stackLocation.getPlaceholder() ); if( newPlaceholder != null ){ dockables.list().insertPlaceholder( index, newPlaceholder ); } } else { index = dockables.dockables().size(); if( newPlaceholder != null ){ dockables.dockables().insertPlaceholder( index, newPlaceholder ); } } request.answer( new StackDockProperty( index, newPlaceholder )); }
description="Implement this feature") public void aside( AsideRequest request ){ DockableProperty location = request.getLocation(); int column = -1; int line = -1;
DockableProperty location = request.getLocation(); Path newPlaceholder = request.getPlaceholder(); if( location instanceof ToolbarProperty ){
DockableProperty location = request.getLocation(); if( location instanceof SplitDockPlaceholderProperty ){ SplitDockPlaceholderProperty property = (SplitDockPlaceholderProperty)location; location = request.getLocation(); if( location instanceof SplitDockPlaceholderProperty ){ location = ((SplitDockPlaceholderProperty)location).getBackup();
DockableProperty location = request.getLocation(); if( location instanceof SplitDockPlaceholderProperty ){ SplitDockPlaceholderProperty property = (SplitDockPlaceholderProperty)location; location = request.getLocation(); if( location instanceof SplitDockPlaceholderProperty ){ location = ((SplitDockPlaceholderProperty)location).getBackup();
public void aside( AsideRequest request ){ DockableProperty location = request.getLocation(); int index; Path newPlaceholder = request.getPlaceholder();