Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Invoking a GEF application / getSite
Invoking a GEF application / getSite [message #193499] Fri, 26 August 2005 13:29 Go to next message
Eclipse UserFriend
Originally posted by: jglarson.traxcorp.com

I'm trying to start a GEF application programmatically (i.e. click on a
button an the GEF application starts up) - but when initializing, the
function getSite() returns null. How do I "setSite(...)? I'm extending
"GraphicalEditorWithPalette", and borrowing code extensively from the
SWT/JFace in action example.
Re: Invoking a GEF application / getSite [message #193560 is a reply to message #193499] Fri, 26 August 2005 14:23 Go to previous message
Eclipse UserFriend
Originally posted by: none.unknown.com

You're just trying to open an editor, right? Use something like:

PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage().openEdi
tor(...);

"Jeff Larson" <jglarson@traxcorp.com> wrote in message
news:den5cd$3up$1@news.eclipse.org...
> I'm trying to start a GEF application programmatically (i.e. click on a
> button an the GEF application starts up) - but when initializing, the
> function getSite() returns null. How do I "setSite(...)? I'm extending
> "GraphicalEditorWithPalette", and borrowing code extensively from the
> SWT/JFace in action example.
>
>
Previous Topic:Grouping components for a drag
Next Topic:Mouse events in an IFigure
Goto Forum:
  


Current Time: Tue Nov 12 19:42:36 GMT 2024

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

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

Back to the top