Eclipse Community Forums
Forum Search:

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

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!bug.report.dialog" );

if( dialog.open() == Dialog.OK )
{
// Do something. User input is found in the bug report model.
}
shell.pack ();
shell.open ();
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 11:49 Go to previous message
Konstantin Komissarchik is currently offline Konstantin Komissarchik
Messages: 935
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: Thu Jul 24 13:44:26 EDT 2014

Powered by FUDForum. Page generated in 0.01979 seconds