Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Creating a console view in the RCP Application (Simple Example/Tutorial to perform this task)
Creating a console view in the RCP Application [message #998298] Wed, 09 January 2013 13:45
Vítor Moscon is currently offline Vítor Moscon
Messages: 3
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.
}
}
Previous Topic:Problems with launching Eclipse 4 applications
Next Topic:ParameterizedCommand not being executed after update to 4.3M4
Goto Forum:
  


Current Time: Sat Aug 30 04:42:38 EDT 2014

Powered by FUDForum. Page generated in 0.01818 seconds