This is an automated email from the ASF dual-hosted git repository.
sdedic pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git
The following commit(s) were added to refs/heads/master by this push:
new dc46b30295 make sure CTXVALUE_CAP_DELETE is added to context value
only for nodes, which can be deleted
new 4a41821224 Merge pull request #5629 from thurka/GCN-1707
dc46b30295 is described below
commit dc46b302957ce2a88689c50c2457625406d972ed
Author: Tomas Hurka <[email protected]>
AuthorDate: Wed Mar 8 14:09:18 2023 +0100
make sure CTXVALUE_CAP_DELETE is added to context value only for nodes,
which can be deleted
---
.../modules/java/lsp/server/explorer/DefaultDecorationsImpl.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/explorer/DefaultDecorationsImpl.java
b/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/explorer/DefaultDecorationsImpl.java
index db6069ede1..7d5d466cb5 100644
---
a/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/explorer/DefaultDecorationsImpl.java
+++
b/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/explorer/DefaultDecorationsImpl.java
@@ -206,7 +206,7 @@ public class DefaultDecorationsImpl implements
TreeDataProvider.Factory {
} else {
d.addContextValues(CTXVALUE_PROJECT_SUBPROJECT);
}
- } else if (f == null || physFile != null) {
+ } else if (n.canDestroy()) {
// TODO Hack: exclude projects from delete capability. The
TreeItemData probably needs to support
// exclusion... Project delete UI is not suitable for LSP at
the moment
d.addContextValues(CTXVALUE_CAP_DELETE);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists