Sorry for my vague question, but I'm missing the words to be more to the point. That's part of my question.
I'm using Eclipse Mars. Several views display little images next to, e.g., project names. Furthermore, these images are enriched by additional graphical features, depending on the properties and states of the entities they are attached to. So,
How are these images called?
How are the additions called?
How do I find out, what a specific addition means?
For example, I have no clue about the meaning of the strange antlers on the bottommost image in the following screen.
They are called 'decorations' or 'decorators'. They are added by various plugins to provide additional information about the file / folder / projects. Decorations can also be added to the beginning or end of the label text.
For example the first three projects in your image are Java projects (small J at the top right), they are under source control (bottom right image) and they all have some warnings about problems (warning sign at the bottom left).
You can control the display of many of these images in the Preferences in the 'General > Appearance > Label Decorations' page. Other decorations are controlled in other preference pages specific to the plugin that provides them (for example 'Team > SVN > Label Decorations').
Because they are added by many plugins it is hard to give a list of what they all mean. This answer lists some of them.
Plugins use the org.eclipse.ui.decorators to declare decorations.
I'm not sure but my guess is the 'strange antlers' decoration are because you have an ANTLR project.
Here's the official icon reference for the basic icons and decorators.
Plugins (including standard plugins) will add additional decorations. For example, the ones used by Git are listed in Preferences>Team>Git>Label Decorations, along with a key. You can enable/disable plugin-specific decorations in Preferences>General>Appearance>Label Decorations.
The antlers in your selected icon are from the ANTLR plugin. So that project is an ANTLR project (as well as being a Git-tracked project that causes a warning, per the other icons).
I hope that helps!
Related
I recently brought Mac Book Pro and I installed Eclipse Luna. I am facing a problem in viewing the Java projects in "Package Explorer" folders are very small. Is there a way to increase instead of changing the screen resolution?
It should be possible, have a look at this link: http://blog.vogella.com/2013/02/19/css-styling-individual-part-of-the-eclipse-ide/
(Copy of the essential part, in case the above link stops working:
#org-eclipse-jdt-ui-PackageExplorer {
font-size:20;
background:black;
}
)
Remains the question, where to put those lines. Best would be to create your own style, but I never figured out how to do it. So I usually just modify one of the built-in styles. To do this, go to /Applications/eclipse4.4/plugins/org.eclipse.ui.themes_1.0.1.v20140819-1717/css and open the css-file of the style you currently use (probably e4_default_mac.css). Then add the above lines at the end of that css file and restart Eclipse. Note: when updating Eclipse, you might have to repeat those steps.
EDIT: Just realized it was already asked and answered on SO: I cannot change the font size of package explorer in Eclipse Don't look at the accepted answer, but at the next one below.
No, there is no way to change the size of folders or other visual properties of package explorer.
The views, fonts, etc... of general views are set by the system/OS properties. Only the editor view allows customization of sizing, such as, font.
Is there a way i can display fully qualified class names for the debugger's callstack?
E.g. rather than this:
I would like to have the packages of the classes included - like where the green boxes remain here:
(NOTE: Actually i dont care where they are displayed as long as there is a easy way to determine the package of a class in the callstack)
Motivation:
I am currently working on legacy systems where there is multiple layers of frameworks (both self-made as well as old stuff like Struts 1.1.), service components etc. etc. and i try to figure out the first point our code is included in some way). Since there are now about 100 Projects in my Eclipse -all with their Maven dependencies - things get complicated by just "Link with Editor" and see where the according class is placed in.
What i tried:
Aprox. 20min Webresearch (incl. reading the SO questions/ answers recommended when i created this question) without any remarkable results.
Using my entire design skills combinated with my 15+ years of MS Paint experience i drew the above images (Feel free to add those stunners to your art collection).
Does this help? In the upper right-hand corner of the Debug (callstack) view, click the menu button (the upside down white triangle), then Java, then see the 'Show Qualified Names' option.
I am trying to develop an eclipse plugin that does some documentation check on java code and highlights some lines of code in the editor.
To achieve my goal, I DON'T want to create a new editor in eclipse, I simply want to extend the default java editor to draw a line under (or highlight) the methods that do not satisfy some set of predetermined requirements.
Do I need to create a PresentationReconciler? If yes, how do I make the JDT or workbench use my reconciler.
I have never done plugin development and this is my first attempt.
Several starting points for you:
Annotations are an UI feature of JFace's text editor that allows you to visually mark some places in an open editor.
Markers are a Workbench feature, more high-level. They are generic "objects that may be associated with Workbench resources", and they can display in several places: in text editors (as annotations) or in the Problems view, for example.
Depending on what you want to do, you would plug in your plug-in into extension points related to either of those.
The Eclipse Java editor is located in the org.eclipse.jdt.internal.ui.javaeditor.JavaEditor package.
The "internal" in the package name means that the Eclipse development team can change how the Java editor works with new revisions.
Try this help page: Juno Help on syntax highlighting
At the end of the page, it describes how to dynamically add a PresentationReconciler, which is used for syntax highlighting. See if that fits the problem that you want to solve.
I assume you already have a plugin project.
In your plugin.xml, open the tab Extensions, click Add..., search for org.eclipse.ui.editors, then you should see a template named Editor, which will produce a simple xml editor to experiment and play with. Also, you will be able to see the needed structure to define a custom editor.
Hope this helps...
I don't know if you still have a need for this, but you are going to want to use Annotations to keep track of what parts of the editor you need to highlight.
For actually doing the graphical effect of highlighting, you could do syntax highlighting via a PresentationReconciler, but I have no experience with that.
We used a technique we borrowed from http://editbox.sourceforge.net/, replacing the background image of the editor Shell. Its open source, so check it out. (Our code might also help -- its at https://github.com/IDE4edu/EclipseEditorOverlay )
I dont know why but this is driving me insane, does anyone know why this is happening?
first the whole thing is red, everyone of my java files (only in this one project) is like this. second, that dot next to the D, that is not the "edited without save" asterisk, it still shows up there after I edit something along side this dot. How do I remove both the dot and the red and go back to the white background? Thanks
The formatting of those entries are governed by label decorations. Possible you installed a new plug-in, that set up a new type of decoration that looks wild. You try to disable them to detect the source of the issue.
Generic Label decorations are set in General/Appearance/Label Decorations page in Eclipse Preferences, but the various Team providers (CVS, SVN, Git, etc.) also provide such options (Team/xxx/Label Decorations). Additionally, you could search for the string Label Decorations in Preferences using the search bar.
Basically, I have an eclipse plug-in which, among other things, adds three tabs to the Properties View, by using the extension points provided by eclipse (org.eclipse.ui.views.properties.tabbed.propertyContributor, org.eclipse.ui.views.properties.tabbed.propertyTabs and org.eclipse.ui.views.properties.tabbed.propertySections).
I am creating a plug-in to add a new tab (and some different properties) (see image).
Can you please give me some indications on how to do this, considering that there are no extension points offered by this plug-in for this. Is it possible to create a new tab by using the extension points provided by eclipse (mentioned above) in such a way that my tab appears under the three already added?
(I am pretty new in the plug-in area... all the tutorials I found showed how to create some tabs from scratch, where there is nothing added in the Properties View already).
Many thanks!
Here is the solution I found so far (I still need to explore it a bit more - I might be able to add some more details):
I created a fragment - the trick with the fragment is to either set the "host plugin" the RCP plugin or, if you set the "host plugin" a different plugin than the RCP, but which is in the Dependencies list of the RCP, you have to export the product first; don't forget to include the fragment in the Dependencies list of the product.
I extended the plugin org.eclipse.ui.views.properties.tabbed.propertyTabs and set the same contributorId as in the original plugin (the one with the 3 tabs) and created my new tab ("My Tab" in the image)
I created the sections I needed for this tab, again setting the same contributorId