Sapphire Snippets [message #702276] |
Tue, 26 July 2011 07:10 |
|
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 ();
}
|
|
|
|
Powered by
FUDForum. Page generated in 0.03219 seconds