@ Override public void execute ( String filePath ) { final CurrentProject currentProject = appContext . getCurrentProject ( ) ; if ( filePath != null && ! filePath . startsWith ( "/" ) ) { filePath = "/" . concat ( filePath ) ; } if ( currentProject != null ) { String fullPath = currentProject . getRootProject ( ) . getPath ( ) + filePath ; log . debug ( "Open file {0}" , fullPath ) ; currentProject . getCurrentTree ( ) . getNodeByPath ( fullPath , new TreeNodeAsyncCallback ( ) ) ; } }
Open a file for the current given path .