mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Don't include class name into the location string for a function
For other languages we use the Class.Function notation. The class name can be included into the function name by a caller if needed.
This commit is contained in:
@@ -269,16 +269,6 @@ public class PyFunctionImpl extends PyBaseElementImpl<PyFunctionStub> implements
|
||||
public String getPresentableText() {
|
||||
return notNullize(getName(), PyNames.UNNAMED_ELEMENT) + getParameterList().getPresentableText(true);
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public String getLocationString() {
|
||||
final PyClass containingClass = getContainingClass();
|
||||
if (containingClass != null) {
|
||||
return "(" + containingClass.getName() + " in " + getPackageForFile(getContainingFile()) + ")";
|
||||
}
|
||||
return super.getLocationString();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user