How to make Eclipse an “open type” window to display project classes first in the list and then third-party classes?

When you work with a project, you most often open classes from your project and less often from third-party classes, so it would be useful to first display project classes in the "Open Type" window. Is there any way to do this?

+4
source share
1 answer

Eclipse does not provide any configuration for the Open Type dialog. You can filter unwanted packages so that they do not appear (Settings-> Java-> Appearance-> Type Filters).

It is very simple with templates for finding classes inside a given package. Suppose I want to go to the Node class in pl.toro package. If I just type Node , it will return more than 20 classes with my class at the end of the list. But with the p.Node template p.Node class will be the first and only. p denotes the first letter of the packet ( pl ).

More from Eclipse help:

Wildcards: "*" for any string and "?" for any character

ending with "<" or "(space) to prevent automatic prefix matching, for example.

"Java * Access <". to match java.util.RandomAccess but not java.security.AccessControlContext

Camel case:

“TZ” for types containing “T” and “Z” as uppercase letters in a camel case entry, for example.

java.util.TimeZone

“NuPoEx” or “NuPo” for types containing “Nu”, “Po”, (and “Ex”) as camel marking parts, for example.

java.lang.NullPointerException

the completion of "<" or "" (space) to fix the number of parts of the camel case, for example

"HMAP <" and "HaMap <" "HashMap" and "HatMapper", but not "HashMapEntry" or "Hashmap".

Both types of templates also support package prefixes, for example. "J.util * Map <."

+2
source

Source: https://habr.com/ru/post/1397824/


All Articles