@@ -58,53 +54,6 @@ public interface TreeItemContextMenuEntry extends EObject {
*/
void setName(String value);
- /**
- * Returns the value of the 'Label Expression' attribute.
- *
- * @return the value of the 'Label Expression' attribute.
- * @see #setLabelExpression(String)
- * @see org.eclipse.sirius.components.view.tree.TreePackage#getTreeItemContextMenuEntry_LabelExpression()
- * @model dataType="org.eclipse.sirius.components.view.InterpretedExpression"
- * @generated
- */
- String getLabelExpression();
-
- /**
- * Sets the value of the '{@link org.eclipse.sirius.components.view.tree.TreeItemContextMenuEntry#getLabelExpression
- * Label Expression}' attribute.
- *
- * @param value
- * the new value of the 'Label Expression' attribute.
- * @see #getLabelExpression()
- * @generated
- */
- void setLabelExpression(String value);
-
- /**
- * Returns the value of the 'Icon URL Expression' attribute.
- *
- * @return the value of the 'Icon URL Expression' attribute.
- * @see #setIconURLExpression(String)
- * @see org.eclipse.sirius.components.view.tree.TreePackage#getTreeItemContextMenuEntry_IconURLExpression()
- * @model dataType="org.eclipse.sirius.components.view.InterpretedExpression"
- * @generated
- */
- String getIconURLExpression();
-
- /**
- * Sets the value of the
- * '{@link org.eclipse.sirius.components.view.tree.TreeItemContextMenuEntry#getIconURLExpression Icon URL
- * Expression}' attribute.
- *
- * @param value
- * the new value of the 'Icon URL Expression' attribute.
- * @see #getIconURLExpression()
- * @generated
- */
- void setIconURLExpression(String value);
-
/**
* Returns the value of the 'Precondition Expression' attribute.
diff --git a/packages/view/backend/sirius-components-view-tree/src/main/java/org/eclipse/sirius/components/view/tree/TreePackage.java b/packages/view/backend/sirius-components-view-tree/src/main/java/org/eclipse/sirius/components/view/tree/TreePackage.java
index 9fffff4d05..1e0ca84bb7 100644
--- a/packages/view/backend/sirius-components-view-tree/src/main/java/org/eclipse/sirius/components/view/tree/TreePackage.java
+++ b/packages/view/backend/sirius-components-view-tree/src/main/java/org/eclipse/sirius/components/view/tree/TreePackage.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2024 Obeo.
+ * Copyright (c) 2024, 2025 Obeo.
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
@@ -30,9 +30,9 @@
*
*
*
+ * @see org.eclipse.sirius.components.view.tree.TreeFactory
* @model kind="package"
* @generated
- * @see org.eclipse.sirius.components.view.tree.TreeFactory
*/
public interface TreePackage extends EPackage {
@@ -61,9 +61,9 @@ public interface TreePackage extends EPackage {
* The meta object id for the '{@link org.eclipse.sirius.components.view.tree.impl.TreeDescriptionImpl
* Description}' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.tree.impl.TreeDescriptionImpl
* @see org.eclipse.sirius.components.view.tree.impl.TreePackageImpl#getTreeDescription()
+ * @generated
*/
int TREE_DESCRIPTION = 0;
@@ -84,7 +84,8 @@ public interface TreePackage extends EPackage {
int TREE_DESCRIPTION__DOMAIN_TYPE = ViewPackage.REPRESENTATION_DESCRIPTION__DOMAIN_TYPE;
/**
- * The feature id for the 'Precondition Expression' attribute.
+ * The feature id for the 'Precondition Expression' attribute.
*
* @generated
* @ordered
@@ -92,7 +93,8 @@ public interface TreePackage extends EPackage {
int TREE_DESCRIPTION__PRECONDITION_EXPRESSION = ViewPackage.REPRESENTATION_DESCRIPTION__PRECONDITION_EXPRESSION;
/**
- * The feature id for the 'Title Expression' attribute.
+ * The feature id for the 'Title Expression' attribute.
*
* @generated
* @ordered
@@ -116,7 +118,8 @@ public interface TreePackage extends EPackage {
int TREE_DESCRIPTION__KIND_EXPRESSION = ViewPackage.REPRESENTATION_DESCRIPTION_FEATURE_COUNT + 0;
/**
- * The feature id for the 'Tree Item Icon Expression' attribute.
+ * The feature id for the 'Tree Item Icon Expression' attribute.
*
* @generated
* @ordered
@@ -124,7 +127,8 @@ public interface TreePackage extends EPackage {
int TREE_DESCRIPTION__TREE_ITEM_ICON_EXPRESSION = ViewPackage.REPRESENTATION_DESCRIPTION_FEATURE_COUNT + 1;
/**
- * The feature id for the 'Tree Item Id Expression' attribute.
+ * The feature id for the 'Tree Item Id Expression' attribute.
*
* @generated
* @ordered
@@ -132,7 +136,8 @@ public interface TreePackage extends EPackage {
int TREE_DESCRIPTION__TREE_ITEM_ID_EXPRESSION = ViewPackage.REPRESENTATION_DESCRIPTION_FEATURE_COUNT + 2;
/**
- * The feature id for the 'Tree Item Object Expression' attribute.
+ * The feature id for the 'Tree Item Object Expression' attribute.
*
* @generated
* @ordered
@@ -140,7 +145,8 @@ public interface TreePackage extends EPackage {
int TREE_DESCRIPTION__TREE_ITEM_OBJECT_EXPRESSION = ViewPackage.REPRESENTATION_DESCRIPTION_FEATURE_COUNT + 3;
/**
- * The feature id for the 'Elements Expression' attribute.
+ * The feature id for the 'Elements Expression' attribute.
*
* @generated
* @ordered
@@ -148,7 +154,8 @@ public interface TreePackage extends EPackage {
int TREE_DESCRIPTION__ELEMENTS_EXPRESSION = ViewPackage.REPRESENTATION_DESCRIPTION_FEATURE_COUNT + 4;
/**
- * The feature id for the 'Has Children Expression' attribute.
+ * The feature id for the 'Has Children Expression' attribute.
*
* @generated
* @ordered
@@ -156,7 +163,8 @@ public interface TreePackage extends EPackage {
int TREE_DESCRIPTION__HAS_CHILDREN_EXPRESSION = ViewPackage.REPRESENTATION_DESCRIPTION_FEATURE_COUNT + 5;
/**
- * The feature id for the 'Children Expression' attribute.
+ * The feature id for the 'Children Expression' attribute.
*
* @generated
* @ordered
@@ -164,7 +172,8 @@ public interface TreePackage extends EPackage {
int TREE_DESCRIPTION__CHILDREN_EXPRESSION = ViewPackage.REPRESENTATION_DESCRIPTION_FEATURE_COUNT + 6;
/**
- * The feature id for the 'Parent Expression' attribute.
+ * The feature id for the 'Parent Expression' attribute.
*
* @generated
* @ordered
@@ -172,7 +181,8 @@ public interface TreePackage extends EPackage {
int TREE_DESCRIPTION__PARENT_EXPRESSION = ViewPackage.REPRESENTATION_DESCRIPTION_FEATURE_COUNT + 7;
/**
- * The feature id for the 'Editable Expression' attribute.
+ * The feature id for the 'Editable Expression' attribute.
*
* @generated
* @ordered
@@ -180,7 +190,8 @@ public interface TreePackage extends EPackage {
int TREE_DESCRIPTION__EDITABLE_EXPRESSION = ViewPackage.REPRESENTATION_DESCRIPTION_FEATURE_COUNT + 8;
/**
- * The feature id for the 'Selectable Expression' attribute.
+ * The feature id for the 'Selectable Expression' attribute.
*
* @generated
* @ordered
@@ -188,7 +199,8 @@ public interface TreePackage extends EPackage {
int TREE_DESCRIPTION__SELECTABLE_EXPRESSION = ViewPackage.REPRESENTATION_DESCRIPTION_FEATURE_COUNT + 9;
/**
- * The feature id for the 'Deletable Expression' attribute.
+ * The feature id for the 'Deletable Expression' attribute.
*
* @generated
* @ordered
@@ -196,7 +208,8 @@ public interface TreePackage extends EPackage {
int TREE_DESCRIPTION__DELETABLE_EXPRESSION = ViewPackage.REPRESENTATION_DESCRIPTION_FEATURE_COUNT + 10;
/**
- * The feature id for the 'Tree Item Label Descriptions' containment reference list.
+ * The feature id for the 'Tree Item Label Descriptions' containment reference list.
*
* @generated
* @ordered
@@ -204,7 +217,8 @@ public interface TreePackage extends EPackage {
int TREE_DESCRIPTION__TREE_ITEM_LABEL_DESCRIPTIONS = ViewPackage.REPRESENTATION_DESCRIPTION_FEATURE_COUNT + 11;
/**
- * The feature id for the 'Context Menu Entries' containment reference list.
+ * The feature id for the 'Context Menu Entries' containment reference list.
+ *
*
* @generated
* @ordered
@@ -212,7 +226,8 @@ public interface TreePackage extends EPackage {
int TREE_DESCRIPTION__CONTEXT_MENU_ENTRIES = ViewPackage.REPRESENTATION_DESCRIPTION_FEATURE_COUNT + 12;
/**
- * The number of structural features of the 'Description' class.
+ * The number of structural features of the 'Description' class.
*
* @generated
* @ordered
@@ -231,9 +246,9 @@ public interface TreePackage extends EPackage {
* The meta object id for the '{@link org.eclipse.sirius.components.view.tree.impl.TreeItemLabelDescriptionImpl
* Item Label Description}' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.tree.impl.TreeItemLabelDescriptionImpl
* @see org.eclipse.sirius.components.view.tree.impl.TreePackageImpl#getTreeItemLabelDescription()
+ * @generated
*/
int TREE_ITEM_LABEL_DESCRIPTION = 1;
@@ -246,7 +261,8 @@ public interface TreePackage extends EPackage {
int TREE_ITEM_LABEL_DESCRIPTION__NAME = 0;
/**
- * The feature id for the 'Precondition Expression' attribute.
+ * The feature id for the 'Precondition Expression' attribute.
*
* @generated
* @ordered
@@ -254,7 +270,8 @@ public interface TreePackage extends EPackage {
int TREE_ITEM_LABEL_DESCRIPTION__PRECONDITION_EXPRESSION = 1;
/**
- * The feature id for the 'Children' containment reference list.
+ * The feature id for the 'Children' containment reference list.
*
* @generated
* @ordered
@@ -262,7 +279,8 @@ public interface TreePackage extends EPackage {
int TREE_ITEM_LABEL_DESCRIPTION__CHILDREN = 2;
/**
- * The number of structural features of the 'Item Label Description' class.
+ * The number of structural features of the 'Item Label Description' class.
*
* @generated
* @ordered
@@ -270,7 +288,8 @@ public interface TreePackage extends EPackage {
int TREE_ITEM_LABEL_DESCRIPTION_FEATURE_COUNT = 3;
/**
- * The number of operations of the 'Item Label Description' class.
+ * The number of operations of the 'Item Label Description' class.
*
* @generated
* @ordered
@@ -278,17 +297,19 @@ public interface TreePackage extends EPackage {
int TREE_ITEM_LABEL_DESCRIPTION_OPERATION_COUNT = 0;
/**
- * The meta object id for the '{@link org.eclipse.sirius.components.view.tree.impl.TreeItemLabelElementDescriptionImpl Item Label Element Description}' class.
+ * The meta object id for the
+ * '{@link org.eclipse.sirius.components.view.tree.impl.TreeItemLabelElementDescriptionImpl Item Label Element
+ * Description}' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.tree.impl.TreeItemLabelElementDescriptionImpl
* @see org.eclipse.sirius.components.view.tree.impl.TreePackageImpl#getTreeItemLabelElementDescription()
+ * @generated
*/
int TREE_ITEM_LABEL_ELEMENT_DESCRIPTION = 3;
/**
- * The number of structural features of the 'Item Label Element Description' class.
+ * The number of structural features of the 'Item Label Element Description' class.
+ *
*
* @generated
* @ordered
@@ -296,7 +317,8 @@ public interface TreePackage extends EPackage {
int TREE_ITEM_LABEL_ELEMENT_DESCRIPTION_FEATURE_COUNT = 0;
/**
- * The number of operations of the 'Item Label Element Description' class.
+ * The number of operations of the 'Item Label Element Description' class.
*
* @generated
* @ordered
@@ -304,17 +326,19 @@ public interface TreePackage extends EPackage {
int TREE_ITEM_LABEL_ELEMENT_DESCRIPTION_OPERATION_COUNT = 0;
/**
- * The meta object id for the '{@link org.eclipse.sirius.components.view.tree.impl.TreeItemLabelFragmentDescriptionImpl Item Label Fragment Description}' class.
- *
+ * The meta object id for the
+ * '{@link org.eclipse.sirius.components.view.tree.impl.TreeItemLabelFragmentDescriptionImpl Item Label Fragment
+ * Description}' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.tree.impl.TreeItemLabelFragmentDescriptionImpl
* @see org.eclipse.sirius.components.view.tree.impl.TreePackageImpl#getTreeItemLabelFragmentDescription()
+ * @generated
*/
int TREE_ITEM_LABEL_FRAGMENT_DESCRIPTION = 2;
/**
- * The feature id for the 'Label Expression' attribute.
+ * The feature id for the 'Label Expression' attribute.
*
* @generated
* @ordered
@@ -330,7 +354,8 @@ public interface TreePackage extends EPackage {
int TREE_ITEM_LABEL_FRAGMENT_DESCRIPTION__STYLE = TREE_ITEM_LABEL_ELEMENT_DESCRIPTION_FEATURE_COUNT + 1;
/**
- * The number of structural features of the 'Item Label Fragment Description' class.
+ * The number of structural features of the 'Item Label Fragment Description' class.
*
* @generated
* @ordered
@@ -338,7 +363,8 @@ public interface TreePackage extends EPackage {
int TREE_ITEM_LABEL_FRAGMENT_DESCRIPTION_FEATURE_COUNT = TREE_ITEM_LABEL_ELEMENT_DESCRIPTION_FEATURE_COUNT + 2;
/**
- * The number of operations of the 'Item Label Fragment Description' class.
+ * The number of operations of the 'Item Label Fragment Description' class.
*
* @generated
* @ordered
@@ -349,9 +375,9 @@ public interface TreePackage extends EPackage {
* The meta object id for the '{@link org.eclipse.sirius.components.view.tree.impl.TreeItemContextMenuEntryImpl
* Item Context Menu Entry}' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.tree.impl.TreeItemContextMenuEntryImpl
* @see org.eclipse.sirius.components.view.tree.impl.TreePackageImpl#getTreeItemContextMenuEntry()
+ * @generated
*/
int TREE_ITEM_CONTEXT_MENU_ENTRY = 4;
@@ -364,39 +390,26 @@ public interface TreePackage extends EPackage {
int TREE_ITEM_CONTEXT_MENU_ENTRY__NAME = 0;
/**
- * The feature id for the 'Label Expression' attribute.
- *
- * @generated
- * @ordered
- */
- int TREE_ITEM_CONTEXT_MENU_ENTRY__LABEL_EXPRESSION = 1;
-
- /**
- * The feature id for the 'Icon URL Expression' attribute.
- *
- * @generated
- * @ordered
- */
- int TREE_ITEM_CONTEXT_MENU_ENTRY__ICON_URL_EXPRESSION = 2;
-
- /**
- * The feature id for the 'Precondition Expression' attribute.
+ * The feature id for the 'Precondition Expression' attribute.
*
* @generated
* @ordered
*/
- int TREE_ITEM_CONTEXT_MENU_ENTRY__PRECONDITION_EXPRESSION = 3;
+ int TREE_ITEM_CONTEXT_MENU_ENTRY__PRECONDITION_EXPRESSION = 1;
/**
- * The number of structural features of the 'Item Context Menu Entry' class.
+ * The number of structural features of the 'Item Context Menu Entry' class.
*
* @generated
* @ordered
*/
- int TREE_ITEM_CONTEXT_MENU_ENTRY_FEATURE_COUNT = 4;
+ int TREE_ITEM_CONTEXT_MENU_ENTRY_FEATURE_COUNT = 2;
/**
- * The number of operations of the 'Item Context Menu Entry' class.
+ * The number of operations of the 'Item Context Menu Entry' class.
*
* @generated
* @ordered
@@ -404,12 +417,13 @@ public interface TreePackage extends EPackage {
int TREE_ITEM_CONTEXT_MENU_ENTRY_OPERATION_COUNT = 0;
/**
- * The meta object id for the '{@link org.eclipse.sirius.components.view.tree.impl.SingleClickTreeItemContextMenuEntryImpl Single Click Tree Item Context Menu Entry}' class.
+ * The meta object id for the
+ * '{@link org.eclipse.sirius.components.view.tree.impl.SingleClickTreeItemContextMenuEntryImpl Single Click
+ * Tree Item Context Menu Entry}' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.tree.impl.SingleClickTreeItemContextMenuEntryImpl
* @see org.eclipse.sirius.components.view.tree.impl.TreePackageImpl#getSingleClickTreeItemContextMenuEntry()
+ * @generated
*/
int SINGLE_CLICK_TREE_ITEM_CONTEXT_MENU_ENTRY = 5;
@@ -422,47 +436,53 @@ public interface TreePackage extends EPackage {
int SINGLE_CLICK_TREE_ITEM_CONTEXT_MENU_ENTRY__NAME = TREE_ITEM_CONTEXT_MENU_ENTRY__NAME;
/**
- * The feature id for the 'Label Expression' attribute.
+ * The feature id for the 'Precondition Expression' attribute.
*
* @generated
* @ordered
*/
- int SINGLE_CLICK_TREE_ITEM_CONTEXT_MENU_ENTRY__LABEL_EXPRESSION = TREE_ITEM_CONTEXT_MENU_ENTRY__LABEL_EXPRESSION;
+ int SINGLE_CLICK_TREE_ITEM_CONTEXT_MENU_ENTRY__PRECONDITION_EXPRESSION = TREE_ITEM_CONTEXT_MENU_ENTRY__PRECONDITION_EXPRESSION;
/**
- * The feature id for the 'Icon URL Expression' attribute.
+ * The feature id for the 'Body' containment reference list.
*
* @generated
* @ordered
*/
- int SINGLE_CLICK_TREE_ITEM_CONTEXT_MENU_ENTRY__ICON_URL_EXPRESSION = TREE_ITEM_CONTEXT_MENU_ENTRY__ICON_URL_EXPRESSION;
+ int SINGLE_CLICK_TREE_ITEM_CONTEXT_MENU_ENTRY__BODY = TREE_ITEM_CONTEXT_MENU_ENTRY_FEATURE_COUNT + 0;
/**
- * The feature id for the 'Precondition Expression' attribute.
+ * The feature id for the 'Label Expression' attribute.
*
* @generated
* @ordered
*/
- int SINGLE_CLICK_TREE_ITEM_CONTEXT_MENU_ENTRY__PRECONDITION_EXPRESSION = TREE_ITEM_CONTEXT_MENU_ENTRY__PRECONDITION_EXPRESSION;
+ int SINGLE_CLICK_TREE_ITEM_CONTEXT_MENU_ENTRY__LABEL_EXPRESSION = TREE_ITEM_CONTEXT_MENU_ENTRY_FEATURE_COUNT + 1;
/**
- * The feature id for the 'Body' containment reference list.
+ * The feature id for the 'Icon URL Expression' attribute.
*
* @generated
* @ordered
*/
- int SINGLE_CLICK_TREE_ITEM_CONTEXT_MENU_ENTRY__BODY = TREE_ITEM_CONTEXT_MENU_ENTRY_FEATURE_COUNT + 0;
+ int SINGLE_CLICK_TREE_ITEM_CONTEXT_MENU_ENTRY__ICON_URL_EXPRESSION = TREE_ITEM_CONTEXT_MENU_ENTRY_FEATURE_COUNT + 2;
/**
- * The number of structural features of the 'Single Click Tree Item Context Menu Entry' class.
+ * The number of structural features of the 'Single Click Tree Item Context Menu Entry' class.
*
* @generated
* @ordered
*/
- int SINGLE_CLICK_TREE_ITEM_CONTEXT_MENU_ENTRY_FEATURE_COUNT = TREE_ITEM_CONTEXT_MENU_ENTRY_FEATURE_COUNT + 1;
+ int SINGLE_CLICK_TREE_ITEM_CONTEXT_MENU_ENTRY_FEATURE_COUNT = TREE_ITEM_CONTEXT_MENU_ENTRY_FEATURE_COUNT + 3;
/**
- * The number of operations of the 'Single Click Tree Item Context Menu Entry' class.
+ * The number of operations of the 'Single Click Tree Item Context Menu Entry' class.
*
* @generated
* @ordered
@@ -473,9 +493,9 @@ public interface TreePackage extends EPackage {
* The meta object id for the '{@link org.eclipse.sirius.components.view.tree.impl.FetchTreeItemContextMenuEntryImpl
* Fetch Tree Item Context Menu Entry}' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.tree.impl.FetchTreeItemContextMenuEntryImpl
* @see org.eclipse.sirius.components.view.tree.impl.TreePackageImpl#getFetchTreeItemContextMenuEntry()
+ * @generated
*/
int FETCH_TREE_ITEM_CONTEXT_MENU_ENTRY = 6;
@@ -488,70 +508,129 @@ public interface TreePackage extends EPackage {
int FETCH_TREE_ITEM_CONTEXT_MENU_ENTRY__NAME = TREE_ITEM_CONTEXT_MENU_ENTRY__NAME;
/**
- * The feature id for the 'Label Expression' attribute.
+ * The feature id for the 'Precondition Expression' attribute.
*
* @generated
* @ordered
*/
- int FETCH_TREE_ITEM_CONTEXT_MENU_ENTRY__LABEL_EXPRESSION = TREE_ITEM_CONTEXT_MENU_ENTRY__LABEL_EXPRESSION;
+ int FETCH_TREE_ITEM_CONTEXT_MENU_ENTRY__PRECONDITION_EXPRESSION = TREE_ITEM_CONTEXT_MENU_ENTRY__PRECONDITION_EXPRESSION;
/**
- * The feature id for the 'Icon URL Expression' attribute.
+ * The feature id for the 'Url Exression' attribute.
*
* @generated
* @ordered
*/
- int FETCH_TREE_ITEM_CONTEXT_MENU_ENTRY__ICON_URL_EXPRESSION = TREE_ITEM_CONTEXT_MENU_ENTRY__ICON_URL_EXPRESSION;
+ int FETCH_TREE_ITEM_CONTEXT_MENU_ENTRY__URL_EXRESSION = TREE_ITEM_CONTEXT_MENU_ENTRY_FEATURE_COUNT + 0;
/**
- * The feature id for the 'Precondition Expression' attribute.
+ * The feature id for the 'Kind' attribute.
*
* @generated
* @ordered
*/
- int FETCH_TREE_ITEM_CONTEXT_MENU_ENTRY__PRECONDITION_EXPRESSION = TREE_ITEM_CONTEXT_MENU_ENTRY__PRECONDITION_EXPRESSION;
+ int FETCH_TREE_ITEM_CONTEXT_MENU_ENTRY__KIND = TREE_ITEM_CONTEXT_MENU_ENTRY_FEATURE_COUNT + 1;
/**
- * The feature id for the 'Url Exression' attribute.
+ * The feature id for the 'Label Expression' attribute.
*
* @generated
* @ordered
*/
- int FETCH_TREE_ITEM_CONTEXT_MENU_ENTRY__URL_EXRESSION = TREE_ITEM_CONTEXT_MENU_ENTRY_FEATURE_COUNT + 0;
+ int FETCH_TREE_ITEM_CONTEXT_MENU_ENTRY__LABEL_EXPRESSION = TREE_ITEM_CONTEXT_MENU_ENTRY_FEATURE_COUNT + 2;
/**
- * The feature id for the 'Kind' attribute.
+ * The feature id for the 'Icon URL Expression' attribute.
*
* @generated
* @ordered
*/
- int FETCH_TREE_ITEM_CONTEXT_MENU_ENTRY__KIND = TREE_ITEM_CONTEXT_MENU_ENTRY_FEATURE_COUNT + 1;
+ int FETCH_TREE_ITEM_CONTEXT_MENU_ENTRY__ICON_URL_EXPRESSION = TREE_ITEM_CONTEXT_MENU_ENTRY_FEATURE_COUNT + 3;
/**
- * The number of structural features of the 'Fetch Tree Item Context Menu Entry' class.
+ * The number of structural features of the 'Fetch Tree Item Context Menu Entry' class.
*
* @generated
* @ordered
*/
- int FETCH_TREE_ITEM_CONTEXT_MENU_ENTRY_FEATURE_COUNT = TREE_ITEM_CONTEXT_MENU_ENTRY_FEATURE_COUNT + 2;
+ int FETCH_TREE_ITEM_CONTEXT_MENU_ENTRY_FEATURE_COUNT = TREE_ITEM_CONTEXT_MENU_ENTRY_FEATURE_COUNT + 4;
/**
- * The number of operations of the 'Fetch Tree Item Context Menu Entry' class.
+ * The number of operations of the 'Fetch Tree Item Context Menu Entry' class.
*
* @generated
* @ordered
*/
int FETCH_TREE_ITEM_CONTEXT_MENU_ENTRY_OPERATION_COUNT = TREE_ITEM_CONTEXT_MENU_ENTRY_OPERATION_COUNT + 0;
+ /**
+ * The meta object id for the
+ * '{@link org.eclipse.sirius.components.view.tree.impl.CustomTreeItemContextMenuEntryImpl Custom Tree Item
+ * Context Menu Entry}' class.
+ *
+ * @see org.eclipse.sirius.components.view.tree.impl.CustomTreeItemContextMenuEntryImpl
+ * @see org.eclipse.sirius.components.view.tree.impl.TreePackageImpl#getCustomTreeItemContextMenuEntry()
+ * @generated
+ */
+ int CUSTOM_TREE_ITEM_CONTEXT_MENU_ENTRY = 7;
+
+ /**
+ * The feature id for the 'Name' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int CUSTOM_TREE_ITEM_CONTEXT_MENU_ENTRY__NAME = TREE_ITEM_CONTEXT_MENU_ENTRY__NAME;
+
+ /**
+ * The feature id for the 'Precondition Expression' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int CUSTOM_TREE_ITEM_CONTEXT_MENU_ENTRY__PRECONDITION_EXPRESSION = TREE_ITEM_CONTEXT_MENU_ENTRY__PRECONDITION_EXPRESSION;
+
+ /**
+ * The feature id for the 'Contribution Id' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int CUSTOM_TREE_ITEM_CONTEXT_MENU_ENTRY__CONTRIBUTION_ID = TREE_ITEM_CONTEXT_MENU_ENTRY_FEATURE_COUNT + 0;
+
+ /**
+ * The number of structural features of the 'Custom Tree Item Context Menu Entry' class.
+ *
+ * @generated
+ * @ordered
+ */
+ int CUSTOM_TREE_ITEM_CONTEXT_MENU_ENTRY_FEATURE_COUNT = TREE_ITEM_CONTEXT_MENU_ENTRY_FEATURE_COUNT + 1;
+
+ /**
+ * The number of operations of the 'Custom Tree Item Context Menu Entry' class.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int CUSTOM_TREE_ITEM_CONTEXT_MENU_ENTRY_OPERATION_COUNT = TREE_ITEM_CONTEXT_MENU_ENTRY_OPERATION_COUNT + 0;
+
/**
* The meta object id for the '{@link org.eclipse.sirius.components.view.tree.FetchTreeItemContextMenuEntryKind
* Fetch Tree Item Context Menu Entry Kind}' enum.
*
- * @generated
* @see org.eclipse.sirius.components.view.tree.FetchTreeItemContextMenuEntryKind
* @see org.eclipse.sirius.components.view.tree.impl.TreePackageImpl#getFetchTreeItemContextMenuEntryKind()
+ * @generated
*/
- int FETCH_TREE_ITEM_CONTEXT_MENU_ENTRY_KIND = 7;
+ int FETCH_TREE_ITEM_CONTEXT_MENU_ENTRY_KIND = 8;
/**
* The singleton instance of the package.
@@ -565,151 +644,164 @@ public interface TreePackage extends EPackage {
* Description}'.
*
* @return the meta object for class 'Description'.
- * @generated
* @see org.eclipse.sirius.components.view.tree.TreeDescription
+ * @generated
*/
EClass getTreeDescription();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.sirius.components.view.tree.TreeDescription#getKindExpression Kind Expression}'.
+ * Returns the meta object for the attribute
+ * '{@link org.eclipse.sirius.components.view.tree.TreeDescription#getKindExpression Kind Expression}'.
+ *
*
* @return the meta object for the attribute 'Kind Expression'.
- * @generated
* @see org.eclipse.sirius.components.view.tree.TreeDescription#getKindExpression()
* @see #getTreeDescription()
+ * @generated
*/
EAttribute getTreeDescription_KindExpression();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.sirius.components.view.tree.TreeDescription#getTreeItemIconExpression Tree Item Icon Expression}'.
- *
+ * Returns the meta object for the attribute
+ * '{@link org.eclipse.sirius.components.view.tree.TreeDescription#getTreeItemIconExpression Tree Item Icon
+ * Expression}'.
*
* @return the meta object for the attribute 'Tree Item Icon Expression'.
- * @generated
* @see org.eclipse.sirius.components.view.tree.TreeDescription#getTreeItemIconExpression()
* @see #getTreeDescription()
+ * @generated
*/
EAttribute getTreeDescription_TreeItemIconExpression();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.sirius.components.view.tree.TreeDescription#getTreeItemIdExpression Tree Item Id Expression}'.
- *
+ * Returns the meta object for the attribute
+ * '{@link org.eclipse.sirius.components.view.tree.TreeDescription#getTreeItemIdExpression Tree Item Id
+ * Expression}'.
*
* @return the meta object for the attribute 'Tree Item Id Expression'.
- * @generated
* @see org.eclipse.sirius.components.view.tree.TreeDescription#getTreeItemIdExpression()
* @see #getTreeDescription()
+ * @generated
*/
EAttribute getTreeDescription_TreeItemIdExpression();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.sirius.components.view.tree.TreeDescription#getTreeItemObjectExpression Tree Item Object Expression}'.
+ * Returns the meta object for the attribute
+ * '{@link org.eclipse.sirius.components.view.tree.TreeDescription#getTreeItemObjectExpression Tree Item Object
+ * Expression}'.
*
* @return the meta object for the attribute 'Tree Item Object Expression'.
- * @generated
* @see org.eclipse.sirius.components.view.tree.TreeDescription#getTreeItemObjectExpression()
* @see #getTreeDescription()
+ * @generated
*/
EAttribute getTreeDescription_TreeItemObjectExpression();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.sirius.components.view.tree.TreeDescription#getElementsExpression Elements Expression}'.
+ * Returns the meta object for the attribute
+ * '{@link org.eclipse.sirius.components.view.tree.TreeDescription#getElementsExpression Elements
+ * Expression}'.
*
* @return the meta object for the attribute 'Elements Expression'.
- * @generated
* @see org.eclipse.sirius.components.view.tree.TreeDescription#getElementsExpression()
* @see #getTreeDescription()
+ * @generated
*/
EAttribute getTreeDescription_ElementsExpression();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.sirius.components.view.tree.TreeDescription#getHasChildrenExpression Has Children Expression}'.
- *
+ * Returns the meta object for the attribute
+ * '{@link org.eclipse.sirius.components.view.tree.TreeDescription#getHasChildrenExpression Has Children
+ * Expression}'.
*
* @return the meta object for the attribute 'Has Children Expression'.
- * @generated
* @see org.eclipse.sirius.components.view.tree.TreeDescription#getHasChildrenExpression()
* @see #getTreeDescription()
+ * @generated
*/
EAttribute getTreeDescription_HasChildrenExpression();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.sirius.components.view.tree.TreeDescription#getChildrenExpression Children Expression}'.
+ * Returns the meta object for the attribute
+ * '{@link org.eclipse.sirius.components.view.tree.TreeDescription#getChildrenExpression Children
+ * Expression}'.
*
* @return the meta object for the attribute 'Children Expression'.
- * @generated
* @see org.eclipse.sirius.components.view.tree.TreeDescription#getChildrenExpression()
* @see #getTreeDescription()
+ * @generated
*/
EAttribute getTreeDescription_ChildrenExpression();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.sirius.components.view.tree.TreeDescription#getParentExpression Parent Expression}'.
+ * Returns the meta object for the attribute
+ * '{@link org.eclipse.sirius.components.view.tree.TreeDescription#getParentExpression Parent Expression}'.
+ *
*
* @return the meta object for the attribute 'Parent Expression'.
- * @generated
* @see org.eclipse.sirius.components.view.tree.TreeDescription#getParentExpression()
* @see #getTreeDescription()
+ * @generated
*/
EAttribute getTreeDescription_ParentExpression();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.sirius.components.view.tree.TreeDescription#getEditableExpression Editable Expression}'.
+ * Returns the meta object for the attribute
+ * '{@link org.eclipse.sirius.components.view.tree.TreeDescription#getEditableExpression Editable
+ * Expression}'.
*
* @return the meta object for the attribute 'Editable Expression'.
- * @generated
* @see org.eclipse.sirius.components.view.tree.TreeDescription#getEditableExpression()
* @see #getTreeDescription()
+ * @generated
*/
EAttribute getTreeDescription_EditableExpression();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.sirius.components.view.tree.TreeDescription#getSelectableExpression Selectable Expression}'.
+ * Returns the meta object for the attribute
+ * '{@link org.eclipse.sirius.components.view.tree.TreeDescription#getSelectableExpression Selectable
+ * Expression}'.
*
* @return the meta object for the attribute 'Selectable Expression'.
- * @generated
* @see org.eclipse.sirius.components.view.tree.TreeDescription#getSelectableExpression()
* @see #getTreeDescription()
+ * @generated
*/
EAttribute getTreeDescription_SelectableExpression();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.sirius.components.view.tree.TreeDescription#getDeletableExpression Deletable Expression}'.
+ * Returns the meta object for the attribute
+ * '{@link org.eclipse.sirius.components.view.tree.TreeDescription#getDeletableExpression Deletable
+ * Expression}'.
*
* @return the meta object for the attribute 'Deletable Expression'.
- * @generated
* @see org.eclipse.sirius.components.view.tree.TreeDescription#getDeletableExpression()
* @see #getTreeDescription()
+ * @generated
*/
EAttribute getTreeDescription_DeletableExpression();
/**
- * Returns the meta object for the containment reference list '{@link org.eclipse.sirius.components.view.tree.TreeDescription#getTreeItemLabelDescriptions Tree Item Label Descriptions}'.
- *
+ * Returns the meta object for the containment reference list
+ * '{@link org.eclipse.sirius.components.view.tree.TreeDescription#getTreeItemLabelDescriptions Tree Item Label
+ * Descriptions}'.
*
* @return the meta object for the containment reference list 'Tree Item Label Descriptions'.
- * @generated
* @see org.eclipse.sirius.components.view.tree.TreeDescription#getTreeItemLabelDescriptions()
* @see #getTreeDescription()
+ * @generated
*/
EReference getTreeDescription_TreeItemLabelDescriptions();
/**
- * Returns the meta object for the containment reference list '{@link org.eclipse.sirius.components.view.tree.TreeDescription#getContextMenuEntries Context Menu Entries}'.
+ * Returns the meta object for the containment reference list
+ * '{@link org.eclipse.sirius.components.view.tree.TreeDescription#getContextMenuEntries Context Menu
+ * Entries}'.
*
* @return the meta object for the containment reference list 'Context Menu Entries'.
- * @generated
* @see org.eclipse.sirius.components.view.tree.TreeDescription#getContextMenuEntries()
* @see #getTreeDescription()
+ * @generated
*/
EReference getTreeDescription_ContextMenuEntries();
@@ -718,67 +810,74 @@ public interface TreePackage extends EPackage {
* Item Label Description}'.
*
* @return the meta object for class 'Item Label Description'.
- * @generated
* @see org.eclipse.sirius.components.view.tree.TreeItemLabelDescription
+ * @generated
*/
EClass getTreeItemLabelDescription();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.sirius.components.view.tree.TreeItemLabelDescription#getName Name}'.
+ * Returns the meta object for the attribute
+ * '{@link org.eclipse.sirius.components.view.tree.TreeItemLabelDescription#getName Name}'.
*
* @return the meta object for the attribute 'Name'.
- * @generated
* @see org.eclipse.sirius.components.view.tree.TreeItemLabelDescription#getName()
* @see #getTreeItemLabelDescription()
+ * @generated
*/
EAttribute getTreeItemLabelDescription_Name();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.sirius.components.view.tree.TreeItemLabelDescription#getPreconditionExpression
+ * Returns the meta object for the attribute
+ * '{@link org.eclipse.sirius.components.view.tree.TreeItemLabelDescription#getPreconditionExpression
* Precondition Expression}'.
*
* @return the meta object for the attribute 'Precondition Expression'.
- * @generated
* @see org.eclipse.sirius.components.view.tree.TreeItemLabelDescription#getPreconditionExpression()
* @see #getTreeItemLabelDescription()
+ * @generated
*/
EAttribute getTreeItemLabelDescription_PreconditionExpression();
/**
- * Returns the meta object for the containment reference list '{@link org.eclipse.sirius.components.view.tree.TreeItemLabelDescription#getChildren Children}'.
+ * Returns the meta object for the containment reference list
+ * '{@link org.eclipse.sirius.components.view.tree.TreeItemLabelDescription#getChildren Children}'.
*
* @return the meta object for the containment reference list 'Children'.
- * @generated
* @see org.eclipse.sirius.components.view.tree.TreeItemLabelDescription#getChildren()
* @see #getTreeItemLabelDescription()
+ * @generated
*/
EReference getTreeItemLabelDescription_Children();
/**
- * Returns the meta object for class '{@link org.eclipse.sirius.components.view.tree.TreeItemLabelFragmentDescription Item Label Fragment Description}'.
+ * Returns the meta object for class
+ * '{@link org.eclipse.sirius.components.view.tree.TreeItemLabelFragmentDescription Item Label Fragment
+ * Description}'.
*
* @return the meta object for class 'Item Label Fragment Description'.
- * @generated
* @see org.eclipse.sirius.components.view.tree.TreeItemLabelFragmentDescription
+ * @generated
*/
EClass getTreeItemLabelFragmentDescription();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.sirius.components.view.tree.TreeItemLabelFragmentDescription#getLabelExpression Label Expression}'.
+ * Returns the meta object for the attribute
+ * '{@link org.eclipse.sirius.components.view.tree.TreeItemLabelFragmentDescription#getLabelExpression Label
+ * Expression}'.
*
* @return the meta object for the attribute 'Label Expression'.
- * @generated
* @see org.eclipse.sirius.components.view.tree.TreeItemLabelFragmentDescription#getLabelExpression()
* @see #getTreeItemLabelFragmentDescription()
+ * @generated
*/
EAttribute getTreeItemLabelFragmentDescription_LabelExpression();
/**
- * Returns the meta object for the reference '{@link org.eclipse.sirius.components.view.tree.TreeItemLabelFragmentDescription#getStyle Style}'.
+ * Returns the meta object for the reference
+ * '{@link org.eclipse.sirius.components.view.tree.TreeItemLabelFragmentDescription#getStyle Style}'.
*
* @return the meta object for the reference 'Style'.
* @generated
@@ -792,8 +891,8 @@ public interface TreePackage extends EPackage {
* Item Label Element Description}'.
*
* @return the meta object for class 'Item Label Element Description'.
- * @generated
* @see org.eclipse.sirius.components.view.tree.TreeItemLabelElementDescription
+ * @generated
*/
EClass getTreeItemLabelElementDescription();
@@ -802,113 +901,170 @@ public interface TreePackage extends EPackage {
* Item Context Menu Entry}'.
*
* @return the meta object for class 'Item Context Menu Entry'.
- * @generated
* @see org.eclipse.sirius.components.view.tree.TreeItemContextMenuEntry
+ * @generated
*/
EClass getTreeItemContextMenuEntry();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.sirius.components.view.tree.TreeItemContextMenuEntry#getName Name}'.
+ * Returns the meta object for the attribute
+ * '{@link org.eclipse.sirius.components.view.tree.TreeItemContextMenuEntry#getName Name}'.
*
* @return the meta object for the attribute 'Name'.
- * @generated
* @see org.eclipse.sirius.components.view.tree.TreeItemContextMenuEntry#getName()
* @see #getTreeItemContextMenuEntry()
+ * @generated
*/
EAttribute getTreeItemContextMenuEntry_Name();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.sirius.components.view.tree.TreeItemContextMenuEntry#getLabelExpression Label Expression}'.
+ * Returns the meta object for the attribute
+ * '{@link org.eclipse.sirius.components.view.tree.TreeItemContextMenuEntry#getPreconditionExpression
+ * Precondition Expression}'.
*
- * @return the meta object for the attribute 'Label Expression'.
- * @generated
- * @see org.eclipse.sirius.components.view.tree.TreeItemContextMenuEntry#getLabelExpression()
+ * @return the meta object for the attribute 'Precondition Expression'.
+ * @see org.eclipse.sirius.components.view.tree.TreeItemContextMenuEntry#getPreconditionExpression()
* @see #getTreeItemContextMenuEntry()
+ * @generated
*/
- EAttribute getTreeItemContextMenuEntry_LabelExpression();
+ EAttribute getTreeItemContextMenuEntry_PreconditionExpression();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.sirius.components.view.tree.TreeItemContextMenuEntry#getIconURLExpression Icon URL Expression}'.
- *
+ * Returns the meta object for class
+ * '{@link org.eclipse.sirius.components.view.tree.SingleClickTreeItemContextMenuEntry Single Click Tree Item
+ * Context Menu Entry}'.
*
- * @return the meta object for the attribute 'Icon URL Expression'.
+ * @return the meta object for class 'Single Click Tree Item Context Menu Entry'.
+ * @see org.eclipse.sirius.components.view.tree.SingleClickTreeItemContextMenuEntry
* @generated
- * @see org.eclipse.sirius.components.view.tree.TreeItemContextMenuEntry#getIconURLExpression()
- * @see #getTreeItemContextMenuEntry()
*/
- EAttribute getTreeItemContextMenuEntry_IconURLExpression();
+ EClass getSingleClickTreeItemContextMenuEntry();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.sirius.components.view.tree.TreeItemContextMenuEntry#getPreconditionExpression
- * Precondition Expression}'.
+ * Returns the meta object for the containment reference list
+ * '{@link org.eclipse.sirius.components.view.tree.SingleClickTreeItemContextMenuEntry#getBody Body}'.
*
- * @return the meta object for the attribute 'Precondition Expression'.
+ * @return the meta object for the containment reference list 'Body'.
+ * @see org.eclipse.sirius.components.view.tree.SingleClickTreeItemContextMenuEntry#getBody()
+ * @see #getSingleClickTreeItemContextMenuEntry()
* @generated
- * @see org.eclipse.sirius.components.view.tree.TreeItemContextMenuEntry#getPreconditionExpression()
- * @see #getTreeItemContextMenuEntry()
*/
- EAttribute getTreeItemContextMenuEntry_PreconditionExpression();
+ EReference getSingleClickTreeItemContextMenuEntry_Body();
/**
- * Returns the meta object for class '{@link org.eclipse.sirius.components.view.tree.SingleClickTreeItemContextMenuEntry Single Click Tree Item Context Menu Entry}'.
+ * Returns the meta object for the attribute
+ * '{@link org.eclipse.sirius.components.view.tree.SingleClickTreeItemContextMenuEntry#getLabelExpression Label
+ * Expression}'.
*
- * @return the meta object for class 'Single Click Tree Item Context Menu Entry'.
+ * @return the meta object for the attribute 'Label Expression'.
+ * @see org.eclipse.sirius.components.view.tree.SingleClickTreeItemContextMenuEntry#getLabelExpression()
+ * @see #getSingleClickTreeItemContextMenuEntry()
* @generated
- * @see org.eclipse.sirius.components.view.tree.SingleClickTreeItemContextMenuEntry
*/
- EClass getSingleClickTreeItemContextMenuEntry();
+ EAttribute getSingleClickTreeItemContextMenuEntry_LabelExpression();
/**
- * Returns the meta object for the reference list '{@link org.eclipse.sirius.components.view.tree.SingleClickTreeItemContextMenuEntry#getBody Body}'.
+ * Returns the meta object for the attribute
+ * '{@link org.eclipse.sirius.components.view.tree.SingleClickTreeItemContextMenuEntry#getIconURLExpression Icon
+ * URL Expression}'.
*
- * @return the meta object for the reference list 'Body'.
- * @generated
- * @see org.eclipse.sirius.components.view.tree.SingleClickTreeItemContextMenuEntry#getBody()
+ * @return the meta object for the attribute 'Icon URL Expression'.
+ * @see org.eclipse.sirius.components.view.tree.SingleClickTreeItemContextMenuEntry#getIconURLExpression()
* @see #getSingleClickTreeItemContextMenuEntry()
+ * @generated
*/
- EReference getSingleClickTreeItemContextMenuEntry_Body();
+ EAttribute getSingleClickTreeItemContextMenuEntry_IconURLExpression();
/**
* Returns the meta object for class '{@link org.eclipse.sirius.components.view.tree.FetchTreeItemContextMenuEntry
* Fetch Tree Item Context Menu Entry}'.
*
* @return the meta object for class 'Fetch Tree Item Context Menu Entry'.
- * @generated
* @see org.eclipse.sirius.components.view.tree.FetchTreeItemContextMenuEntry
+ * @generated
*/
EClass getFetchTreeItemContextMenuEntry();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.sirius.components.view.tree.FetchTreeItemContextMenuEntry#getUrlExression Url Exression}'.
+ * Returns the meta object for the attribute
+ * '{@link org.eclipse.sirius.components.view.tree.FetchTreeItemContextMenuEntry#getUrlExression Url
+ * Exression}'.
*
* @return the meta object for the attribute 'Url Exression'.
- * @generated
* @see org.eclipse.sirius.components.view.tree.FetchTreeItemContextMenuEntry#getUrlExression()
* @see #getFetchTreeItemContextMenuEntry()
+ * @generated
*/
EAttribute getFetchTreeItemContextMenuEntry_UrlExression();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.sirius.components.view.tree.FetchTreeItemContextMenuEntry#getKind Kind}'.
+ * Returns the meta object for the attribute
+ * '{@link org.eclipse.sirius.components.view.tree.FetchTreeItemContextMenuEntry#getKind Kind}'.
*
* @return the meta object for the attribute 'Kind'.
- * @generated
* @see org.eclipse.sirius.components.view.tree.FetchTreeItemContextMenuEntry#getKind()
* @see #getFetchTreeItemContextMenuEntry()
+ * @generated
*/
EAttribute getFetchTreeItemContextMenuEntry_Kind();
/**
- * Returns the meta object for enum '{@link org.eclipse.sirius.components.view.tree.FetchTreeItemContextMenuEntryKind Fetch Tree Item Context Menu Entry Kind}'.
- *
+ * Returns the meta object for the attribute
+ * '{@link org.eclipse.sirius.components.view.tree.FetchTreeItemContextMenuEntry#getLabelExpression Label
+ * Expression}'.
*
- * @return the meta object for enum 'Fetch Tree Item Context Menu Entry Kind'.
+ * @return the meta object for the attribute 'Label Expression'.
+ * @see org.eclipse.sirius.components.view.tree.FetchTreeItemContextMenuEntry#getLabelExpression()
+ * @see #getFetchTreeItemContextMenuEntry()
+ * @generated
+ */
+ EAttribute getFetchTreeItemContextMenuEntry_LabelExpression();
+
+ /**
+ * Returns the meta object for the attribute
+ * '{@link org.eclipse.sirius.components.view.tree.FetchTreeItemContextMenuEntry#getIconURLExpression Icon URL
+ * Expression}'.
+ *
+ * @return the meta object for the attribute 'Icon URL Expression'.
+ * @see org.eclipse.sirius.components.view.tree.FetchTreeItemContextMenuEntry#getIconURLExpression()
+ * @see #getFetchTreeItemContextMenuEntry()
+ * @generated
+ */
+ EAttribute getFetchTreeItemContextMenuEntry_IconURLExpression();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.sirius.components.view.tree.CustomTreeItemContextMenuEntry
+ * Custom Tree Item Context Menu Entry}'.
+ *
+ * @return the meta object for class 'Custom Tree Item Context Menu Entry'.
+ * @see org.eclipse.sirius.components.view.tree.CustomTreeItemContextMenuEntry
* @generated
+ */
+ EClass getCustomTreeItemContextMenuEntry();
+
+ /**
+ * Returns the meta object for the attribute
+ * '{@link org.eclipse.sirius.components.view.tree.CustomTreeItemContextMenuEntry#getContributionId Contribution
+ * Id}'.
+ *
+ * @return the meta object for the attribute 'Contribution Id'.
+ * @see org.eclipse.sirius.components.view.tree.CustomTreeItemContextMenuEntry#getContributionId()
+ * @see #getCustomTreeItemContextMenuEntry()
+ * @generated
+ */
+ EAttribute getCustomTreeItemContextMenuEntry_ContributionId();
+
+ /**
+ * Returns the meta object for enum
+ * '{@link org.eclipse.sirius.components.view.tree.FetchTreeItemContextMenuEntryKind Fetch Tree Item Context
+ * Menu Entry Kind}'.
+ *
+ * @return the meta object for enum 'Fetch Tree Item Context Menu Entry Kind'.
* @see org.eclipse.sirius.components.view.tree.FetchTreeItemContextMenuEntryKind
+ * @generated
*/
EEnum getFetchTreeItemContextMenuEntryKind();
@@ -939,254 +1095,321 @@ interface Literals {
* The meta object literal for the '{@link org.eclipse.sirius.components.view.tree.impl.TreeDescriptionImpl
* Description}' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.tree.impl.TreeDescriptionImpl
* @see org.eclipse.sirius.components.view.tree.impl.TreePackageImpl#getTreeDescription()
+ * @generated
*/
EClass TREE_DESCRIPTION = eINSTANCE.getTreeDescription();
/**
- * The meta object literal for the 'Kind Expression' attribute feature.
+ * The meta object literal for the 'Kind Expression' attribute feature.
+ *
*
* @generated
*/
EAttribute TREE_DESCRIPTION__KIND_EXPRESSION = eINSTANCE.getTreeDescription_KindExpression();
/**
- * The meta object literal for the 'Tree Item Icon Expression' attribute feature.
+ * The meta object literal for the 'Tree Item Icon Expression' attribute feature.
*
* @generated
*/
EAttribute TREE_DESCRIPTION__TREE_ITEM_ICON_EXPRESSION = eINSTANCE.getTreeDescription_TreeItemIconExpression();
/**
- * The meta object literal for the 'Tree Item Id Expression' attribute feature.
+ * The meta object literal for the 'Tree Item Id Expression' attribute feature.
*
* @generated
*/
EAttribute TREE_DESCRIPTION__TREE_ITEM_ID_EXPRESSION = eINSTANCE.getTreeDescription_TreeItemIdExpression();
/**
- * The meta object literal for the 'Tree Item Object Expression' attribute feature.
+ * The meta object literal for the 'Tree Item Object Expression' attribute feature.
*
* @generated
*/
EAttribute TREE_DESCRIPTION__TREE_ITEM_OBJECT_EXPRESSION = eINSTANCE.getTreeDescription_TreeItemObjectExpression();
/**
- * The meta object literal for the 'Elements Expression' attribute feature.
+ * The meta object literal for the 'Elements Expression' attribute feature.
*
* @generated
*/
EAttribute TREE_DESCRIPTION__ELEMENTS_EXPRESSION = eINSTANCE.getTreeDescription_ElementsExpression();
/**
- * The meta object literal for the 'Has Children Expression' attribute feature.
+ * The meta object literal for the 'Has Children Expression' attribute feature.
*
* @generated
*/
EAttribute TREE_DESCRIPTION__HAS_CHILDREN_EXPRESSION = eINSTANCE.getTreeDescription_HasChildrenExpression();
/**
- * The meta object literal for the 'Children Expression' attribute feature.
+ * The meta object literal for the 'Children Expression' attribute feature.
*
* @generated
*/
EAttribute TREE_DESCRIPTION__CHILDREN_EXPRESSION = eINSTANCE.getTreeDescription_ChildrenExpression();
/**
- * The meta object literal for the 'Parent Expression' attribute feature.
+ * The meta object literal for the 'Parent Expression' attribute feature.
*
* @generated
*/
EAttribute TREE_DESCRIPTION__PARENT_EXPRESSION = eINSTANCE.getTreeDescription_ParentExpression();
/**
- * The meta object literal for the 'Editable Expression' attribute feature.
+ * The meta object literal for the 'Editable Expression' attribute feature.
*
* @generated
*/
EAttribute TREE_DESCRIPTION__EDITABLE_EXPRESSION = eINSTANCE.getTreeDescription_EditableExpression();
/**
- * The meta object literal for the 'Selectable Expression' attribute feature.
+ * The meta object literal for the 'Selectable Expression' attribute feature.
*
* @generated
*/
EAttribute TREE_DESCRIPTION__SELECTABLE_EXPRESSION = eINSTANCE.getTreeDescription_SelectableExpression();
/**
- * The meta object literal for the 'Deletable Expression' attribute feature.
+ * The meta object literal for the 'Deletable Expression' attribute feature.
*
* @generated
*/
EAttribute TREE_DESCRIPTION__DELETABLE_EXPRESSION = eINSTANCE.getTreeDescription_DeletableExpression();
/**
- * The meta object literal for the 'Tree Item Label Descriptions' reference list feature.
+ * The meta object literal for the 'Tree Item Label Descriptions' containment reference list
+ * feature.
*
* @generated
*/
EReference TREE_DESCRIPTION__TREE_ITEM_LABEL_DESCRIPTIONS = eINSTANCE.getTreeDescription_TreeItemLabelDescriptions();
/**
- * The meta object literal for the 'Context Menu Entries' reference list feature.
+ * The meta object literal for the 'Context Menu Entries' containment reference list feature.
+ *
*
* @generated
*/
EReference TREE_DESCRIPTION__CONTEXT_MENU_ENTRIES = eINSTANCE.getTreeDescription_ContextMenuEntries();
/**
- * The meta object literal for the '{@link org.eclipse.sirius.components.view.tree.impl.TreeItemLabelDescriptionImpl Item Label Description}' class.
+ * The meta object literal for the
+ * '{@link org.eclipse.sirius.components.view.tree.impl.TreeItemLabelDescriptionImpl Item Label
+ * Description}' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.tree.impl.TreeItemLabelDescriptionImpl
* @see org.eclipse.sirius.components.view.tree.impl.TreePackageImpl#getTreeItemLabelDescription()
+ * @generated
*/
EClass TREE_ITEM_LABEL_DESCRIPTION = eINSTANCE.getTreeItemLabelDescription();
/**
- * The meta object literal for the 'Name' attribute feature.
+ * The meta object literal for the 'Name' attribute feature.
*
* @generated
*/
EAttribute TREE_ITEM_LABEL_DESCRIPTION__NAME = eINSTANCE.getTreeItemLabelDescription_Name();
/**
- * The meta object literal for the 'Precondition Expression' attribute feature.
+ * The meta object literal for the 'Precondition Expression' attribute feature.
*
* @generated
*/
EAttribute TREE_ITEM_LABEL_DESCRIPTION__PRECONDITION_EXPRESSION = eINSTANCE.getTreeItemLabelDescription_PreconditionExpression();
/**
- * The meta object literal for the 'Children' containment reference list feature.
+ * The meta object literal for the 'Children' containment reference list feature.
*
* @generated
*/
EReference TREE_ITEM_LABEL_DESCRIPTION__CHILDREN = eINSTANCE.getTreeItemLabelDescription_Children();
/**
- * The meta object literal for the '{@link org.eclipse.sirius.components.view.tree.impl.TreeItemLabelFragmentDescriptionImpl Item Label Fragment Description}' class.
+ * The meta object literal for the
+ * '{@link org.eclipse.sirius.components.view.tree.impl.TreeItemLabelFragmentDescriptionImpl Item Label
+ * Fragment Description}' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.tree.impl.TreeItemLabelFragmentDescriptionImpl
* @see org.eclipse.sirius.components.view.tree.impl.TreePackageImpl#getTreeItemLabelFragmentDescription()
+ * @generated
*/
EClass TREE_ITEM_LABEL_FRAGMENT_DESCRIPTION = eINSTANCE.getTreeItemLabelFragmentDescription();
/**
- * The meta object literal for the 'Label Expression' attribute feature.
+ * The meta object literal for the 'Label Expression' attribute feature.
+ *
*
* @generated
*/
EAttribute TREE_ITEM_LABEL_FRAGMENT_DESCRIPTION__LABEL_EXPRESSION = eINSTANCE.getTreeItemLabelFragmentDescription_LabelExpression();
/**
- * The meta object literal for the 'Style' reference feature.
+ * The meta object literal for the 'Style' reference feature.
*
* @generated
*/
EReference TREE_ITEM_LABEL_FRAGMENT_DESCRIPTION__STYLE = eINSTANCE.getTreeItemLabelFragmentDescription_Style();
/**
- * The meta object literal for the '{@link org.eclipse.sirius.components.view.tree.impl.TreeItemLabelElementDescriptionImpl Item Label Element Description}' class.
+ * The meta object literal for the
+ * '{@link org.eclipse.sirius.components.view.tree.impl.TreeItemLabelElementDescriptionImpl Item Label
+ * Element Description}' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.tree.impl.TreeItemLabelElementDescriptionImpl
* @see org.eclipse.sirius.components.view.tree.impl.TreePackageImpl#getTreeItemLabelElementDescription()
+ * @generated
*/
EClass TREE_ITEM_LABEL_ELEMENT_DESCRIPTION = eINSTANCE.getTreeItemLabelElementDescription();
/**
- * The meta object literal for the '{@link org.eclipse.sirius.components.view.tree.impl.TreeItemContextMenuEntryImpl Item Context Menu Entry}' class.
+ * The meta object literal for the
+ * '{@link org.eclipse.sirius.components.view.tree.impl.TreeItemContextMenuEntryImpl Item Context Menu
+ * Entry}' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.tree.impl.TreeItemContextMenuEntryImpl
* @see org.eclipse.sirius.components.view.tree.impl.TreePackageImpl#getTreeItemContextMenuEntry()
+ * @generated
*/
EClass TREE_ITEM_CONTEXT_MENU_ENTRY = eINSTANCE.getTreeItemContextMenuEntry();
/**
- * The meta object literal for the 'Name' attribute feature.
+ * The meta object literal for the 'Name' attribute feature.
*
* @generated
*/
EAttribute TREE_ITEM_CONTEXT_MENU_ENTRY__NAME = eINSTANCE.getTreeItemContextMenuEntry_Name();
/**
- * The meta object literal for the 'Label Expression' attribute feature.
+ * The meta object literal for the 'Precondition Expression' attribute feature.
*
* @generated
*/
- EAttribute TREE_ITEM_CONTEXT_MENU_ENTRY__LABEL_EXPRESSION = eINSTANCE.getTreeItemContextMenuEntry_LabelExpression();
+ EAttribute TREE_ITEM_CONTEXT_MENU_ENTRY__PRECONDITION_EXPRESSION = eINSTANCE.getTreeItemContextMenuEntry_PreconditionExpression();
/**
- * The meta object literal for the 'Icon URL Expression' attribute feature.
+ * The meta object literal for the
+ * '{@link org.eclipse.sirius.components.view.tree.impl.SingleClickTreeItemContextMenuEntryImpl Single Click
+ * Tree Item Context Menu Entry}' class.
*
+ * @see org.eclipse.sirius.components.view.tree.impl.SingleClickTreeItemContextMenuEntryImpl
+ * @see org.eclipse.sirius.components.view.tree.impl.TreePackageImpl#getSingleClickTreeItemContextMenuEntry()
* @generated
*/
- EAttribute TREE_ITEM_CONTEXT_MENU_ENTRY__ICON_URL_EXPRESSION = eINSTANCE.getTreeItemContextMenuEntry_IconURLExpression();
+ EClass SINGLE_CLICK_TREE_ITEM_CONTEXT_MENU_ENTRY = eINSTANCE.getSingleClickTreeItemContextMenuEntry();
/**
- * The meta object literal for the 'Precondition Expression' attribute feature.
+ * The meta object literal for the 'Body' containment reference list feature.
*
* @generated
*/
- EAttribute TREE_ITEM_CONTEXT_MENU_ENTRY__PRECONDITION_EXPRESSION = eINSTANCE.getTreeItemContextMenuEntry_PreconditionExpression();
+ EReference SINGLE_CLICK_TREE_ITEM_CONTEXT_MENU_ENTRY__BODY = eINSTANCE.getSingleClickTreeItemContextMenuEntry_Body();
/**
- * The meta object literal for the '{@link org.eclipse.sirius.components.view.tree.impl.SingleClickTreeItemContextMenuEntryImpl Single Click Tree Item Context Menu Entry}' class.
+ * The meta object literal for the 'Label Expression' attribute feature.
+ *
*
* @generated
- * @see org.eclipse.sirius.components.view.tree.impl.SingleClickTreeItemContextMenuEntryImpl
- * @see org.eclipse.sirius.components.view.tree.impl.TreePackageImpl#getSingleClickTreeItemContextMenuEntry()
*/
- EClass SINGLE_CLICK_TREE_ITEM_CONTEXT_MENU_ENTRY = eINSTANCE.getSingleClickTreeItemContextMenuEntry();
+ EAttribute SINGLE_CLICK_TREE_ITEM_CONTEXT_MENU_ENTRY__LABEL_EXPRESSION = eINSTANCE.getSingleClickTreeItemContextMenuEntry_LabelExpression();
/**
- * The meta object literal for the 'Body' containment reference list feature.
+ * The meta object literal for the 'Icon URL Expression' attribute feature.
*
* @generated
*/
- EReference SINGLE_CLICK_TREE_ITEM_CONTEXT_MENU_ENTRY__BODY = eINSTANCE.getSingleClickTreeItemContextMenuEntry_Body();
+ EAttribute SINGLE_CLICK_TREE_ITEM_CONTEXT_MENU_ENTRY__ICON_URL_EXPRESSION = eINSTANCE.getSingleClickTreeItemContextMenuEntry_IconURLExpression();
/**
- * The meta object literal for the '{@link org.eclipse.sirius.components.view.tree.impl.FetchTreeItemContextMenuEntryImpl Fetch Tree Item Context Menu Entry}' class.
+ * The meta object literal for the
+ * '{@link org.eclipse.sirius.components.view.tree.impl.FetchTreeItemContextMenuEntryImpl Fetch Tree Item
+ * Context Menu Entry}' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.tree.impl.FetchTreeItemContextMenuEntryImpl
* @see org.eclipse.sirius.components.view.tree.impl.TreePackageImpl#getFetchTreeItemContextMenuEntry()
+ * @generated
*/
EClass FETCH_TREE_ITEM_CONTEXT_MENU_ENTRY = eINSTANCE.getFetchTreeItemContextMenuEntry();
/**
- * The meta object literal for the 'Url Exression' attribute feature.
+ * The meta object literal for the 'Url Exression' attribute feature.
+ *
*
* @generated
*/
EAttribute FETCH_TREE_ITEM_CONTEXT_MENU_ENTRY__URL_EXRESSION = eINSTANCE.getFetchTreeItemContextMenuEntry_UrlExression();
/**
- * The meta object literal for the 'Kind' attribute feature.
+ * The meta object literal for the 'Kind' attribute feature.
*
* @generated
*/
EAttribute FETCH_TREE_ITEM_CONTEXT_MENU_ENTRY__KIND = eINSTANCE.getFetchTreeItemContextMenuEntry_Kind();
/**
- * The meta object literal for the '{@link org.eclipse.sirius.components.view.tree.FetchTreeItemContextMenuEntryKind Fetch Tree Item Context Menu Entry Kind}' enum.
+ * The meta object literal for the 'Label Expression' attribute feature.
+ *
*
* @generated
+ */
+ EAttribute FETCH_TREE_ITEM_CONTEXT_MENU_ENTRY__LABEL_EXPRESSION = eINSTANCE.getFetchTreeItemContextMenuEntry_LabelExpression();
+
+ /**
+ * The meta object literal for the 'Icon URL Expression' attribute feature.
+ *
+ * @generated
+ */
+ EAttribute FETCH_TREE_ITEM_CONTEXT_MENU_ENTRY__ICON_URL_EXPRESSION = eINSTANCE.getFetchTreeItemContextMenuEntry_IconURLExpression();
+
+ /**
+ * The meta object literal for the
+ * '{@link org.eclipse.sirius.components.view.tree.impl.CustomTreeItemContextMenuEntryImpl Custom Tree Item
+ * Context Menu Entry}' class.
+ *
+ * @see org.eclipse.sirius.components.view.tree.impl.CustomTreeItemContextMenuEntryImpl
+ * @see org.eclipse.sirius.components.view.tree.impl.TreePackageImpl#getCustomTreeItemContextMenuEntry()
+ * @generated
+ */
+ EClass CUSTOM_TREE_ITEM_CONTEXT_MENU_ENTRY = eINSTANCE.getCustomTreeItemContextMenuEntry();
+
+ /**
+ * The meta object literal for the 'Contribution Id' attribute feature.
+ *
+ *
+ * @generated
+ */
+ EAttribute CUSTOM_TREE_ITEM_CONTEXT_MENU_ENTRY__CONTRIBUTION_ID = eINSTANCE.getCustomTreeItemContextMenuEntry_ContributionId();
+
+ /**
+ * The meta object literal for the
+ * '{@link org.eclipse.sirius.components.view.tree.FetchTreeItemContextMenuEntryKind Fetch Tree Item Context
+ * Menu Entry Kind}' enum.
+ *
* @see org.eclipse.sirius.components.view.tree.FetchTreeItemContextMenuEntryKind
* @see org.eclipse.sirius.components.view.tree.impl.TreePackageImpl#getFetchTreeItemContextMenuEntryKind()
+ * @generated
*/
EEnum FETCH_TREE_ITEM_CONTEXT_MENU_ENTRY_KIND = eINSTANCE.getFetchTreeItemContextMenuEntryKind();
diff --git a/packages/view/backend/sirius-components-view-tree/src/main/java/org/eclipse/sirius/components/view/tree/impl/CustomTreeItemContextMenuEntryImpl.java b/packages/view/backend/sirius-components-view-tree/src/main/java/org/eclipse/sirius/components/view/tree/impl/CustomTreeItemContextMenuEntryImpl.java
new file mode 100644
index 0000000000..f432fe634d
--- /dev/null
+++ b/packages/view/backend/sirius-components-view-tree/src/main/java/org/eclipse/sirius/components/view/tree/impl/CustomTreeItemContextMenuEntryImpl.java
@@ -0,0 +1,172 @@
+/*******************************************************************************
+ * Copyright (c) 2025 Obeo.
+ * This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v2.0
+ * which accompanies this distribution, and is available at
+ * https://www.eclipse.org/legal/epl-2.0/
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ *
+ * Contributors:
+ * Obeo - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.sirius.components.view.tree.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.sirius.components.view.tree.CustomTreeItemContextMenuEntry;
+import org.eclipse.sirius.components.view.tree.TreePackage;
+
+/**
+ * An implementation of the model object 'Custom Tree Item Context Menu Entry'.
+ *
+ *
@@ -41,74 +36,42 @@
public abstract class TreeItemContextMenuEntryImpl extends MinimalEObjectImpl.Container implements TreeItemContextMenuEntry {
/**
- * The default value of the '{@link #getName() Name}' attribute.
+ * The default value of the '{@link #getName() Name}' attribute.
*
+ * @see #getName()
* @generated
* @ordered
- * @see #getName()
*/
protected static final String NAME_EDEFAULT = null;
/**
- * The cached value of the '{@link #getName() Name}' attribute.
+ * The cached value of the '{@link #getName() Name}' attribute.
*
- * @generated
- * @ordered
* @see #getName()
- */
- protected String name = NAME_EDEFAULT;
-
- /**
- * The default value of the '{@link #getLabelExpression() Label Expression}' attribute.
- *
- * @generated
- * @ordered
- * @see #getLabelExpression()
- */
- protected static final String LABEL_EXPRESSION_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getLabelExpression() Label Expression}' attribute.
- *
- * @generated
- * @ordered
- * @see #getLabelExpression()
- */
- protected String labelExpression = LABEL_EXPRESSION_EDEFAULT;
-
- /**
- * The default value of the '{@link #getIconURLExpression() Icon URL Expression}' attribute.
- *
- * @generated
- * @ordered
- * @see #getIconURLExpression()
- */
- protected static final String ICON_URL_EXPRESSION_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getIconURLExpression() Icon URL Expression}' attribute.
- *
* @generated
* @ordered
- * @see #getIconURLExpression()
*/
- protected String iconURLExpression = ICON_URL_EXPRESSION_EDEFAULT;
+ protected String name = NAME_EDEFAULT;
/**
- * The default value of the '{@link #getPreconditionExpression() Precondition Expression}' attribute.
+ * The default value of the '{@link #getPreconditionExpression() Precondition Expression}' attribute.
*
+ * @see #getPreconditionExpression()
* @generated
* @ordered
- * @see #getPreconditionExpression()
*/
protected static final String PRECONDITION_EXPRESSION_EDEFAULT = null;
/**
- * The cached value of the '{@link #getPreconditionExpression() Precondition Expression}' attribute.
+ * The cached value of the '{@link #getPreconditionExpression() Precondition Expression}' attribute.
*
+ * @see #getPreconditionExpression()
* @generated
* @ordered
- * @see #getPreconditionExpression()
*/
protected String preconditionExpression = PRECONDITION_EXPRESSION_EDEFAULT;
@@ -154,52 +117,6 @@ public void setName(String newName) {
this.eNotify(new ENotificationImpl(this, Notification.SET, TreePackage.TREE_ITEM_CONTEXT_MENU_ENTRY__NAME, oldName, this.name));
}
- /**
- *
- *
- * @generated
- */
- @Override
- public String getLabelExpression() {
- return this.labelExpression;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public void setLabelExpression(String newLabelExpression) {
- String oldLabelExpression = this.labelExpression;
- this.labelExpression = newLabelExpression;
- if (this.eNotificationRequired())
- this.eNotify(new ENotificationImpl(this, Notification.SET, TreePackage.TREE_ITEM_CONTEXT_MENU_ENTRY__LABEL_EXPRESSION, oldLabelExpression, this.labelExpression));
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public String getIconURLExpression() {
- return this.iconURLExpression;
- }
-
- /**
- *
- *
- * @generated
- */
- @Override
- public void setIconURLExpression(String newIconURLExpression) {
- String oldIconURLExpression = this.iconURLExpression;
- this.iconURLExpression = newIconURLExpression;
- if (this.eNotificationRequired())
- this.eNotify(new ENotificationImpl(this, Notification.SET, TreePackage.TREE_ITEM_CONTEXT_MENU_ENTRY__ICON_URL_EXPRESSION, oldIconURLExpression, this.iconURLExpression));
- }
-
/**
*
*
@@ -233,10 +150,6 @@ public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case TreePackage.TREE_ITEM_CONTEXT_MENU_ENTRY__NAME:
return this.getName();
- case TreePackage.TREE_ITEM_CONTEXT_MENU_ENTRY__LABEL_EXPRESSION:
- return this.getLabelExpression();
- case TreePackage.TREE_ITEM_CONTEXT_MENU_ENTRY__ICON_URL_EXPRESSION:
- return this.getIconURLExpression();
case TreePackage.TREE_ITEM_CONTEXT_MENU_ENTRY__PRECONDITION_EXPRESSION:
return this.getPreconditionExpression();
}
@@ -254,12 +167,6 @@ public void eSet(int featureID, Object newValue) {
case TreePackage.TREE_ITEM_CONTEXT_MENU_ENTRY__NAME:
this.setName((String) newValue);
return;
- case TreePackage.TREE_ITEM_CONTEXT_MENU_ENTRY__LABEL_EXPRESSION:
- this.setLabelExpression((String) newValue);
- return;
- case TreePackage.TREE_ITEM_CONTEXT_MENU_ENTRY__ICON_URL_EXPRESSION:
- this.setIconURLExpression((String) newValue);
- return;
case TreePackage.TREE_ITEM_CONTEXT_MENU_ENTRY__PRECONDITION_EXPRESSION:
this.setPreconditionExpression((String) newValue);
return;
@@ -278,12 +185,6 @@ public void eUnset(int featureID) {
case TreePackage.TREE_ITEM_CONTEXT_MENU_ENTRY__NAME:
this.setName(NAME_EDEFAULT);
return;
- case TreePackage.TREE_ITEM_CONTEXT_MENU_ENTRY__LABEL_EXPRESSION:
- this.setLabelExpression(LABEL_EXPRESSION_EDEFAULT);
- return;
- case TreePackage.TREE_ITEM_CONTEXT_MENU_ENTRY__ICON_URL_EXPRESSION:
- this.setIconURLExpression(ICON_URL_EXPRESSION_EDEFAULT);
- return;
case TreePackage.TREE_ITEM_CONTEXT_MENU_ENTRY__PRECONDITION_EXPRESSION:
this.setPreconditionExpression(PRECONDITION_EXPRESSION_EDEFAULT);
return;
@@ -300,13 +201,9 @@ public void eUnset(int featureID) {
public boolean eIsSet(int featureID) {
switch (featureID) {
case TreePackage.TREE_ITEM_CONTEXT_MENU_ENTRY__NAME:
- return !Objects.equals(NAME_EDEFAULT, this.name);
- case TreePackage.TREE_ITEM_CONTEXT_MENU_ENTRY__LABEL_EXPRESSION:
- return !Objects.equals(LABEL_EXPRESSION_EDEFAULT, this.labelExpression);
- case TreePackage.TREE_ITEM_CONTEXT_MENU_ENTRY__ICON_URL_EXPRESSION:
- return !Objects.equals(ICON_URL_EXPRESSION_EDEFAULT, this.iconURLExpression);
+ return NAME_EDEFAULT == null ? this.name != null : !NAME_EDEFAULT.equals(this.name);
case TreePackage.TREE_ITEM_CONTEXT_MENU_ENTRY__PRECONDITION_EXPRESSION:
- return !Objects.equals(PRECONDITION_EXPRESSION_EDEFAULT, this.preconditionExpression);
+ return PRECONDITION_EXPRESSION_EDEFAULT == null ? this.preconditionExpression != null : !PRECONDITION_EXPRESSION_EDEFAULT.equals(this.preconditionExpression);
}
return super.eIsSet(featureID);
}
@@ -321,16 +218,13 @@ public String toString() {
if (this.eIsProxy())
return super.toString();
- String result = super.toString() + " (name: " +
- this.name +
- ", labelExpression: " +
- this.labelExpression +
- ", iconURLExpression: " +
- this.iconURLExpression +
- ", preconditionExpression: " +
- this.preconditionExpression +
- ')';
- return result;
+ StringBuilder result = new StringBuilder(super.toString());
+ result.append(" (name: ");
+ result.append(this.name);
+ result.append(", preconditionExpression: ");
+ result.append(this.preconditionExpression);
+ result.append(')');
+ return result.toString();
}
} // TreeItemContextMenuEntryImpl
diff --git a/packages/view/backend/sirius-components-view-tree/src/main/java/org/eclipse/sirius/components/view/tree/impl/TreePackageImpl.java b/packages/view/backend/sirius-components-view-tree/src/main/java/org/eclipse/sirius/components/view/tree/impl/TreePackageImpl.java
index 0634ed3028..4742edc514 100644
--- a/packages/view/backend/sirius-components-view-tree/src/main/java/org/eclipse/sirius/components/view/tree/impl/TreePackageImpl.java
+++ b/packages/view/backend/sirius-components-view-tree/src/main/java/org/eclipse/sirius/components/view/tree/impl/TreePackageImpl.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2024 Obeo.
+ * Copyright (c) 2024, 2025 Obeo.
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
@@ -19,6 +19,7 @@
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.impl.EPackageImpl;
import org.eclipse.sirius.components.view.ViewPackage;
+import org.eclipse.sirius.components.view.tree.CustomTreeItemContextMenuEntry;
import org.eclipse.sirius.components.view.tree.FetchTreeItemContextMenuEntry;
import org.eclipse.sirius.components.view.tree.FetchTreeItemContextMenuEntryKind;
import org.eclipse.sirius.components.view.tree.SingleClickTreeItemContextMenuEntry;
@@ -86,6 +87,13 @@ public class TreePackageImpl extends EPackageImpl implements TreePackage {
*/
private EClass fetchTreeItemContextMenuEntryEClass = null;
+ /**
+ *
+ *
+ * @generated
+ */
+ private EClass customTreeItemContextMenuEntryEClass = null;
+
/**
*
*
@@ -115,15 +123,17 @@ public class TreePackageImpl extends EPackageImpl implements TreePackage {
private boolean isInitialized = false;
/**
- * Creates an instance of the model Package, registered with {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package package URI value.
+ * Creates an instance of the model Package, registered with {@link org.eclipse.emf.ecore.EPackage.Registry
+ * EPackage.Registry} by the package package URI value.
*
- * Note: the correct way to create the package is via the static factory method {@link #init init()}, which also performs initialization of the package, or returns the registered package, if one
- * already exists.
+ * Note: the correct way to create the package is via the static factory method {@link #init init()}, which also
+ * performs initialization of the package, or returns the registered package, if one already exists.
*
- * @generated
* @see org.eclipse.emf.ecore.EPackage.Registry
* @see org.eclipse.sirius.components.view.tree.TreePackage#eNS_URI
* @see #init()
+ * @generated
*/
private TreePackageImpl() {
super(eNS_URI, TreeFactory.eINSTANCE);
@@ -133,13 +143,14 @@ private TreePackageImpl() {
* Creates, registers, and initializes the Package for this model, and for any others upon which it depends.
*
*
- * This method is used to initialize {@link TreePackage#eINSTANCE} when that field is accessed. Clients should not invoke it directly. Instead, they should simply access that field to obtain the
- * package.
+ * This method is used to initialize {@link TreePackage#eINSTANCE} when that field is accessed. Clients should not
+ * invoke it directly. Instead, they should simply access that field to obtain the package.
+ *
*
- * @generated
* @see #eNS_URI
* @see #createPackageContents()
* @see #initializePackageContents()
+ * @generated
*/
public static TreePackage init() {
if (isInited)
@@ -414,7 +425,7 @@ public EAttribute getTreeItemContextMenuEntry_Name() {
* @generated
*/
@Override
- public EAttribute getTreeItemContextMenuEntry_LabelExpression() {
+ public EAttribute getTreeItemContextMenuEntry_PreconditionExpression() {
return (EAttribute) this.treeItemContextMenuEntryEClass.getEStructuralFeatures().get(1);
}
@@ -424,8 +435,8 @@ public EAttribute getTreeItemContextMenuEntry_LabelExpression() {
* @generated
*/
@Override
- public EAttribute getTreeItemContextMenuEntry_IconURLExpression() {
- return (EAttribute) this.treeItemContextMenuEntryEClass.getEStructuralFeatures().get(2);
+ public EClass getSingleClickTreeItemContextMenuEntry() {
+ return this.singleClickTreeItemContextMenuEntryEClass;
}
/**
@@ -434,8 +445,8 @@ public EAttribute getTreeItemContextMenuEntry_IconURLExpression() {
* @generated
*/
@Override
- public EAttribute getTreeItemContextMenuEntry_PreconditionExpression() {
- return (EAttribute) this.treeItemContextMenuEntryEClass.getEStructuralFeatures().get(3);
+ public EReference getSingleClickTreeItemContextMenuEntry_Body() {
+ return (EReference) this.singleClickTreeItemContextMenuEntryEClass.getEStructuralFeatures().get(0);
}
/**
@@ -444,8 +455,8 @@ public EAttribute getTreeItemContextMenuEntry_PreconditionExpression() {
* @generated
*/
@Override
- public EClass getSingleClickTreeItemContextMenuEntry() {
- return this.singleClickTreeItemContextMenuEntryEClass;
+ public EAttribute getSingleClickTreeItemContextMenuEntry_LabelExpression() {
+ return (EAttribute) this.singleClickTreeItemContextMenuEntryEClass.getEStructuralFeatures().get(1);
}
/**
@@ -454,8 +465,8 @@ public EClass getSingleClickTreeItemContextMenuEntry() {
* @generated
*/
@Override
- public EReference getSingleClickTreeItemContextMenuEntry_Body() {
- return (EReference) this.singleClickTreeItemContextMenuEntryEClass.getEStructuralFeatures().get(0);
+ public EAttribute getSingleClickTreeItemContextMenuEntry_IconURLExpression() {
+ return (EAttribute) this.singleClickTreeItemContextMenuEntryEClass.getEStructuralFeatures().get(2);
}
/**
@@ -488,6 +499,46 @@ public EAttribute getFetchTreeItemContextMenuEntry_Kind() {
return (EAttribute) this.fetchTreeItemContextMenuEntryEClass.getEStructuralFeatures().get(1);
}
+ /**
+ *
+ *
+ * @generated
+ */
+ @Override
+ public EAttribute getFetchTreeItemContextMenuEntry_LabelExpression() {
+ return (EAttribute) this.fetchTreeItemContextMenuEntryEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ @Override
+ public EAttribute getFetchTreeItemContextMenuEntry_IconURLExpression() {
+ return (EAttribute) this.fetchTreeItemContextMenuEntryEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ @Override
+ public EClass getCustomTreeItemContextMenuEntry() {
+ return this.customTreeItemContextMenuEntryEClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ @Override
+ public EAttribute getCustomTreeItemContextMenuEntry_ContributionId() {
+ return (EAttribute) this.customTreeItemContextMenuEntryEClass.getEStructuralFeatures().get(0);
+ }
+
/**
*
*
@@ -509,7 +560,8 @@ public TreeFactory getTreeFactory() {
}
/**
- * Creates the meta-model objects for the package. This method is guarded to have no affect on any invocation but its first.
+ * Creates the meta-model objects for the package. This method is guarded to have no affect on any invocation but
+ * its first.
*
* @generated
*/
@@ -547,23 +599,29 @@ public void createPackageContents() {
this.treeItemContextMenuEntryEClass = this.createEClass(TREE_ITEM_CONTEXT_MENU_ENTRY);
this.createEAttribute(this.treeItemContextMenuEntryEClass, TREE_ITEM_CONTEXT_MENU_ENTRY__NAME);
- this.createEAttribute(this.treeItemContextMenuEntryEClass, TREE_ITEM_CONTEXT_MENU_ENTRY__LABEL_EXPRESSION);
- this.createEAttribute(this.treeItemContextMenuEntryEClass, TREE_ITEM_CONTEXT_MENU_ENTRY__ICON_URL_EXPRESSION);
this.createEAttribute(this.treeItemContextMenuEntryEClass, TREE_ITEM_CONTEXT_MENU_ENTRY__PRECONDITION_EXPRESSION);
this.singleClickTreeItemContextMenuEntryEClass = this.createEClass(SINGLE_CLICK_TREE_ITEM_CONTEXT_MENU_ENTRY);
this.createEReference(this.singleClickTreeItemContextMenuEntryEClass, SINGLE_CLICK_TREE_ITEM_CONTEXT_MENU_ENTRY__BODY);
+ this.createEAttribute(this.singleClickTreeItemContextMenuEntryEClass, SINGLE_CLICK_TREE_ITEM_CONTEXT_MENU_ENTRY__LABEL_EXPRESSION);
+ this.createEAttribute(this.singleClickTreeItemContextMenuEntryEClass, SINGLE_CLICK_TREE_ITEM_CONTEXT_MENU_ENTRY__ICON_URL_EXPRESSION);
this.fetchTreeItemContextMenuEntryEClass = this.createEClass(FETCH_TREE_ITEM_CONTEXT_MENU_ENTRY);
this.createEAttribute(this.fetchTreeItemContextMenuEntryEClass, FETCH_TREE_ITEM_CONTEXT_MENU_ENTRY__URL_EXRESSION);
this.createEAttribute(this.fetchTreeItemContextMenuEntryEClass, FETCH_TREE_ITEM_CONTEXT_MENU_ENTRY__KIND);
+ this.createEAttribute(this.fetchTreeItemContextMenuEntryEClass, FETCH_TREE_ITEM_CONTEXT_MENU_ENTRY__LABEL_EXPRESSION);
+ this.createEAttribute(this.fetchTreeItemContextMenuEntryEClass, FETCH_TREE_ITEM_CONTEXT_MENU_ENTRY__ICON_URL_EXPRESSION);
+
+ this.customTreeItemContextMenuEntryEClass = this.createEClass(CUSTOM_TREE_ITEM_CONTEXT_MENU_ENTRY);
+ this.createEAttribute(this.customTreeItemContextMenuEntryEClass, CUSTOM_TREE_ITEM_CONTEXT_MENU_ENTRY__CONTRIBUTION_ID);
// Create enums
this.fetchTreeItemContextMenuEntryKindEEnum = this.createEEnum(FETCH_TREE_ITEM_CONTEXT_MENU_ENTRY_KIND);
}
/**
- * Complete the initialization of the package and its meta-model. This method is guarded to have no affect on any invocation but its first.
+ * Complete the initialization of the package and its meta-model. This method is guarded to have no affect on any
+ * invocation but its first.
*
* @generated
*/
@@ -589,6 +647,7 @@ public void initializePackageContents() {
this.treeItemLabelFragmentDescriptionEClass.getESuperTypes().add(this.getTreeItemLabelElementDescription());
this.singleClickTreeItemContextMenuEntryEClass.getESuperTypes().add(this.getTreeItemContextMenuEntry());
this.fetchTreeItemContextMenuEntryEClass.getESuperTypes().add(this.getTreeItemContextMenuEntry());
+ this.customTreeItemContextMenuEntryEClass.getESuperTypes().add(this.getTreeItemContextMenuEntry());
// Initialize classes, features, and operations; add parameters
this.initEClass(this.treeDescriptionEClass, TreeDescription.class, "TreeDescription", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
@@ -640,10 +699,6 @@ public void initializePackageContents() {
this.initEClass(this.treeItemContextMenuEntryEClass, TreeItemContextMenuEntry.class, "TreeItemContextMenuEntry", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
this.initEAttribute(this.getTreeItemContextMenuEntry_Name(), theViewPackage.getIdentifier(), "name", null, 1, 1, TreeItemContextMenuEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,
!IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- this.initEAttribute(this.getTreeItemContextMenuEntry_LabelExpression(), theViewPackage.getInterpretedExpression(), "labelExpression", null, 0, 1, TreeItemContextMenuEntry.class, !IS_TRANSIENT,
- !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- this.initEAttribute(this.getTreeItemContextMenuEntry_IconURLExpression(), theViewPackage.getInterpretedExpression(), "iconURLExpression", null, 0, 1, TreeItemContextMenuEntry.class,
- !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
this.initEAttribute(this.getTreeItemContextMenuEntry_PreconditionExpression(), theViewPackage.getInterpretedExpression(), "preconditionExpression", null, 0, 1, TreeItemContextMenuEntry.class,
!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
@@ -651,12 +706,24 @@ public void initializePackageContents() {
IS_GENERATED_INSTANCE_CLASS);
this.initEReference(this.getSingleClickTreeItemContextMenuEntry_Body(), theViewPackage.getOperation(), null, "body", null, 0, -1, SingleClickTreeItemContextMenuEntry.class, !IS_TRANSIENT,
!IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ this.initEAttribute(this.getSingleClickTreeItemContextMenuEntry_LabelExpression(), theViewPackage.getInterpretedExpression(), "labelExpression", null, 0, 1,
+ SingleClickTreeItemContextMenuEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ this.initEAttribute(this.getSingleClickTreeItemContextMenuEntry_IconURLExpression(), theViewPackage.getInterpretedExpression(), "iconURLExpression", null, 0, 1,
+ SingleClickTreeItemContextMenuEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
this.initEClass(this.fetchTreeItemContextMenuEntryEClass, FetchTreeItemContextMenuEntry.class, "FetchTreeItemContextMenuEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
this.initEAttribute(this.getFetchTreeItemContextMenuEntry_UrlExression(), theViewPackage.getInterpretedExpression(), "urlExression", null, 0, 1, FetchTreeItemContextMenuEntry.class,
!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
this.initEAttribute(this.getFetchTreeItemContextMenuEntry_Kind(), this.getFetchTreeItemContextMenuEntryKind(), "kind", null, 0, 1, FetchTreeItemContextMenuEntry.class, !IS_TRANSIENT,
!IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ this.initEAttribute(this.getFetchTreeItemContextMenuEntry_LabelExpression(), theViewPackage.getInterpretedExpression(), "labelExpression", null, 0, 1, FetchTreeItemContextMenuEntry.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ this.initEAttribute(this.getFetchTreeItemContextMenuEntry_IconURLExpression(), theViewPackage.getInterpretedExpression(), "iconURLExpression", null, 0, 1, FetchTreeItemContextMenuEntry.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ this.initEClass(this.customTreeItemContextMenuEntryEClass, CustomTreeItemContextMenuEntry.class, "CustomTreeItemContextMenuEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ this.initEAttribute(this.getCustomTreeItemContextMenuEntry_ContributionId(), theViewPackage.getIdentifier(), "contributionId", null, 0, 1, CustomTreeItemContextMenuEntry.class, !IS_TRANSIENT,
+ !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
// Initialize enums and add enum literals
this.initEEnum(this.fetchTreeItemContextMenuEntryKindEEnum, FetchTreeItemContextMenuEntryKind.class, "FetchTreeItemContextMenuEntryKind");
diff --git a/packages/view/backend/sirius-components-view-tree/src/main/java/org/eclipse/sirius/components/view/tree/util/TreeAdapterFactory.java b/packages/view/backend/sirius-components-view-tree/src/main/java/org/eclipse/sirius/components/view/tree/util/TreeAdapterFactory.java
index 657a5133e1..02f53fddc5 100644
--- a/packages/view/backend/sirius-components-view-tree/src/main/java/org/eclipse/sirius/components/view/tree/util/TreeAdapterFactory.java
+++ b/packages/view/backend/sirius-components-view-tree/src/main/java/org/eclipse/sirius/components/view/tree/util/TreeAdapterFactory.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2024 Obeo.
+ * Copyright (c) 2024, 2025 Obeo.
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
@@ -17,6 +17,7 @@
import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.sirius.components.view.RepresentationDescription;
+import org.eclipse.sirius.components.view.tree.CustomTreeItemContextMenuEntry;
import org.eclipse.sirius.components.view.tree.FetchTreeItemContextMenuEntry;
import org.eclipse.sirius.components.view.tree.SingleClickTreeItemContextMenuEntry;
import org.eclipse.sirius.components.view.tree.TreeDescription;
@@ -112,6 +113,11 @@ public Adapter caseFetchTreeItemContextMenuEntry(FetchTreeItemContextMenuEntry o
return TreeAdapterFactory.this.createFetchTreeItemContextMenuEntryAdapter();
}
+ @Override
+ public Adapter caseCustomTreeItemContextMenuEntry(CustomTreeItemContextMenuEntry object) {
+ return TreeAdapterFactory.this.createCustomTreeItemContextMenuEntryAdapter();
+ }
+
@Override
public Adapter caseRepresentationDescription(RepresentationDescription object) {
return TreeAdapterFactory.this.createRepresentationDescriptionAdapter();
@@ -235,6 +241,20 @@ public Adapter createFetchTreeItemContextMenuEntryAdapter() {
return null;
}
+ /**
+ * Creates a new adapter for an object of class
+ * '{@link org.eclipse.sirius.components.view.tree.CustomTreeItemContextMenuEntry Custom Tree Item Context Menu
+ * Entry}'. This default implementation returns null so that we can easily ignore
+ * cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.eclipse.sirius.components.view.tree.CustomTreeItemContextMenuEntry
+ * @generated
+ */
+ public Adapter createCustomTreeItemContextMenuEntryAdapter() {
+ return null;
+ }
+
/**
* Creates a new adapter for an object of class '{@link org.eclipse.sirius.components.view.RepresentationDescription
* Representation Description}'. This default implementation returns null so that
diff --git a/packages/view/backend/sirius-components-view-tree/src/main/java/org/eclipse/sirius/components/view/tree/util/TreeSwitch.java b/packages/view/backend/sirius-components-view-tree/src/main/java/org/eclipse/sirius/components/view/tree/util/TreeSwitch.java
index 9d0fd1cc57..2842404045 100644
--- a/packages/view/backend/sirius-components-view-tree/src/main/java/org/eclipse/sirius/components/view/tree/util/TreeSwitch.java
+++ b/packages/view/backend/sirius-components-view-tree/src/main/java/org/eclipse/sirius/components/view/tree/util/TreeSwitch.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2024 Obeo.
+ * Copyright (c) 2024, 2025 Obeo.
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
@@ -16,6 +16,7 @@
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.util.Switch;
import org.eclipse.sirius.components.view.RepresentationDescription;
+import org.eclipse.sirius.components.view.tree.CustomTreeItemContextMenuEntry;
import org.eclipse.sirius.components.view.tree.FetchTreeItemContextMenuEntry;
import org.eclipse.sirius.components.view.tree.SingleClickTreeItemContextMenuEntry;
import org.eclipse.sirius.components.view.tree.TreeDescription;
@@ -133,6 +134,15 @@ protected T doSwitch(int classifierID, EObject theEObject) {
result = this.defaultCase(theEObject);
return result;
}
+ case TreePackage.CUSTOM_TREE_ITEM_CONTEXT_MENU_ENTRY: {
+ CustomTreeItemContextMenuEntry customTreeItemContextMenuEntry = (CustomTreeItemContextMenuEntry) theEObject;
+ T result = this.caseCustomTreeItemContextMenuEntry(customTreeItemContextMenuEntry);
+ if (result == null)
+ result = this.caseTreeItemContextMenuEntry(customTreeItemContextMenuEntry);
+ if (result == null)
+ result = this.defaultCase(theEObject);
+ return result;
+ }
default:
return this.defaultCase(theEObject);
}
@@ -243,6 +253,21 @@ public T caseFetchTreeItemContextMenuEntry(FetchTreeItemContextMenuEntry object)
return null;
}
+ /**
+ * Returns the result of interpreting the object as an instance of 'Custom Tree Item Context Menu Entry'.
+ * This implementation returns null; returning a non-null result will terminate the switch.
+ *
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Custom Tree Item Context Menu Entry'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseCustomTreeItemContextMenuEntry(CustomTreeItemContextMenuEntry object) {
+ return null;
+ }
+
/**
* Returns the result of interpreting the object as an instance of 'Representation Description'. This implementation returns null; returning a non-null result will terminate the switch.