Skip to content

Commit

Permalink
improve display of path
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Rueger <[email protected]>
  • Loading branch information
chrisrueger committed Dec 23, 2024
1 parent 1ac07cc commit 6286697
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions bndtools.core/src/bndtools/editor/BndSourceEffectivePage.java
Original file line number Diff line number Diff line change
Expand Up @@ -394,12 +394,6 @@ private Object getColumnContent(Object element, String colName) {
return path;
}

if (path.equals(prop.processor()
.getBase()
.getPath())) {
return "-same-";
}

// cut the beginning to get only e.g. /cnf/build.bnd instead
// of absolute path
return path.replaceAll(prop.processor()
Expand All @@ -418,16 +412,11 @@ private Object getColumnContent(Object element, String colName) {

private String getPropertyKeyPath(PropertyKey prop) {
String path = "";
if (!prop.isLocalTo(editModel.getOwner())) {
File propertiesFile = prop.processor()
.getPropertiesFile();
if (propertiesFile != null) {
path = propertiesFile.getPath();
// .replaceAll(prop.processor()
// .getBase()
// .getPath(), "")
// .substring(1);
}

File propertiesFile = prop.processor()
.getPropertiesFile();
if (propertiesFile != null) {
path = propertiesFile.getPath();
}
return path;
}
Expand Down

0 comments on commit 6286697

Please sign in to comment.