|
Re: Opening an editor / view (SWT) without loading eclipse [message #557943 is a reply to message #557942] |
Thu, 09 September 2010 10:11  |
Eclipse User |
|
|
|
Awesome. Solved this by doing pretty much what the SWT snippets do, which is
to have a main method which just initializes a shell, and just call the
Eclipse createPartControl() method passing in the shell. Super fast!
public static void main(String[] args) {
MyView mediumView = new MyView (null, null, null, null);
MyPage mediumPage = mediumView.new MyPage ("page", null, null);
Display display = new Display();
final Shell shell = new Shell(display);
shell.setLayout(new FillLayout());
mediumPage.createPartControl(shell);
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch())
display.sleep();
}
display.dispose();
}
"geejay" <gjmcknight@schlagundrahm.ch> wrote in message
news:i6apmi$rje$1@build.eclipse.org...
> Is there a way to quickly load up an view or editor without loading the
> entire eclipse rcp stack?
>
> I need a way to quickly test my editor and view UIs.
>
> Thanks
|
|
|
Powered by
FUDForum. Page generated in 0.09037 seconds