Add ability to open class files even when they don't have a package
This commit is contained in:
parent
336d60ba06
commit
29d29e14ac
|
@ -211,7 +211,9 @@ public class GoToAction extends AbstractAction
|
||||||
if (packagePath.startsWith("java") || packagePath.startsWith("javax") || packagePath.startsWith("com.sun"))
|
if (packagePath.startsWith("java") || packagePath.startsWith("javax") || packagePath.startsWith("com.sun"))
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
String resourceName = packagePath + "/" + classMethodLocation.owner;
|
String resourceName = classMethodLocation.owner;
|
||||||
|
if (!packagePath.isEmpty())
|
||||||
|
resourceName = packagePath + "/" + classMethodLocation.owner;
|
||||||
|
|
||||||
if (resourceContainer.resourceClasses.containsKey(resourceName))
|
if (resourceContainer.resourceClasses.containsKey(resourceName))
|
||||||
{
|
{
|
||||||
|
@ -229,7 +231,11 @@ public class GoToAction extends AbstractAction
|
||||||
if (packagePath.startsWith("java") || packagePath.startsWith("javax") || packagePath.startsWith("com.sun"))
|
if (packagePath.startsWith("java") || packagePath.startsWith("javax") || packagePath.startsWith("com.sun"))
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
String resourceName = packagePath + "/" + lexeme;
|
String resourceName = lexeme;
|
||||||
|
if (!packagePath.isEmpty())
|
||||||
|
{
|
||||||
|
resourceName = packagePath + "/" + lexeme;
|
||||||
|
}
|
||||||
|
|
||||||
if (resourceContainer.resourceClasses.containsKey(resourceName))
|
if (resourceContainer.resourceClasses.containsKey(resourceName))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user