Skip to main content



      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] Thu, 30 January 2020 22:25 Go to next message
Eclipse UserFriend
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 02:40 Go to previous messageGo to next message
Eclipse UserFriend
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/
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 03:10 Go to previous messageGo to next message
Eclipse UserFriend
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 12:40 Go to previous message
Eclipse UserFriend
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 18 20:00:12 EDT 2025

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

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

Back to the top