Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Opening an editor / view (SWT) without loading eclipse
Opening an editor / view (SWT) without loading eclipse [message #557942] Thu, 09 September 2010 14:07 Go to next message
Geejay is currently offline GeejayFriend
Messages: 160
Registered: February 2010
Senior Member
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
Re: Opening an editor / view (SWT) without loading eclipse [message #557943 is a reply to message #557942] Thu, 09 September 2010 14:11 Go to previous message
Geejay is currently offline GeejayFriend
Messages: 160
Registered: February 2010
Senior Member
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
Previous Topic:Windows 7 64bits RCP Error in Galileo
Next Topic:"No application id has been found." when I imported new dependency
Goto Forum:
  


Current Time: Mon Nov 24 08:38:27 GMT 2014

Powered by FUDForum. Page generated in 0.01696 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software