if ( getParentTask( ) instanceof TreeCompoundTask )
TreeItem currentItem = getParentTask( ).getNavigatorTree( ) .getSelection( )[0]; TreeItem[] children = currentItem.getItems( ); if ( index < children.length )
		private void switchTo( int index )		{			if ( getParentTask( ) instanceof TreeCompoundTask )			{				TreeCompoundTask compoundTask = (TreeCompoundTask) getParentTask( );				TreeItem currentItem = compoundTask.getNavigatorTree( )						.getSelection( )[0];				TreeItem[] children = currentItem.getItems( );				if ( index < children.length )				{					// Switch to specified subtask					compoundTask.switchToTreeItem( children[index] );				}			}		}