Package com.zaranux.os.client.commands

Source Code of com.zaranux.os.client.commands.edit

package com.zaranux.os.client.commands;

import com.zaranux.client.api.AsyncCallback;
import com.zaranux.os.client.programs.TextEditor;

public class edit extends Command {
  @Override
  protected void execute(AsyncCallback<Boolean> callback) {
    String[] args = getArgs();
    for(String path : args)
    {
      run(new TextEditor(getAbsolutePath(path)));
    }
    callback.onSuccess(true);
  }

}
TOP

Related Classes of com.zaranux.os.client.commands.edit

TOP
Copyright © 2018 www.massapi.com. 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.