Eclipse comes with windowbuilder, which wizard should I start with? - eclipse

I just find out that windowbuilder comes with the original Eclipse package. There are project palette, application window, japplet, jdialog, jdialog, jframe, jinternalframe, jpanel, swing automatic databinding. Which one should I start with and how to learn more?

For Eclipse IDE, Window Builder is one more Editor for handling java source files.
So you should be able to open all java classes with it. Right click on any java class and select open with menu option. You should see "WindowBuilder Editor" as an option there.
Note that this editor may not show any content in Design or Bindings tab for any non-GUI classes (e.g. interfaces).

Related

not only show eclipse plugin popup within package explorer

I'm pretty new to eclipse plugin development but it's working fine so far except the part that my plugin does only show in java or plugin development perspective.
this is related to the following locationURI:
locationURI="popup:org.eclipse.jdt.ui.PackageExplorer?after=additions"
an other perspective uses "Navigator" for example therefore my plugin does not show.
how am I able to make it visible in Navigator (don't know the locationURI for it) and Project Explorer too (popup:org.eclipse.ui.navigator.ProjectExplorer#PopupMenu) ?
Use
locationURI="popup:org.eclipse.ui.popup.any?after=additions">
to contribute to any popup menu which has an 'additions' position.

What are the properties of a "non-participating editor" in eclipse?

The eclipse documentation says that the method
IWorkbenchPage.hideEditor(IEditorReference ref)
will "remove an open editor, turn it into a non-participating editor". But what does non-participating mean? Is the plugin still running in the background? Is it still possible to programmatically access the EditorPart of the hidden editor in another plugin?
If I had a GEF editor and would hide it using hideEditor(), would it still be possible to render an overview of the diagram?
Looking at the Eclipse Kepler implementation of IWorkbenchPage the hideEditor method does nothing except logging an unsupported message if debugging is enabled.

Eclipse GEF graphical editor without header

I am developing RCP plug-in with GEF framework.
I've created basic graphical editor (GraphicalEditor and IEditorInput)
IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
page.openEditor(new TEditorInput("T"), TGraphicalEditor.ID,false);
When I run the application I get editor with a header that contains the tab with the name of the editor and control buttons to maximize and minimize the editor.
What I need is to display just the editor, without the header.
Can it be done?
To my knowledge, it is not possible to just hide an editor's tab.
However, you can try two workarounds:
Have your GEF editor be displayed in an Eclipse view instead of an editor and open such a view as a standalone view. An example of how to open a GEF diagram in a view can be found in GEF's Directed Graph Example. An example of how to open a view as standalone can be found in one the Eclipse RCP official tutorials.
Extend the presentation factories extension point to control how workbench parts are displayed (which includes control over the part stack tab).
I suggest you try the first approach, as to me it seems easier to implement.
The idea with editors is that you can instantiate them multiply for different editor inputs. I am not aware of any way to restrict the number of open editors to just one (well, it appears you can in Eclipse 4.2 if that helps you)
For views, what you want can be done by setting the perspective to fixed and set showTitle of the org.eclipse.ui.perspectiveExtensions extension to false on the view. Maybe you can use a view instead of an editor and control the editor input yourself?
(For example, using an editor, the default Open action would instantiate a new editor, while you probably want to replace the contents in your only editor, right?)

Eclipse outline view and Spring Roo

When using spring-roo within STS I do not see AspectJ generated functions in the outline view.
Is this possible at all?
Update: it seams that this is an issue with my STS installation or with my project since this feature is working at a colleages machine. So I have to find out why it is not working on my machine (current STS installed, Java 7).
Yes.
Find a triangle in the top right of the package explorer, click it and a contextual menu will appear. Select "Filters..." and you'll see a window that allows you to select filters for Java elements.
Find in the central pane the option "Hide generated Spring Roo ITDs"
The next time the selection will appear directly under the triangle, so you can switch the filter faster.
In new versions: Project Explore > Working Set Menu (triangle in the top right of the package explorer) -> Customize View , find for "Hide generated Spring Roo ITDs" unselect it.
good luck

How to turn on the java smart editor?

Well I did something, but I do not know what. In one java file in my project, but not the others, when I bring it up in the editor it looks like a plane text editor. It compiles when I save, but that is it. How can I turn it back to the normal java smart editor? And what did I do? I am using the default eclipse editor.
Thanks Cliff
Right-click the file, choose Open With -> Java Editor.
Eclipse remembers the last editor you used, and will use that if you simply double click the file.