Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » EMF validation dependency on org.eclipse.ui.ide
EMF validation dependency on org.eclipse.ui.ide [message #64333] Thu, 14 December 2006 08:27 Go to next message
Eclipse UserFriend
Originally posted by: user.domain.invalid

Hi

Is it possible to use EMF valiation in a product without shipping
'org.eclipse.ui.ide' ? I get the following exception when i try this -

-----------------
java.lang.NoClassDefFoundError:
org/eclipse/ui/actions/WorkspaceModifyDelegatingOperation
java.lang.NoClassDefFoundError:
org/eclipse/ui/actions/WorkspaceModifyDelegatingOperation
at
org.eclipse.emf.edit.ui.action.ValidateAction$EclipseResourc esUtil.getWorkspaceModifyOperation(ValidateAction.java:72)
at
org.eclipse.emf.edit.ui.action.ValidateAction.run(ValidateAc tion.java:173)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )


ETC
----------

Thanks in advance

Roy


PS - I posted this question on EMF group but was suggested this group
might be more appropriate.
Re: EMF validation dependency on org.eclipse.ui.ide [message #64402 is a reply to message #64333] Thu, 14 December 2006 14:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cdamus.ca.ibm.com

Hi, Roy,

This ValidateAction is defined by the EMF Edit UI API. It isn't related in
any way to EMFT Validation.

It looks to me as though this action simply requires the
WorkspaceModifyDelegatingOperation which, I assume, is in the
org.eclipse.ui.ide plug-in. So the answer would be 'no.'

Cheers,

Christian


user@domain.invalid wrote:

> Hi
>
> Is it possible to use EMF valiation in a product without shipping
> 'org.eclipse.ui.ide' ? I get the following exception when i try this -
>
> -----------------
> java.lang.NoClassDefFoundError:
> org/eclipse/ui/actions/WorkspaceModifyDelegatingOperation
> java.lang.NoClassDefFoundError:
> org/eclipse/ui/actions/WorkspaceModifyDelegatingOperation
> at
>
org.eclipse.emf.edit.ui.action.ValidateAction$EclipseResourc esUtil.getWorkspaceModifyOperation(ValidateAction.java:72)
> at
> org.eclipse.emf.edit.ui.action.ValidateAction.run(ValidateAc tion.java:173)
> at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
>
>
> ETC
> ----------
>
> Thanks in advance
>
> Roy
>
>
> PS - I posted this question on EMF group but was suggested this group
> might be more appropriate.
Re: EMF validation dependency on org.eclipse.ui.ide [message #64425 is a reply to message #64402] Thu, 14 December 2006 16:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

This is a multi-part message in MIME format.
--------------050606020408080400050302
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Christian,

Sorry, I should have paid closer attention... :-(

That class has this guard:

protected EclipseResourcesUtil eclipseResourcesUtil =
Platform.getBundle("org.eclipse.core.resources") != null ?
new EclipseResourcesUtil() : null;

So it sounds like Roy has an RCP application where the resources plugin
is present but I guess not activated and that's why this action is
trying to use it. If he ensures that the resources plugin is not
present the above guard should prevent the validate action from trying
to use APIs that won't work...



Christian W. Damus wrote:
> Hi, Roy,
>
> This ValidateAction is defined by the EMF Edit UI API. It isn't related in
> any way to EMFT Validation.
>
> It looks to me as though this action simply requires the
> WorkspaceModifyDelegatingOperation which, I assume, is in the
> org.eclipse.ui.ide plug-in. So the answer would be 'no.'
>
> Cheers,
>
> Christian
>
>
> user@domain.invalid wrote:
>
>
>> Hi
>>
>> Is it possible to use EMF valiation in a product without shipping
>> 'org.eclipse.ui.ide' ? I get the following exception when i try this -
>>
>> -----------------
>> java.lang.NoClassDefFoundError:
>> org/eclipse/ui/actions/WorkspaceModifyDelegatingOperation
>> java.lang.NoClassDefFoundError:
>> org/eclipse/ui/actions/WorkspaceModifyDelegatingOperation
>> at
>>
>>
> org.eclipse.emf.edit.ui.action.ValidateAction$EclipseResourc esUtil.getWorkspaceModifyOperation(ValidateAction.java:72)
>
>> at
>> org.eclipse.emf.edit.ui.action.ValidateAction.run(ValidateAc tion.java:173)
>> at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
>>
>>
>> ETC
>> ----------
>>
>> Thanks in advance
>>
>> Roy
>>
>>
>> PS - I posted this question on EMF group but was suggested this group
>> might be more appropriate.
>>
>
>


--------------050606020408080400050302
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Christian,<br>
<br>
Sorry, I should have paid closer attention...&nbsp; :-(<br>
<br>
That class has this guard:<br>
<br>
&nbsp; protected EclipseResourcesUtil eclipseResourcesUtil = <br>
&nbsp;&nbsp;&nbsp; Platform.getBundle("org.eclipse.core.resources") != null ? <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; new EclipseResourcesUtil() : null;<br>
<br>
So it sounds like Roy has an RCP application where the resources plugin
is present but I guess not activated and that's why this action is
trying to use it.&nbsp; If he ensures that the resources plugin is not
present the above guard should prevent the validate action from trying
to use APIs that won't work...<br>
<br>
<br>
<br>
Christian W. Damus wrote:
<blockquote cite="midelrn5e$jmc$1@utils.eclipse.org" type="cite">
<pre wrap="">Hi, Roy,

This ValidateAction is defined by the EMF Edit UI API. It isn't related in
any way to EMFT Validation.

It looks to me as though this action simply requires the
WorkspaceModifyDelegatingOperation which, I assume, is in the
org.eclipse.ui.ide plug-in. So the answer would be 'no.'

Cheers,

Christian


<a class="moz-txt-link-abbreviated" href="mailto:user@domain.invalid">user@domain.invalid</a> wrote:

</pre>
<blockquote type="cite">
<pre wrap="">Hi

Is it possible to use EMF valiation in a product without shipping
'org.eclipse.ui.ide' ? I get the following exception when i try this -

-----------------
java.lang.NoClassDefFoundError:
org/eclipse/ui/actions/WorkspaceModifyDelegatingOperation
java.lang.NoClassDefFoundError:
org/eclipse/ui/actions/WorkspaceModifyDelegatingOperation
at

</pre>
</blockquote>
<pre wrap=""><!----> org.eclipse.emf.edit.ui.action.ValidateAction$EclipseResourc esUtil.getWorkspaceModifyOperation(ValidateAction.java:72)
</pre>
<blockquote type="cite">
<pre wrap=""> at
org.eclipse.emf.edit.ui.action.ValidateAction.run(ValidateAc tion.java:173)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )


ETC
----------

Thanks in advance

Roy


PS - I posted this question on EMF group but was suggested this group
might be more appropriate.
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
<br>
</body>
</html>

--------------050606020408080400050302--
Re: EMF validation dependency on org.eclipse.ui.ide [message #64447 is a reply to message #64425] Thu, 14 December 2006 18:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cdamus.ca.ibm.com

Hi, Ed,

The bundle could exist, but not be available for a number of reasons. It
could be installed but not resolved, for example. I think it could even
have existed in the past but not any longer (there is a Bundle.UNINSTALLED
state).

It might be better to check the bundle's state property if the bundle is
found, and only proceed if it is RESOLVED, STARTING, or ACTIVE.

HTH,

Christian


Ed Merks wrote:

> Christian,
>
> Sorry, I should have paid closer attention... :-(
>
> That class has this guard:
>
> protected EclipseResourcesUtil eclipseResourcesUtil =
> Platform.getBundle("org.eclipse.core.resources") != null ?
> new EclipseResourcesUtil() : null;
>
> So it sounds like Roy has an RCP application where the resources plugin
> is present but I guess not activated and that's why this action is
> trying to use it. If he ensures that the resources plugin is not
> present the above guard should prevent the validate action from trying
> to use APIs that won't work...
>
>
>
> Christian W. Damus wrote:
>> Hi, Roy,
>>
>> This ValidateAction is defined by the EMF Edit UI API. It isn't related
>> in any way to EMFT Validation.
>>
>> It looks to me as though this action simply requires the
>> WorkspaceModifyDelegatingOperation which, I assume, is in the
>> org.eclipse.ui.ide plug-in. So the answer would be 'no.'
>>
>> Cheers,
>>
>> Christian
>>
>>
>> user@domain.invalid wrote:
>>
>>
>>> Hi
>>>
>>> Is it possible to use EMF valiation in a product without shipping
>>> 'org.eclipse.ui.ide' ? I get the following exception when i try this -
>>>
>>> -----------------
>>> java.lang.NoClassDefFoundError:
>>> org/eclipse/ui/actions/WorkspaceModifyDelegatingOperation
>>> java.lang.NoClassDefFoundError:
>>> org/eclipse/ui/actions/WorkspaceModifyDelegatingOperation
>>> at
>>>
>>>
>>
org.eclipse.emf.edit.ui.action.ValidateAction$EclipseResourc esUtil.getWorkspaceModifyOperation(ValidateAction.java:72)
>>
>>> at
>>>
org.eclipse.emf.edit.ui.action.ValidateAction.run(ValidateAc tion.java:173)
>>> at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
>>>
>>>
>>> ETC
>>> ----------
>>>
>>> Thanks in advance
>>>
>>> Roy
>>>
>>>
>>> PS - I posted this question on EMF group but was suggested this group
>>> might be more appropriate.
>>>
>>
>>
Re: EMF validation dependency on org.eclipse.ui.ide [message #64470 is a reply to message #64447] Thu, 14 December 2006 19:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

This is a multi-part message in MIME format.
--------------090705000307010401090406
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Christian,

I'm happy to make any change that will make it work better. Someone
just needs to open a bugzilla and suggest something useful; you've
already done the later. ;-) We do this kind of thing in a few places,
so we should improve them all...


Christian W. Damus wrote:
> Hi, Ed,
>
> The bundle could exist, but not be available for a number of reasons. It
> could be installed but not resolved, for example. I think it could even
> have existed in the past but not any longer (there is a Bundle.UNINSTALLED
> state).
>
> It might be better to check the bundle's state property if the bundle is
> found, and only proceed if it is RESOLVED, STARTING, or ACTIVE.
>
> HTH,
>
> Christian
>
>
> Ed Merks wrote:
>
>
>> Christian,
>>
>> Sorry, I should have paid closer attention... :-(
>>
>> That class has this guard:
>>
>> protected EclipseResourcesUtil eclipseResourcesUtil =
>> Platform.getBundle("org.eclipse.core.resources") != null ?
>> new EclipseResourcesUtil() : null;
>>
>> So it sounds like Roy has an RCP application where the resources plugin
>> is present but I guess not activated and that's why this action is
>> trying to use it. If he ensures that the resources plugin is not
>> present the above guard should prevent the validate action from trying
>> to use APIs that won't work...
>>
>>
>>
>> Christian W. Damus wrote:
>>
>>> Hi, Roy,
>>>
>>> This ValidateAction is defined by the EMF Edit UI API. It isn't related
>>> in any way to EMFT Validation.
>>>
>>> It looks to me as though this action simply requires the
>>> WorkspaceModifyDelegatingOperation which, I assume, is in the
>>> org.eclipse.ui.ide plug-in. So the answer would be 'no.'
>>>
>>> Cheers,
>>>
>>> Christian
>>>
>>>
>>> user@domain.invalid wrote:
>>>
>>>
>>>
>>>> Hi
>>>>
>>>> Is it possible to use EMF valiation in a product without shipping
>>>> 'org.eclipse.ui.ide' ? I get the following exception when i try this -
>>>>
>>>> -----------------
>>>> java.lang.NoClassDefFoundError:
>>>> org/eclipse/ui/actions/WorkspaceModifyDelegatingOperation
>>>> java.lang.NoClassDefFoundError:
>>>> org/eclipse/ui/actions/WorkspaceModifyDelegatingOperation
>>>> at
>>>>
>>>>
>>>>
> org.eclipse.emf.edit.ui.action.ValidateAction$EclipseResourc esUtil.getWorkspaceModifyOperation(ValidateAction.java:72)
>
>>>
>>>
>>>> at
>>>>
>>>>
> org.eclipse.emf.edit.ui.action.ValidateAction.run(ValidateAc tion.java:173)
>
>>>> at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
>>>>
>>>>
>>>> ETC
>>>> ----------
>>>>
>>>> Thanks in advance
>>>>
>>>> Roy
>>>>
>>>>
>>>> PS - I posted this question on EMF group but was suggested this group
>>>> might be more appropriate.
>>>>
>>>>
>>>
>
>


--------------090705000307010401090406
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Christian,<br>
<br>
I'm happy to make any change that will make it work better.&nbsp;&nbsp; Someone
just needs to open a bugzilla and suggest something useful; you've
already done the later. ;-)&nbsp;&nbsp; We do this kind of thing in a few places,
so we should improve them all...<br>
<br>
<br>
Christian W. Damus wrote:
<blockquote cite="midels4jo$926$1@utils.eclipse.org" type="cite">
<pre wrap="">Hi, Ed,

The bundle could exist, but not be available for a number of reasons. It
could be installed but not resolved, for example. I think it could even
have existed in the past but not any longer (there is a Bundle.UNINSTALLED
state).

It might be better to check the bundle's state property if the bundle is
found, and only proceed if it is RESOLVED, STARTING, or ACTIVE.

HTH,

Christian


Ed Merks wrote:

</pre>
<blockquote type="cite">
<pre wrap="">Christian,

Sorry, I should have paid closer attention... :-(

That class has this guard:

protected EclipseResourcesUtil eclipseResourcesUtil =
Platform.getBundle("org.eclipse.core.resources") != null ?
new EclipseResourcesUtil() : null;

So it sounds like Roy has an RCP application where the resources plugin
is present but I guess not activated and that's why this action is
trying to use it. If he ensures that the resources plugin is not
present the above guard should prevent the validate action from trying
to use APIs that won't work...



Christian W. Damus wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi, Roy,

This ValidateAction is defined by the EMF Edit UI API. It isn't related
in any way to EMFT Validation.

It looks to me as though this action simply requires the
WorkspaceModifyDelegatingOperation which, I assume, is in the
org.eclipse.ui.ide plug-in. So the answer would be 'no.'

Cheers,

Christian


<a class="moz-txt-link-abbreviated" href="mailto:user@domain.invalid">user@domain.invalid</a> wrote:


</pre>
<blockquote type="cite">
<pre wrap="">Hi

Is it possible to use EMF valiation in a product without shipping
'org.eclipse.ui.ide' ? I get the following exception when i try this -

-----------------
java.lang.NoClassDefFoundError:
org/eclipse/ui/actions/WorkspaceModifyDelegatingOperation
java.lang.NoClassDefFoundError:
org/eclipse/ui/actions/WorkspaceModifyDelegatingOperation
at


</pre>
</blockquote>
</blockquote>
</blockquote>
<pre wrap=""><!----> org.eclipse.emf.edit.ui.action.ValidateAction$EclipseResourc esUtil.getWorkspaceModifyOperation(ValidateAction.java:72)
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">
</pre>
<blockquote type="cite">
<pre wrap=""> at

</pre>
</blockquote>
</blockquote>
</blockquote>
<pre wrap=""><!----> org.eclipse.emf.edit.ui.action.ValidateAction.run(ValidateAc tion.java:173)
</pre>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<pre wrap=""> at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )


ETC
----------

Thanks in advance

Roy


PS - I posted this question on EMF group but was suggested this group
might be more appropriate.

</pre>
</blockquote>
<pre wrap="">
</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
<br>
</body>
</html>

--------------090705000307010401090406--
Re: EMF validation dependency on org.eclipse.ui.ide [message #64589 is a reply to message #64470] Fri, 15 December 2006 15:17 Go to previous message
Eclipse UserFriend
Originally posted by: cdamus.ca.ibm.com

Ask, and ye shall receive!

https://bugs.eclipse.org/bugs/show_bug.cgi?id=168214

(with patch)

Cheers,

Christian


Ed Merks wrote:

> Christian,
>
> I'm happy to make any change that will make it work better. Someone
> just needs to open a bugzilla and suggest something useful; you've
> already done the later. ;-) We do this kind of thing in a few places,
> so we should improve them all...
>

<snip>
Re: EMF validation dependency on org.eclipse.ui.ide [message #596819 is a reply to message #64333] Thu, 14 December 2006 14:30 Go to previous message
Eclipse UserFriend
Originally posted by: cdamus.ca.ibm.com

Hi, Roy,

This ValidateAction is defined by the EMF Edit UI API. It isn't related in
any way to EMFT Validation.

It looks to me as though this action simply requires the
WorkspaceModifyDelegatingOperation which, I assume, is in the
org.eclipse.ui.ide plug-in. So the answer would be 'no.'

Cheers,

Christian


user@domain.invalid wrote:

> Hi
>
> Is it possible to use EMF valiation in a product without shipping
> 'org.eclipse.ui.ide' ? I get the following exception when i try this -
>
> -----------------
> java.lang.NoClassDefFoundError:
> org/eclipse/ui/actions/WorkspaceModifyDelegatingOperation
> java.lang.NoClassDefFoundError:
> org/eclipse/ui/actions/WorkspaceModifyDelegatingOperation
> at
>
org.eclipse.emf.edit.ui.action.ValidateAction$EclipseResourc esUtil.getWorkspaceModifyOperation(ValidateAction.java:72)
> at
> org.eclipse.emf.edit.ui.action.ValidateAction.run(ValidateAc tion.java:173)
> at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
>
>
> ETC
> ----------
>
> Thanks in advance
>
> Roy
>
>
> PS - I posted this question on EMF group but was suggested this group
> might be more appropriate.
Re: EMF validation dependency on org.eclipse.ui.ide [message #596835 is a reply to message #64402] Thu, 14 December 2006 16:39 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 31770
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------050606020408080400050302
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Christian,

Sorry, I should have paid closer attention... :-(

That class has this guard:

protected EclipseResourcesUtil eclipseResourcesUtil =
Platform.getBundle("org.eclipse.core.resources") != null ?
new EclipseResourcesUtil() : null;

So it sounds like Roy has an RCP application where the resources plugin
is present but I guess not activated and that's why this action is
trying to use it. If he ensures that the resources plugin is not
present the above guard should prevent the validate action from trying
to use APIs that won't work...



Christian W. Damus wrote:
> Hi, Roy,
>
> This ValidateAction is defined by the EMF Edit UI API. It isn't related in
> any way to EMFT Validation.
>
> It looks to me as though this action simply requires the
> WorkspaceModifyDelegatingOperation which, I assume, is in the
> org.eclipse.ui.ide plug-in. So the answer would be 'no.'
>
> Cheers,
>
> Christian
>
>
> user@domain.invalid wrote:
>
>
>> Hi
>>
>> Is it possible to use EMF valiation in a product without shipping
>> 'org.eclipse.ui.ide' ? I get the following exception when i try this -
>>
>> -----------------
>> java.lang.NoClassDefFoundError:
>> org/eclipse/ui/actions/WorkspaceModifyDelegatingOperation
>> java.lang.NoClassDefFoundError:
>> org/eclipse/ui/actions/WorkspaceModifyDelegatingOperation
>> at
>>
>>
> org.eclipse.emf.edit.ui.action.ValidateAction$EclipseResourc esUtil.getWorkspaceModifyOperation(ValidateAction.java:72)
>
>> at
>> org.eclipse.emf.edit.ui.action.ValidateAction.run(ValidateAc tion.java:173)
>> at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
>>
>>
>> ETC
>> ----------
>>
>> Thanks in advance
>>
>> Roy
>>
>>
>> PS - I posted this question on EMF group but was suggested this group
>> might be more appropriate.
>>
>
>


--------------050606020408080400050302
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Christian,<br>
<br>
Sorry, I should have paid closer attention...&nbsp; :-(<br>
<br>
That class has this guard:<br>
<br>
&nbsp; protected EclipseResourcesUtil eclipseResourcesUtil = <br>
&nbsp;&nbsp;&nbsp; Platform.getBundle("org.eclipse.core.resources") != null ? <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; new EclipseResourcesUtil() : null;<br>
<br>
So it sounds like Roy has an RCP application where the resources plugin
is present but I guess not activated and that's why this action is
trying to use it.&nbsp; If he ensures that the resources plugin is not
present the above guard should prevent the validate action from trying
to use APIs that won't work...<br>
<br>
<br>
<br>
Christian W. Damus wrote:
<blockquote cite="midelrn5e$jmc$1@utils.eclipse.org" type="cite">
<pre wrap="">Hi, Roy,

This ValidateAction is defined by the EMF Edit UI API. It isn't related in
any way to EMFT Validation.

It looks to me as though this action simply requires the
WorkspaceModifyDelegatingOperation which, I assume, is in the
org.eclipse.ui.ide plug-in. So the answer would be 'no.'

Cheers,

Christian


<a class="moz-txt-link-abbreviated" href="mailto:user@domain.invalid">user@domain.invalid</a> wrote:

</pre>
<blockquote type="cite">
<pre wrap="">Hi

Is it possible to use EMF valiation in a product without shipping
'org.eclipse.ui.ide' ? I get the following exception when i try this -

-----------------
java.lang.NoClassDefFoundError:
org/eclipse/ui/actions/WorkspaceModifyDelegatingOperation
java.lang.NoClassDefFoundError:
org/eclipse/ui/actions/WorkspaceModifyDelegatingOperation
at

</pre>
</blockquote>
<pre wrap=""><!----> org.eclipse.emf.edit.ui.action.ValidateAction$EclipseResourc esUtil.getWorkspaceModifyOperation(ValidateAction.java:72)
</pre>
<blockquote type="cite">
<pre wrap=""> at
org.eclipse.emf.edit.ui.action.ValidateAction.run(ValidateAc tion.java:173)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )


ETC
----------

Thanks in advance

Roy


PS - I posted this question on EMF group but was suggested this group
might be more appropriate.
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
<br>
</body>
</html>

--------------050606020408080400050302--


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: EMF validation dependency on org.eclipse.ui.ide [message #596855 is a reply to message #64425] Thu, 14 December 2006 18:19 Go to previous message
Eclipse UserFriend
Originally posted by: cdamus.ca.ibm.com

Hi, Ed,

The bundle could exist, but not be available for a number of reasons. It
could be installed but not resolved, for example. I think it could even
have existed in the past but not any longer (there is a Bundle.UNINSTALLED
state).

It might be better to check the bundle's state property if the bundle is
found, and only proceed if it is RESOLVED, STARTING, or ACTIVE.

HTH,

Christian


Ed Merks wrote:

> Christian,
>
> Sorry, I should have paid closer attention... :-(
>
> That class has this guard:
>
> protected EclipseResourcesUtil eclipseResourcesUtil =
> Platform.getBundle("org.eclipse.core.resources") != null ?
> new EclipseResourcesUtil() : null;
>
> So it sounds like Roy has an RCP application where the resources plugin
> is present but I guess not activated and that's why this action is
> trying to use it. If he ensures that the resources plugin is not
> present the above guard should prevent the validate action from trying
> to use APIs that won't work...
>
>
>
> Christian W. Damus wrote:
>> Hi, Roy,
>>
>> This ValidateAction is defined by the EMF Edit UI API. It isn't related
>> in any way to EMFT Validation.
>>
>> It looks to me as though this action simply requires the
>> WorkspaceModifyDelegatingOperation which, I assume, is in the
>> org.eclipse.ui.ide plug-in. So the answer would be 'no.'
>>
>> Cheers,
>>
>> Christian
>>
>>
>> user@domain.invalid wrote:
>>
>>
>>> Hi
>>>
>>> Is it possible to use EMF valiation in a product without shipping
>>> 'org.eclipse.ui.ide' ? I get the following exception when i try this -
>>>
>>> -----------------
>>> java.lang.NoClassDefFoundError:
>>> org/eclipse/ui/actions/WorkspaceModifyDelegatingOperation
>>> java.lang.NoClassDefFoundError:
>>> org/eclipse/ui/actions/WorkspaceModifyDelegatingOperation
>>> at
>>>
>>>
>>
org.eclipse.emf.edit.ui.action.ValidateAction$EclipseResourc esUtil.getWorkspaceModifyOperation(ValidateAction.java:72)
>>
>>> at
>>>
org.eclipse.emf.edit.ui.action.ValidateAction.run(ValidateAc tion.java:173)
>>> at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
>>>
>>>
>>> ETC
>>> ----------
>>>
>>> Thanks in advance
>>>
>>> Roy
>>>
>>>
>>> PS - I posted this question on EMF group but was suggested this group
>>> might be more appropriate.
>>>
>>
>>
Re: EMF validation dependency on org.eclipse.ui.ide [message #596869 is a reply to message #64447] Thu, 14 December 2006 19:07 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 31770
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------090705000307010401090406
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Christian,

I'm happy to make any change that will make it work better. Someone
just needs to open a bugzilla and suggest something useful; you've
already done the later. ;-) We do this kind of thing in a few places,
so we should improve them all...


Christian W. Damus wrote:
> Hi, Ed,
>
> The bundle could exist, but not be available for a number of reasons. It
> could be installed but not resolved, for example. I think it could even
> have existed in the past but not any longer (there is a Bundle.UNINSTALLED
> state).
>
> It might be better to check the bundle's state property if the bundle is
> found, and only proceed if it is RESOLVED, STARTING, or ACTIVE.
>
> HTH,
>
> Christian
>
>
> Ed Merks wrote:
>
>
>> Christian,
>>
>> Sorry, I should have paid closer attention... :-(
>>
>> That class has this guard:
>>
>> protected EclipseResourcesUtil eclipseResourcesUtil =
>> Platform.getBundle("org.eclipse.core.resources") != null ?
>> new EclipseResourcesUtil() : null;
>>
>> So it sounds like Roy has an RCP application where the resources plugin
>> is present but I guess not activated and that's why this action is
>> trying to use it. If he ensures that the resources plugin is not
>> present the above guard should prevent the validate action from trying
>> to use APIs that won't work...
>>
>>
>>
>> Christian W. Damus wrote:
>>
>>> Hi, Roy,
>>>
>>> This ValidateAction is defined by the EMF Edit UI API. It isn't related
>>> in any way to EMFT Validation.
>>>
>>> It looks to me as though this action simply requires the
>>> WorkspaceModifyDelegatingOperation which, I assume, is in the
>>> org.eclipse.ui.ide plug-in. So the answer would be 'no.'
>>>
>>> Cheers,
>>>
>>> Christian
>>>
>>>
>>> user@domain.invalid wrote:
>>>
>>>
>>>
>>>> Hi
>>>>
>>>> Is it possible to use EMF valiation in a product without shipping
>>>> 'org.eclipse.ui.ide' ? I get the following exception when i try this -
>>>>
>>>> -----------------
>>>> java.lang.NoClassDefFoundError:
>>>> org/eclipse/ui/actions/WorkspaceModifyDelegatingOperation
>>>> java.lang.NoClassDefFoundError:
>>>> org/eclipse/ui/actions/WorkspaceModifyDelegatingOperation
>>>> at
>>>>
>>>>
>>>>
> org.eclipse.emf.edit.ui.action.ValidateAction$EclipseResourc esUtil.getWorkspaceModifyOperation(ValidateAction.java:72)
>
>>>
>>>
>>>> at
>>>>
>>>>
> org.eclipse.emf.edit.ui.action.ValidateAction.run(ValidateAc tion.java:173)
>
>>>> at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
>>>>
>>>>
>>>> ETC
>>>> ----------
>>>>
>>>> Thanks in advance
>>>>
>>>> Roy
>>>>
>>>>
>>>> PS - I posted this question on EMF group but was suggested this group
>>>> might be more appropriate.
>>>>
>>>>
>>>
>
>


--------------090705000307010401090406
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Christian,<br>
<br>
I'm happy to make any change that will make it work better.&nbsp;&nbsp; Someone
just needs to open a bugzilla and suggest something useful; you've
already done the later. ;-)&nbsp;&nbsp; We do this kind of thing in a few places,
so we should improve them all...<br>
<br>
<br>
Christian W. Damus wrote:
<blockquote cite="midels4jo$926$1@utils.eclipse.org" type="cite">
<pre wrap="">Hi, Ed,

The bundle could exist, but not be available for a number of reasons. It
could be installed but not resolved, for example. I think it could even
have existed in the past but not any longer (there is a Bundle.UNINSTALLED
state).

It might be better to check the bundle's state property if the bundle is
found, and only proceed if it is RESOLVED, STARTING, or ACTIVE.

HTH,

Christian


Ed Merks wrote:

</pre>
<blockquote type="cite">
<pre wrap="">Christian,

Sorry, I should have paid closer attention... :-(

That class has this guard:

protected EclipseResourcesUtil eclipseResourcesUtil =
Platform.getBundle("org.eclipse.core.resources") != null ?
new EclipseResourcesUtil() : null;

So it sounds like Roy has an RCP application where the resources plugin
is present but I guess not activated and that's why this action is
trying to use it. If he ensures that the resources plugin is not
present the above guard should prevent the validate action from trying
to use APIs that won't work...



Christian W. Damus wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi, Roy,

This ValidateAction is defined by the EMF Edit UI API. It isn't related
in any way to EMFT Validation.

It looks to me as though this action simply requires the
WorkspaceModifyDelegatingOperation which, I assume, is in the
org.eclipse.ui.ide plug-in. So the answer would be 'no.'

Cheers,

Christian


<a class="moz-txt-link-abbreviated" href="mailto:user@domain.invalid">user@domain.invalid</a> wrote:


</pre>
<blockquote type="cite">
<pre wrap="">Hi

Is it possible to use EMF valiation in a product without shipping
'org.eclipse.ui.ide' ? I get the following exception when i try this -

-----------------
java.lang.NoClassDefFoundError:
org/eclipse/ui/actions/WorkspaceModifyDelegatingOperation
java.lang.NoClassDefFoundError:
org/eclipse/ui/actions/WorkspaceModifyDelegatingOperation
at


</pre>
</blockquote>
</blockquote>
</blockquote>
<pre wrap=""><!----> org.eclipse.emf.edit.ui.action.ValidateAction$EclipseResourc esUtil.getWorkspaceModifyOperation(ValidateAction.java:72)
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">
</pre>
<blockquote type="cite">
<pre wrap=""> at

</pre>
</blockquote>
</blockquote>
</blockquote>
<pre wrap=""><!----> org.eclipse.emf.edit.ui.action.ValidateAction.run(ValidateAc tion.java:173)
</pre>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<pre wrap=""> at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )


ETC
----------

Thanks in advance

Roy


PS - I posted this question on EMF group but was suggested this group
might be more appropriate.

</pre>
</blockquote>
<pre wrap="">
</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
<br>
</body>
</html>

--------------090705000307010401090406--


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: EMF validation dependency on org.eclipse.ui.ide [message #596943 is a reply to message #64470] Fri, 15 December 2006 15:17 Go to previous message
Eclipse UserFriend
Originally posted by: cdamus.ca.ibm.com

Ask, and ye shall receive!

https://bugs.eclipse.org/bugs/show_bug.cgi?id=168214

(with patch)

Cheers,

Christian


Ed Merks wrote:

> Christian,
>
> I'm happy to make any change that will make it work better. Someone
> just needs to open a bugzilla and suggest something useful; you've
> already done the later. ;-) We do this kind of thing in a few places,
> so we should improve them all...
>

<snip>
Previous Topic:[Announce] EMFT JETEDITOR 0.7.0 is available
Next Topic:teneo - Usage of assert
Goto Forum:
  


Current Time: Sun Feb 28 06:47:59 GMT 2021

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

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

Back to the top