Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsSapphire Snippets
https://www.eclipse.org/forums/index.php/mv/msg/224542/702276/#msg_702276
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 ();
}
]]>Stathis Alexopoulos2011-07-26T07:10:22-00:00Re: Sapphire Snippets
https://www.eclipse.org/forums/index.php/mv/msg/224542/702641/#msg_702641
- Konstantin]]>Konstantin Komissarchik2011-07-26T15:49:05-00:00