Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 Tools » Adding custom properties for UML items?
Adding custom properties for UML items? [message #476086] Sun, 04 January 2009 11:23 Go to next message
Johan  is currently offline Johan Friend
Messages: 39
Registered: July 2009
Member
Hi,

If one or more UML items (such as a class, a state,
a transition etc) is selected in the diagram, the
various properties of the selected object(s) can be
displayed in the properties view.

For various reasons, I need to add extra properties
for some UML items. I therefore need to:

- Have additional selections in the properties view, such
as an extra property tab that contains my own custom
property parameters.

- These extra properties needs to be stored in the XMI file
when the file is saved, and reloaded on file open.

Examples of what I need to do is to add specific GUI
settings that control code generation of certain UML
items etc. Furthermore, I might need to add "global"
settings for things like what O/S the generated code
should be adapted for, etc.

Does anyone know if there are any extension points
in the UML2Tools GUI that allows custom property
parameters, and if these then can be saved in the
XMI file?

If not, how can such functionality be built otherwise?

Any feedback most appreciated!

Kind regards,
Johan
Re: Adding custom properties for UML items? [message #476167 is a reply to message #476086] Sun, 04 January 2009 12:24 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------030704000804050707090805
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Johan,

This sounds like the type of thing normally done with Profiles.

http://www.eclipse.org/modeling/mdt/uml2/docs/articles/Intro duction_to_UML2_Profiles/article.html


Johan wrote:
> Hi,
>
> If one or more UML items (such as a class, a state,
> a transition etc) is selected in the diagram, the
> various properties of the selected object(s) can be
> displayed in the properties view.
>
> For various reasons, I need to add extra properties
> for some UML items. I therefore need to:
>
> - Have additional selections in the properties view, such
> as an extra property tab that contains my own custom
> property parameters.
>
> - These extra properties needs to be stored in the XMI file
> when the file is saved, and reloaded on file open.
>
> Examples of what I need to do is to add specific GUI
> settings that control code generation of certain UML
> items etc. Furthermore, I might need to add "global"
> settings for things like what O/S the generated code
> should be adapted for, etc.
>
> Does anyone know if there are any extension points
> in the UML2Tools GUI that allows custom property
> parameters, and if these then can be saved in the
> XMI file?
>
> If not, how can such functionality be built otherwise?
>
> Any feedback most appreciated!
>
> Kind regards,
> Johan
>

--------------030704000804050707090805
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Johan,<br>
<br>
This sounds like the type of thing normally done with Profiles.<br>
<blockquote><a
href=" http://www.eclipse.org/modeling/mdt/uml2/docs/articles/Intro duction_to_UML2_Profiles/article.html"> http://www.eclipse.org/modeling/mdt/uml2/docs/articles/Intro duction_to_UML2_Profiles/article.html</a><br>
</blockquote>
<br>
Johan wrote:
<blockquote
cite="mid:67d241f80549b284c62e5a64134dc241$1@www.eclipse.org"
type="cite">Hi,
<br>
<br>
If one or more UML items (such as a class, a state,
<br>
a transition etc) is selected in the diagram, the
<br>
various properties of the selected object(s) can be
<br>
displayed in the properties view.
<br>
<br>
For various reasons, I need to add extra properties
<br>
for some UML items. I therefore need to:
<br>
<br>
- Have additional selections in the properties view, such
<br>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Adding custom properties for UML items? [message #476171 is a reply to message #476167] Mon, 05 January 2009 14:09 Go to previous message
Johan  is currently offline Johan Friend
Messages: 39
Registered: July 2009
Member
Ok, thanks!

I will read the article and try to understand if this is suitable for what
I want to do!

/Johan
Re: Adding custom properties for UML items? [message #623387 is a reply to message #476086] Sun, 04 January 2009 12:24 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------030704000804050707090805
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Johan,

This sounds like the type of thing normally done with Profiles.

http://www.eclipse.org/modeling/mdt/uml2/docs/articles/Intro duction_to_UML2_Profiles/article.html


Johan wrote:
> Hi,
>
> If one or more UML items (such as a class, a state,
> a transition etc) is selected in the diagram, the
> various properties of the selected object(s) can be
> displayed in the properties view.
>
> For various reasons, I need to add extra properties
> for some UML items. I therefore need to:
>
> - Have additional selections in the properties view, such
> as an extra property tab that contains my own custom
> property parameters.
>
> - These extra properties needs to be stored in the XMI file
> when the file is saved, and reloaded on file open.
>
> Examples of what I need to do is to add specific GUI
> settings that control code generation of certain UML
> items etc. Furthermore, I might need to add "global"
> settings for things like what O/S the generated code
> should be adapted for, etc.
>
> Does anyone know if there are any extension points
> in the UML2Tools GUI that allows custom property
> parameters, and if these then can be saved in the
> XMI file?
>
> If not, how can such functionality be built otherwise?
>
> Any feedback most appreciated!
>
> Kind regards,
> Johan
>

--------------030704000804050707090805
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Johan,<br>
<br>
This sounds like the type of thing normally done with Profiles.<br>
<blockquote><a
href=" http://www.eclipse.org/modeling/mdt/uml2/docs/articles/Intro duction_to_UML2_Profiles/article.html"> http://www.eclipse.org/modeling/mdt/uml2/docs/articles/Intro duction_to_UML2_Profiles/article.html</a><br>
</blockquote>
<br>
Johan wrote:
<blockquote
cite="mid:67d241f80549b284c62e5a64134dc241$1@www.eclipse.org"
type="cite">Hi,
<br>
<br>
If one or more UML items (such as a class, a state,
<br>
a transition etc) is selected in the diagram, the
<br>
various properties of the selected object(s) can be
<br>
displayed in the properties view.
<br>
<br>
For various reasons, I need to add extra properties
<br>
for some UML items. I therefore need to:
<br>
<br>
- Have additional selections in the properties view, such
<br>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Adding custom properties for UML items? [message #623395 is a reply to message #476167] Mon, 05 January 2009 14:09 Go to previous message
Johan  is currently offline Johan Friend
Messages: 39
Registered: July 2009
Member
Ok, thanks!

I will read the article and try to understand if this is suitable for what
I want to do!

/Johan
Previous Topic:Sequence Diagram support
Next Topic:Papyrus versus UML2tools?
Goto Forum:
  


Current Time: Fri Apr 19 15:59:14 GMT 2024

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

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

Back to the top