What should I call this widget? - java

I'm working with RAP and want to add something look like this image into my view. But I have no idea to call this thing to search on internet.
So sorry for unspecific question.

The picture you show is part of a FormEditor.
The top line ('Extensions') is a FormPage title.
The 'All Extensions' part is a SectionPart containing a filtered tree and button.
All these are part of the org.eclipse.ui.forms plugin Eclipse Forms

I think what you are looking for is a multipage-editor.
You can have a look at the code of the Extensions View by using the Plugin spy (select the View -> Alt+Shift+F1) to get the containing plugin and then import the plugin into your workspace.
Or you can try to work yourself into using a framework like Sapphire. Take a look at their page. The example looks like the editor you are looking for.

Related

Is there an automatic way to make a diagram of library dependecies?

I want to create a dependencie graph in netbean so I want to know if there is some tool that do it or help.
You know the dependency graph in NetBeans? When you open a pom.xml you have above the document a "Graph" button which shows you exactly what you are looking for.
If you want to implement such a graph on you own and need some help, you can have a look at the implementation: https://github.com/apache/incubator-netbeans/tree/master/java/java.graph/src/org/netbeans/modules/java/graph

Maven Plugin documentation Goals with a read more-link?

Is there a way to shorten the text which is shown on the Maven plugin documentation Page under the point Usage?
I wrote a long Mojo-description and i do not wan't to show it all on the first usage page.
So is there a way to add something like a "Read more" link or simple shorten the displayed text ?
Update:
I added a table to the class-description and I do not want to show this table on the Usage-Page.

How to translate org.eclipse.compare?

In my current Eclipse RCP project im using the org.eclipse.compare. I'm supposed to translate the texts into german. (Stuff like "Next Difference"...). So far i tried the following:
Created a plugin fragment for org.eclipse.compare.
copied the plugin.properties from org.eclipse.compare in the new fragment
renamed it to plugin_de.properties und translated some parts.
setting the checkbox on the plugins tab in the launch config.
Doesn't work. I'm still seeing the english texts. Is there something i forget or misunderstood?
It's kind of embarrassing, but the week was though... i translated the wrong text.

Browsing Java comments in Eclipse in an easy way

In a large project I need to review all the code comments and so I'm searching for something in Eclipse to browse comments in an easy way (Javadoc comments principally). Is it possible that doesn't exist a view or something else in Eclipse to do this?
I am sure it exists so please suggest me the tips :)
thanks a lot
rob
Just generate the javadoc and go from there, I think that would make a lot more sense
For browsing there is a view:
Window -> Show View -> Other... -> Java -> Javadoc
If you select a class / field / method in the Project Explorer it will show up in the Javadoc view.
For searching try a file search with file name pattern set to *.java.
Search -> File...

Properties Table in Java

I need a table that displays properties and allows their values to be changed. Similar to the Netbeans properties windows for the GUI editor. Does anyone know of any existing classes or libraries. I'd hate to reinvent the wheel on this one.
Edit:
Something like this which allows separators into different groups, JCombos, and JButtons to all be used.
Thanks
I would recommend JTable, and a gridbag layout manager.
The table in NetBeans is PropertySheetView (or similar) and it is part of the NetBeans Platform (PropertySheetView JavaDoc). This class should also be usable in a standalone Swing application by including the necessary NetBeans modules as jar files in the classpath (Found this with a bit of googling).
JTable can be used to display a Grid with values and allow the user to edit the value from columns you enable to it.
You could leverage the JTable class; which should provide the base you need.
JIDE Soft has a number of components, some of them are OpenSource take a look at there to see if you fine the one you need.
For future reference
I'm successfully using l2prof-common's PropertySheetPanel. The documentation is not that great and the API is not that clean, but it works, and the view is nice
The official site is
http://www.l2fprod.com/common/
But the download link is broken; I compiled the propertysheet JAR myself but you can get the whole library from http://www.astrogrid.org/maven/l2fprod/jars/
The library doubles as a demo if you execute the jar and there's also the code in it
I found this other question useful Have com.l2fprod.common.propertysheet.PropertySheetPanel To Display Composited Class
I would recommend taking a look at the SwingX JXTreeTable. I have used it in an application to create a very similar view.
An example screenshot I found on the web (here) to illustrate this

Categories

Resources