I made an UML profile (with stereotypes) in MagicDraw. I also made a special diagram type for my profile as well as some new buttons.
But when I open my project on another PC, everything is gone - I can't see my diagram or my buttons any more.
How can I export/save my DSL settings?
On their website MagicDraw UML states that models generated in ver 1.7 of java might have issues with working on java 1.6.
I think this is true for the latest ver of MagicDraw UML.
Maybe your first PC is running 1.7 and the other 1.6.
Related
I am using Obeo UML Designer v. 8.0.0 (latest version downloaded from here), to design an UML data model, and I would like to generate the Java classes corresponding to the model. How can I generate the classes?
As you can see the 8.0.0 is still in beta status, you downloaded a nightly version. The generation is a new feature in UML Designer. At the moment I know that we have a packaging issue and so the generation menus are not visible. This will be fixed soon and before the official 8.0.0 release in july.
I want to write a tiny "hello world" J2ME MIDlet. In a sample like this one, classes in javax.microedition.lcdui.* are used for display output. When I try to compile it in Eclipse, I get the error,
The import javax.microedition.lcdui cannot be resolved
I've installed JME SDK 3.4, and I'm able to run MIDlets that don't import javax.microedition.lcdui.*. I read somewhere that lcdui can be obtained from the wireless toolkit; and Oracle says that the wireless toolkit has been integrated into JME SDK as of 3.0+.
So why can't Eclipse find it?
OK, I think I know the answer now.
I got back to the JME SDK 3.4 documentation page on Using Sample projects, and created and ran an instance of UIDemo. It uses lcdui classes, but it runs flawlessly - no errors about inability to resolve javax.microedition.lcdui.*.
The difference appears to be that the working sample uses different libraries than the one I tried at first. The first one uses org.elipse.mtj.JavaMEContainer/Oracle Java(TM) Platform Micro Edition SDK 3.4/IMPNGDevice1,
while the one that works uses org.elipse.mtj.JavaMEContainer/Oracle Java(TM) Platform Micro Edition SDK 3.4/JavaMEPhone1. They contain different sets of jars, e.g. the working one contains midp_2.1.jar, while the earlier one has impng_1.0.jar.
A follow-up question might be, why doesn't IMP-NG have lcdui in it? Well, those who pay attention to what they're doing will have read that
This JSR [for IMP-NG] will define a J2ME profile targeting embedded networked devices that wish to support a Java runtime environment similar to the Mobile Information Device Profile (MIDP) version 2.0, but that do not provide the graphical display capabilities required by MIDP 2.0.
The Information Module Profile - Next Generation (IMP-NG) will be a strict subset of MIDP 2.0, where at least the APIs relating to GUI functionality (the LCDUI) are removed. Functionality not already present in MIDP 2.0 is not anticipated or desired. "
The next question might be, why did I end up selecting IMP-NG when I was going through the tutorial... when I really do want a MIDlet that does something graphically? But I'm not sure I care, now that it's working.
The new me sdk 8.2, as I understood after browsing all class and in packages, does not provides any class to develop user interface. not like sdk 3.4, that have many graphical components.
I'm pretty new to Java and I'm just starting to venture into the UI world of it.
I've looked at what framework and tools to use.
My goals are:
Try to avoid implementing too much low level stuff through using an
existing framework.
Use portable libraries (I heard that not all libraries are made equal)
As for everything I do, I start with a lot of documentation and research and right now my choice is landing on javaFX and miglayout.
I develop with Linux Ubuntu (currently 13.04) but my user base will be a mix of windows and Ubuntu and maybe some MAC users.
I wanted to know from people with way more experience, their pain points while developing with javaFX2 and migLayout when it comes to portability to other OS.
I have found this thread:
How portable is JavaFX 2?
But the answer I'm looking for is not: it works in "X" but rather. To make it work in "X" and "Y". "a", "b" and "c" will have to be taken care of. handling "z" is hard because etc...
Thanks.
All you need is properly installed JDK, And with a little help from your preferred IDE you will get almost a complete portable working environment ).
Using Netbeans will hide the complexity behind generating a runnable jar file, for serious project using a dependency manager will be a must , both Gradle and Maven have good JavaFX plugin for build automation (by using Maven, you can clone my Github repository and start working immediately whatever the OS you're running),for more about JavaFX and Java SE integration see this answer from a OpenJDK contributor.
javaFX2 miglayout portability
Miglayout has a JavaFX plugin all you need is to add miglayout-javafx.jar and the miglayout-core.jar to your CLASSPATH, so there is no portability issues with MigLayout.
MigLayout is a real powerful layout manager (especially when it comes to Swing), but I prefer going the idiomatic way of building JavaFX user interfaces (essentially, enterprise and data-driven applications) by using fxml and scenebuilder.
more resources :
GUI Architectures,by Martin Fowler
JavaFX community website
The FX Experience blog
i looked for uml plugin for netbeans 6.5.1 but i can not find the link,
where can i download UML plugin for 'Netbeans 6.5.1' ide ?
and is there any tutorial on how to use it?
Read this. The UML plugin can be found in this version of NetBeans by default.
The plugin was not moved from the main installer to the update center and can be installed via the Tools > Plugins menu in the IDE.
Five diagram types are supported: activity, class, sequence, state and use case diagrams.
I have created a game and would like to automatically create a class diagram from my J2ME code. NetBeans (pre 6.5 I think) used to have UML plugin to do this, but as I am using the latest 6.8 version of NetBeans I can't use this old UML plugin anymore!
Does anyone know how I can automatically create a class diagram from my J2ME project?
Unfortunately, I try to find any free reverse engineering uml tool and find nothing good except netbeans uml editor.
EclipseUML Omondo Free Edition is quite good, but on free edition do not support reverse engineering As far as I know. But if you need a one time diagram - you can try trial EclipseUML Omondo Studio Edition. But in this case you need port project to eclipse - not so hard as it looks. Good luck!
umbrello seems to do the job! link text
Although I do have to manually drag and drop classes to get them to display! but thats better than making the whole thing manually I suppose!