Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » where is the file "propsheet.genmodel"?
where is the file "propsheet.genmodel"? [message #180765] Thu, 03 April 2008 13:47 Go to next message
Eclipse UserFriend
Originally posted by: messineo.rosario.gmail.com

Hi,

I need to customize my Property Sheet and I've found this tutorias:

"GMF Propsheet Customization"
-http://wiki.eclipse.org/GMF_Propsheet_Customization

I downloaded plugin org.eclipse.gmf.graphdef.editor how it is written in
tutorials via CVS but there isn't the file propsheet.genmodel, where is it?

Therefore, when I generate code from graphdef.gmfgen I receive some
Exception as this;

Exception (No Definition 'MetaModel::DeclareAndAssign(EString, EString)
for GenClass' found!:in aspects::impl::diagram::editparts::NodeEditPart on
line 120 'EXPAND MetaModel::DeclareAndAssign("modelElement",
"((org.eclipse.gmf.runtime.notation.View) getModel()).getElement()") FOR
node.metaclass()') while generating code

What is the w problem in my enviroment?

Thanks in advance

Rosario
Re: where is the file "propsheet.genmodel"? [message #180909 is a reply to message #180765] Fri, 04 April 2008 12:41 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Rosario,

> I downloaded plugin org.eclipse.gmf.graphdef.editor how it is written
> in tutorials via CVS but there isn't the file propsheet.genmodel,
> where is it?
It was recently removed in order to migrate to new property pages generator
(not done yet). If you need you can get in from CVS history.

> What is the w problem in my enviroment?
You probably do not have latest version of GMF - if you are working with
one plugin checked out from CVS then it should be compatible with the latest
versions of all the rest of GMF plugins.

-----------------
Alex Shatalin
Re: where is the file "propsheet.genmodel"? [message #180988 is a reply to message #180909] Fri, 04 April 2008 15:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: messineo.rosario.gmail.com

I get the plugin org.eclipse.gmf.graphdef.editor v20080114-2222 via CVS
and there is the propsheet.genmodel file, but my enviroment indicates
many errors
for the following files:

NodeEditPart.xpt
Utils.ext
PropertySection.xpt
Utils.ext

Kind of error:

Multiple markers at this line - Couldn't find operation 'isGeneratedTab()'
for type 'GenCustomPropertyTab' - Error parsing extensions : Unable to
load extension file : xpt::EMFUtils

My eclipse platform is updated by Update Site Europe and there is
installed the openArchitectureWare, which are dependencies with rigth
version of this plugin? When can I get them?

Thanks in advance,

Rosario
Re: where is the file "propsheet.genmodel"? [message #180996 is a reply to message #180988] Fri, 04 April 2008 17:14 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Rosario,

> My eclipse platform is updated by Update Site Europe and there is
> installed the openArchitectureWare, which are dependencies with rigth
> version of this plugin? When can I get them?
I think you should get the rest of GMF from the same build (v20080114-2222)...

I suggest you to try GMF 2.0 release with corresponding version of org.eclipse.gmf.graphdef.editor
plugin.

-----------------
Alex Shatalin
Re: where is the file "propsheet.genmodel"? [message #181236 is a reply to message #180996] Mon, 07 April 2008 15:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: messineo.rosario.gmail.com

Hi,

The framework to customize the property sheets works fine and I want to
use it to change the Property Sheet in my GMF Editor.

In particular I add a new tab for my operation element and in this tab I
want to manage the list of parameters of operation.

I've thought to combo box where user can select parameter and some
controls for modifying attributes and references of parameter selected.

I've created a group for wrapping controls associated to parameter
elements but I've a problem to associate the parameter element to this
group because the external model mediator is associated to the feature
ownedParameter of operation element,that is a list of parameters, while
the model mediator of the gruop of paramater casts to Parameter and so the
generator produces the following code

if (operation instanceof Operation) {
Parameter parameter = (Parameter ) operation;

I've changed code manually but it seems that the changes made to parameter
element aren't saved, which could be the problem?

Thanks in advance,

Rosario
Re: where is the file "propsheet.genmodel"? [message #181322 is a reply to message #181236] Tue, 08 April 2008 01:12 Go to previous messageGo to next message
Anna Karjakina is currently offline Anna KarjakinaFriend
Messages: 6
Registered: July 2009
Junior Member
> In particular I add a new tab for my operation element and in this tab I
> want to manage the list of parameters of operation.
> I've thought to combo box where user can select parameter and some
> controls for modifying attributes and references of parameter selected.
> I've created a group for wrapping controls associated to parameter
> elements but I've a problem to associate the parameter element to this
> group because the external model mediator is associated to the feature
> ownedParameter of operation element,that is a list of parameters, while
> the model mediator of the gruop of paramater casts to Parameter and so
> the generator produces the following code
> if (operation instanceof Operation) {
> Parameter parameter = (Parameter ) operation;

Dear Rosario,

Unfortunately, you are right. Propsheet was initially meant to be
nothing more than some interesting example of extending GMFGen with some
custom model. Considering real property sheets generation it has a lot
of limitations, and produces code suitable only for basic cases. So
everything beyond the primitive level should be customized by hand,
either by finetuning generated code, or advancing the template. And
multiple valued features are exactly the case where you should add
manual changes. However, I hope it is still useful for the rest of routine.

> I've changed code manually but it seems that the changes made to
> parameter element aren't saved, which could be the problem?

Nevertheless, since you had customized the code generated, you became
responsible for it. And nobody but you can ensure that changes you've
made are really conscious. Until I see the code myself, I can hardly
guess where the problem could live.
As far as I have understood, for operation's 'ownedParameter'
operation's feature you have a combo to choose active parameter (for
instance, int combo for setting list index). ModelHelper's code for
which is completely customized. Then (from your customized code) you
update values for widgets generated with the help of some
Parameter-specific Group (cast contents to Point with the help of nested
Model Mediator) with actual Parameter currently selected (suppose you
needed to cache selected index somewhere to get to the correct Parameter
from Operation). But now you have a problem with the instance you get
from Operation to set values is not updated. Am I right? If so, it
should work fine, I have just tried the same myself.

Best regards,
Ann.
Re: where is the file "propsheet.genmodel"? [message #181336 is a reply to message #181322] Tue, 08 April 2008 08:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: messineo.rosario.gmail.com

Hi Anna,

I've seen with more attention the code and the problem is the following:

When I set the parameter's name the value is updated but the view in the
editor that shows operation signature isn't. Now my question is:
where do I indicate to OperationEditPart to listen for changes of its
parameters?


Thanks in advance,

Rosario
Re: where is the file "propsheet.genmodel"? [message #181370 is a reply to message #181336] Tue, 08 April 2008 10:10 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Rosario,

> editor that shows operation signature isn't. Now my question is:
> where do I indicate to OperationEditPart to listen for changes of its
> parameters?
See .addSemanticListeners()/handleNotificationEvent() methods of OperationEditPart.


-----------------
Alex Shatalin
Re: where is the file "propsheet.genmodel"? [message #181968 is a reply to message #181370] Wed, 09 April 2008 16:01 Go to previous message
Eclipse UserFriend
Originally posted by: messineo.rosario.gmail.com

Using my editor I've seen a different behaviour of notification mechanism.
For example when I modify the name of an element using the pre-built
Properties View the method notifyChanged of element is invocated while If
I modify it using widgets in my property sheet it isn't invocated.

Which could be the motivation of this behaviour?

Thanks,


Rosario
Previous Topic:Cant change editpart color from property view
Next Topic:Error in .gmfmap model when including more than one aggregation
Goto Forum:
  


Current Time: Tue Apr 16 15:35:39 GMT 2024

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

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

Back to the top