UML plugins in Netbeans6.8 - java

Java: I tried to add the available plugins in netbeans6.8 but it ask for *.nbm file instead of jar files, Please guide me for the same and also provide the related download URL and steps for the same. I added this URL http://ea.ddns.com.br:8090/netbeans6.8/UML/catalog.xml in my Setting tab but still unable to find the plugins

The UML plugin for the NetBeans IDE is available for until version 6.7. Support was dropped after that.

I think UML was stopped after the 6.5 Netbeans release.
Download one of the previous build and you will be able to create diagrams.
You can also use Eclipse. The trick is to import your java project inside Eclipse and reverse engineer it in order to create diagrams. Once created you export your diagrams into image format such png, gif etc...Finally you copy your image into your netbeans project.
Nobody would ever guess that your diagrams are coming from Eclipse :-)

Related

Eclipse RCP - Shere javadocs and attached sources of dependencies among projects in workspace

I'm working on a set of plugins for a commercial Eclipse RCP Application "FOO_APPLICATION",
which comes with html javadocs for api plugins and without sources.
I'm using Eclipse 4.5.2 and the target "FOO_APPLICATION" is based on an older version of Eclipse, 3.6
Everything seems fine but I'm experiencing this annoying issue:
If I attach javadocs or sources to plugin dependecies (for eclipse standard plugins I can also attach sources, because I have also the original 3.6 sdk sources jar)
Eclipse does not remember this setup and I have to do this again at every startup. :(
What I'm missing here?
But consider also this point: I'd really like to solve this problem from a wider point of view: since I have many projects (in the same workspace) that share the same dependencies of "FOO_APPLICATION",
is there a way to setup sources or javadocs once and made them available throughout the whole workspace?
If the sources are present in the target platform as individual Source Bundles, the source is automatically displayed.
As far as I know, there's nothing comparable for Javadoc.

How to install apache river on eclipse

I have a class where we have to use apache river for our work and assignment and I’m trying to install it at home.
I'm fairly new to apache-river and I have installed plug-ins for eclipse before, but this seems a bit more tricky or maybe I'm doing it wrong.
I've looked at https://river.apache.org/ and I've downloaded the zip file and extracted it but I’m not sure what to do with it after that. I'm not even sure that, that is the right download I need.
Any help would be appreciated, thanks.
Please correct me if I misunderstood your question.
I believe you want to import whatever it is Apache River has to offer in Eclipse such that you can use classes in Apache River in your project. Correct?
If yes, this is what i did -
Downloaded apache-river2.2.2.bin.zip from the site you mentioned, extracted it.
Created new Java Project in Eclipse with a trial class.
Configured build path of this Eclipse project, and added all the jars from the /lib folder as 'External Jars'.
All these jars showed up in the Referenced Libraries section in my project in Eclipse.
I tried a sample line of code to see if I get classes from Apache river.
for eg -
LookupLocator locator = new LookupLocator(arg0);
And it worked - Eclipse added
import net.jini.core.discovery.LookupLocator;
automatically.
I checked and this class comes from the jini-core.jar
Of course, if you are using other build / dependency management tools like maven/ant, this eclipse process will differ a little bit.
Let me know if this worked for you.

Browse JDK Source Code in Eclipse Like GrepCode

I like the way you can browse the source code of a library in GrepCode. Is there any way I can do the same in Eclipse?
I know that I can open the declaration of a class and look through it, but there seems to be no way I can search for something (a method, for example) in the Declaration window.
What I am really looking for is a way to browse the source code of the standard library just like I browse the source code of a class I am writing. It doesn't necessarily have to be the source that ships along with my JDK; I am happy to look at some other version as well.
What would be the best way to achieve this? Will I have to download OpenJDK and add it as a project in Eclipse?
You can install Java Decompiler plugin for Eclipse, such as JD-Eclipse
You could also use the src.zip file that ships alongside Oracle's JDK (located for example at something similar to C:\Program Files\Java\jdk{version} in Windows) and load it on Eclipse build path as a library (src.zip contains sources files for the java., javax. and some org.* packages, but not for com.sun.* packages)
Or you could download the whole bundle of source code for JDK at http://download.java.net/openjdk/jdk6/ (for JDK 1.6) and do the same
I think one of the good alternative for what you are looking for is zGrepCode. It allows you to browse Java Open Source projects as you are doing it in Eclipse by providing interlinking.
http://zgrepcode.com
Here is the place I found about this wonderful free tool.
https://dzone.com/articles/grepcode-is-down-whats-next?fromrel=true
Actually I just went with the Search feature in Eclipse. Since I wanted to look at the source code for classes in the JRE libraries, I just do Search --> Java and select the appropriate options (see the attached screenshot).
I would think that this Search feature could also be used to search in the libraries included in your build path too.
Pretty sure that m2eclipse allows source browsing, see: Get source jar files attached to Eclipse for Maven-managed dependencies
Intellij also has a maven plugin available that allows browsing.

Export Eclipse plugIn

I wrote my first eclipse plugin and I can export it by Export->deplyable plugin and fragments.
I'm looking for a way to export it as .jar file by command line or Ant file
(i want to add it to build proccess of some componenets)
i will appricate ant help with that!!
To do this, you will need to look into "Headless PDE Builds."
Take a look at the Eclipse PDE (Plug-in Development Environment), specifically the headless build (a.k.a., building without going through the IDE): http://www.eclipse.org/pde/pde-build/. Also, there is http://wiki.eclipse.org/PDE/Build.
Lars Vogel has some really good material on this subject from which I also learned (Thanks Lars!): http://www.vogella.de/articles/EclipsePDEBuild/article.html. As an additional note, his Eclipse RCP, Plugin, and OSGi development page has some really good articles as well: http://www.vogella.de/eclipse.html.
Also, if you would like to export for multiple platforms, be sure to download the delta pack for the version of Eclipse you are using (e.g., if using Eclipse 3.6.2, download the Eclipse Delta Pack version 3.6.2).
If you need to access any SVN repositories from within your scripts (e.g., Ant), use the SVN pde-build plugin at http://svn-pde-build.sourceforge.net/.
Lastly, run a web search containing items like "PDE headless build". There are several links to sites that cover PDE building, customizing, and execution.
Sorry for not having a detailed list of instructions but the above links should help get you on the right path.

Can I import codestyles into Netbeans?

I have tried NetBeans for some time, but have not made my final move yet. I need to be able to import codestyle settings from Idea or Eclipse. Anyone know it that is possible? Or if some plugins allow that?
No, there's not such thing. You'll have to edit font and color settings in a hidden folder or create a plugin. Can IDEA import NetBeans color schemes, can Eclipse do the same?
I am not sure whether this covers all codestyle settings in your existing IDE (Eclipse) and future IDE (Netbeans) but you can define .editorconfig file to maintain consistent coding styles between different IDEs. It has plugins for all major IDEs. http://editorconfig.org/
Besides, it really helps you if you have other project members using various IDEs.
For NetBeans 8.0 and 7.4 there is a experimental plugin to help on this matter. You can install it directly from the IDE searching for 'Eclipse Code Formatter for Java' or go to the webpage http://plugins.netbeans.org/plugin/50877/eclipse-code-formatter-for-java and download the nbm file as needed. Be aware it is an experimental plugin, so use it carefully.

Categories