UML Reverse Engineering in Netbeans Broken - java

My Goal: I want to make a UML diagram out of my java project in Netbeans. I don't really care how it's done particularly, as long as it looks good.
I saw an answer on Stack Overflow about how to reverse engineer a UML diagram based on Java Code in Netbeans. I attempted the solution and I think most of it works except a few problems which make the solution worthless.
Basically, what I'm experiencing is I will implement the step-by-step instructions in that answer to install the UML plugin, and then right click on the project BONotifier (see below) and click "Reverse Engineer" and use it as the source for the UMLProject1 (see below).
However, when I open UMLProject1, nothing appears under the model (as you can see in the image above), there should be over 20 classes in there... What could be wrong? Thanks!
Oh, and the output of the Reverse Engineering Log can be found in this pastie. I think it may have to do with the fact that this plugin is a little older and the project is running jdk 1.7. I tried it on a 1.6 project and experienced the same problems.
I'm totally open to an alternative solution. I've tried eclipse solutions and I'm not happy with them. I'd prefer a Netbeans solution.

There is no plan to support UML in Netbeans past version 7. It appears something happened in the revisions that broke UML support in the OP's version of Netbeans. Also, the original plugin does not support JDK version 1.7, so you need to use version 1.6 and below. So download Netbeans 6.7.1 and it'll work fine.

Related

How to set NetBeans project properties to use Java 7?

I am new to NetBeans, and have previously been using Eclipse. I have started using NetBeans now because I need to learn a variety of Java EE concept, and I have found more relevant tutorials for the NetBeans IDE. A lot of the abstract concepts in EE still has me confused, so I have found that step-by-step holding hands-tutorials works best for me for now.
I have however met a dead end. I am following this tutorial, on setting up a web service client. However, one of the lines include a try-with-resource statement, which is new in java 7. Picture here:
When I started this tutorial, I was using Netbeans 7.1.3, with Glassfish 3.1.2. I knew it didn't have support for EE7, so i downloaded NetBeans 8.0.1 with Glassfish 4.1. I have realized later on that the try-with-resources is a part of SE, and my upgrade was in this matter reduntant.
I figured there was something wrong with my project settings, so i right-clicked it and opened it's properties. Under the Libraries option, I found that the JDK was correctly set to Java 1.7 (update 51). Picture here:
I also checked the oter options, and under Run I found that Java EE is set to 6, even though Glassfish 4.1 is selected as server. I figured this was an implementation of EE7, but the option is locked to EE6. This confuses me a bit, but shouldn't be the cause of the problem. I still attach a picture of it, just in case it is relevant:
So what is wrong with my Java settings for this project? Why can't it accept a Java 7 feature, when it seems like it is set to use Java 7? Are there other places where i need to set java version/home?
You use Java7 for the system library but compile your source code to be compatible with Java6.
To change this you have to go to sources in your project settings and change the source compatibility to Java7.

Netbeans scala javadocs missing in Netbeans 8.0

I've been looking into scala lately and from the conciseness and language features I'm completely thrilled.
I have netbeans 8.0 running on ubuntu 12.04 and downloaded scala, edited netbeans.conf (netbeans_default_options="-J-Dscala.home=...), installed plugins from plugin manager inside netbeans (ALL OF THEM). Then, I created scala project (not maven one) and tried out autocomplete. It works, compiles, runs, however, it shows no document found in autocompletion.
This is how I added javadocs Tools > Scala platforms > javadoc tab
I tried adding following ways:
added the entire scala api doc zip from http://downloads.typesafe.com/scala/2.11.2/scala-docs-2.11.2.zip
extracted the previous zip to scala-home folder under $SCALA_HOME/docs/javadocs/scala-docs-2.11.2 and added that
same as 2 but added $SCALA_HOME/docs/javadocs/scala-docs-2.11.2/api in netbeans
None of these pick up documentation! Of course, I could live without it, but it's such a killer for such a concise language where I could just find out stuff instantly from autocompletion. Also, I don't want to use eclipse special ide for scala because I don't want to throw out all the experience with netbeans out of the window and learn new IDE.
P.S. - Netbeans navigator also seem not to work in scala.
And I wonder why there's so little content on google for such a wonderful language?
There is no need to change to IntelliJ. Use the right build tool -sbt or Maven- and everything works fine.
In Netbeans you can use e.g. free Application Servers.
Netbeans support for scala seems pathetic so I just decided to jump to IntelliJ IDEA. It was little bit of learning curve but I'm glad I did because now everything was working (autocomplete, documentation, awesome SBT support etc. etc.)

GWT Designer not working with Eclipse 4.2 service release 2?

I'm trying to do this tutorial after having installed Eclipse Juno 4.2 service release 2 (Java EE distribution) und following exactly the GWT installation instructions over here.
However, I neither get the WindowBuilder entry under Preferences, nor is there a WindowBuilder entry in the new projects dialog appearing. What am I doing wrong?
I'm running Ubuntu 12.04.02 LTS on amd64, and I have tried oracle jdk 7u17 and Ubuntu's own jdk6 distribution, but to no avail...
Just tried the same in Win2k3. Exact same result. Google is starting to annoy me. GWT 2.5.1 throws an error when trying one of my simplest projects...
Update: it is working to some extent. Meaning: WindowBuilder does not recognize GWT Designer's installation and offers to install GWT Designer for Eclipse 3.7. The designer toolbar's GWT selection possibilities therefore are not there.
Update: bug filed.
Update: bug was closed as won't fix. They don't care.
They do care. GWT is a magical development environment, under constant evolution.
They have to race with new versions of browsers, Javascript and releases of Eclipse, so sometimes tiny things may not be always documented up to date. The tutorial you are trying to run is made for GWT Designer 2.3, GPE 2.3, Eclipse 3.7 & Java 1.6.
This tutorial works also perfectly well for Juno 4.2 SR2 with a few minor changes:
In step 1, just Create a Web Application Project. You can generate project sample code, make sure that things work and then clean it up and stick with the folder layout.
In step 3, just add a class and make it extend com.google.gwt.user.client.ui.Composite. Add an empty Constructor and then you can open the GWT Designer as always, in order to do the rest. The CSS styleName property has been improved. There are tool-tips to guide you.
PS: My tests were made in Ubuntu12.04-32bit, WinXP-32bit and Win7-64bit with JDK1.7.0_17-32bit and Eclipse-32bit.
In case the designer tab does't show up by default, I noticed that I can get it by right-clicking the .java on the package explorer and selecting 'open with ...' 'WindowBuilder Editor'.

Eclipse Checkstyle Plugin works with Java 1.5?

I wanted some tool which could check all the standard violations that I make while I write code. After some search I found Eclipse Checkstyle Plugin suitable to my requirement.
I have not yet tried out using this. Information about this tool was found in this site
http://checkstyle.sourceforge.net/
Can some on who has used this tool tell me whether this tool works fine for applications that have Generics and wrapper classes.
Oh Yes, we use Checkstyle regularly in our project. This proves it works fine for 1.5.

Eclipse plugin for working with protobuf

Protocol Buffers (protobuf) are a way of encoding structured data in an efficient yet extensible format.
There's plugin for Netbeans, but I cannot find one for Eclipse. Does it exist? If yes, please, share the link.
Thanks.
I recommend using Google's "Protocol Buffers Development Tools". It is a plugin for Eclipse that features automagic regeneration and error checking with quick fixes, among other things.
It's available here: https://github.com/google/protobuf-dt/blob/master/README.md .
It does not seem to be approved by Eclipse yet.
And the EMF project uses protobuf, but not as a plugin.
So for now, no there do not seem to be any Eclipse protobuf plugin.
I have tried protobuf-dt, that was the only plugin [on marketplace]. But it had some issues, so I created (November 2016) one that would fit protobuf and gRPC usage, that we have (generation inside maven build without waiting for issues to be solved)
Welcome minimalist editor for .proto files. Just 25KB, works in any Eclipse (latest protobuf-dt 3.2 requires Neon)
Sources and notes are at
https://github.com/Enide/polyglot-maven-editors#minimalist-proto-files-editor-for-protocol-buffers-and-grpc
It is already on Marketplace https://marketplace.eclipse.org/content/minimalist-proto-files-editor-protocol-buffers-and-grpc
Using m2eclipse and directions from Issue 81/Comment 6 for a a protobuf maven plugin, it works pretty well.
The only trick that doesn't work exactly is the "generated-sources/protobuf" will be created following the instructions is not automatically added to source folder in eclipse. Do this manually and you're g2g.
Related Stackoverflow Issues:
how-do-i-get-support-for-gpb-in-eclipse
integrate-protocol-buffers-into-maven2-build

Categories

Resources