Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » No parser is registered for the "OCL" language
No parser is registered for the "OCL" language [message #60636] Tue, 10 October 2006 17:31 Go to next message
Eclipse UserFriend
Originally posted by: leonardo.coelho.siliconstrategy.com.br

Hi,

I´m developing an RCP app based on GMF.

I´ve created a GMF plugin with a especific diagram and some audit rules
based on OCL.

When I use it as a standard plugin in Eclipse it works fine. But, when I
try to use it in my own RCP app it crashes the Problem view.

I´ve used the contributionItemProvider to make my Validate Menu appears:

<extension id="ValidationContributionItemProvider" name="Validation"

point=" org.eclipse.gmf.runtime.common.ui.services.action.contributi onItemProviders ">
<contributionItemProvider checkPluginLoaded="true"
class="workflow.diagram.providers.Stw_clientValidationProvider ">
<Priority name="High"/>
<partContribution
id="workflow.diagram.part.Stw_clientDiagramEditorID">
<partMenuGroup menubarPath="/window/" id="validationGroup"/>
<partAction id="validateAction"
menubarPath="/window/validationGroup"/>
</partContribution>
</contributionItemProvider>
</extension>

(it is temporarily under the Window menu!)

Then, I run my app and click on the Validate Action. It appears a lot of
Info in my Diagram that say "IRJAXXX The constraint blablabla is
disabled. It will not be evaluated".

If I analyse the generated log I get this: No parser is registered for
the "OCL" language. Constraints expressed in this language will not be
evaluated.

What should I do to make it works? Isn´t it strange? I´ve supposed if it
was working in my gmf pure plugin and if I add it to my RCP app, all
these stuff would be working fine... Should I repeat (in my stand alone
app) some of the extensions that already exists in my gmf pure plugin?

Thx!


--

=============================/============================== ====
Leonardo Coelho
=============================/============================== =====
Re: No parser is registered for the "OCL" language [message #60637 is a reply to message #60636] Tue, 10 October 2006 18:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: leonardo.coelho.siliconstrategy.com.br

Updating my doubt: I´ve already added org.eclipse.emf.validation plugins
to the dependency of my App and it has solved part of the problem.

Now it´s working a little bit better: it shows the exact problem and
when I click on the error, it focuses the node that concerns to it.

However, it still logging a error. And the figures in the problem view
are not shown.

It appears to be a common problem not related to GMF... if anyone knows
it, I´d appreciate the help.

Thx!

leo


!MESSAGE Problems occurred when invoking code from plug-in:
"org.eclipse.jface".
!STACK 0
org.eclipse.jface.util.Assert$AssertionFailedException: null argument;
at org.eclipse.jface.util.Assert.isNotNull(Assert.java:150)
at org.eclipse.jface.util.Assert.isNotNull(Assert.java:126)
at
org.eclipse.jface.resource.ResourceManager.createImage(Resou rceManager.java:93)
at
org.eclipse.ui.views.markers.internal.FieldSeverityAndMessag e.getImage(FieldSeverityAndMessage.java:65)
at
org.eclipse.ui.views.markers.internal.TableViewLabelProvider .getColumnImage(TableViewLabelProvider.java:49)
at org.eclipse.jface.viewers.TreeViewer.doUpdateItem(TreeViewer .java:310)
at
org.eclipse.jface.viewers.AbstractTreeViewer$UpdateItemSafeR unnable.run(AbstractTreeViewer.java:95)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:843)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:14 9)
at
org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(Ab stractTreeViewer.java:840)
at
org.eclipse.jface.viewers.StructuredViewer$UpdateItemSafeRun nable.run(StructuredViewer.java:465)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:843)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:14 9)
at
org.eclipse.jface.viewers.StructuredViewer.updateItem(Struct uredViewer.java:1955)
at
org.eclipse.jface.viewers.AbstractTreeViewer.createTreeItem( AbstractTreeViewer.java:744)
at
org.eclipse.jface.viewers.AbstractTreeViewer.updateChildren( AbstractTreeViewer.java:2427)
at
org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh Struct(AbstractTreeViewer.java:1640)
at
org.eclipse.jface.viewers.TreeViewer.internalRefreshStruct(T reeViewer.java:955)
at
org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh (AbstractTreeViewer.java:1616)
at
org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh (AbstractTreeViewer.java:1571)
at
org.eclipse.jface.viewers.StructuredViewer$8.run(StructuredV iewer.java:1415)
at
org.eclipse.jface.viewers.StructuredViewer.preservingSelecti on(StructuredViewer.java:1323)
at
org.eclipse.jface.viewers.StructuredViewer.refresh(Structure dViewer.java:1413)
at
org.eclipse.jface.viewers.StructuredViewer.refresh(Structure dViewer.java:1370)
at
org.eclipse.ui.views.markers.internal.MarkerView$UpdateJob.r unInUIThread(MarkerView.java:222)
at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:94)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3325)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2971)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at br.com.siliconstrategy.stw.admin.ui.StwAdminApp.run(StwAdmin App.java:18)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)

Regards

Leonardo Coelho escreveu:
> Hi,
>
> I´m developing an RCP app based on GMF.
>
> I´ve created a GMF plugin with a especific diagram and some audit rules
> based on OCL.
>
> When I use it as a standard plugin in Eclipse it works fine. But, when I
> try to use it in my own RCP app it crashes the Problem view.
>
> I´ve used the contributionItemProvider to make my Validate Menu appears:
>
> <extension id="ValidationContributionItemProvider" name="Validation"
>
> point=" org.eclipse.gmf.runtime.common.ui.services.action.contributi onItemProviders ">
>
> <contributionItemProvider checkPluginLoaded="true"
> class="workflow.diagram.providers.Stw_clientValidationProvider ">
> <Priority name="High"/>
> <partContribution
> id="workflow.diagram.part.Stw_clientDiagramEditorID">
> <partMenuGroup menubarPath="/window/" id="validationGroup"/>
> <partAction id="validateAction"
> menubarPath="/window/validationGroup"/>
> </partContribution>
> </contributionItemProvider>
> </extension>
>
> (it is temporarily under the Window menu!)
>
> Then, I run my app and click on the Validate Action. It appears a lot of
> Info in my Diagram that say "IRJAXXX The constraint blablabla is
> disabled. It will not be evaluated".
>
> If I analyse the generated log I get this: No parser is registered for
> the "OCL" language. Constraints expressed in this language will not be
> evaluated.
>
> What should I do to make it works? Isn´t it strange? I´ve supposed if it
> was working in my gmf pure plugin and if I add it to my RCP app, all
> these stuff would be working fine... Should I repeat (in my stand alone
> app) some of the extensions that already exists in my gmf pure plugin?
>
> Thx!
>
>

--

=============================/============================== ====
Leonardo Coelho
=============================/============================== =====
Re: No parser is registered for the "OCL" language [message #60643 is a reply to message #60637] Tue, 10 October 2006 20:14 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: leonardo.coelho.siliconstrategy.com.br

Well... i´ve solved it but i must recognize it was a bit awful...

I´d like to hear from you if it is the best way to deal with this issue...

I´ve found out that there was a problem loading the images of the
Problem view. Look at this line of the stack trace:

at
org.eclipse.ui.views.markers.internal.FieldSeverityAndMessag e.getImage(FieldSeverityAndMessage.java:65)

Then, in a intensive work gogling any help, i´ve found this link:

http://www.eclipsezone.com/forums/thread.jspa?messageID=9188 4470&%2313890;&

In this link, we are lead to create an alternative to load any icon
related to internal ide resources.

So, i´ve changed my Advisor to load specific images of the Problem View.

private void declareWorkbenchImage(Bundle ideBundle, String
symbolicName, String path, boolean shared) {

ImageDescriptor desc = Activator.getImageDescriptor(path);
getWorkbenchConfigurer().declareImage(symbolicName, desc, shared);
}

Now it is working fine. And i must recognize: even better, ´cause now I
can add any icon I want.

But, an important question: is it the best way to do? I´m really not
sure about this.

Regards,

leo

Leonardo Coelho escreveu:
> Updating my doubt: I´ve already added org.eclipse.emf.validation plugins
> to the dependency of my App and it has solved part of the problem.
>
> Now it´s working a little bit better: it shows the exact problem and
> when I click on the error, it focuses the node that concerns to it.
>
> However, it still logging a error. And the figures in the problem view
> are not shown.
>
> It appears to be a common problem not related to GMF... if anyone knows
> it, I´d appreciate the help.
>
> Thx!
>
> leo
>
>
> !MESSAGE Problems occurred when invoking code from plug-in:
> "org.eclipse.jface".
> !STACK 0
> org.eclipse.jface.util.Assert$AssertionFailedException: null argument;
> at org.eclipse.jface.util.Assert.isNotNull(Assert.java:150)
> at org.eclipse.jface.util.Assert.isNotNull(Assert.java:126)
> at
> org.eclipse.jface.resource.ResourceManager.createImage(Resou rceManager.java:93)
>
> at
> org.eclipse.ui.views.markers.internal.FieldSeverityAndMessag e.getImage(FieldSeverityAndMessage.java:65)
>
> at
> org.eclipse.ui.views.markers.internal.TableViewLabelProvider .getColumnImage(TableViewLabelProvider.java:49)
>
> at
> org.eclipse.jface.viewers.TreeViewer.doUpdateItem(TreeViewer .java:310)
> at
> org.eclipse.jface.viewers.AbstractTreeViewer$UpdateItemSafeR unnable.run(AbstractTreeViewer.java:95)
>
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> at org.eclipse.core.runtime.Platform.run(Platform.java:843)
> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:14 9)
> at
> org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(Ab stractTreeViewer.java:840)
>
> at
> org.eclipse.jface.viewers.StructuredViewer$UpdateItemSafeRun nable.run(StructuredViewer.java:465)
>
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> at org.eclipse.core.runtime.Platform.run(Platform.java:843)
> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:14 9)
> at
> org.eclipse.jface.viewers.StructuredViewer.updateItem(Struct uredViewer.java:1955)
>
> at
> org.eclipse.jface.viewers.AbstractTreeViewer.createTreeItem( AbstractTreeViewer.java:744)
>
> at
> org.eclipse.jface.viewers.AbstractTreeViewer.updateChildren( AbstractTreeViewer.java:2427)
>
> at
> org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh Struct(AbstractTreeViewer.java:1640)
>
> at
> org.eclipse.jface.viewers.TreeViewer.internalRefreshStruct(T reeViewer.java:955)
>
> at
> org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh (AbstractTreeViewer.java:1616)
>
> at
> org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh (AbstractTreeViewer.java:1571)
>
> at
> org.eclipse.jface.viewers.StructuredViewer$8.run(StructuredV iewer.java:1415)
>
> at
> org.eclipse.jface.viewers.StructuredViewer.preservingSelecti on(StructuredViewer.java:1323)
>
> at
> org.eclipse.jface.viewers.StructuredViewer.refresh(Structure dViewer.java:1413)
>
> at
> org.eclipse.jface.viewers.StructuredViewer.refresh(Structure dViewer.java:1370)
>
> at
> org.eclipse.ui.views.markers.internal.MarkerView$UpdateJob.r unInUIThread(MarkerView.java:222)
>
> at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:94)
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
> at
> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
>
> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3325)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2971)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at
> br.com.siliconstrategy.stw.admin.ui.StwAdminApp.run(StwAdmin App.java:18)
> at
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
> at org.eclipse.core.launcher.Main.run(Main.java:977)
> at org.eclipse.core.launcher.Main.main(Main.java:952)
>
> Regards
>
> Leonardo Coelho escreveu:
>> Hi,
>>
>> I´m developing an RCP app based on GMF.
>>
>> I´ve created a GMF plugin with a especific diagram and some audit
>> rules based on OCL.
>>
>> When I use it as a standard plugin in Eclipse it works fine. But, when
>> I try to use it in my own RCP app it crashes the Problem view.
>>
>> I´ve used the contributionItemProvider to make my Validate Menu appears:
>>
>> <extension id="ValidationContributionItemProvider" name="Validation"
>>
>> point=" org.eclipse.gmf.runtime.common.ui.services.action.contributi onItemProviders ">
>>
>> <contributionItemProvider checkPluginLoaded="true"
>> class="workflow.diagram.providers.Stw_clientValidationProvider ">
>> <Priority name="High"/>
>> <partContribution
>> id="workflow.diagram.part.Stw_clientDiagramEditorID">
>> <partMenuGroup menubarPath="/window/" id="validationGroup"/>
>> <partAction id="validateAction"
>> menubarPath="/window/validationGroup"/>
>> </partContribution>
>> </contributionItemProvider>
>> </extension>
>>
>> (it is temporarily under the Window menu!)
>>
>> Then, I run my app and click on the Validate Action. It appears a lot
>> of Info in my Diagram that say "IRJAXXX The constraint blablabla is
>> disabled. It will not be evaluated".
>>
>> If I analyse the generated log I get this: No parser is registered for
>> the "OCL" language. Constraints expressed in this language will not be
>> evaluated.
>>
>> What should I do to make it works? Isn´t it strange? I´ve supposed if
>> it was working in my gmf pure plugin and if I add it to my RCP app,
>> all these stuff would be working fine... Should I repeat (in my stand
>> alone app) some of the extensions that already exists in my gmf pure
>> plugin?
>>
>> Thx!
>>
>>
>

--

=============================/============================== ====
Leonardo Coelho
=============================/============================== =====
Re: No parser is registered for the "OCL" language [message #60649 is a reply to message #60643] Wed, 11 October 2006 08:44 Go to previous messageGo to next message
Artem Tikhomirov is currently offline Artem TikhomirovFriend
Messages: 222
Registered: July 2009
Senior Member
Well, it's definitely better to ask this question in RCP newsgroup ;), as
there's nothing to deal with GMF


"Leonardo Coelho" <leonardo.coelho@siliconstrategy.com.br> wrote in message
news:egguqg$4mf$1@utils.eclipse.org...
> Well... i
Re: No parser is registered for the "OCL" language [message #60902 is a reply to message #60649] Wed, 11 October 2006 14:28 Go to previous message
Eclipse UserFriend
Originally posted by: leonardo.coelho.siliconstrategy.com.br

Yes, you´re sure, Artem!!

Thx anyway!

leo

Artem Tikhomirov escreveu:

> Well, it's definitely better to ask this question in RCP newsgroup ;), as
> there's nothing to deal with GMF
>
>
> "Leonardo Coelho" <leonardo.coelho@siliconstrategy.com.br> wrote in message
> news:egguqg$4mf$1@utils.eclipse.org...
>> Well... i´ve solved it but i must recognize it was a bit awful...
>>
>> I´d like to hear from you if it is the best way to deal with this issue...
>>
>> I´ve found out that there was a problem loading the images of the Problem
>> view. Look at this line of the stack trace:
>>
>> at
>> org.eclipse.ui.views.markers.internal.FieldSeverityAndMessag e.getImage(FieldSeverityAndMessage.java:65)
>>
>> Then, in a intensive work gogling any help, i´ve found this link:
>>
>> http://www.eclipsezone.com/forums/thread.jspa?messageID=9188 4470&%2313890;&
>>
>> In this link, we are lead to create an alternative to load any icon
>> related to internal ide resources.
>>
>> So, i´ve changed my Advisor to load specific images of the Problem View.
>>
>> private void declareWorkbenchImage(Bundle ideBundle, String
>> symbolicName, String path, boolean shared) {
>>
>> ImageDescriptor desc = Activator.getImageDescriptor(path);
>> getWorkbenchConfigurer().declareImage(symbolicName, desc, shared);
>> }
>>
>> Now it is working fine. And i must recognize: even better, ´cause now I
>> can add any icon I want.
>>
>> But, an important question: is it the best way to do? I´m really not sure
>> about this.
>>
>> Regards,
>>
>> leo
>>
>> Leonardo Coelho escreveu:
>>> Updating my doubt: I´ve already added org.eclipse.emf.validation plugins
>>> to the dependency of my App and it has solved part of the problem.
>>>
>>> Now it´s working a little bit better: it shows the exact problem and when
>>> I click on the error, it focuses the node that concerns to it.
>>>
>>> However, it still logging a error. And the figures in the problem view
>>> are not shown.
>>>
>>> It appears to be a common problem not related to GMF... if anyone knows
>>> it, I´d appreciate the help.
>>>
>>> Thx!
>>>
>>> leo
>>>
>>>
>>> !MESSAGE Problems occurred when invoking code from plug-in:
>>> "org.eclipse.jface".
>>> !STACK 0
>>> org.eclipse.jface.util.Assert$AssertionFailedException: null argument;
>>> at org.eclipse.jface.util.Assert.isNotNull(Assert.java:150)
>>> at org.eclipse.jface.util.Assert.isNotNull(Assert.java:126)
>>> at
>>> org.eclipse.jface.resource.ResourceManager.createImage(Resou rceManager.java:93)
>>> at
>>> org.eclipse.ui.views.markers.internal.FieldSeverityAndMessag e.getImage(FieldSeverityAndMessage.java:65)
>>> at
>>> org.eclipse.ui.views.markers.internal.TableViewLabelProvider .getColumnImage(TableViewLabelProvider.java:49)
>>> at org.eclipse.jface.viewers.TreeViewer.doUpdateItem(TreeViewer .java:310)
>>> at
>>> org.eclipse.jface.viewers.AbstractTreeViewer$UpdateItemSafeR unnable.run(AbstractTreeViewer.java:95)
>>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>>> at org.eclipse.core.runtime.Platform.run(Platform.java:843)
>>> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
>>> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:14 9)
>>> at
>>> org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(Ab stractTreeViewer.java:840)
>>> at
>>> org.eclipse.jface.viewers.StructuredViewer$UpdateItemSafeRun nable.run(StructuredViewer.java:465)
>>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>>> at org.eclipse.core.runtime.Platform.run(Platform.java:843)
>>> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
>>> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:14 9)
>>> at
>>> org.eclipse.jface.viewers.StructuredViewer.updateItem(Struct uredViewer.java:1955)
>>> at
>>> org.eclipse.jface.viewers.AbstractTreeViewer.createTreeItem( AbstractTreeViewer.java:744)
>>> at
>>> org.eclipse.jface.viewers.AbstractTreeViewer.updateChildren( AbstractTreeViewer.java:2427)
>>> at
>>> org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh Struct(AbstractTreeViewer.java:1640)
>>> at
>>> org.eclipse.jface.viewers.TreeViewer.internalRefreshStruct(T reeViewer.java:955)
>>> at
>>> org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh (AbstractTreeViewer.java:1616)
>>> at
>>> org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh (AbstractTreeViewer.java:1571)
>>> at
>>> org.eclipse.jface.viewers.StructuredViewer$8.run(StructuredV iewer.java:1415)
>>> at
>>> org.eclipse.jface.viewers.StructuredViewer.preservingSelecti on(StructuredViewer.java:1323)
>>> at
>>> org.eclipse.jface.viewers.StructuredViewer.refresh(Structure dViewer.java:1413)
>>> at
>>> org.eclipse.jface.viewers.StructuredViewer.refresh(Structure dViewer.java:1370)
>>> at
>>> org.eclipse.ui.views.markers.internal.MarkerView$UpdateJob.r unInUIThread(MarkerView.java:222)
>>> at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:94)
>>> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
>>> at
>>> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
>>> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3325)
>>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2971)
>>> at
>>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
>>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
>>> at
>>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
>>> at
>>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>>> at
>>> br.com.siliconstrategy.stw.admin.ui.StwAdminApp.run(StwAdmin App.java:18)
>>> at
>>> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
>>> at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
>>> at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
>>> at
>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
>>> at
>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>>> at java.lang.reflect.Method.invoke(Unknown Source)
>>> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
>>> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
>>> at org.eclipse.core.launcher.Main.run(Main.java:977)
>>> at org.eclipse.core.launcher.Main.main(Main.java:952)
>>>
>>> Regards
>>>
>>> Leonardo Coelho escreveu:
>>>> Hi,
>>>>
>>>> I´m developing an RCP app based on GMF.
>>>>
>>>> I´ve created a GMF plugin with a especific diagram and some audit rules
>>>> based on OCL.
>>>>
>>>> When I use it as a standard plugin in Eclipse it works fine. But, when I
>>>> try to use it in my own RCP app it crashes the Problem view.
>>>>
>>>> I´ve used the contributionItemProvider to make my Validate Menu appears:
>>>>
>>>> <extension id="ValidationContributionItemProvider" name="Validation"
>>>>
>>>> point=" org.eclipse.gmf.runtime.common.ui.services.action.contributi onItemProviders ">
>>>> <contributionItemProvider checkPluginLoaded="true"
>>>>
>>>> class="workflow.diagram.providers.Stw_clientValidationProvider ">
>>>> <Priority name="High"/>
>>>> <partContribution
>>>> id="workflow.diagram.part.Stw_clientDiagramEditorID">
>>>> <partMenuGroup menubarPath="/window/" id="validationGroup"/>
>>>> <partAction id="validateAction"
>>>> menubarPath="/window/validationGroup"/>
>>>> </partContribution>
>>>> </contributionItemProvider>
>>>> </extension>
>>>>
>>>> (it is temporarily under the Window menu!)
>>>>
>>>> Then, I run my app and click on the Validate Action. It appears a lot of
>>>> Info in my Diagram that say "IRJAXXX The constraint blablabla is
>>>> disabled. It will not be evaluated".
>>>>
>>>> If I analyse the generated log I get this: No parser is registered for
>>>> the "OCL" language. Constraints expressed in this language will not be
>>>> evaluated.
>>>>
>>>> What should I do to make it works? Isn´t it strange? I´ve supposed if it
>>>> was working in my gmf pure plugin and if I add it to my RCP app, all
>>>> these stuff would be working fine... Should I repeat (in my stand alone
>>>> app) some of the extensions that already exists in my gmf pure plugin?
>>>>
>>>> Thx!
>>>>
>>>>
>> --
>>
>> =============================/============================== ====
>> Leonardo Coelho
>> =============================/============================== =====
>
>

--

=============================/============================== ====
Leonardo Coelho
=============================/============================== =====
Previous Topic:Links and subclasses
Next Topic:Creating a MenuAction for an EOperation
Goto Forum:
  


Current Time: Sat Jul 27 16:28:40 GMT 2024

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

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

Back to the top