I've created an eclipse plugin with a UI that I want to dock by default at the bottom in the Eclipse Java perspective (or any other perspective for that matter). How do I go about setting a default location for my plug-in UI?
...you can influence the initial size and position of your view in other perspectives by using the perspectiveExtensions extension point.
More on this here.
Related
I have a SharedHeaderFormEditor in my Eclipse RCP plugin.
One of my requirements is to draw attention to the editor's tab when something happens outside of the editor and it needs a refresh.
Some of the ideas discussed included
changing the color of the tab
adding an icon to the editor's text (instead of the standard * for a dirty editor)
Are either of those possible? I've been looking around and have not found anything that could address this issue.
Thanks!
ViewPart and EditorPart both allow changing the title label and icon (setPartName(…) and setTitleImage(…) respectively). The Eclipse Workbench also offers an IWorkbenchPartProgressService to each part, which allows a part to indicate that it's busy (via incrementBusy()/decrementBusy()) and that its content has changed (via warnOfContentChange()). You can see this used in the Search and Console views (org.eclipse.search2.internal.ui.SearchView and org.eclipse.ui.internal.console.ConsoleView).
When I debug code in Eclipse, I like to take advantage of multiple monitors. In Eclipse Kepler, I did this by docking a couple of windows on my secondary monitor and then saving that perspective. In Eclipse Mars, whenever I switch perspectives, it resizes and relocates the floating windows that should appear on my secondary monitor. How do I preserve size and location of views in a perspective in Eclipse Mars?
The only way I could get this to work correctly was to create the perspective I wanted, save the perspective, then right click the perspective icon and click "reset". Now it resizes right whenever I switch perspectives.
You could drag your program down near the console.
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?)
I have eclipse INDIGO version for Android development. I don't know how but by mistake eclipse view is changed.I want to restore my eclipse view again as before just help me.I want to set my eclipse view in horizontal way i.e. package view and open classes view should be in column wise like.
Now it looks like:
Try Window -> Reset Perspective...
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