Home » Modeling » GMF (Graphical Modeling Framework) » How to get Validation working in RCP application?
How to get Validation working in RCP application? [message #91104] |
Wed, 10 January 2007 08:30  |
Eclipse User |
|
|
|
Originally posted by: christian.daenekas.informatik.uni-oldenburg.de
Hello!
Would someone be so kind to tell me how I can get valdation to work when
building an editor as a RCP application? The defined Diagram menu
which contained the Validate option when I used the editor inside the
IDE isn´t showing up at all and I´ve not been able to successfully call
ValidateAction on another way. I´m using an GMF IB from 14th Dec. 2006.
I´ve been searching for a solution of this problem for some time now. I
hope you can help me.
Greetings,
Christian
|
|
| | | | | | | | | | |
Re: How to get Validation working in RCP application? [message #97811 is a reply to message #97300] |
Mon, 29 January 2007 05:02   |
Eclipse User |
|
|
|
Originally posted by: christian.daenekas.informatik.uni-oldenburg.de
Hello,
I know the menu from back then when I used my editor inside of the IDE.
But as I said I don´t get the "Diagram" menu, which contains the
validate option, at all. Any idea what could be the problem? I adjusted
all of my models from ecore to gmfgen (also because of some other
changes I had to do) and regenerated the diagram code. Is it possible
that some of my old sourcecode files were not properly overwritten? I
think the menu would be generated by using extensions instead of code,
so the problem could be the plugin.xml or the metainf file? Any idea?
Greetings,
Christian
Dmitry Stadnik schrieb:
> Do you see it in TaiPan?
> Here is a screenshot.
>
> Christian Dänekas wrote:
>> Hello Dmitry,
>>
>> I just got to rebuild my editor with the nightly build (19.01.2007)
>> version of GMF (had some other stuff to do first). Everything
>> concerned with code generation looks good so far and the
>> EditorValidationProvider is fixed as you said. I run my editor RCP
>> application a few minutes ago and noticed that it still got no option
>> to validate the diagram. I enabled validation and its decorators in
>> the gmfgen model and set their priorities to high (as often suggested
>> for validation). Can you instruct me to get access to the validation
>> action? Or do you get the option for "free" and I possibly forgot
>> something? Thank you in advance.
>>
>> Greetings,
>> Christian
>>
>> Dmitry Stadnik schrieb:
>>> Yes, it should be there. Guess that test fails due to EMFT update but
>>> not sure.
>>>
>>> Christian Dänekas wrote:
>>>> Cool, that´s fast :). Is the fix included in this (
>>>> http://download.eclipse.org/modeling/gmf/downloads/drops/N-N 20070115-200701150603/index.php
>>>> ) version? Do you know what´s up with the failure of test
>>>> test_destroy_crossResourceContained_136738 in the gmf sdk? I see
>>>> this failure for some time now.
>>>>
>>>> Greetings,
>>>> Christian
>>>>
>>>>
>>>> Dmitry Stadnik schrieb:
>>>>> Fixed 5 mins ago ))
>>>>>
>>>>> Christian Dänekas wrote:
>>>>>> I also commited a bug concerning validation a while ago. Is it
>>>>>> obsolete now? Maybe you can take a look:
>>>>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=169206
>>>>>>
>
>
> ------------------------------------------------------------ ------------
>
|
|
| | | |
Re: How to get Validation working in RCP application? [message #98320 is a reply to message #98261] |
Mon, 29 January 2007 13:16   |
Eclipse User |
|
|
|
Originally posted by: christian.daenekas.informatik.uni-oldenburg.de
A problem that I´ve found is the Target Platform we use in our project.
As it seems there are some plugins missing that are provided when using
the eclipse IDE as Target Platform. Unfortunately I didn´t notice that
until I tested the Editor that I generated inside our application. After
checking out some required resources from our project I also switched to
our Target Platform and wondered why the menu was missing again as I
tested the editor application on its own again. The plugin set however
validated. It´s a problem in my opinion that missing plugins that are
required by some extensions are not displayed. I also noticed another
strange thing that you could possibly clear up. There is a dependency
towards org.eclipse.ui.win32 . Can you tell me what´s the cause for
this? This plugin requires org.eclipse.ui.ide again, which isn´t
desireable in RCP applications as far as I know. The only thing that I
noticed missing when deactivating these 2 plugins (again the plugin set
validates) are the entries for working sets, in the menu and toolbar,
which I don´t want anyway. Can you tell me where these dependecies come
from and what else they are used for? So far I didn´t find anything else.
Greetings,
Christian
Dmitry Stadnik schrieb:
> It would be interesting to compare generated plugins and see what's the
> difference...
>
> Christian Dänekas wrote:
>> Okay, after I didn´t find any difference (and not really knowing what
>> to look out for) I created a new GMF project and copied my models.
>> After generating the code I started the application and the menu
>> appears after a editor is opened. That´s really strange since my
>> changes to the sourcecode should not affect the generation of the
>> menu. I think I´ll adjust the new generated code till I get the
>> functionality back I added manually. I thank you for your help and
>> hopefully don´t get stuck again.
>>
>> Greetings,
>> Christian
>>
>> Dmitry Stadnik schrieb:
>>> Do you see it in TaiPan?
>>> Here is a screenshot.
>>>
>>> Christian Dänekas wrote:
>>>> Hello Dmitry,
>>>>
>>>> I just got to rebuild my editor with the nightly build (19.01.2007)
>>>> version of GMF (had some other stuff to do first). Everything
>>>> concerned with code generation looks good so far and the
>>>> EditorValidationProvider is fixed as you said. I run my editor RCP
>>>> application a few minutes ago and noticed that it still got no
>>>> option to validate the diagram. I enabled validation and its
>>>> decorators in the gmfgen model and set their priorities to high (as
>>>> often suggested for validation). Can you instruct me to get access
>>>> to the validation action? Or do you get the option for "free" and I
>>>> possibly forgot something? Thank you in advance.
>>>>
>>>> Greetings,
>>>> Christian
>>>>
>>>> Dmitry Stadnik schrieb:
>>>>> Yes, it should be there. Guess that test fails due to EMFT update
>>>>> but not sure.
>>>>>
>>>>> Christian Dänekas wrote:
>>>>>> Cool, that´s fast :). Is the fix included in this (
>>>>>> http://download.eclipse.org/modeling/gmf/downloads/drops/N-N 20070115-200701150603/index.php
>>>>>> ) version? Do you know what´s up with the failure of test
>>>>>> test_destroy_crossResourceContained_136738 in the gmf sdk? I see
>>>>>> this failure for some time now.
>>>>>>
>>>>>> Greetings,
>>>>>> Christian
>>>>>>
>>>>>>
>>>>>> Dmitry Stadnik schrieb:
>>>>>>> Fixed 5 mins ago ))
>>>>>>>
>>>>>>> Christian Dänekas wrote:
>>>>>>>> I also commited a bug concerning validation a while ago. Is it
>>>>>>>> obsolete now? Maybe you can take a look:
>>>>>>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=169206
>>>>>>>>
>>>
>>>
>>> ------------------------------------------------------------ ------------
>>>
|
|
|
Re: How to get Validation working in RCP application? [message #100082 is a reply to message #98320] |
Thu, 01 February 2007 08:29   |
Eclipse User |
|
|
|
Originally posted by: 5d5.mail.ru
Attached file plugins.txt contains all plugins from RCP target platform
on my machine; I also have GMF runtime plugins that got added to the
list. There is no dependency on win32 since I'm on Mac ))) There is a
dependency on carbon and fs but it's ok. I do not have dependency on
*.ide.* plugins and still everything works and I see Validate menu.
Notice that there is core.resources plugin; it's not required by
generated code but GMF runtime; It's used to contribute actions to
resources.
Christian Dänekas wrote:
> A problem that I´ve found is the Target Platform we use in our project.
> As it seems there are some plugins missing that are provided when using
> the eclipse IDE as Target Platform. Unfortunately I didn´t notice that
> until I tested the Editor that I generated inside our application. After
> checking out some required resources from our project I also switched to
> our Target Platform and wondered why the menu was missing again as I
> tested the editor application on its own again. The plugin set however
> validated. It´s a problem in my opinion that missing plugins that are
> required by some extensions are not displayed. I also noticed another
> strange thing that you could possibly clear up. There is a dependency
> towards org.eclipse.ui.win32 . Can you tell me what´s the cause for
> this? This plugin requires org.eclipse.ui.ide again, which isn´t
> desireable in RCP applications as far as I know. The only thing that I
> noticed missing when deactivating these 2 plugins (again the plugin set
> validates) are the entries for working sets, in the menu and toolbar,
> which I don´t want anyway. Can you tell me where these dependecies come
> from and what else they are used for? So far I didn´t find anything else.
>
> Greetings,
> Christian
>
> Dmitry Stadnik schrieb:
>> It would be interesting to compare generated plugins and see what's
>> the difference...
>>
>> Christian Dänekas wrote:
>>> Okay, after I didn´t find any difference (and not really knowing what
>>> to look out for) I created a new GMF project and copied my models.
>>> After generating the code I started the application and the menu
>>> appears after a editor is opened. That´s really strange since my
>>> changes to the sourcecode should not affect the generation of the
>>> menu. I think I´ll adjust the new generated code till I get the
>>> functionality back I added manually. I thank you for your help and
>>> hopefully don´t get stuck again.
>>>
>>> Greetings,
>>> Christian
>>>
>>> Dmitry Stadnik schrieb:
>>>> Do you see it in TaiPan?
>>>> Here is a screenshot.
>>>>
>>>> Christian Dänekas wrote:
>>>>> Hello Dmitry,
>>>>>
>>>>> I just got to rebuild my editor with the nightly build (19.01.2007)
>>>>> version of GMF (had some other stuff to do first). Everything
>>>>> concerned with code generation looks good so far and the
>>>>> EditorValidationProvider is fixed as you said. I run my editor RCP
>>>>> application a few minutes ago and noticed that it still got no
>>>>> option to validate the diagram. I enabled validation and its
>>>>> decorators in the gmfgen model and set their priorities to high (as
>>>>> often suggested for validation). Can you instruct me to get access
>>>>> to the validation action? Or do you get the option for "free" and I
>>>>> possibly forgot something? Thank you in advance.
>>>>>
>>>>> Greetings,
>>>>> Christian
>>>>>
>>>>> Dmitry Stadnik schrieb:
>>>>>> Yes, it should be there. Guess that test fails due to EMFT update
>>>>>> but not sure.
>>>>>>
>>>>>> Christian Dänekas wrote:
>>>>>>> Cool, that´s fast :). Is the fix included in this (
>>>>>>> http://download.eclipse.org/modeling/gmf/downloads/drops/N-N 20070115-200701150603/index.php
>>>>>>> ) version? Do you know what´s up with the failure of test
>>>>>>> test_destroy_crossResourceContained_136738 in the gmf sdk? I see
>>>>>>> this failure for some time now.
>>>>>>>
>>>>>>> Greetings,
>>>>>>> Christian
>>>>>>>
>>>>>>>
>>>>>>> Dmitry Stadnik schrieb:
>>>>>>>> Fixed 5 mins ago ))
>>>>>>>>
>>>>>>>> Christian Dänekas wrote:
>>>>>>>>> I also commited a bug concerning validation a while ago. Is it
>>>>>>>>> obsolete now? Maybe you can take a look:
>>>>>>>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=169206
>>>>>>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------ ------------
>>>>
>>>>
|
|
|
Re: How to get Validation working in RCP application? [message #102759 is a reply to message #100082] |
Fri, 09 February 2007 13:14   |
Eclipse User |
|
|
|
Originally posted by: christian.daenekas.informatik.uni-oldenburg.de
Hi Dmitry,
I´ve got a question regarding the validation again (sorry :( ). When I
started with GMF the validation feature was one thing I quickly played
around with since it is very important for my project. A really cool
feature are the problem markers that mark a node that causes a problem
and show the message in a tooltip. Are these markers not supported in
RCP? I defined some Audits like I did before in my IDE bound editor and
set the domain element targets like before, too. But in the application
there are no markers created when a audit constraint fails that has got
a semantic element as target which is visible as a node in the diagram.
This worked before when I created my editor for use inside the IDE. I
also get no feedback (meaning the message of an audit constraint) from
the audits that I defined to be used in "live mode". To get an idea
what´s the problem I wanted to generate the editor as non RCP. But the
strange thing is that generation only gets up to the
FooNavigatorContentProvider and after that eclipse gets stuck (100% CPU
load, 430MB Ram usage). I already changed the options in the eclipse.ini to:
-vmargs
-Xms40m
-Xmx1024m
but this does not help either. It would be nice if you had an idea about
these three issues or know people that could help me with this. Thank you.
Greetings,
Christian
Dmitry Stadnik schrieb:
> Attached file plugins.txt contains all plugins from RCP target platform
> on my machine; I also have GMF runtime plugins that got added to the
> list. There is no dependency on win32 since I'm on Mac ))) There is a
> dependency on carbon and fs but it's ok. I do not have dependency on
> *.ide.* plugins and still everything works and I see Validate menu.
>
> Notice that there is core.resources plugin; it's not required by
> generated code but GMF runtime; It's used to contribute actions to
> resources.
>
> Christian Dänekas wrote:
>> A problem that I´ve found is the Target Platform we use in our
>> project. As it seems there are some plugins missing that are provided
>> when using the eclipse IDE as Target Platform. Unfortunately I didn´t
>> notice that until I tested the Editor that I generated inside our
>> application. After checking out some required resources from our
>> project I also switched to our Target Platform and wondered why the
>> menu was missing again as I tested the editor application on its own
>> again. The plugin set however validated. It´s a problem in my opinion
>> that missing plugins that are required by some extensions are not
>> displayed. I also noticed another strange thing that you could
>> possibly clear up. There is a dependency towards org.eclipse.ui.win32
>> . Can you tell me what´s the cause for this? This plugin requires
>> org.eclipse.ui.ide again, which isn´t desireable in RCP applications
>> as far as I know. The only thing that I noticed missing when
>> deactivating these 2 plugins (again the plugin set validates) are the
>> entries for working sets, in the menu and toolbar, which I don´t want
>> anyway. Can you tell me where these dependecies come from and what
>> else they are used for? So far I didn´t find anything else.
>>
>> Greetings,
>> Christian
>>
>> Dmitry Stadnik schrieb:
>>> It would be interesting to compare generated plugins and see what's
>>> the difference...
>>>
>>> Christian Dänekas wrote:
>>>> Okay, after I didn´t find any difference (and not really knowing
>>>> what to look out for) I created a new GMF project and copied my
>>>> models. After generating the code I started the application and the
>>>> menu appears after a editor is opened. That´s really strange since
>>>> my changes to the sourcecode should not affect the generation of the
>>>> menu. I think I´ll adjust the new generated code till I get the
>>>> functionality back I added manually. I thank you for your help and
>>>> hopefully don´t get stuck again.
>>>>
>>>> Greetings,
>>>> Christian
>>>>
>>>> Dmitry Stadnik schrieb:
>>>>> Do you see it in TaiPan?
>>>>> Here is a screenshot.
>>>>>
>>>>> Christian Dänekas wrote:
>>>>>> Hello Dmitry,
>>>>>>
>>>>>> I just got to rebuild my editor with the nightly build
>>>>>> (19.01.2007) version of GMF (had some other stuff to do first).
>>>>>> Everything concerned with code generation looks good so far and
>>>>>> the EditorValidationProvider is fixed as you said. I run my editor
>>>>>> RCP application a few minutes ago and noticed that it still got no
>>>>>> option to validate the diagram. I enabled validation and its
>>>>>> decorators in the gmfgen model and set their priorities to high
>>>>>> (as often suggested for validation). Can you instruct me to get
>>>>>> access to the validation action? Or do you get the option for
>>>>>> "free" and I possibly forgot something? Thank you in advance.
>>>>>>
>>>>>> Greetings,
>>>>>> Christian
>>>>>>
>>>>>> Dmitry Stadnik schrieb:
>>>>>>> Yes, it should be there. Guess that test fails due to EMFT update
>>>>>>> but not sure.
>>>>>>>
>>>>>>> Christian Dänekas wrote:
>>>>>>>> Cool, that´s fast :). Is the fix included in this (
>>>>>>>> http://download.eclipse.org/modeling/gmf/downloads/drops/N-N 20070115-200701150603/index.php
>>>>>>>> ) version? Do you know what´s up with the failure of test
>>>>>>>> test_destroy_crossResourceContained_136738 in the gmf sdk? I see
>>>>>>>> this failure for some time now.
>>>>>>>>
>>>>>>>> Greetings,
>>>>>>>> Christian
>>>>>>>>
>>>>>>>>
>>>>>>>> Dmitry Stadnik schrieb:
>>>>>>>>> Fixed 5 mins ago ))
>>>>>>>>>
>>>>>>>>> Christian Dänekas wrote:
>>>>>>>>>> I also commited a bug concerning validation a while ago. Is it
>>>>>>>>>> obsolete now? Maybe you can take a look:
>>>>>>>>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=169206
>>>>>>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------ ------------
>>>>>
>>>>>
|
|
|
Re: How to get Validation working in RCP application? [message #103021 is a reply to message #102759] |
Mon, 12 February 2007 09:18   |
Eclipse User |
|
|
|
Originally posted by: 5d5.mail.ru
Hello!
I suggest to write bugs in bugzilla for each problem since it's easier
to trace issues there.
Markers were not implemented in RCP since there were dependency on
core.resources plugin. We should work around the issue.
Generation process should never hang and audits should work so these are
severe issues (((
Christian Dänekas wrote:
> Hi Dmitry,
>
> I´ve got a question regarding the validation again (sorry :( ). When I
> started with GMF the validation feature was one thing I quickly played
> around with since it is very important for my project. A really cool
> feature are the problem markers that mark a node that causes a problem
> and show the message in a tooltip. Are these markers not supported in
> RCP? I defined some Audits like I did before in my IDE bound editor and
> set the domain element targets like before, too. But in the application
> there are no markers created when a audit constraint fails that has got
> a semantic element as target which is visible as a node in the diagram.
> This worked before when I created my editor for use inside the IDE. I
> also get no feedback (meaning the message of an audit constraint) from
> the audits that I defined to be used in "live mode". To get an idea
> what´s the problem I wanted to generate the editor as non RCP. But the
> strange thing is that generation only gets up to the
> FooNavigatorContentProvider and after that eclipse gets stuck (100% CPU
> load, 430MB Ram usage). I already changed the options in the eclipse.ini
> to:
> -vmargs
> -Xms40m
> -Xmx1024m
> but this does not help either. It would be nice if you had an idea about
> these three issues or know people that could help me with this. Thank you.
>
> Greetings,
> Christian
>
> Dmitry Stadnik schrieb:
>> Attached file plugins.txt contains all plugins from RCP target
>> platform on my machine; I also have GMF runtime plugins that got added
>> to the list. There is no dependency on win32 since I'm on Mac )))
>> There is a dependency on carbon and fs but it's ok. I do not have
>> dependency on *.ide.* plugins and still everything works and I see
>> Validate menu.
>>
>> Notice that there is core.resources plugin; it's not required by
>> generated code but GMF runtime; It's used to contribute actions to
>> resources.
>>
>> Christian Dänekas wrote:
>>> A problem that I´ve found is the Target Platform we use in our
>>> project. As it seems there are some plugins missing that are provided
>>> when using the eclipse IDE as Target Platform. Unfortunately I didn´t
>>> notice that until I tested the Editor that I generated inside our
>>> application. After checking out some required resources from our
>>> project I also switched to our Target Platform and wondered why the
>>> menu was missing again as I tested the editor application on its own
>>> again. The plugin set however validated. It´s a problem in my opinion
>>> that missing plugins that are required by some extensions are not
>>> displayed. I also noticed another strange thing that you could
>>> possibly clear up. There is a dependency towards org.eclipse.ui.win32
>>> . Can you tell me what´s the cause for this? This plugin requires
>>> org.eclipse.ui.ide again, which isn´t desireable in RCP applications
>>> as far as I know. The only thing that I noticed missing when
>>> deactivating these 2 plugins (again the plugin set validates) are the
>>> entries for working sets, in the menu and toolbar, which I don´t want
>>> anyway. Can you tell me where these dependecies come from and what
>>> else they are used for? So far I didn´t find anything else.
>>>
>>> Greetings,
>>> Christian
>>>
>>> Dmitry Stadnik schrieb:
>>>> It would be interesting to compare generated plugins and see what's
>>>> the difference...
>>>>
>>>> Christian Dänekas wrote:
>>>>> Okay, after I didn´t find any difference (and not really knowing
>>>>> what to look out for) I created a new GMF project and copied my
>>>>> models. After generating the code I started the application and the
>>>>> menu appears after a editor is opened. That´s really strange since
>>>>> my changes to the sourcecode should not affect the generation of
>>>>> the menu. I think I´ll adjust the new generated code till I get the
>>>>> functionality back I added manually. I thank you for your help and
>>>>> hopefully don´t get stuck again.
>>>>>
>>>>> Greetings,
>>>>> Christian
>>>>>
>>>>> Dmitry Stadnik schrieb:
>>>>>> Do you see it in TaiPan?
>>>>>> Here is a screenshot.
>>>>>>
>>>>>> Christian Dänekas wrote:
>>>>>>> Hello Dmitry,
>>>>>>>
>>>>>>> I just got to rebuild my editor with the nightly build
>>>>>>> (19.01.2007) version of GMF (had some other stuff to do first).
>>>>>>> Everything concerned with code generation looks good so far and
>>>>>>> the EditorValidationProvider is fixed as you said. I run my
>>>>>>> editor RCP application a few minutes ago and noticed that it
>>>>>>> still got no option to validate the diagram. I enabled validation
>>>>>>> and its decorators in the gmfgen model and set their priorities
>>>>>>> to high (as often suggested for validation). Can you instruct me
>>>>>>> to get access to the validation action? Or do you get the option
>>>>>>> for "free" and I possibly forgot something? Thank you in advance.
>>>>>>>
>>>>>>> Greetings,
>>>>>>> Christian
>>>>>>>
>>>>>>> Dmitry Stadnik schrieb:
>>>>>>>> Yes, it should be there. Guess that test fails due to EMFT
>>>>>>>> update but not sure.
>>>>>>>>
>>>>>>>> Christian Dänekas wrote:
>>>>>>>>> Cool, that´s fast :). Is the fix included in this (
>>>>>>>>> http://download.eclipse.org/modeling/gmf/downloads/drops/N-N 20070115-200701150603/index.php
>>>>>>>>> ) version? Do you know what´s up with the failure of test
>>>>>>>>> test_destroy_crossResourceContained_136738 in the gmf sdk? I
>>>>>>>>> see this failure for some time now.
>>>>>>>>>
>>>>>>>>> Greetings,
>>>>>>>>> Christian
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Dmitry Stadnik schrieb:
>>>>>>>>>> Fixed 5 mins ago ))
>>>>>>>>>>
>>>>>>>>>> Christian Dänekas wrote:
>>>>>>>>>>> I also commited a bug concerning validation a while ago. Is
>>>>>>>>>>> it obsolete now? Maybe you can take a look:
>>>>>>>>>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=169206
>>>>>>>>>>>
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------ ------------
>>>>>>
>>>>>>
|
|
|
Re: How to get Validation working in RCP application? [message #103252 is a reply to message #103021] |
Mon, 12 February 2007 14:18  |
Eclipse User |
|
|
|
Originally posted by: christian.daenekas.informatik.uni-oldenburg.de
Ok,
you might want to take a look (and of course anyone else who´s
interested). I hope I created the bugs under the right components.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=173885
https://bugs.eclipse.org/bugs/show_bug.cgi?id=173891
https://bugs.eclipse.org/bugs/show_bug.cgi?id=173910
Greetings,
Christian
Dmitry Stadnik schrieb:
> Hello!
>
> I suggest to write bugs in bugzilla for each problem since it's easier
> to trace issues there.
>
> Markers were not implemented in RCP since there were dependency on
> core.resources plugin. We should work around the issue.
>
> Generation process should never hang and audits should work so these are
> severe issues (((
>
>
> Christian Dänekas wrote:
>> Hi Dmitry,
>>
>> I´ve got a question regarding the validation again (sorry :( ). When I
>> started with GMF the validation feature was one thing I quickly played
>> around with since it is very important for my project. A really cool
>> feature are the problem markers that mark a node that causes a problem
>> and show the message in a tooltip. Are these markers not supported in
>> RCP? I defined some Audits like I did before in my IDE bound editor
>> and set the domain element targets like before, too. But in the
>> application there are no markers created when a audit constraint fails
>> that has got a semantic element as target which is visible as a node
>> in the diagram. This worked before when I created my editor for use
>> inside the IDE. I also get no feedback (meaning the message of an
>> audit constraint) from the audits that I defined to be used in "live
>> mode". To get an idea what´s the problem I wanted to generate the
>> editor as non RCP. But the strange thing is that generation only gets
>> up to the FooNavigatorContentProvider and after that eclipse gets
>> stuck (100% CPU load, 430MB Ram usage). I already changed the options
>> in the eclipse.ini to:
>> -vmargs
>> -Xms40m
>> -Xmx1024m
>> but this does not help either. It would be nice if you had an idea
>> about these three issues or know people that could help me with this.
>> Thank you.
>>
>> Greetings,
>> Christian
>>
>> Dmitry Stadnik schrieb:
>>> Attached file plugins.txt contains all plugins from RCP target
>>> platform on my machine; I also have GMF runtime plugins that got
>>> added to the list. There is no dependency on win32 since I'm on Mac
>>> ))) There is a dependency on carbon and fs but it's ok. I do not have
>>> dependency on *.ide.* plugins and still everything works and I see
>>> Validate menu.
>>>
>>> Notice that there is core.resources plugin; it's not required by
>>> generated code but GMF runtime; It's used to contribute actions to
>>> resources.
>>>
>>> Christian Dänekas wrote:
>>>> A problem that I´ve found is the Target Platform we use in our
>>>> project. As it seems there are some plugins missing that are
>>>> provided when using the eclipse IDE as Target Platform.
>>>> Unfortunately I didn´t notice that until I tested the Editor that I
>>>> generated inside our application. After checking out some required
>>>> resources from our project I also switched to our Target Platform
>>>> and wondered why the menu was missing again as I tested the editor
>>>> application on its own again. The plugin set however validated. It´s
>>>> a problem in my opinion that missing plugins that are required by
>>>> some extensions are not displayed. I also noticed another strange
>>>> thing that you could possibly clear up. There is a dependency
>>>> towards org.eclipse.ui.win32 . Can you tell me what´s the cause for
>>>> this? This plugin requires org.eclipse.ui.ide again, which isn´t
>>>> desireable in RCP applications as far as I know. The only thing that
>>>> I noticed missing when deactivating these 2 plugins (again the
>>>> plugin set validates) are the entries for working sets, in the menu
>>>> and toolbar, which I don´t want anyway. Can you tell me where these
>>>> dependecies come from and what else they are used for? So far I
>>>> didn´t find anything else.
>>>>
>>>> Greetings,
>>>> Christian
>>>>
>>>> Dmitry Stadnik schrieb:
>>>>> It would be interesting to compare generated plugins and see what's
>>>>> the difference...
>>>>>
>>>>> Christian Dänekas wrote:
>>>>>> Okay, after I didn´t find any difference (and not really knowing
>>>>>> what to look out for) I created a new GMF project and copied my
>>>>>> models. After generating the code I started the application and
>>>>>> the menu appears after a editor is opened. That´s really strange
>>>>>> since my changes to the sourcecode should not affect the
>>>>>> generation of the menu. I think I´ll adjust the new generated code
>>>>>> till I get the functionality back I added manually. I thank you
>>>>>> for your help and hopefully don´t get stuck again.
>>>>>>
>>>>>> Greetings,
>>>>>> Christian
>>>>>>
>>>>>> Dmitry Stadnik schrieb:
>>>>>>> Do you see it in TaiPan?
>>>>>>> Here is a screenshot.
>>>>>>>
>>>>>>> Christian Dänekas wrote:
>>>>>>>> Hello Dmitry,
>>>>>>>>
>>>>>>>> I just got to rebuild my editor with the nightly build
>>>>>>>> (19.01.2007) version of GMF (had some other stuff to do first).
>>>>>>>> Everything concerned with code generation looks good so far and
>>>>>>>> the EditorValidationProvider is fixed as you said. I run my
>>>>>>>> editor RCP application a few minutes ago and noticed that it
>>>>>>>> still got no option to validate the diagram. I enabled
>>>>>>>> validation and its decorators in the gmfgen model and set their
>>>>>>>> priorities to high (as often suggested for validation). Can you
>>>>>>>> instruct me to get access to the validation action? Or do you
>>>>>>>> get the option for "free" and I possibly forgot something? Thank
>>>>>>>> you in advance.
>>>>>>>>
>>>>>>>> Greetings,
>>>>>>>> Christian
>>>>>>>>
>>>>>>>> Dmitry Stadnik schrieb:
>>>>>>>>> Yes, it should be there. Guess that test fails due to EMFT
>>>>>>>>> update but not sure.
>>>>>>>>>
>>>>>>>>> Christian Dänekas wrote:
>>>>>>>>>> Cool, that´s fast :). Is the fix included in this (
>>>>>>>>>> http://download.eclipse.org/modeling/gmf/downloads/drops/N-N 20070115-200701150603/index.php
>>>>>>>>>> ) version? Do you know what´s up with the failure of test
>>>>>>>>>> test_destroy_crossResourceContained_136738 in the gmf sdk? I
>>>>>>>>>> see this failure for some time now.
>>>>>>>>>>
>>>>>>>>>> Greetings,
>>>>>>>>>> Christian
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Dmitry Stadnik schrieb:
>>>>>>>>>>> Fixed 5 mins ago ))
>>>>>>>>>>>
>>>>>>>>>>> Christian Dänekas wrote:
>>>>>>>>>>>> I also commited a bug concerning validation a while ago. Is
>>>>>>>>>>>> it obsolete now? Maybe you can take a look:
>>>>>>>>>>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=169206
>>>>>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> ------------------------------------------------------------ ------------
>>>>>>>
>>>>>>>
|
|
|
Goto Forum:
Current Time: Mon Sep 22 01:06:16 EDT 2025
Powered by FUDForum. Page generated in 0.07504 seconds
|