Skip to main content



      Home
Home » Modeling » Papyrus » Associate Language(Programming language to an existing project)
Associate Language [message #1400606] Mon, 14 July 2014 08:53 Go to next message
Eclipse UserFriend
Hi everyone!

I am working on a papyrus project. I have already create diagrams, containing classes and properties... I want to assign primitive data types to this properties, but I created the project without assigning any programming language. Is it possible to assign, let's say, JAVA to the current project?

Greetings!
Re: Associate Language [message #1400695 is a reply to message #1400606] Mon, 14 July 2014 11:38 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

The Eclipse UML implementation used by Papyrus provides a library of
Java primitive types. You can import that or any other library at any
time. Look for "JavaPrimitiveTypes" in the dialog shown by the "Import
-> Import Registered Package" context-menu action in the Model Explorer.

If you are intending to generate Java code from your Papyrus project,
you might apply the Java profile provided by the Java Profile feature
[1] and then generate code using the facilities provided by the Java
Generator feature [2].

You can find the Java code generation features in the Papyrus project's
repository [3]; they are not installed by default. Note that in order
to see the individual features, you'll have to uncheck the "Group items
by category" option in the Install New Software wizard.

Apart from this, Papyrus does not have a concept of association of
models with programming languages. It's really all in the profiles and
model libraries (and their adjunct resources and plug-ins).

HTH,

Christian


[1] org.eclipse.papyrus.java.profile.feature
[2] org.eclipse.papyrus.java.generator.feature
[3] http://download.eclipse.org/modeling/mdt/papyrus/updates/releases/luna/

On 2014-07-14 13:52:21 +0000, Fran Gomez said:

> Hi everyone!
>
> I am working on a papyrus project. I have already create diagrams,
> containing classes and properties... I want to assign primitive data
> types to this properties, but I created the project without assigning
> any programming language. Is it possible to assign, let's say, JAVA to
> the current project?
>
> Greetings!
Re: Associate Language [message #1401220 is a reply to message #1400695] Tue, 15 July 2014 05:52 Go to previous message
Eclipse UserFriend
Hi Christian,

Thank you so much for your answer. It helps me a lot!

Cheers!
Previous Topic:Possible Model Explorer bug
Next Topic:Problem generating a new PapDiagEditor (v 1.0)
Goto Forum:
  


Current Time: Wed Jul 23 21:11:16 EDT 2025

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

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

Back to the top