mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
mark class as entry even if it contains constructors (IDEA-133300)
This commit is contained in:
@@ -213,15 +213,12 @@ public abstract class EntryPointsManagerBase extends EntryPointsManager implemen
|
||||
List<RefMethod> refConstructors = refClass.getConstructors();
|
||||
if (refConstructors.size() == 1) {
|
||||
addEntryPoint(refConstructors.get(0), isPersistent);
|
||||
return;
|
||||
}
|
||||
else if (refConstructors.size() > 1) {
|
||||
// Many constructors here. Need to ask user which ones are used
|
||||
for (int i = 0; i < refConstructors.size(); i++) {
|
||||
addEntryPoint(refConstructors.get(i), isPersistent);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user