Creating a console view in the RCP Application [message #998298] |
Wed, 09 January 2013 18:45 |
Vítor Moscon Messages: 4 Registered: January 2013 |
Junior Member |
|
|
I am new to Eclipse 4 RCP and am trying to create and add a console view, like the Eclipse IDE, to my RCP Application. I have no idea how to do that! More specifically, I have a simulator with a CLI (Command-Line Interface) implemented with the Cliche Coomand-Line Shell library (code dot google dot com/p/cliche/), so I want to display the cliche shell/console in the RCP Application. Someone could give a glue, tip, tutorial how to do that? Bellow, I pasted a very simple CLI with the Cliche Library.
package asg.cliche.sample;
import asg.cliche.Command;
import asg.cliche.ShellFactory;
import java.io.IOException;
public class HelloWorld {
@Command // One,
public String hello() {
return "Hello, World!";
}
@Command // two,
public int add(int a, int b) {
return a + b;
}
public static void main(String[] args) throws IOException {
ShellFactory.createConsoleShell("hello", "", new HelloWorld())
.commandLoop(); // and three.
}
}
|
|
|
Powered by
FUDForum. Page generated in 0.02557 seconds