|
|
|
|
|
Re: Dependency on org.eclipse.core.runtime in generated model plug-in [message #425804 is a reply to message #425802] |
Mon, 08 December 2008 22:11 |
Ed Merks Messages: 33136 Registered: July 2009 |
Senior Member |
|
|
Felix,
Oh yes, I forgot that the model plugin doesn't always have a plugin. In
any case, the model depend on EMF which depends on the core Eclipse
runtime, so indirectly you always depend on it...
Felix Dorner wrote:
> Hey Ed,
>
> If I remove it from the model plug-in, there's nothing that the
> compiler complains.
>
> In contrast is the edit plug-in which requires the Plugin class, at
> compile time. At runtime its absence is detected and the standalone
> implementation takes over, nicely explained in the new book.
>
> public abstract class EMFPlugin implements ResourceLocator, Logger
> {
> public static final boolean IS_ECLIPSE_RUNNING;
> static
> {
> boolean result = false;
> try
> {
> result = Platform.isRunning();
> }
> catch (Throwable exception)
> {
> // Assume that we aren't running.
> }
> IS_ECLIPSE_RUNNING = result;
> }
>
>
>
> Ed Merks wrote:
>
>> EMF's runtime uses things, like Eclipse's plugin class, from that.
>> You could try to remove it and see what the compiler complains about...
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.02319 seconds