Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » 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
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 15:49 Go to previous message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
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 Apr 25 08:16:46 GMT 2024

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

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

Back to the top