Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sapphire » Sapphire Snippets
Sapphire Snippets [message #702276] Tue, 26 July 2011 07:10 Go to next message
Stathis Alexopoulos is currently offline Stathis AlexopoulosFriend
Messages: 42
Registered: September 2010

I am trying to evaluate Sapphire, and i am wondering if it is possible to work with it as a simple JFace application.

For example, is it possible to create some snippet like the following?

public static void main (String [] args)
Display display = new Display ();
Shell shell = new Shell (display);
shell.setLayout( new FillLayout());
IFileBugReportOp op = IFileBugReportOp.TYPE.instantiate();
IBugReport report = op.getBugReport();

SapphireDialog dialog = new SapphireDialog( shell, report,
"org.eclipse.sapphire.samples/org/eclipse/sapphire/samples/ezbug/EzBug.sdef!" );

if( == Dialog.OK )
// Do something. User input is found in the bug report model.
shell.pack (); ();
while (!shell.isDisposed ())
if (!display.readAndDispatch ()) display.sleep ();
display.dispose ();
Re: Sapphire Snippets [message #702641 is a reply to message #702276] Tue, 26 July 2011 15:49 Go to previous message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1036
Registered: July 2009
Senior Member
Currently, the primary target for Sapphire is Eclipse IDE, although you should be able to use it in Eclipse RCP environment. Support for plain SWT/JFace environment (no OSGi, no workbench, etc.) is planned for future releases.

- Konstantin
Previous Topic:Sapphire on Eclipse Marketplace
Next Topic:JAXenter interview regarding Java EE Config Editors project
Goto Forum:

Current Time: Wed Oct 07 02:36:41 GMT 2015

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

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