Comments (3)
@JanBliznicenko I tried looking into this as well, but I'm not completely sure how to approach it. It would definitely be possible to just add these methods to Note, but I don't think that's exactly a good idea from object design perspective. Another solution might be to not show Notes on there at all, but someone might want to be able to hide them, so it's also probably not the best. Last option I can think of would be to add all elements something like a "displayName" method, and return umlClassName in UML elements and "Note" for Notes.
from openponk.
Two more things:
I noticed that OPNote and OPUMLElement actually don't share any class in the hierarchy besides Object - that means that for the third approach the hierarchy would probably also have to be reworked (having two completely unrelated classes have methods sharing name and calling the two unrelated methods based on the object at hand just screams bad OOP, imo).
I also noticed that OPNote doesn't have option to hide it, unlike most of the objects. That means the second approach might actually be the correct one?
from openponk.
Yes, the Note (and Boundary) are a little special. While all the other elements are parts of the model (root UML package in this case), Note and Boundary are completely outside of the model (even though they have model classes OPNote and OPBoundary).
And as you correctly say, they should not even support the hiding and showing, because "show" basically means "create diagram representation of the model element" and "hide" means "remove diagram representation of the model element, but keep the model element itself". Since note and boundary are not model elements, hide = remove and show makes no sense.
from openponk.
Related Issues (20)
- Archive nightly builds
- OpenPonk canvas loses focus after resolving dialog popup
- It just eats all memory and freezes (CTU class) HOT 2
- Leftovers after deleting asociations HOT 3
- Bold form labels
- Hide selection when exporting images (png, svg)
- Toggle between cursive and non-cursive style not working HOT 2
- RelComp anti-pattern has bad link to docs
- Links to docs contain extra character - sometimes HOT 1
- Verify -> remove highlights not working HOT 1
- Anchors of relation with one entity on both ends misbehave HOT 2
- Jumping labels of associations
- Error when opening UML opp file HOT 1
- Unreachable attribute HOT 1
- Can't save UML file HOT 1
- [Testing Request] Automatically test that diagram containing any elements it may contain can be saved
- Changes to diagram lost when switching models using tabs HOT 1
- RSAthensMorph>>resetShapeBeingDragged references missing variables and generates a walkback when moving connector lines HOT 4
- [BUG] chyba BORM při přidávání data flow do diagramu HOT 1
- [Feature] Hiding labels
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openponk.