Skip to main content
Last updated August 14, 2011 22:57, by Stefan Lundgren
Feedicon  
= GUI component information Wiki A tool for developing [http://netbeans.org/features/platform/index.html NetBeans platform] applications ==Aims This project is aiming to try to make it easier to find the source code or bundle files for the components on the screen from a running [http://netbeans.org/features/platform/index.html NetBeans platform] application. [[image: objective2.jpg]] ==Background I have been a programmer for some years now and over the last year have I been working with an application based on the [http://netbeans.org/features/platform/index.html NetBeans platform] . One of the challenges that I have on a daily basis is to find the panels described on our SCRUM board since we have a lot of code and modules. This project was started just after I participated to one of [http://blogs.oracle.com/geertjan Geertjan Wielenga] [http://edu.netbeans.org/courses/nbplatform-certified-training NetBeans platform certified training] courses whereby I got all the tools I needed to fix the problems I had. == Actions After adding this component a new menu 'GUI Component info' will appere with all actions described below in the main menu Tools menu. In the demo application puching the enable/disable button will add or remove this menu. ==Component marker When the component marker is started, by Ctrl+T or via the menu, then all the GUI components where the mouse points will show a colored border around the component. This will show the name and class of the component then it can silently be dragged to one of the other window described down below. The marker layer does not interfer with the application except that it does not work in the top menu yet but it will follow new windows and dialogs poping up. To get it to stop it just hit Ctrl+T again. [[image: marker.jpg]] ==Component parent list Displays a list of the component and its parents with name, class and binary for the marked component. This list will be updated when a new component is marked by the mouse movement; by dragging the component to this window you can mark another component from the parent stack of the component. The context menu items is part of an extension point, just make a service provider for it an you can add new features. Here is yet another extension point that can make the language columns editable. [[image: parentlist.jpg]] ==Bundle tracker Displays the component and its parents all bundle data by binary, file, key and values for a predefined list of languages. The language list is controlled by the options panel. Do to a "feature" in the NbBundle there is no way to see if the ResourceBundle is a fallback language or the required one, this makes it impossible to clear columns that don't have a proper bundle file. [[image: bundle.jpg]] ==Future * Find a way to open bundle and java files in the editor from the runtime platform app. * Build a translation tool of it. * And mostly that you will like it and tell all your friends to join and contribute to the project. ==Try it Here is a url for adding it to your NetBeans application (Tools->Plugins->Settings->Add) [http://java.net/downloads/guicomponentinfo/updates.xml] or add a maven dependency: <pre> <dependency> <groupId>se.softstuff.nb</groupId> <artifactId>GuiComponentMarker</artifactId> <version>1.0.1</version> </dependency> </pre>
 
 
Close
loading
Please Confirm
Close