Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » VE model
VE model [message #131858] Thu, 05 October 2006 15:35 Go to next message
Eclipse UserFriend
Originally posted by: ricker.distributedinstruments.com

I feel a bit thick, but I just don't get the VE model. I look into the
cdmmodel.genmodel file and I expect to see entities named Text, Label,
Button, etc., but I see nothing like that. Why? What is CDM actually a
model of? Where would I find the model objects that I am looking for?

- Ricker
Re: VE model [message #131872 is a reply to message #131858] Thu, 05 October 2006 19:30 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

The CDE model is only a base. It provides the visual annotations for a
model. The real implementation model that the VE is working on is
application dependent. For example, the Java VE uses the java model out
of org.eclipse.ve.java.core to model java classes. Then we use the
extensions of it in org.eclipse.ve.swt to model the SWT classes.

The CDE has no concept of Text, Label, etc. because those are domain
specific. Only the domain knows what model objects are available for the
domain. But the domain model doesn't know anything about the visual
representation on the VE. For example a model of java code has no
concept of being at location (100,100) on the white surface of the VE.
So that is what the CDE models, the extra annotations that are needed
for the VE to display but are not actually part of the domain model.

Jeffrey Ricker wrote:
> I feel a bit thick, but I just don't get the VE model. I look into the
> cdmmodel.genmodel file and I expect to see entities named Text, Label,
> Button, etc., but I see nothing like that. Why? What is CDM actually a
> model of? Where would I find the model objects that I am looking for?
>
> - Ricker

--
Thanks,
Rich Kulp
Re: VE model [message #614685 is a reply to message #131858] Thu, 05 October 2006 19:30 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

The CDE model is only a base. It provides the visual annotations for a
model. The real implementation model that the VE is working on is
application dependent. For example, the Java VE uses the java model out
of org.eclipse.ve.java.core to model java classes. Then we use the
extensions of it in org.eclipse.ve.swt to model the SWT classes.

The CDE has no concept of Text, Label, etc. because those are domain
specific. Only the domain knows what model objects are available for the
domain. But the domain model doesn't know anything about the visual
representation on the VE. For example a model of java code has no
concept of being at location (100,100) on the white surface of the VE.
So that is what the CDE models, the extra annotations that are needed
for the VE to display but are not actually part of the domain model.

Jeffrey Ricker wrote:
> I feel a bit thick, but I just don't get the VE model. I look into the
> cdmmodel.genmodel file and I expect to see entities named Text, Label,
> Button, etc., but I see nothing like that. Why? What is CDM actually a
> model of? Where would I find the model objects that I am looking for?
>
> - Ricker

--
Thanks,
Rich Kulp
Previous Topic:Integration of Custom Swing Widgets like SWINGX in Visual Editor
Next Topic:possibility to use VE source synchronization framework in another project?
Goto Forum:
  


Current Time: Fri Apr 26 00:54:22 GMT 2024

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

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

Back to the top