Plugin: how to get all types available in my eclipse workspace?

I am writing an eclipse plugin, and I want to get all the types available in my workspace,
for example, by pressing Ctrl+ Shift+ T,
but in a list or array.

How can i do this?

+3
source share
1 answer

Corresponding code refers to org.eclipse.jdt.internal.ui.dialogs.FilteredTypesSelectionDialog (which inherits OpenTypeSelectionDialog caused by ctrl- shift- T).

fillContentProvider(), org.eclipse.jdt.core.search.SearchEngine, TypeSearchRequestor TypeItemsFilter .

Javadoc SearchEngine.searchAllTypeNames() / , , .

+1

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


All Articles