Skip to main content


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: Fri Apr 26 18:02:43 GMT 2024

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

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

Back to the top