Sapphire Snippets [message #702276] |
Tue, 26 July 2011 03:10  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03178 seconds