DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
  1. DZone
  2. Coding
  3. Frameworks
  4. Icon and Label Decorators in Eclipse

Icon and Label Decorators in Eclipse

Erich Styger user avatar by
Erich Styger
·
Aug. 21, 12 · Interview
Like (0)
Save
Tweet
Share
17.53K Views

Join the DZone community and get the full member experience.

Join For Free

from time to time, i scratch my head and ask myself: gee, that file icon looks interesting and different; what does it mean? what i’m wondering about is on eclipse icon decorators . label and icon decorations allow additional information to be displayed in an item’s label and icon. very powerful. but as with many powerful things: if you don’t know it, it might cause harm or confusion. unfortunately, that’s not so easy to find out.

things are best explained with an example. below are some files in my project view:

sources in project view

sources in project view

so my source file icon looks like this:

normal source file icon

normal source file icon

but it might look like this as well:

icon decorator on source file

icon decorator on source file

what happened? looks like someone pinned that icon? the longer answer can be found in symbol defined or not, that’s the question. the short answer is: that source file has ‘ per file ‘ settings, and that ‘ pin icon overlay ‘ tells me this.

but what about this one:

excluded overlay

excluded icon decorator

it means that the file has been ‘ excluded from build ‘ (see again symbol defined or not, that’s the question ):

excluded from build

excluded from build

but it does not stop here: icon decorators can be combined:

combined icon decorators

combined icon decorators

so that file is excluded from the current build, and has special per file settings.

now let’s have a look a this processorexpert.pe file:

processorexpert.pe icon

processorexpert.pe icon

it means that the file is excluded from build, plus it has its own build settings. interestingly this happens for projects imported from mcu10.1 into mcu10.2? but it is possible bo get rid of it. the first thing is to remove that ‘ exclude resource from build ‘ flag as shown earlier). the other step is to reset the resource configuration to default settings:

reset to default

reset to default

this will ‘reset’ my icon and settings.

now the question is: how to know that icon decorator is for what? for subversion/svn or cvs they are easily accessible under window > preferences:

svn label decorations

svn label decorations

an excellent explanation of all the svn icon/label decorations can be found in what do the arrow icons in subclipse mean?

otherwise icons might depend on the eclipse version used. there is an answer to the question “ what do the icons in eclipse mean? “ which is replicated here:

indigo: http://help.eclipse.org/indigo/index.jsp?topic=/org.eclipse.jdt.doc.user/reference/ref-icons.htm
helios: http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.jdt.doc.user/reference/ref-icons.htm
galileo: http://help.eclipse.org/galileo/topic/org.eclipse.jdt.doc.user/reference/ref-icons.htm?resultof=%22icon%22

there are also some cdt icons at the bottom of this help page .

unfortunately, except for things like cvs or svn, i have not found a comprehensive list of icon or label decorators. i have found this thread that gives some clues . maybe someone has found a better answer? until then, it is a continued exploring and learning experience.

happy decorating :-)

Icon Label Eclipse

Published at DZone with permission of Erich Styger, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Exploring the Benefits of Cloud Computing: From IaaS, PaaS, SaaS to Google Cloud, AWS, and Microsoft
  • Playwright vs. Cypress: The King Is Dead, Long Live the King?
  • The Enterprise, the Database, the Problem, and the Solution
  • How to Secure Your CI/CD Pipeline

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: