|
Re: Standalone GEF !!! [message #158034 is a reply to message #156936] |
Mon, 15 November 2004 02:51 |
Pratik Shah 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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 #158536 is a reply to message #156936] |
Thu, 18 November 2004 20:27 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03840 seconds