This is an automated email from the ASF dual-hosted git repository.
hansva pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/hop.git
The following commit(s) were added to refs/heads/main by this push:
new 6352da9088 Remove the redundant NEW button in the metadata view #8466
(#8467)
6352da9088 is described below
commit 6352da908894281075c0c4c0242b040c8f4dd359
Author: Nicolas Adment <[email protected]>
AuthorDate: Sat Sep 19 17:35:18 2026 +0200
Remove the redundant NEW button in the metadata view #8466 (#8467)
---
.../hop/ui/hopgui/perspective/metadata/MetadataPerspective.java | 7 -------
1 file changed, 7 deletions(-)
diff --git
a/ui/src/main/java/org/apache/hop/ui/hopgui/perspective/metadata/MetadataPerspective.java
b/ui/src/main/java/org/apache/hop/ui/hopgui/perspective/metadata/MetadataPerspective.java
index cf005c9c21..d865eb84f2 100644
---
a/ui/src/main/java/org/apache/hop/ui/hopgui/perspective/metadata/MetadataPerspective.java
+++
b/ui/src/main/java/org/apache/hop/ui/hopgui/perspective/metadata/MetadataPerspective.java
@@ -180,7 +180,6 @@ public class MetadataPerspective implements
IHopPerspective, TabClosable, IMetad
public static final String GUI_PLUGIN_CONTEXT_MENU_PARENT_ID =
"MetadataPerspective-ContextMenu";
public static final String TOOLBAR_ITEM_NEW_TYPE =
"MetadataPerspective-Toolbar-09000-NewType";
- public static final String TOOLBAR_ITEM_NEW =
"MetadataPerspective-Toolbar-10000-New";
public static final String TOOLBAR_ITEM_EDIT =
"MetadataPerspective-Toolbar-10010-Edit";
public static final String TOOLBAR_ITEM_DUPLICATE =
"MetadataPerspective-Toolbar-10030-Duplicate";
public static final String TOOLBAR_ITEM_DELETE =
"MetadataPerspective-Toolbar-10040-Delete";
@@ -1303,11 +1302,6 @@ public class MetadataPerspective implements
IHopPerspective, TabClosable, IMetad
renderTree();
}
- @GuiToolbarElement(
- root = GUI_PLUGIN_TOOLBAR_PARENT_ID,
- id = TOOLBAR_ITEM_NEW,
- toolTip = "i18n::MetadataPerspective.ToolbarElement.New.Tooltip",
- image = "ui/images/new.svg")
public void onNewMetadata() {
if (!HopSecurityUi.check(Permission.METADATA_WRITE)) {
return;
@@ -3272,7 +3266,6 @@ public class MetadataPerspective implements
IHopPerspective, TabClosable, IMetad
boolean canReadMeta = HopSecurity.allows(Permission.METADATA_READ) ||
canWriteMeta;
toolBarWidgets.enableToolbarItem(TOOLBAR_ITEM_NEW_TYPE, canWriteMeta);
- toolBarWidgets.enableToolbarItem(TOOLBAR_ITEM_NEW, canCreateHere &&
canWriteMeta);
toolBarWidgets.enableToolbarItem(TOOLBAR_ITEM_EDIT, isMetadataSelected &&
canReadMeta);
toolBarWidgets.enableToolbarItem(TOOLBAR_ITEM_RENAME, isMetadataSelected
&& canWriteMeta);
toolBarWidgets.enableToolbarItem(TOOLBAR_ITEM_DUPLICATE,
isMetadataSelected && canWriteMeta);