Package com.zaranux.os.client.programs.util

Examples of com.zaranux.os.client.programs.util.TypedFile


      // if selected nodes are root they will fail in servers side, no need to add
      //     check for performance reason ...
      final FileSystemNode fsNode = (FileSystemNode) node;
     
      final File f = fsNode.getFile();
      TypedFile tf = new TypedFile(f);
     
      Log.debug("Selected = " + f.getAbsolutePath());

     
      if(tf.isSound())
        sounds.add(f.getAbsolutePath());
      else if(tf.isImage())
        images.add(f.getAbsolutePath());
      else if(tf.isExecutable())
      {
        Program program = tf.getProgram();
        if(program != null) filesystemTreeGrid.run(program);
      }
    }
    if(sounds.size() > 0)
    {
View Full Code Here


          );
  }
 
  private void executeFile(String absolutePath, AsyncCallback<Boolean> callback)
  {
    TypedFile tf = new TypedFile(absolutePath);
      if(tf.isProperites())
      {
        listProperties(absolutePath, callback);
      }
      else if(tf.isExecutable())
      {
        String[] args = new String[1];
        args[0] = absolutePath;
        Log.debug("going to play");

        Program program = tf.getProgram();
        if(program != null)
        {
          // run in the background do not waith for callback call just return success
          // make inti its parent so even if the terminal closes it stays up
          run(program, true);
View Full Code Here

TOP

Related Classes of com.zaranux.os.client.programs.util.TypedFile

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.