Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Eclipse 2020-06: Properties View of a property is greyed out; "Enable write" doesn't seem
Eclipse 2020-06: Properties View of a property is greyed out; "Enable write" doesn't seem [message #1843687] Fri, 13 August 2021 20:54 Go to next message
Denis Kajdic is currently offline Denis KajdicFriend
Messages: 5
Registered: August 2021
Junior Member
As the title says, I'm having issues when I want eg. add a new property to a class. It won't let me add it (nothing happens). If I click "Enable write" on the class, nothing happens as well.

There is one way to unlock the whole diagram though:
- click to select a class
- click the arrow in the upper right corner (when hovered, it says: "This element is imported."
- after the arrow is clicked, the class name goes into edit mode
- I change it, hit enter
- now is the whole diagram "unlocked"

Is this the expected behaviour or not? What's wrong with my setup?
Re: Eclipse 2020-06: Properties View of a property is greyed out; "Enable write" doesn't s [message #1843714 is a reply to message #1843687] Sun, 15 August 2021 15:07 Go to previous messageGo to next message
Carsten Pitz is currently offline Carsten PitzFriend
Messages: 479
Registered: May 2015
Location: Germany
Senior Member
Hi Denis,

I think there is a lot to explain here.

First "This element is imported" merely states this element is owned by another namespace as the diagram. As long as both namespaces reside in a common model, this shall not prevent you from editing this element.

But UML allows to import namespaces from one model into another model. In this case Eclipse Papyrus prevents you to alter imported elements unintentionally by asking you if you want to make the imported "model" writable. In this case unless you answer this question with "yes" you cannot alter imported elements.

Which version of Papyrus are you using. I tested it with 2020-03 and it works as intended.

EDIT: re-checked with 2021-03 and it also works as intended

/Carsten

[Updated on: Sun, 15 August 2021 15:21]

Report message to a moderator

Re: Eclipse 2020-06: Properties View of a property is greyed out; "Enable write" doesn't s [message #1843717 is a reply to message #1843714] Sun, 15 August 2021 20:30 Go to previous messageGo to next message
Denis Kajdic is currently offline Denis KajdicFriend
Messages: 5
Registered: August 2021
Junior Member
Hi Carsten,

Thanks for the reply. The details about my environment:

Eclipse Modeling Tools
Version: 2020-06 (4.16.0)
Build id: 20200615-1200
OS: Windows 10, v.10.0, x86_64 / win32
Java version: 11.0.2

Installed software:
https://i.ibb.co/SBb3PW3/Screenshot-2021-08-15-222749.jpg

Maybe you can spot something that is missing there?
Re: Eclipse 2020-06: Properties View of a property is greyed out; "Enable write" doesn't s [message #1843753 is a reply to message #1843717] Mon, 16 August 2021 20:30 Go to previous messageGo to next message
Denis Kajdic is currently offline Denis KajdicFriend
Messages: 5
Registered: August 2021
Junior Member
Resolved, it was a URI encoding problem in the project itself which was already fixed by the authors.
Re: Eclipse 2020-06: Properties View of a property is greyed out; "Enable write" doesn't s [message #1843765 is a reply to message #1843753] Tue, 17 August 2021 07:06 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Quote:
Maybe you can spot something that is missing there?


Hi

Papyrus for UML uses the Pivot-based Eclipse OCL. This is missing so you have no ability to use OCL in your constraints.

This is very puzzling since I would have expected a basic Papyrus installation to provide the better OCL support automatically. Conversely I can understand how some Papyrus Property View functionality expecting to support OCL may malfunction.

Regards

Ed Willink
Previous Topic:Slot, Instance Value instance lookup only show primitives
Next Topic:No property data-types are showing after importing an existing project
Goto Forum:
  


Current Time: Fri Apr 26 08:28:59 GMT 2024

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

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

Back to the top