Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Standalone GEF !!!
Standalone GEF !!! [message #156936] Fri, 05 November 2004 06:21 Go to next message
Dhiraj  is currently offline Dhiraj Friend
Messages: 18
Registered: July 2009
Junior Member
Hi,
Can somebody tell what it takes to make GEF work as
a standalone application. From my initial codewalk I
figured that the IEditorSite is the interface which binds
the editor with the Eclipse workbench.
Saw the GEF FAQ on this subject, but was not of
much help.

Thanks,
dhiraj
Re: Standalone GEF !!! [message #158034 is a reply to message #156936] Mon, 15 November 2004 02:51 Go to previous messageGo to next message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
We've never tried it, so can't really comment on this. But be prepared, for
it's not going to be easy. GEF's GraphicalEditor hierarchy is a good place
to start looking for dependencies. But there's no entrance point: GEF is
dependent on several things from platform (the Palette View, some actions,
externalized strings, etc.). You'll just have to try it out and see.
Isolate the GEF code, remove all the GEF features you don't need, and look
at the compile errors. You can search this newsgroup for previous
discussions on this subject.

"dhiraj" <dhiraj@gmail.com> wrote in message
news:cmf65h$93t$1@eclipse.org...
> Hi,
> Can somebody tell what it takes to make GEF work as
> a standalone application. From my initial codewalk I
> figured that the IEditorSite is the interface which binds
> the editor with the Eclipse workbench.
> Saw the GEF FAQ on this subject, but was not of
> much help.
>
> Thanks,
> dhiraj
>
>
Re: Standalone GEF !!! [message #158061 is a reply to message #156936] Mon, 15 November 2004 13:03 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Lamont_Gilbert.rigidsoftware.com

Standalone from what exactly?


dhiraj wrote:
> Hi,
> Can somebody tell what it takes to make GEF work as
> a standalone application. From my initial codewalk I
> figured that the IEditorSite is the interface which binds
> the editor with the Eclipse workbench.
> Saw the GEF FAQ on this subject, but was not of
> much help.
>
> Thanks,
> dhiraj
>
>


--
Respectfully,


CL Gilbert

"Verily, verily, I say unto you, He that entereth not by the door() into
the sheepfold{}, but climbeth up some other *way, the same is a thief
and a robber." John 10:1

GnuPG Key Fingerprint:
82A6 8893 C2A1 F64E A9AD 19AE 55B2 4CD7 80D2 0A2D

For a free Java interface to Freechess.org see
http://www.rigidsoftware.com/Chess/chess.html
Re: Standalone GEF !!! [message #158078 is a reply to message #158061] Mon, 15 November 2004 14:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gaslade.yahoo.com

When most people talk about standalone they normally mean running as a
rich client application (RCP). You can find info about this out on the
eclipse site.... standalone being that you don't need the IDE.

Guy


CL [dnoyeb] Gilbert wrote:
> Standalone from what exactly?
>
>
> dhiraj wrote:
>
>> Hi,
>> Can somebody tell what it takes to make GEF work as
>> a standalone application. From my initial codewalk I
>> figured that the IEditorSite is the interface which binds
>> the editor with the Eclipse workbench.
>> Saw the GEF FAQ on this subject, but was not of
>> much help.
>>
>> Thanks,
>> dhiraj
>>
>>
>
>
Re: Standalone GEF !!! [message #158260 is a reply to message #158078] Wed, 17 November 2004 03:43 Go to previous messageGo to next message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
I think this guy wants to run GEF outside of Eclipse. With just SWT
available.

"Guy Slade" <gaslade@yahoo.com> wrote in message
news:cnafes$61i$1@eclipse.org...
> When most people talk about standalone they normally mean running as a
> rich client application (RCP). You can find info about this out on the
> eclipse site.... standalone being that you don't need the IDE.
>
> Guy
>
>
> CL [dnoyeb] Gilbert wrote:
> > Standalone from what exactly?
> >
> >
> > dhiraj wrote:
> >
> >> Hi,
> >> Can somebody tell what it takes to make GEF work as
> >> a standalone application. From my initial codewalk I
> >> figured that the IEditorSite is the interface which binds
> >> the editor with the Eclipse workbench.
> >> Saw the GEF FAQ on this subject, but was not of
> >> much help.
> >>
> >> Thanks,
> >> dhiraj
> >>
> >>
> >
> >
>
Re: Standalone GEF !!! [message #158536 is a reply to message #156936] Thu, 18 November 2004 20:27 Go to previous message
Eclipse UserFriend
Originally posted by: none.nowhere.com

dhiraj wrote:

> Hi,
> Can somebody tell what it takes to make GEF work as
> a standalone application. From my initial codewalk I
> figured that the IEditorSite is the interface which binds
> the editor with the Eclipse workbench.
> Saw the GEF FAQ on this subject, but was not of
> much help.

> Thanks,
> dhiraj

I have done this in a pretty hacky way. Simply implement a new version of
org.eclipse.core.runtime.Platform:

package org.eclipse.core.runtime;

import org.osgi.framework.Bundle;

public class Platform {
public static Bundle getBundle(String id) {
return null;
}
public static String getResourceString(Bundle bundle, String key) {
return null;
}
}

Then add all the jars:
draw2d, swt, jface, gef, runtime, ui, editors, workbench, osgi, views.

Make sure the above class is loaded before runtime.jar (ie. by setting it
before runtime.jar in the classpath).

Works for me on eclipse 3.1 with gef 3.0.1. Note I have only done this
using the ScrollingGraphicalViewer as a base, ie. not implemented as part
of an editor.

Regards,
Peter
Previous Topic:export GEF diagram as jpg
Next Topic:How to get information from user in the getCreateCommand(CreateRequest request)
Goto Forum:
  


Current Time: Thu Jun 27 20:59:45 GMT 2024

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

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

Back to the top