Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » How to provide default "Type filter"
How to provide default "Type filter" [message #899072] Mon, 30 July 2012 09:32 Go to next message
Lars Vogel is currently offline Lars Vogel
Messages: 1049
Registered: July 2009
Senior Member

Under Java -> Appearance -> Type Filters I can enter filters for types I don't want to use. As I never use java.awt and javax.swing I would like to create some default settings for example via plugin_customization.ini.

Is this possible? I used grep to search through the .metadata/.plugins directory but I found only binary files.

Re: How to provide default "Type filter" [message #899289 is a reply to message #899072] Tue, 31 July 2012 07:09 Go to previous messageGo to next message
Dani Megert is currently offline Dani Megert
Messages: 3801
Registered: July 2009
Senior Member
On 30.07.2012 15:32, Lars Vogel wrote:
> Under Java -> Appearance -> Type Filters I can enter filters for types
> I don't want to use. As I never use java.awt and javax.swing I would
> like to create some default settings for example via
> plugin_customization.ini.
>
> Is this possible? I used grep to search through the .metadata/.plugins
> directory but I found only binary files.
e.g.
org.eclipse.jdt.ui/org.eclipse.jdt.ui.typefilter.enabled=javax.*;

Hint to find such keys:
1. start a new workspace
2. change the preference
3. export all preferences
4. search the key in the exported file

Note that you need to remove the scope (e.g. /instance/) before copying
it into the plugin_customization.ini file.

Dani
Re: How to provide default "Type filter" [message #899315 is a reply to message #899289] Tue, 31 July 2012 09:03 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5296
Registered: July 2009
Senior Member
Can typfilters also get applied to Projects, or only generally on the
whole workspace?

Tom

Am 31.07.12 13:09, schrieb Daniel Megert:
> On 30.07.2012 15:32, Lars Vogel wrote:
>> Under Java -> Appearance -> Type Filters I can enter filters for types
>> I don't want to use. As I never use java.awt and javax.swing I would
>> like to create some default settings for example via
>> plugin_customization.ini.
>>
>> Is this possible? I used grep to search through the .metadata/.plugins
>> directory but I found only binary files.
> e.g.
> org.eclipse.jdt.ui/org.eclipse.jdt.ui.typefilter.enabled=javax.*;
>
> Hint to find such keys:
> 1. start a new workspace
> 2. change the preference
> 3. export all preferences
> 4. search the key in the exported file
>
> Note that you need to remove the scope (e.g. /instance/) before copying
> it into the plugin_customization.ini file.
>
> Dani
>
Re: How to provide default "Type filter" [message #899370 is a reply to message #899289] Tue, 31 July 2012 11:12 Go to previous message
Lars Vogel is currently offline Lars Vogel
Messages: 1049
Registered: July 2009
Senior Member

Thanks Dani, works fine for me.
Previous Topic:Adding a Nature/Builder automatically to a project
Next Topic:Using ADK with Relative Layout on Eclipse
Goto Forum:
  


Current Time: Sun Aug 31 06:37:20 EDT 2014

Powered by FUDForum. Page generated in 0.02626 seconds