Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to get Package Explorer to indicate when a Java source files (.java) contains a deprecated class(How to get Package Explorer to indicate when a Java source files (.java) contains a deprecated class or interface?)
How to get Package Explorer to indicate when a Java source files (.java) contains a deprecated class [message #1820880] Fri, 31 January 2020 03:25 Go to next message
Michael Mast is currently offline Michael MastFriend
Messages: 8
Registered: September 2014
Junior Member
How do I get the Package Explorer to indicate when a Java source files (.java) contains a deprecated class or interface? Perhaps the Java icon can be different or perhaps the name of the Java file is struck through?

As you can see from below, it doesn't indicate that `EFundAsset.java` contains a deprecated class.

https://1drv.ms/u/s!Aln8SgBjSZM-gbUY3hgCsPpfUgvOqg?e=HSSsiM
Re: How to get Package Explorer to indicate when a Java source files (.java) contains a deprecated c [message #1820890 is a reply to message #1820880] Fri, 31 January 2020 07:40 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
I don't believe there is a way to achieve this, but if there is, the JDT folks will know:

https://www.eclipse.org/forums/index.php/f/13/


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: How to get Package Explorer to indicate when a Java source files (.java) contains a deprecated c [message #1820895 is a reply to message #1820890] Fri, 31 January 2020 08:10 Go to previous messageGo to next message
Rolf Theunissen is currently offline Rolf TheunissenFriend
Messages: 260
Registered: April 2012
Senior Member
For me the following class gets a different icon, it has a struck through Java file icon:

@Deprecated
public class MyClass {
}


For nested classes/interfaces/functions this (of course) doesn't work.
Re: How to get Package Explorer to indicate when a Java source files (.java) contains a deprecated c [message #1820921 is a reply to message #1820895] Fri, 31 January 2020 17:40 Go to previous message
Michael Mast is currently offline Michael MastFriend
Messages: 8
Registered: September 2014
Junior Member
I found it! Preferences > Appearance > Label Decorations > Java Type Indicator. That setting was off in my fresh install of Eclipse 2019-12. Turning it on resolved my issue.
Previous Topic:How to add Filters to Navigator view ?
Next Topic:Bug? Unused field warning disappears when annotations used.
Goto Forum:
  


Current Time: Fri Apr 19 11:47:19 GMT 2024

Powered by FUDForum. Page generated in 0.01873 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top