Comments (5)
Thanks for the suggestion, but I would defer such a fundamental refactoring until we have the demand for that (especially because the multi-platform structure is already quite complex and hard to get into for new developers, so I would avoid further modularization for now)
from umlet.
Hi
If you just want a method to access and clear the map, I would suggest to use Java Reflection:
HandlerElementMap.setHandlerForElement(null, null);
Field field = HandlerElementMap.class.getDeclaredField("gridElementToHandlerMapping");
field.setAccessible(true);
HashMap<GridElement, DiagramHandler> gridElementToHandlerMapping = (HashMap<GridElement, DiagramHandler>) field.get(null);
gridElementToHandlerMapping.clear();
Changing the code at this location which is referenced several 100 times at various locations is quite risky so I would avoid it for the moment.
Btw: Kroki looks like a real nice project :) As Umlet is quite old and was never designed to run 24/7 I hope there is no other bug which cause problems.
Maybe you could also run Umlet batch exports as a subprocess (as described in e.g. https://stackoverflow.com/questions/636367/executing-a-java-application-in-a-separate-process), then it should be guaranteed to cleanup everything (but of course the overhead would be higher I guess) and you would have the guarantee of a stable API
from umlet.
Maybe you could also run Umlet batch exports as a subprocess (as described in e.g. stackoverflow.com/questions/636367/executing-a-java-application-in-a-separate-process), then it should be guaranteed to cleanup everything (but of course the overhead would be higher I guess) and you would have the guarantee of a stable API
Yes, I've successfully created a native image of UMlet from my fork: https://github.com/yuzutech/umlet/tree/mini.
If it's something that might interest you (i.e., a CLI with a native-image produced by GraalVM), I can see how to integrate it upstream.
Cheers!
from umlet.
Alright, should I close this issue?
from umlet.
I will close it thanks!
from umlet.
Related Issues (20)
- Issues with the Initial/Final State Icons and Dark Mode HOT 1
- umlet 15 freeze: java.lang.NullPointerException: Cannot read field "x" because "center" is null HOT 1
- Umlet 15.0 not on Eclipse Marketplace HOT 2
- Dead Links On Umlet Home Page umlet.com HOT 2
- RuntimeException: Cannot load BuildInfo.properties HOT 2
- Feature Request: Small solid circle line end HOT 3
- Umlet freezes when dragging decision element into activity element HOT 1
- replace log4j1 with reload4j
- dead links due to website changes HOT 1
- After the newest update to vscode some of the coloring has changed making it hard to read HOT 3
- Can not export in vscode to PDF or PNG using ssh remote plugin
- UML Activity All-in-One no reaction for setting background and foreground color HOT 1
- No context-sensitive help showing after pressing cmd+ space in the text panel HOT 2
- Cannot zoom in by pressing key "+" (version 15.1) HOT 6
- Cannot use mail to function in Umlet 15.1 HOT 1
- Properties 'bg' inconsistent result based on values
- How to interpret relations' source and target programmatically? HOT 3
- How can not Run the umlet extensions? HOT 3
- Shifted accent HOT 3
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 umlet.