diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc
index 253d38112ef..b5b58c0cc02 100644
--- a/CHANGELOG.adoc
+++ b/CHANGELOG.adoc
@@ -70,6 +70,7 @@ More existing APIs will be migrated to this new common pattern.
- https://github.com/eclipse-sirius/sirius-web/issues/3630[#3630] [sirius-web] Restore support for the deletion of dangling representations
- https://github.com/eclipse-sirius/sirius-web/issues/3666[#3666] [core] Enable EMF's intrinsicIDToEObjectMap for JSON resources to support languages which use modeled identifiers (e.g. SysMLv2).
- https://github.com/eclipse-sirius/sirius-web/issues/3664[#3664] [core] The Default.svg image is no longer displayed with the new architecture.
+- https://github.com/eclipse-sirius/sirius-web/issues/2759[#2759] [diagram] Reactivate the Selection Dialog
=== New Features
diff --git a/doc/reference/variables.adoc b/doc/reference/variables.adoc
index e15d175a9a5..d20541f31ed 100644
--- a/doc/reference/variables.adoc
+++ b/doc/reference/variables.adoc
@@ -145,3 +145,16 @@ Used to compute the nodes which should be considered as target of the edge
- `self`: The current element on which the operation is performed
- `editingContext`: The editing context is an abstraction used to access all the semantic data
- `environment`: The environment may contain some information on the application currently running
+
+== NodeTool
+
+=== SelectionDialogDescription
+
+If a `SelectionDialogDescription` is defined on the `NodeTool`, the following variable becomes available:
+- `selectedObject`: own the semantic element selected by the user in the selection dialog.
+
+=== SelectionDialogDescription#SelectionCandidatesExpression
+
+Used to compute the list of elements that should be displayed in the selection dialog
+- `self`: The current diagram element on which the tool is currently applied.
+- `targetElement` The semantic target element of the diagram element in the `self` variable.
diff --git a/package-lock.json b/package-lock.json
index 698a866ed2b..6e0baca9470 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -15212,6 +15212,7 @@
"devDependencies": {
"@apollo/client": "3.10.4",
"@eclipse-sirius/sirius-components-core": "*",
+ "@eclipse-sirius/sirius-components-diagrams": "*",
"@eclipse-sirius/sirius-components-tsconfig": "*",
"@material-ui/core": "4.12.4",
"@material-ui/icons": "4.11.3",
@@ -15229,6 +15230,7 @@
"peerDependencies": {
"@apollo/client": "3.10.4",
"@eclipse-sirius/sirius-components-core": "*",
+ "@eclipse-sirius/sirius-components-diagrams": "*",
"@material-ui/core": "4.12.4",
"@material-ui/icons": "4.11.3",
"@xstate/react": "1.6.3",
@@ -24221,6 +24223,7 @@
"requires": {
"@apollo/client": "3.10.4",
"@eclipse-sirius/sirius-components-core": "*",
+ "@eclipse-sirius/sirius-components-diagrams": "*",
"@eclipse-sirius/sirius-components-tsconfig": "*",
"@material-ui/core": "4.12.4",
"@material-ui/icons": "4.11.3",
diff --git a/packages/compatibility/backend/sirius-components-compatibility/src/main/java/org/eclipse/sirius/components/compatibility/services/diagrams/CompatibilityPaletteProvider.java b/packages/compatibility/backend/sirius-components-compatibility/src/main/java/org/eclipse/sirius/components/compatibility/services/diagrams/CompatibilityPaletteProvider.java
index 5206e49c133..19fcb5a100f 100644
--- a/packages/compatibility/backend/sirius-components-compatibility/src/main/java/org/eclipse/sirius/components/compatibility/services/diagrams/CompatibilityPaletteProvider.java
+++ b/packages/compatibility/backend/sirius-components-compatibility/src/main/java/org/eclipse/sirius/components/compatibility/services/diagrams/CompatibilityPaletteProvider.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2022, 2023 Obeo.
+ * Copyright (c) 2022, 2024 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
@@ -133,7 +133,7 @@ private ITool convertTool(org.eclipse.sirius.components.diagrams.tools.ITool too
if (tool instanceof org.eclipse.sirius.components.diagrams.tools.SingleClickOnDiagramElementTool singleClickOnDiagramElementTool) {
convertedTool = new SingleClickOnDiagramElementTool(singleClickOnDiagramElementTool.getId(), singleClickOnDiagramElementTool.getLabel(),
singleClickOnDiagramElementTool.getIconURL(), singleClickOnDiagramElementTool.getTargetDescriptions(),
- singleClickOnDiagramElementTool.getSelectionDescriptionId(), singleClickOnDiagramElementTool.isAppliesToDiagramRoot());
+ singleClickOnDiagramElementTool.getDialogDescriptionId(), singleClickOnDiagramElementTool.isAppliesToDiagramRoot());
}
if (tool instanceof org.eclipse.sirius.components.diagrams.tools.SingleClickOnTwoDiagramElementsTool singleClickOnTwoDiagramElementsTool) {
List candidates = new ArrayList<>();
diff --git a/packages/compatibility/backend/sirius-components-compatibility/src/main/java/org/eclipse/sirius/components/compatibility/services/diagrams/ToolProvider.java b/packages/compatibility/backend/sirius-components-compatibility/src/main/java/org/eclipse/sirius/components/compatibility/services/diagrams/ToolProvider.java
index 50fe33c0cc5..b6c7a80046b 100644
--- a/packages/compatibility/backend/sirius-components-compatibility/src/main/java/org/eclipse/sirius/components/compatibility/services/diagrams/ToolProvider.java
+++ b/packages/compatibility/backend/sirius-components-compatibility/src/main/java/org/eclipse/sirius/components/compatibility/services/diagrams/ToolProvider.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2019, 2023 Obeo.
+ * Copyright (c) 2019, 2024 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
@@ -234,9 +234,9 @@ private SingleClickOnDiagramElementTool convertNodeCreationDescription(Map imagePath = this.toolImageProvider.getIcon(nodeCreationTool);
List targetDescriptions = this.getParentNodeDescriptions(nodeCreationTool.getNodeMappings(), id2NodeDescriptions);
var selectModelElementVariableOpt = new SelectModelElementVariableProvider().getSelectModelElementVariable(nodeCreationTool.getVariable());
- String selectionDescriptionId = null;
+ String dialogDescriptionId = null;
if (selectModelElementVariableOpt.isPresent()) {
- selectionDescriptionId = this.identifierProvider.getIdentifier(selectModelElementVariableOpt.get());
+ dialogDescriptionId = this.identifierProvider.getIdentifier(selectModelElementVariableOpt.get());
}
// @formatter:off
return SingleClickOnDiagramElementTool.newSingleClickOnDiagramElementTool(id)
@@ -245,7 +245,7 @@ private SingleClickOnDiagramElementTool convertNodeCreationDescription(Map imagePath = this.toolImageProvider.getIcon(containerCreationDescription);
List targetDescriptions = this.getParentNodeDescriptions(containerCreationDescription.getContainerMappings(), id2NodeDescriptions);
var selectModelElementVariableOpt = new SelectModelElementVariableProvider().getSelectModelElementVariable(containerCreationDescription.getVariable());
- String selectionDescriptionId = null;
+ String dialogDescriptionId = null;
if (selectModelElementVariableOpt.isPresent()) {
- selectionDescriptionId = this.identifierProvider.getIdentifier(selectModelElementVariableOpt.get());
+ dialogDescriptionId = this.identifierProvider.getIdentifier(selectModelElementVariableOpt.get());
}
// @formatter:off
return SingleClickOnDiagramElementTool.newSingleClickOnDiagramElementTool(id)
@@ -268,7 +268,7 @@ private SingleClickOnDiagramElementTool convertContainerCreationDescription(Map<
.handler(this.createContainerCreationHandler(interpreter, containerCreationDescription))
.targetDescriptions(targetDescriptions)
.appliesToDiagramRoot(this.atLeastOneRootMapping(containerCreationDescription.getContainerMappings()))
- .selectionDescriptionId(selectionDescriptionId)
+ .dialogDescriptionId(dialogDescriptionId)
.build();
// @formatter:on
}
diff --git a/packages/diagrams/backend/sirius-components-collaborative-diagrams/src/main/java/org/eclipse/sirius/components/collaborative/diagrams/dto/InvokeSingleClickOnDiagramElementToolInput.java b/packages/diagrams/backend/sirius-components-collaborative-diagrams/src/main/java/org/eclipse/sirius/components/collaborative/diagrams/dto/InvokeSingleClickOnDiagramElementToolInput.java
index 00118815ab9..eb53994fe3a 100644
--- a/packages/diagrams/backend/sirius-components-collaborative-diagrams/src/main/java/org/eclipse/sirius/components/collaborative/diagrams/dto/InvokeSingleClickOnDiagramElementToolInput.java
+++ b/packages/diagrams/backend/sirius-components-collaborative-diagrams/src/main/java/org/eclipse/sirius/components/collaborative/diagrams/dto/InvokeSingleClickOnDiagramElementToolInput.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2019, 2023 Obeo and others.
+ * Copyright (c) 2019, 2024 Obeo and others.
* 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
@@ -12,6 +12,7 @@
*******************************************************************************/
package org.eclipse.sirius.components.collaborative.diagrams.dto;
+import java.util.List;
import java.util.UUID;
import org.eclipse.sirius.components.collaborative.diagrams.api.IDiagramInput;
@@ -22,5 +23,5 @@
* @author pcdavid
*/
public record InvokeSingleClickOnDiagramElementToolInput(UUID id, String editingContextId, String representationId, String diagramElementId, String toolId, double startingPositionX,
- double startingPositionY, String selectedObjectId) implements IDiagramInput {
+ double startingPositionY, List variables) implements IDiagramInput {
}
diff --git a/packages/diagrams/backend/sirius-components-collaborative-diagrams/src/main/java/org/eclipse/sirius/components/collaborative/diagrams/dto/SingleClickOnDiagramElementTool.java b/packages/diagrams/backend/sirius-components-collaborative-diagrams/src/main/java/org/eclipse/sirius/components/collaborative/diagrams/dto/SingleClickOnDiagramElementTool.java
index 8897ec94994..790ebcb032e 100644
--- a/packages/diagrams/backend/sirius-components-collaborative-diagrams/src/main/java/org/eclipse/sirius/components/collaborative/diagrams/dto/SingleClickOnDiagramElementTool.java
+++ b/packages/diagrams/backend/sirius-components-collaborative-diagrams/src/main/java/org/eclipse/sirius/components/collaborative/diagrams/dto/SingleClickOnDiagramElementTool.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2023 Obeo.
+ * Copyright (c) 2023, 2024 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
@@ -22,7 +22,7 @@
*
* @author mcharfadi
*/
-public record SingleClickOnDiagramElementTool(String id, String label, List iconURL, List targetDescriptions, String selectionDescriptionId,
+public record SingleClickOnDiagramElementTool(String id, String label, List iconURL, List targetDescriptions, String dialogDescriptionId,
boolean appliesToDiagramRoot) implements ITool {
public SingleClickOnDiagramElementTool {
@@ -53,7 +53,7 @@ public static final class Builder {
private List targetDescriptions;
- private String selectionDescriptionId;
+ private String dialogDescriptionId;
private boolean appliesToDiagramRoot;
@@ -81,13 +81,13 @@ public Builder appliesToDiagramRoot(boolean appliesToDiagramRoot) {
return this;
}
- public Builder selectionDescriptionId(String selectionDescriptionId) {
- this.selectionDescriptionId = selectionDescriptionId;
+ public Builder dialogDescriptionId(String dialogDescriptionId) {
+ this.dialogDescriptionId = dialogDescriptionId;
return this;
}
public SingleClickOnDiagramElementTool build() {
- return new SingleClickOnDiagramElementTool(this.id, this.label, this.iconURL, this.targetDescriptions, this.selectionDescriptionId, this.appliesToDiagramRoot);
+ return new SingleClickOnDiagramElementTool(this.id, this.label, this.iconURL, this.targetDescriptions, this.dialogDescriptionId, this.appliesToDiagramRoot);
}
}
diff --git a/packages/diagrams/backend/sirius-components-collaborative-diagrams/src/main/java/org/eclipse/sirius/components/collaborative/diagrams/dto/ToolVariable.java b/packages/diagrams/backend/sirius-components-collaborative-diagrams/src/main/java/org/eclipse/sirius/components/collaborative/diagrams/dto/ToolVariable.java
new file mode 100644
index 00000000000..c150712e80c
--- /dev/null
+++ b/packages/diagrams/backend/sirius-components-collaborative-diagrams/src/main/java/org/eclipse/sirius/components/collaborative/diagrams/dto/ToolVariable.java
@@ -0,0 +1,21 @@
+/*******************************************************************************
+ * Copyright (c) 2024 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.collaborative.diagrams.dto;
+
+/**
+ * Represents a ToolVariable entry.
+ * @author fbarbin
+ */
+public record ToolVariable(String name, String value, ToolVariableType type) {
+
+}
diff --git a/packages/diagrams/backend/sirius-components-collaborative-diagrams/src/main/java/org/eclipse/sirius/components/collaborative/diagrams/dto/ToolVariableType.java b/packages/diagrams/backend/sirius-components-collaborative-diagrams/src/main/java/org/eclipse/sirius/components/collaborative/diagrams/dto/ToolVariableType.java
new file mode 100644
index 00000000000..255c3b93f6f
--- /dev/null
+++ b/packages/diagrams/backend/sirius-components-collaborative-diagrams/src/main/java/org/eclipse/sirius/components/collaborative/diagrams/dto/ToolVariableType.java
@@ -0,0 +1,33 @@
+/*******************************************************************************
+ * Copyright (c) 2024 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.collaborative.diagrams.dto;
+
+/**
+ * Represent the Type of the Tool Variable.
+ *
+ * @author fbarbin
+ */
+public enum ToolVariableType {
+ /**
+ * The Value is a simple string.
+ */
+ STRING,
+ /**
+ * The value represents an Object ID.
+ */
+ OBJECT_ID,
+ /**
+ * The value represent an Array of Object IDs, separated by a ",".
+ */
+ OBJECT_ID_ARRAY
+}
diff --git a/packages/diagrams/backend/sirius-components-collaborative-diagrams/src/main/java/org/eclipse/sirius/components/collaborative/diagrams/handlers/InvokeSingleClickOnDiagramElementToolEventHandler.java b/packages/diagrams/backend/sirius-components-collaborative-diagrams/src/main/java/org/eclipse/sirius/components/collaborative/diagrams/handlers/InvokeSingleClickOnDiagramElementToolEventHandler.java
index cff192b79b1..15c951b5c25 100644
--- a/packages/diagrams/backend/sirius-components-collaborative-diagrams/src/main/java/org/eclipse/sirius/components/collaborative/diagrams/handlers/InvokeSingleClickOnDiagramElementToolEventHandler.java
+++ b/packages/diagrams/backend/sirius-components-collaborative-diagrams/src/main/java/org/eclipse/sirius/components/collaborative/diagrams/handlers/InvokeSingleClickOnDiagramElementToolEventHandler.java
@@ -12,6 +12,7 @@
*******************************************************************************/
package org.eclipse.sirius.components.collaborative.diagrams.handlers;
+import java.util.List;
import java.util.Objects;
import java.util.Optional;
@@ -27,6 +28,7 @@
import org.eclipse.sirius.components.collaborative.diagrams.api.IToolService;
import org.eclipse.sirius.components.collaborative.diagrams.dto.InvokeSingleClickOnDiagramElementToolInput;
import org.eclipse.sirius.components.collaborative.diagrams.dto.InvokeSingleClickOnDiagramElementToolSuccessPayload;
+import org.eclipse.sirius.components.collaborative.diagrams.dto.ToolVariable;
import org.eclipse.sirius.components.collaborative.diagrams.messages.ICollaborativeDiagramMessageService;
import org.eclipse.sirius.components.core.api.Environment;
import org.eclipse.sirius.components.core.api.ErrorPayload;
@@ -62,6 +64,8 @@
@Service
public class InvokeSingleClickOnDiagramElementToolEventHandler implements IDiagramEventHandler {
+ private static final String OBJECT_ID_ARRAY_SEPARATOR = ",";
+
private final Logger logger = LoggerFactory.getLogger(InvokeSingleClickOnDiagramElementToolEventHandler.class);
private final IObjectService objectService;
@@ -76,6 +80,7 @@ public class InvokeSingleClickOnDiagramElementToolEventHandler implements IDiagr
private final IRepresentationDescriptionSearchService representationDescriptionSearchService;
+
public InvokeSingleClickOnDiagramElementToolEventHandler(IObjectService objectService, IDiagramQueryService diagramQueryService, IToolService toolService,
ICollaborativeDiagramMessageService messageService, MeterRegistry meterRegistry, IRepresentationDescriptionSearchService representationDescriptionSearchService) {
this.objectService = Objects.requireNonNull(objectService);
@@ -114,7 +119,7 @@ public void handle(One payloadSink, Many changeDesc
// @formatter:on
if (optionalTool.isPresent()) {
IStatus status = this.executeTool(editingContext, diagramContext, input.diagramElementId(), optionalTool.get(), input.startingPositionX(), input.startingPositionY(),
- input.selectedObjectId());
+ input.variables());
if (status instanceof Success success) {
WorkbenchSelection newSelection = null;
Object newSelectionParameter = success.getParameters().get(Success.NEW_SELECTION);
@@ -134,7 +139,7 @@ public void handle(One payloadSink, Many changeDesc
}
private IStatus executeTool(IEditingContext editingContext, IDiagramContext diagramContext, String diagramElementId, SingleClickOnDiagramElementTool tool, double startingPositionX,
- double startingPositionY, String selectedObjectId) {
+ double startingPositionY, List variables) {
IStatus result = new Failure("");
Diagram diagram = diagramContext.getDiagram();
Optional node = this.diagramQueryService.findNodeById(diagram, diagramElementId);
@@ -149,24 +154,47 @@ private IStatus executeTool(IEditingContext editingContext, IDiagramContext diag
if (self.isPresent()) {
VariableManager variableManager = this.populateVariableManager(editingContext, diagramContext, node, edge, self);
- String selectionDescriptionId = tool.getSelectionDescriptionId();
- if (selectionDescriptionId != null && selectedObjectId != null) {
- var selectionDescriptionOpt = this.representationDescriptionSearchService.findById(editingContext, selectionDescriptionId);
- var selectedObjectOpt = this.objectService.getObject(editingContext, selectedObjectId);
- if (selectionDescriptionOpt.isPresent() && selectedObjectOpt.isPresent()) {
- variableManager.put(SingleClickOnDiagramElementTool.SELECTED_OBJECT, selectedObjectOpt.get());
- }
+ String dialogDescriptionId = tool.getDialogDescriptionId();
+ if (dialogDescriptionId != null && !variables.isEmpty()) {
+ this.handleDialogVariables(editingContext, variableManager, variables);
}
- if (selectionDescriptionId == null || selectedObjectId != null) {
+
+ //We do not apply the tool if a dialog is defined but no variables have been provided
+ if (dialogDescriptionId == null || !variables.isEmpty()) {
result = tool.getHandler().apply(variableManager);
Position newPosition = Position.at(startingPositionX, startingPositionY);
-
diagramContext.getDiagramEvents().add(new SinglePositionEvent(diagramElementId, newPosition));
}
}
return result;
}
+ private void handleDialogVariables(IEditingContext editingContext, VariableManager variableManager, List variables) {
+ variables.forEach(toolVariable -> {
+ this.handleToolVariable(toolVariable, editingContext, variableManager);
+ });
+ }
+
+ private void handleToolVariable(ToolVariable toolvariable, IEditingContext editingContext, VariableManager variableManager) {
+ switch (toolvariable.type()) {
+ case STRING -> variableManager.put(toolvariable.name(), toolvariable.value());
+ case OBJECT_ID -> {
+ var optionalObject = this.objectService.getObject(editingContext, toolvariable.value());
+ variableManager.put(toolvariable.name(), optionalObject.orElse(null));
+ }
+ case OBJECT_ID_ARRAY -> {
+ String value = toolvariable.value();
+ List objectsIds = List.of(value.split(OBJECT_ID_ARRAY_SEPARATOR));
+ List objects = objectsIds.stream()
+ .map(objectId -> this.objectService.getObject(editingContext, objectId))
+ .map(optionalObject -> optionalObject.orElse(null))
+ .toList();
+ variableManager.put(toolvariable.name(), objects);
+ }
+ default -> this.logger.warn("Unexpected value: " + toolvariable.type());
+ }
+ }
+
private Optional getCurrentContext(IEditingContext editingContext, String diagramElementId, SingleClickOnDiagramElementTool tool, Diagram diagram, Optional node,
Optional edge) {
Optional self = Optional.empty();
diff --git a/packages/diagrams/backend/sirius-components-collaborative-diagrams/src/main/resources/schema/diagram.graphqls b/packages/diagrams/backend/sirius-components-collaborative-diagrams/src/main/resources/schema/diagram.graphqls
index 1ecbd9e3093..30bfafd0c6e 100644
--- a/packages/diagrams/backend/sirius-components-collaborative-diagrams/src/main/resources/schema/diagram.graphqls
+++ b/packages/diagrams/backend/sirius-components-collaborative-diagrams/src/main/resources/schema/diagram.graphqls
@@ -8,9 +8,7 @@ input DiagramEventInput {
diagramId: ID!
}
-union DiagramEventPayload =
- ErrorPayload
- | DiagramRefreshedEventPayload
+union DiagramEventPayload = ErrorPayload | DiagramRefreshedEventPayload
type DiagramRefreshedEventPayload {
id: ID!
@@ -217,7 +215,7 @@ type Edge {
routingPoints: [Position]!
sourceAnchorRelativePosition: Ratio!
targetAnchorRelativePosition: Ratio!
- centerLabelEditable : Boolean!
+ centerLabelEditable: Boolean!
}
type EdgeStyle {
@@ -286,7 +284,7 @@ type SingleClickOnDiagramElementTool implements Tool {
label: String!
iconURL: [String!]!
appliesToDiagramRoot: Boolean!
- selectionDescriptionId: String
+ dialogDescriptionId: String
targetDescriptions: [DiagramElementDescription!]!
}
@@ -361,8 +359,12 @@ extend type Mutation {
arrangeAll(input: ArrangeAllInput!): ArrangeAllPayload!
deleteFromDiagram(input: DeleteFromDiagramInput!): DeleteFromDiagramPayload!
editLabel(input: EditLabelInput!): EditLabelPayload!
- invokeSingleClickOnDiagramElementTool(input: InvokeSingleClickOnDiagramElementToolInput!): InvokeSingleClickOnDiagramElementToolPayload!
- invokeSingleClickOnTwoDiagramElementsTool(input: InvokeSingleClickOnTwoDiagramElementsToolInput!): InvokeSingleClickOnTwoDiagramElementsToolPayload!
+ invokeSingleClickOnDiagramElementTool(
+ input: InvokeSingleClickOnDiagramElementToolInput!
+ ): InvokeSingleClickOnDiagramElementToolPayload!
+ invokeSingleClickOnTwoDiagramElementsTool(
+ input: InvokeSingleClickOnTwoDiagramElementsToolInput!
+ ): InvokeSingleClickOnTwoDiagramElementsToolPayload!
updateNodeBounds(input: UpdateNodeBoundsInput!): UpdateNodeBoundsPayload!
updateNodePosition(input: UpdateNodePositionInput!): UpdateNodePositionPayload!
dropOnDiagram(input: DropOnDiagramInput!): DropOnDiagramPayload!
@@ -446,7 +448,7 @@ input InvokeSingleClickOnTwoDiagramElementsToolInput {
}
union InvokeSingleClickOnTwoDiagramElementsToolPayload =
- ErrorPayload
+ ErrorPayload
| InvokeSingleClickOnTwoDiagramElementsToolSuccessPayload
type InvokeSingleClickOnTwoDiagramElementsToolSuccessPayload {
@@ -459,16 +461,26 @@ input InvokeSingleClickOnDiagramElementToolInput {
id: ID!
editingContextId: ID!
representationId: ID!
- selectedObjectId: String
+ variables: [ToolVariable!]!
diagramElementId: ID!
startingPositionX: Float!
startingPositionY: Float!
toolId: ID!
}
-union InvokeSingleClickOnDiagramElementToolPayload =
- ErrorPayload
- | InvokeSingleClickOnDiagramElementToolSuccessPayload
+input ToolVariable {
+ name: String!
+ value: String!
+ type: ToolVariableType!
+}
+
+enum ToolVariableType {
+ STRING
+ OBJECT_ID
+ OBJECT_ID_ARRAY
+}
+
+union InvokeSingleClickOnDiagramElementToolPayload = ErrorPayload | InvokeSingleClickOnDiagramElementToolSuccessPayload
type InvokeSingleClickOnDiagramElementToolSuccessPayload {
id: ID!
@@ -503,9 +515,7 @@ input UpdateNodePositionInput {
newPositionY: Float!
}
-union UpdateNodePositionPayload =
- ErrorPayload
- | UpdateNodePositionSuccessPayload
+union UpdateNodePositionPayload = ErrorPayload | UpdateNodePositionSuccessPayload
type UpdateNodePositionSuccessPayload {
id: ID!
@@ -592,7 +602,6 @@ input PinDiagramElementInput {
pinned: Boolean!
}
-
union PinDiagramElementPayload = ErrorPayload | SuccessPayload
input UpdateCollapsingStateInput {
diff --git a/packages/diagrams/backend/sirius-components-collaborative-diagrams/src/test/java/org/eclipse/sirius/components/collaborative/diagrams/handlers/InvokeSingleClickOnDiagramElementToolEventHandlerTests.java b/packages/diagrams/backend/sirius-components-collaborative-diagrams/src/test/java/org/eclipse/sirius/components/collaborative/diagrams/handlers/InvokeSingleClickOnDiagramElementToolEventHandlerTests.java
index 24e2ab4c346..0cb22b9f016 100644
--- a/packages/diagrams/backend/sirius-components-collaborative-diagrams/src/test/java/org/eclipse/sirius/components/collaborative/diagrams/handlers/InvokeSingleClickOnDiagramElementToolEventHandlerTests.java
+++ b/packages/diagrams/backend/sirius-components-collaborative-diagrams/src/test/java/org/eclipse/sirius/components/collaborative/diagrams/handlers/InvokeSingleClickOnDiagramElementToolEventHandlerTests.java
@@ -14,11 +14,13 @@
import static org.assertj.core.api.Assertions.assertThat;
+import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.Set;
import java.util.UUID;
+import java.util.function.Function;
import org.eclipse.sirius.components.collaborative.api.ChangeDescription;
import org.eclipse.sirius.components.collaborative.api.ChangeKind;
@@ -28,6 +30,8 @@
import org.eclipse.sirius.components.collaborative.diagrams.api.IToolService;
import org.eclipse.sirius.components.collaborative.diagrams.dto.InvokeSingleClickOnDiagramElementToolInput;
import org.eclipse.sirius.components.collaborative.diagrams.dto.InvokeSingleClickOnDiagramElementToolSuccessPayload;
+import org.eclipse.sirius.components.collaborative.diagrams.dto.ToolVariable;
+import org.eclipse.sirius.components.collaborative.diagrams.dto.ToolVariableType;
import org.eclipse.sirius.components.collaborative.diagrams.messages.ICollaborativeDiagramMessageService;
import org.eclipse.sirius.components.core.api.ErrorPayload;
import org.eclipse.sirius.components.core.api.IEditingContext;
@@ -60,7 +64,9 @@
import org.eclipse.sirius.components.diagrams.description.NodeDescription;
import org.eclipse.sirius.components.diagrams.tools.ITool;
import org.eclipse.sirius.components.diagrams.tools.SingleClickOnDiagramElementTool;
+import org.eclipse.sirius.components.representations.IStatus;
import org.eclipse.sirius.components.representations.Success;
+import org.eclipse.sirius.components.representations.VariableManager;
import org.junit.jupiter.api.Test;
import io.micrometer.core.instrument.simple.SimpleMeterRegistry;
@@ -75,6 +81,16 @@
*/
public class InvokeSingleClickOnDiagramElementToolEventHandlerTests {
+ private static final String NAME_VARIABLE_VALUE = "nameVariableValue";
+
+ private static final String NAME_VARIABLE = "name";
+
+ private static final String SELECTED_OBJECTS = "selectedObjects";
+
+ private static final String SELECTED_OBJECT = "selectedObject";
+
+ private static final String DIALOG_DESCRIPTION_ID = "dialogDescriptionId";
+
private static final String DIAGRAM_ID = "diagramId";
private static final String EDGE_1_ID = "edge1";
private static final String EDGE_DESCRIPTION_ID = "edgeDescriptionId";
@@ -82,9 +98,16 @@ public class InvokeSingleClickOnDiagramElementToolEventHandlerTests {
private static final String NODE_DESCRIPTION_ID = "nodeDescriptionId";
private static final String NODE_1_ID = "node1";
private static final String OBJECT_1_ID = "object1";
+
+ private static final String OBJECT_2_ID = "object2";
+
+ private static final String OBJECT_3_ID = "object3";
+
private static final String LINK_1_ID = "link1";
private static final String REPRESENTATION_ID = "representationId";
- private static final String SELECTED_OBJECT_ID = "selectedObjectId";
+
+ private static final List VARIABLES = List.of();
+
private static final String TOOL_ID = "toolId";
private static final String TOOL_IMAGE_URL = "imageURL";
private static final String TOOL_LABEL = "label";
@@ -115,7 +138,7 @@ public Optional findToolById(IEditingContext editingContext, Diagram diag
var handler = new InvokeSingleClickOnDiagramElementToolEventHandler(objectService, diagramQueryService, toolService, new ICollaborativeDiagramMessageService.NoOp(), new SimpleMeterRegistry(),
representationDescriptionSearchService);
- var input = new InvokeSingleClickOnDiagramElementToolInput(UUID.randomUUID(), EDITING_CONTEXT_ID, REPRESENTATION_ID, DIAGRAM_ID, TOOL_ID, 5.0, 8.0, SELECTED_OBJECT_ID);
+ var input = new InvokeSingleClickOnDiagramElementToolInput(UUID.randomUUID(), EDITING_CONTEXT_ID, REPRESENTATION_ID, DIAGRAM_ID, TOOL_ID, 5.0, 8.0, VARIABLES);
IEditingContext editingContext = () -> EDITING_CONTEXT_ID;
@@ -168,7 +191,7 @@ public Optional findToolById(IEditingContext editingContext, Diagram diag
var handler = new InvokeSingleClickOnDiagramElementToolEventHandler(objectService, diagramQueryService, toolService, new ICollaborativeDiagramMessageService.NoOp(), new SimpleMeterRegistry(),
representationDescriptionSearchService);
- var input = new InvokeSingleClickOnDiagramElementToolInput(UUID.randomUUID(), EDITING_CONTEXT_ID, REPRESENTATION_ID, NODE_1_ID, TOOL_ID, 5.0, 8.0, SELECTED_OBJECT_ID);
+ var input = new InvokeSingleClickOnDiagramElementToolInput(UUID.randomUUID(), EDITING_CONTEXT_ID, REPRESENTATION_ID, NODE_1_ID, TOOL_ID, 5.0, 8.0, VARIABLES);
IEditingContext editingContext = () -> EDITING_CONTEXT_ID;
@@ -187,6 +210,78 @@ public Optional findToolById(IEditingContext editingContext, Diagram diag
assertThat(payload).isInstanceOf(InvokeSingleClickOnDiagramElementToolSuccessPayload.class);
}
+ @Test
+ public void testInvokeToolOnNodeWithDialogDescription() {
+ var object1 = new Object();
+ var object2 = new Object();
+ var object3 = new Object();
+
+ var objectService = new IObjectService.NoOp() {
+ @Override
+ public Optional getObject(IEditingContext editingContext, String objectId) {
+ Object object = switch (objectId) {
+ case OBJECT_1_ID -> object1;
+ case OBJECT_2_ID -> object2;
+ case OBJECT_3_ID -> object3;
+ default -> null;
+ };
+ return Optional.of(object);
+ }
+ };
+
+ var nodeDescription = this.createNodeDescription(NODE_DESCRIPTION_ID);
+ var node1 = this.createNode(NODE_1_ID, NODE_DESCRIPTION_ID, OBJECT_1_ID);
+
+ var diagramQueryService = new IDiagramQueryService.NoOp() {
+ @Override
+ public Optional findNodeById(Diagram diagram, String nodeId) {
+ return Optional.of(node1);
+ }
+ };
+
+ final Map computedVariables = new HashMap<>();
+
+ Function toolHandler = variableManager -> {
+ computedVariables.putAll(variableManager.getVariables());
+ return new Success(ChangeKind.SEMANTIC_CHANGE, Map.of());
+ };
+
+ var tool = this.createTool(TOOL_ID, false, List.of(nodeDescription), DIALOG_DESCRIPTION_ID, toolHandler);
+
+ var toolService = new IToolService.NoOp() {
+ @Override
+ public Optional findToolById(IEditingContext editingContext, Diagram diagram, String toolId) {
+ return Optional.of(tool);
+ }
+ };
+ var representationDescriptionSearchService = new IRepresentationDescriptionSearchService.NoOp();
+
+ var handler = new InvokeSingleClickOnDiagramElementToolEventHandler(objectService, diagramQueryService, toolService, new ICollaborativeDiagramMessageService.NoOp(), new SimpleMeterRegistry(),
+ representationDescriptionSearchService);
+
+ var variables = List.of(new ToolVariable(SELECTED_OBJECT, OBJECT_2_ID, ToolVariableType.OBJECT_ID), new ToolVariable(NAME_VARIABLE, NAME_VARIABLE_VALUE, ToolVariableType.STRING),
+ new ToolVariable(SELECTED_OBJECTS, OBJECT_1_ID + "," + OBJECT_2_ID + "," + OBJECT_3_ID, ToolVariableType.OBJECT_ID_ARRAY));
+
+ var input = new InvokeSingleClickOnDiagramElementToolInput(UUID.randomUUID(), EDITING_CONTEXT_ID, REPRESENTATION_ID, NODE_1_ID, TOOL_ID, 5.0, 8.0, variables);
+
+ IEditingContext editingContext = () -> EDITING_CONTEXT_ID;
+
+ assertThat(handler.canHandle(input)).isTrue();
+
+ Many changeDescriptionSink = Sinks.many().unicast().onBackpressureBuffer();
+ One payloadSink = Sinks.one();
+
+ IDiagramContext diagramContext = new DiagramContext(new TestDiagramBuilder().getDiagram(DIAGRAM_ID));
+ handler.handle(payloadSink, changeDescriptionSink, editingContext, diagramContext, input);
+
+ ChangeDescription changeDescription = changeDescriptionSink.asFlux().blockFirst();
+ assertThat(changeDescription.getKind()).isEqualTo(ChangeKind.SEMANTIC_CHANGE);
+
+ IPayload payload = payloadSink.asMono().block();
+ assertThat(payload).isInstanceOf(InvokeSingleClickOnDiagramElementToolSuccessPayload.class);
+ assertThat(computedVariables).containsEntry(SELECTED_OBJECT, object2).containsEntry(NAME_VARIABLE, NAME_VARIABLE_VALUE).containsEntry(SELECTED_OBJECTS, List.of(object1, object2, object3));
+ }
+
@Test
public void testInvokeToolOnWrongNode() {
var object1 = new Object();
@@ -224,7 +319,7 @@ public Optional findToolById(IEditingContext editingContext, Diagram diag
var handler = new InvokeSingleClickOnDiagramElementToolEventHandler(objectService, diagramQueryService, toolService, new ICollaborativeDiagramMessageService.NoOp(), new SimpleMeterRegistry(),
representationDescriptionSearchService);
- var input = new InvokeSingleClickOnDiagramElementToolInput(UUID.randomUUID(), EDITING_CONTEXT_ID, REPRESENTATION_ID, "anotherNodeId", TOOL_ID, 5.0, 8.0, SELECTED_OBJECT_ID);
+ var input = new InvokeSingleClickOnDiagramElementToolInput(UUID.randomUUID(), EDITING_CONTEXT_ID, REPRESENTATION_ID, "anotherNodeId", TOOL_ID, 5.0, 8.0, VARIABLES);
IEditingContext editingContext = () -> EDITING_CONTEXT_ID;
@@ -280,7 +375,7 @@ public Optional findToolById(IEditingContext editingContext, Diagram diag
var handler = new InvokeSingleClickOnDiagramElementToolEventHandler(objectService, diagramQueryService, toolService, new ICollaborativeDiagramMessageService.NoOp(), new SimpleMeterRegistry(),
representationDescriptionSearchService);
- var input = new InvokeSingleClickOnDiagramElementToolInput(UUID.randomUUID(), EDITING_CONTEXT_ID, REPRESENTATION_ID, EDGE_1_ID, TOOL_ID, 5.0, 8.0, SELECTED_OBJECT_ID);
+ var input = new InvokeSingleClickOnDiagramElementToolInput(UUID.randomUUID(), EDITING_CONTEXT_ID, REPRESENTATION_ID, EDGE_1_ID, TOOL_ID, 5.0, 8.0, VARIABLES);
IEditingContext editingContext = () -> EDITING_CONTEXT_ID;
@@ -336,7 +431,7 @@ public Optional findToolById(IEditingContext editingContext, Diagram diag
var handler = new InvokeSingleClickOnDiagramElementToolEventHandler(objectService, diagramQueryService, toolService, new ICollaborativeDiagramMessageService.NoOp(), new SimpleMeterRegistry(),
representationDescriptionSearchService);
- var input = new InvokeSingleClickOnDiagramElementToolInput(UUID.randomUUID(), EDITING_CONTEXT_ID, REPRESENTATION_ID, "anotherEdgeId", TOOL_ID, 5.0, 8.0, SELECTED_OBJECT_ID);
+ var input = new InvokeSingleClickOnDiagramElementToolInput(UUID.randomUUID(), EDITING_CONTEXT_ID, REPRESENTATION_ID, "anotherEdgeId", TOOL_ID, 5.0, 8.0, VARIABLES);
IEditingContext editingContext = () -> EDITING_CONTEXT_ID;
@@ -356,12 +451,16 @@ public Optional findToolById(IEditingContext editingContext, Diagram diag
}
private SingleClickOnDiagramElementTool createTool(String toolId, boolean appliesToDiagramRoot, List diagramElementsDescriptions) {
+ return this.createTool(toolId, appliesToDiagramRoot, diagramElementsDescriptions, null, variableManager -> new Success(ChangeKind.SEMANTIC_CHANGE, Map.of()));
+ }
+
+ private SingleClickOnDiagramElementTool createTool(String toolId, boolean appliesToDiagramRoot, List diagramElementsDescriptions, String dialogDescriptionId, Function handler) {
return SingleClickOnDiagramElementTool.newSingleClickOnDiagramElementTool(toolId)
.label(TOOL_LABEL)
.iconURL(List.of(TOOL_IMAGE_URL))
.targetDescriptions(diagramElementsDescriptions)
- .selectionDescriptionId(null)
- .handler(variableManager -> new Success(ChangeKind.SEMANTIC_CHANGE, Map.of()))
+ .dialogDescriptionId(dialogDescriptionId)
+ .handler(handler)
.appliesToDiagramRoot(appliesToDiagramRoot)
.build();
}
diff --git a/packages/diagrams/backend/sirius-components-collaborative-diagrams/src/test/java/org/eclipse/sirius/components/collaborative/diagrams/providers/GenericDiagramToolReferencePositionProviderTests.java b/packages/diagrams/backend/sirius-components-collaborative-diagrams/src/test/java/org/eclipse/sirius/components/collaborative/diagrams/providers/GenericDiagramToolReferencePositionProviderTests.java
index b990fbe31bb..664de00e5c0 100644
--- a/packages/diagrams/backend/sirius-components-collaborative-diagrams/src/test/java/org/eclipse/sirius/components/collaborative/diagrams/providers/GenericDiagramToolReferencePositionProviderTests.java
+++ b/packages/diagrams/backend/sirius-components-collaborative-diagrams/src/test/java/org/eclipse/sirius/components/collaborative/diagrams/providers/GenericDiagramToolReferencePositionProviderTests.java
@@ -42,7 +42,7 @@ public void canHandle() {
var diagramToolReferencePositionProvider = new GenericDiagramToolReferencePositionProvider();
InvokeSingleClickOnDiagramElementToolInput inputInvokeSingleClick = new InvokeSingleClickOnDiagramElementToolInput(UUID.randomUUID(), "", "",
- "", "", 0, 0, "");
+ "", "", 0, 0, List.of());
assertThat(diagramToolReferencePositionProvider.canHandle(inputInvokeSingleClick)).isTrue();
DropNodeInput inputDropNode = new DropNodeInput(UUID.randomUUID(), "", "", "", "", 0, 0);
assertThat(diagramToolReferencePositionProvider.canHandle(inputDropNode)).isTrue();
@@ -60,12 +60,12 @@ public void getReferencePositionInvokeSingleClickOnDiagramElementTool() {
IDiagramContext diagramContext = new DiagramContext(new TestDiagramBuilder().getDiagram(diagramId));
// Test click on diagram
InvokeSingleClickOnDiagramElementToolInput inputInvokeSingleClickOnDiagram = new InvokeSingleClickOnDiagramElementToolInput(UUID.randomUUID(), "", "",
- diagramId, "", 3, 2, "");
+ diagramId, "", 3, 2, List.of());
var result = diagramToolReferencePositionProvider.getReferencePosition(inputInvokeSingleClickOnDiagram, diagramContext);
this.assertResult(result, null, new Position(3, 2));
// Test click on container
InvokeSingleClickOnDiagramElementToolInput inputInvokeSingleClickOnContainer = new InvokeSingleClickOnDiagramElementToolInput(UUID.randomUUID(), "", "",
- CONTAINER_ID, "", 3, 2, "");
+ CONTAINER_ID, "", 3, 2, List.of());
result = diagramToolReferencePositionProvider.getReferencePosition(inputInvokeSingleClickOnContainer, diagramContext);
this.assertResult(result, CONTAINER_ID, new Position(3, 2));
}
diff --git a/packages/diagrams/backend/sirius-components-diagrams-tests/src/main/java/org/eclipse/sirius/components/diagrams/tests/graphql/PaletteQueryRunner.java b/packages/diagrams/backend/sirius-components-diagrams-tests/src/main/java/org/eclipse/sirius/components/diagrams/tests/graphql/PaletteQueryRunner.java
index 4e40b973527..798a8b58693 100644
--- a/packages/diagrams/backend/sirius-components-diagrams-tests/src/main/java/org/eclipse/sirius/components/diagrams/tests/graphql/PaletteQueryRunner.java
+++ b/packages/diagrams/backend/sirius-components-diagrams-tests/src/main/java/org/eclipse/sirius/components/diagrams/tests/graphql/PaletteQueryRunner.java
@@ -54,7 +54,7 @@ query getPalette($editingContextId: ID!, $representationId: ID!, $diagramElement
}
}
}
-
+
fragment ToolFields on Tool {
__typename
id
@@ -65,7 +65,7 @@ query getPalette($editingContextId: ID!, $representationId: ID!, $diagramElement
id
}
appliesToDiagramRoot
- selectionDescriptionId
+ dialogDescriptionId
}
}
""";
diff --git a/packages/diagrams/backend/sirius-components-diagrams/src/main/java/org/eclipse/sirius/components/diagrams/tools/SingleClickOnDiagramElementTool.java b/packages/diagrams/backend/sirius-components-diagrams/src/main/java/org/eclipse/sirius/components/diagrams/tools/SingleClickOnDiagramElementTool.java
index f51e7cc5ab2..570b757d87d 100644
--- a/packages/diagrams/backend/sirius-components-diagrams/src/main/java/org/eclipse/sirius/components/diagrams/tools/SingleClickOnDiagramElementTool.java
+++ b/packages/diagrams/backend/sirius-components-diagrams/src/main/java/org/eclipse/sirius/components/diagrams/tools/SingleClickOnDiagramElementTool.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2019, 2023 Obeo.
+ * Copyright (c) 2019, 2024 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
@@ -45,7 +45,7 @@ public final class SingleClickOnDiagramElementTool implements ITool {
private boolean appliesToDiagramRoot;
- private String selectionDescriptionId;
+ private String dialogDescriptionId;
private SingleClickOnDiagramElementTool() {
// Prevent instantiation
@@ -78,8 +78,8 @@ public String getLabel() {
return this.label;
}
- public String getSelectionDescriptionId() {
- return this.selectionDescriptionId;
+ public String getDialogDescriptionId() {
+ return this.dialogDescriptionId;
}
@Override
@@ -113,7 +113,7 @@ public static final class Builder {
private boolean appliesToDiagramRoot;
- private String selectionDescriptionId;
+ private String dialogDescriptionId;
private Builder(String id) {
this.id = Objects.requireNonNull(id);
@@ -144,8 +144,8 @@ public Builder handler(Function handler) {
return this;
}
- public Builder selectionDescriptionId(String selectionDescriptionId) {
- this.selectionDescriptionId = selectionDescriptionId;
+ public Builder dialogDescriptionId(String dialogDescriptionId) {
+ this.dialogDescriptionId = dialogDescriptionId;
return this;
}
@@ -157,7 +157,7 @@ public SingleClickOnDiagramElementTool build() {
tool.handler = Objects.requireNonNull(this.handler);
tool.targetDescriptions = Objects.requireNonNull(this.targetDescriptions);
tool.appliesToDiagramRoot = this.appliesToDiagramRoot;
- tool.selectionDescriptionId = this.selectionDescriptionId;
+ tool.dialogDescriptionId = this.dialogDescriptionId;
return tool;
}
}
diff --git a/packages/diagrams/frontend/sirius-components-diagrams/src/dialog/DialogContext.tsx b/packages/diagrams/frontend/sirius-components-diagrams/src/dialog/DialogContext.tsx
new file mode 100644
index 00000000000..99f321335d5
--- /dev/null
+++ b/packages/diagrams/frontend/sirius-components-diagrams/src/dialog/DialogContext.tsx
@@ -0,0 +1,79 @@
+/*******************************************************************************
+ * Copyright (c) 2024 Obeo and others.
+ * 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
+ *******************************************************************************/
+
+import { useData } from '@eclipse-sirius/sirius-components-core';
+import React, { useState } from 'react';
+import { GQLToolVariable } from '../renderer/palette/Palette.types';
+import { DialogContextProviderState, DialogContextValue } from './DialogContext.types';
+import { diagramDialogContributionExtensionPoint } from './diagramDialogExtensionPoint';
+import { DiagramDialogContribution, DialogComponentProps } from './diagramDialogExtensionPoint.types';
+
+const defaultValue: DialogContextValue = {
+ showDialog: () => {},
+};
+
+export const DialogContext = React.createContext(defaultValue);
+
+export const DialogContextProvider = ({ children }) => {
+ const [state, setState] = useState({
+ dialogDescriptionId: undefined,
+ dialogKindId: undefined,
+ editingContextId: undefined,
+ targetObjectId: undefined,
+ onConfirm: () => {},
+ open: false,
+ });
+
+ const { data: dialogContributions } = useData(diagramDialogContributionExtensionPoint);
+ const showDialog = (
+ dialogKindId: string,
+ editingContextId: string,
+ dialogDescriptionId,
+ targetObjectId,
+ onConfirm: (variables: GQLToolVariable[]) => void
+ ) => {
+ setState({ open: true, dialogKindId, editingContextId, dialogDescriptionId, targetObjectId, onConfirm });
+ };
+
+ const onFinish = (toolVariables: GQLToolVariable[]) => {
+ state.onConfirm(toolVariables);
+ setState((prevState) => ({ ...prevState, open: false, dialogKindId: undefined }));
+ };
+
+ const onClose = () => {
+ setState((prevState) => ({ ...prevState, open: false, dialogKindId: undefined }));
+ };
+
+ let DialogComponent: React.ComponentType | undefined;
+ const dialogComponentProps: DialogComponentProps = {
+ dialogDescriptionId: state.dialogDescriptionId ?? '',
+ editingContextId: state.editingContextId ?? '',
+ targetObjectId: state.targetObjectId ?? '',
+ onFinish,
+ onClose,
+ };
+ if (state.open && state.dialogKindId) {
+ const dialogContribution: DiagramDialogContribution | undefined = dialogContributions.find((dialogContribution) =>
+ dialogContribution.canHandle(state.dialogKindId as string)
+ );
+ if (dialogContribution) {
+ DialogComponent = dialogContribution.component;
+ }
+ }
+ return (
+
+ {children}
+ {state.open && DialogComponent && }
+
+ );
+};
diff --git a/packages/diagrams/frontend/sirius-components-diagrams/src/dialog/DialogContext.types.ts b/packages/diagrams/frontend/sirius-components-diagrams/src/dialog/DialogContext.types.ts
new file mode 100644
index 00000000000..39dd0130f5b
--- /dev/null
+++ b/packages/diagrams/frontend/sirius-components-diagrams/src/dialog/DialogContext.types.ts
@@ -0,0 +1,33 @@
+/*******************************************************************************
+ * Copyright (c) 2024 Obeo and others.
+ * 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
+ *******************************************************************************/
+
+import { GQLToolVariable } from '../renderer/palette/Palette.types';
+
+export interface DialogContextValue {
+ showDialog: (
+ dialogKindId: string,
+ editingContextId: string,
+ dialogDescriptionId: string,
+ targetObjectId: string,
+ onConfirm: (variables: GQLToolVariable[]) => void
+ ) => void;
+}
+
+export interface DialogContextProviderState {
+ open: boolean;
+ dialogKindId: string | undefined;
+ editingContextId: string | undefined;
+ dialogDescriptionId: string | undefined;
+ targetObjectId: string | undefined;
+ onConfirm: (variables: GQLToolVariable[]) => void;
+}
diff --git a/packages/diagrams/frontend/sirius-components-diagrams/src/dialog/diagramDialogExtensionPoint.ts b/packages/diagrams/frontend/sirius-components-diagrams/src/dialog/diagramDialogExtensionPoint.ts
new file mode 100644
index 00000000000..39845b80d80
--- /dev/null
+++ b/packages/diagrams/frontend/sirius-components-diagrams/src/dialog/diagramDialogExtensionPoint.ts
@@ -0,0 +1,19 @@
+/*******************************************************************************
+ * Copyright (c) 2024 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
+ *******************************************************************************/
+import { DataExtensionPoint } from '@eclipse-sirius/sirius-components-core';
+import { DiagramDialogContribution } from './diagramDialogExtensionPoint.types';
+
+export const diagramDialogContributionExtensionPoint: DataExtensionPoint> = {
+ identifier: 'diagram#diagramDialogContribution',
+ fallback: [],
+};
diff --git a/packages/diagrams/frontend/sirius-components-diagrams/src/dialog/diagramDialogExtensionPoint.types.ts b/packages/diagrams/frontend/sirius-components-diagrams/src/dialog/diagramDialogExtensionPoint.types.ts
new file mode 100644
index 00000000000..64083f7f1e1
--- /dev/null
+++ b/packages/diagrams/frontend/sirius-components-diagrams/src/dialog/diagramDialogExtensionPoint.types.ts
@@ -0,0 +1,26 @@
+/*******************************************************************************
+ * Copyright (c) 2024 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
+ *******************************************************************************/
+
+import { GQLToolVariable } from '../renderer/palette/Palette.types';
+export interface DiagramDialogContribution {
+ canHandle: (dialogKindId: string) => boolean;
+ component: React.ComponentType;
+}
+
+export interface DialogComponentProps {
+ editingContextId: string;
+ dialogDescriptionId: string;
+ targetObjectId: string;
+ onClose: () => void;
+ onFinish: (variables: GQLToolVariable[]) => void;
+}
diff --git a/packages/diagrams/frontend/sirius-components-diagrams/src/dialog/useDialog.tsx b/packages/diagrams/frontend/sirius-components-diagrams/src/dialog/useDialog.tsx
new file mode 100644
index 00000000000..1d422c4bd6b
--- /dev/null
+++ b/packages/diagrams/frontend/sirius-components-diagrams/src/dialog/useDialog.tsx
@@ -0,0 +1,22 @@
+/*******************************************************************************
+ * Copyright (c) 2024 Obeo and others.
+ * 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
+ *******************************************************************************/
+
+import { useContext } from 'react';
+import { DialogContext } from './DialogContext';
+import { UseDialogValue } from './useDialog.types';
+
+export const useDialog = (): UseDialogValue => {
+ const { showDialog } = useContext(DialogContext);
+
+ return { showDialog };
+};
diff --git a/packages/diagrams/frontend/sirius-components-diagrams/src/dialog/useDialog.types.ts b/packages/diagrams/frontend/sirius-components-diagrams/src/dialog/useDialog.types.ts
new file mode 100644
index 00000000000..789f91a1539
--- /dev/null
+++ b/packages/diagrams/frontend/sirius-components-diagrams/src/dialog/useDialog.types.ts
@@ -0,0 +1,22 @@
+/*******************************************************************************
+ * Copyright (c) 2024 Obeo and others.
+ * 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
+ *******************************************************************************/
+import { GQLToolVariable } from '../renderer/palette/Palette.types';
+export interface UseDialogValue {
+ showDialog: (
+ dialogKindId: string,
+ editingContextID: string,
+ dialogDescriptionId: string,
+ targetObjectId: string,
+ onConfirm: (variables: GQLToolVariable[]) => void
+ ) => void;
+}
diff --git a/packages/diagrams/frontend/sirius-components-diagrams/src/index.ts b/packages/diagrams/frontend/sirius-components-diagrams/src/index.ts
index d653a02a194..0ec2eab0229 100644
--- a/packages/diagrams/frontend/sirius-components-diagrams/src/index.ts
+++ b/packages/diagrams/frontend/sirius-components-diagrams/src/index.ts
@@ -20,6 +20,8 @@ export { convertLineStyle, isListLayoutStrategy } from './converter/convertDiagr
export { AlignmentMap } from './converter/convertDiagram.types';
export { convertHandles } from './converter/convertHandles';
export { convertInsideLabel, convertLabelStyle, convertOutsideLabels } from './converter/convertLabel';
+export { diagramDialogContributionExtensionPoint } from './dialog/diagramDialogExtensionPoint';
+export type { DiagramDialogContribution, DialogComponentProps } from './dialog/diagramDialogExtensionPoint.types';
export type { GQLNodeDescription } from './graphql/query/nodeDescriptionFragment.types';
export type { GQLDiagram, GQLNodeLayoutData } from './graphql/subscription/diagramFragment.types';
export type { GQLEdge } from './graphql/subscription/edgeFragment.types';
@@ -52,6 +54,8 @@ export type { DiagramPaletteToolContextValue } from './renderer/palette/DiagramP
export { DiagramPaletteToolContext } from './renderer/palette/DiagramPaletteToolContext';
export { DiagramPaletteToolContribution } from './renderer/palette/DiagramPaletteToolContribution';
export type { DiagramPaletteToolContributionComponentProps } from './renderer/palette/DiagramPaletteToolContribution.types';
+export { GQLToolVariableType } from './renderer/palette/Palette.types';
+export type { GQLToolVariable } from './renderer/palette/Palette.types';
export type { DiagramPanelActionProps } from './renderer/panel/DiagramPanel.types';
export { diagramPanelActionExtensionPoint } from './renderer/panel/DiagramPanelExtensionPoints';
export { DiagramRepresentation } from './representation/DiagramRepresentation';
diff --git a/packages/diagrams/frontend/sirius-components-diagrams/src/renderer/DiagramRenderer.tsx b/packages/diagrams/frontend/sirius-components-diagrams/src/renderer/DiagramRenderer.tsx
index 9bebe9f0992..4108be57ce7 100644
--- a/packages/diagrams/frontend/sirius-components-diagrams/src/renderer/DiagramRenderer.tsx
+++ b/packages/diagrams/frontend/sirius-components-diagrams/src/renderer/DiagramRenderer.tsx
@@ -359,7 +359,10 @@ export const DiagramRenderer = memo(({ diagramRefreshedEventPayload }: DiagramRe
refElementId={groupPaletteRefElementId}
hidePalette={hideGroupPalette}
/>
-
+
{diagramDescription.debug ? : null}
{helperLinesEnabled ? : null}
diff --git a/packages/diagrams/frontend/sirius-components-diagrams/src/renderer/edge/MultiLabelEdge.tsx b/packages/diagrams/frontend/sirius-components-diagrams/src/renderer/edge/MultiLabelEdge.tsx
index 5b87e67d93b..d87bb94d635 100644
--- a/packages/diagrams/frontend/sirius-components-diagrams/src/renderer/edge/MultiLabelEdge.tsx
+++ b/packages/diagrams/frontend/sirius-components-diagrams/src/renderer/edge/MultiLabelEdge.tsx
@@ -79,7 +79,7 @@ export const MultiLabelEdge = memo(
sourceHandleId,
targetHandleId,
}: EdgeProps) => {
- const { beginLabel, endLabel, label, faded } = data || {};
+ const { beginLabel, endLabel, label, faded, targetObjectId } = data || {};
const theme = useTheme();
const { nodeLayoutHandlers } = useContext(NodeTypeContext);
@@ -169,7 +169,13 @@ export const MultiLabelEdge = memo(
markerEnd={selected ? `${markerEnd?.slice(0, markerEnd.length - 1)}--selected)` : markerEnd}
markerStart={selected ? `${markerStart?.slice(0, markerStart.length - 1)}--selected)` : markerStart}
/>
- {selected ? : null}
+ {selected ? (
+
+ ) : null}
{beginLabel && (
diff --git a/packages/diagrams/frontend/sirius-components-diagrams/src/renderer/node/FreeFormNode.tsx b/packages/diagrams/frontend/sirius-components-diagrams/src/renderer/node/FreeFormNode.tsx
index d30aa69d98b..e72a7b6f641 100644
--- a/packages/diagrams/frontend/sirius-components-diagrams/src/renderer/node/FreeFormNode.tsx
+++ b/packages/diagrams/frontend/sirius-components-diagrams/src/renderer/node/FreeFormNode.tsx
@@ -145,7 +145,13 @@ export const FreeFormNode = memo(({ data, id, selected, dragging }: NodeProps
{data.insideLabel && }
- {selected ? : null}
+ {selected ? (
+
+ ) : null}
{selected ? : null}
diff --git a/packages/diagrams/frontend/sirius-components-diagrams/src/renderer/node/IconLabelNode.tsx b/packages/diagrams/frontend/sirius-components-diagrams/src/renderer/node/IconLabelNode.tsx
index 020d1a1cc09..72d95c7b167 100644
--- a/packages/diagrams/frontend/sirius-components-diagrams/src/renderer/node/IconLabelNode.tsx
+++ b/packages/diagrams/frontend/sirius-components-diagrams/src/renderer/node/IconLabelNode.tsx
@@ -63,7 +63,13 @@ export const IconLabelNode = memo(({ data, id, selected, dragging }: NodeProps
{data.insideLabel ? : null}
- {selected ? : null}
+ {selected ? (
+
+ ) : null}
);
diff --git a/packages/diagrams/frontend/sirius-components-diagrams/src/renderer/node/ListNode.tsx b/packages/diagrams/frontend/sirius-components-diagrams/src/renderer/node/ListNode.tsx
index 7cf7be71830..c39c4a804ec 100644
--- a/packages/diagrams/frontend/sirius-components-diagrams/src/renderer/node/ListNode.tsx
+++ b/packages/diagrams/frontend/sirius-components-diagrams/src/renderer/node/ListNode.tsx
@@ -81,7 +81,11 @@ export const ListNode = memo(({ data, id, selected, dragging }: NodeProps
{data.insideLabel ? : null}
{selected ? (
-
+
) : null}
{selected ? : null}
diff --git a/packages/diagrams/frontend/sirius-components-diagrams/src/renderer/palette/DiagramElementPalette.tsx b/packages/diagrams/frontend/sirius-components-diagrams/src/renderer/palette/DiagramElementPalette.tsx
index 8dfdc6c234d..c81f79eb118 100644
--- a/packages/diagrams/frontend/sirius-components-diagrams/src/renderer/palette/DiagramElementPalette.tsx
+++ b/packages/diagrams/frontend/sirius-components-diagrams/src/renderer/palette/DiagramElementPalette.tsx
@@ -21,37 +21,39 @@ import { Palette } from './Palette';
import { PalettePortal } from './PalettePortal';
import { useDiagramElementPalette } from './useDiagramElementPalette';
-export const DiagramElementPalette = memo(({ diagramElementId, labelId }: DiagramElementPaletteProps) => {
- const { readOnly } = useContext(DiagramContext);
- const { isOpened, x, y, hideDiagramElementPalette } = useDiagramElementPalette();
- const { setCurrentlyEditedLabelId, currentlyEditedLabelId } = useDiagramDirectEdit();
-
- if (readOnly) {
- return null;
- }
-
- const handleDirectEditClick = () => {
- if (labelId) {
- setCurrentlyEditedLabelId('palette', labelId, null);
+export const DiagramElementPalette = memo(
+ ({ diagramElementId, labelId, targetObjectId }: DiagramElementPaletteProps) => {
+ const { readOnly } = useContext(DiagramContext);
+ const { isOpened, x, y, hideDiagramElementPalette } = useDiagramElementPalette();
+ const { setCurrentlyEditedLabelId, currentlyEditedLabelId } = useDiagramDirectEdit();
+ if (readOnly) {
+ return null;
}
- };
- const escapePressed = useKeyPress('Escape');
- useEffect(() => {
- if (escapePressed) {
- hideDiagramElementPalette();
- }
- }, [escapePressed, hideDiagramElementPalette]);
+ const handleDirectEditClick = () => {
+ if (labelId) {
+ setCurrentlyEditedLabelId('palette', labelId, null);
+ }
+ };
+
+ const escapePressed = useKeyPress('Escape');
+ useEffect(() => {
+ if (escapePressed) {
+ hideDiagramElementPalette();
+ }
+ }, [escapePressed, hideDiagramElementPalette]);
- return isOpened && x && y && !currentlyEditedLabelId ? (
-
-
-
- ) : null;
-});
+ return isOpened && x && y && !currentlyEditedLabelId ? (
+
+
+
+ ) : null;
+ }
+);
diff --git a/packages/diagrams/frontend/sirius-components-diagrams/src/renderer/palette/DiagramElementPalette.types.ts b/packages/diagrams/frontend/sirius-components-diagrams/src/renderer/palette/DiagramElementPalette.types.ts
index 7d8ef18774b..5460fc6a97a 100644
--- a/packages/diagrams/frontend/sirius-components-diagrams/src/renderer/palette/DiagramElementPalette.types.ts
+++ b/packages/diagrams/frontend/sirius-components-diagrams/src/renderer/palette/DiagramElementPalette.types.ts
@@ -13,5 +13,6 @@
export interface DiagramElementPaletteProps {
diagramElementId: string;
+ targetObjectId: string | undefined;
labelId: string | null;
}
diff --git a/packages/diagrams/frontend/sirius-components-diagrams/src/renderer/palette/DiagramPalette.tsx b/packages/diagrams/frontend/sirius-components-diagrams/src/renderer/palette/DiagramPalette.tsx
index e0258727c59..1f83e4178b4 100644
--- a/packages/diagrams/frontend/sirius-components-diagrams/src/renderer/palette/DiagramPalette.tsx
+++ b/packages/diagrams/frontend/sirius-components-diagrams/src/renderer/palette/DiagramPalette.tsx
@@ -20,7 +20,7 @@ import { Palette } from './Palette';
import { PalettePortal } from './PalettePortal';
import { useDiagramPalette } from './useDiagramPalette';
-export const DiagramPalette = memo(({ diagramElementId }: DiagramPaletteProps) => {
+export const DiagramPalette = memo(({ diagramElementId, diagramTargetObjectId }: DiagramPaletteProps) => {
const { readOnly } = useContext(DiagramContext);
const { isOpened, x, y, hideDiagramPalette } = useDiagramPalette();
if (readOnly) {
@@ -36,7 +36,13 @@ export const DiagramPalette = memo(({ diagramElementId }: DiagramPaletteProps) =
return isOpened && x && y ? (
- {}} />
+ {}}
+ />
) : null;
});
diff --git a/packages/diagrams/frontend/sirius-components-diagrams/src/renderer/palette/DiagramPalette.types.ts b/packages/diagrams/frontend/sirius-components-diagrams/src/renderer/palette/DiagramPalette.types.ts
index 541ddbcd878..fe7f997be8c 100644
--- a/packages/diagrams/frontend/sirius-components-diagrams/src/renderer/palette/DiagramPalette.types.ts
+++ b/packages/diagrams/frontend/sirius-components-diagrams/src/renderer/palette/DiagramPalette.types.ts
@@ -17,4 +17,5 @@ export type DiagramPaletteToolContextValue = React.ReactElement {
const [state, setState] = useState({ expandedToolSectionId: null });
@@ -225,6 +228,7 @@ export const Palette = ({
const { addErrorMessage, addMessages } = useMultiToast();
const { showDeletionConfirmation } = useDeletionConfirmationDialog();
+ const { showDialog } = useDialog();
const diagramPaletteToolComponents = useContext(DiagramPaletteToolContext)
.filter((contribution) => contribution.props.canHandle(diagramId, diagramElementId))
@@ -324,7 +328,7 @@ export const Palette = ({
>(invokeSingleClickOnDiagramElementToolMutation);
const invokeSingleClickTool = useCallback(
- async (tool: GQLTool) => {
+ async (tool: GQLTool, variables: GQLToolVariable[]) => {
if (isSingleClickOnDiagramElementTool(tool)) {
const { id: toolId } = tool;
const input: GQLInvokeSingleClickOnDiagramElementToolInput = {
@@ -335,7 +339,7 @@ export const Palette = ({
toolId,
startingPositionX: x,
startingPositionY: y,
- selectedObjectId: null,
+ variables,
};
const { data } = await invokeSingleClickOnDiagramElementTool({
@@ -412,6 +416,19 @@ export const Palette = ({
[editingContextId, diagramId, collapseExpandMutation]
);
+ const handleDialogDescription = (tool: GQLSingleClickOnDiagramElementTool, diagramElementTargetObjectId: string) => {
+ const onConfirm = (variables: GQLToolVariable[]) => {
+ invokeSingleClickTool(tool, variables);
+ };
+ showDialog(
+ 'SELECTION_DIALOG_ID',
+ editingContextId,
+ tool.dialogDescriptionId,
+ diagramElementTargetObjectId,
+ onConfirm
+ );
+ };
+
const handleToolClick = (tool: GQLTool) => {
switch (tool.id) {
case 'edit':
@@ -432,7 +449,13 @@ export const Palette = ({
collapseExpandElement(diagramElementId, GQLCollapsingState.COLLAPSED);
break;
default:
- invokeSingleClickTool(tool);
+ if (isSingleClickOnDiagramElementTool(tool)) {
+ if (tool.dialogDescriptionId && diagramElementTargetObjectId) {
+ handleDialogDescription(tool, diagramElementTargetObjectId);
+ } else {
+ invokeSingleClickTool(tool, []);
+ }
+ }
break;
}
};
diff --git a/packages/diagrams/frontend/sirius-components-diagrams/src/renderer/palette/Palette.types.ts b/packages/diagrams/frontend/sirius-components-diagrams/src/renderer/palette/Palette.types.ts
index a6ce455a33e..2bb665ebc1b 100644
--- a/packages/diagrams/frontend/sirius-components-diagrams/src/renderer/palette/Palette.types.ts
+++ b/packages/diagrams/frontend/sirius-components-diagrams/src/renderer/palette/Palette.types.ts
@@ -20,6 +20,7 @@ export interface PaletteProps {
x: number;
y: number;
diagramElementId: string;
+ diagramElementTargetObjectId: string | undefined;
onDirectEditClick: () => void;
hideableDiagramElement?: boolean;
}
@@ -73,7 +74,18 @@ export interface GQLInvokeSingleClickOnDiagramElementToolInput {
toolId: string;
startingPositionX: number;
startingPositionY: number;
- selectedObjectId: string | null;
+ variables: GQLToolVariable[];
+}
+export interface GQLToolVariable {
+ name: string;
+ value: string;
+ type: GQLToolVariableType;
+}
+
+export enum GQLToolVariableType {
+ string = 'STRING',
+ objectId = 'OBJECT_ID',
+ objectIdArray = 'OBJECT_ID_ARRAY',
}
export interface GQLTool {
@@ -85,7 +97,7 @@ export interface GQLTool {
export interface GQLSingleClickOnDiagramElementTool extends GQLTool {
appliesToDiagramRoot: boolean;
- selectionDescriptionId: string;
+ dialogDescriptionId: string;
}
export interface GQLGetToolSectionsVariables {
diff --git a/packages/diagrams/frontend/sirius-components-diagrams/src/representation/DiagramRepresentation.tsx b/packages/diagrams/frontend/sirius-components-diagrams/src/representation/DiagramRepresentation.tsx
index c1596aaaba8..417e38a75c1 100644
--- a/packages/diagrams/frontend/sirius-components-diagrams/src/representation/DiagramRepresentation.tsx
+++ b/packages/diagrams/frontend/sirius-components-diagrams/src/representation/DiagramRepresentation.tsx
@@ -17,6 +17,7 @@ import { useEffect, useState } from 'react';
import { ReactFlowProvider } from 'reactflow';
import { DiagramContext } from '../contexts/DiagramContext';
import { DiagramDescriptionContext } from '../contexts/DiagramDescriptionContext';
+import { DialogContextProvider } from '../dialog/DialogContext';
import { diagramEventSubscription } from '../graphql/subscription/diagramEventSubscription';
import {
GQLDiagramEventPayload,
@@ -182,10 +183,12 @@ export const DiagramRepresentation = ({
data-representation-label={state.diagramRefreshedEventPayload.diagram.metadata.label}>
-
+
+
+
diff --git a/packages/selection/frontend/sirius-components-selection/package.json b/packages/selection/frontend/sirius-components-selection/package.json
index eede624b25a..cf6dbb868a7 100644
--- a/packages/selection/frontend/sirius-components-selection/package.json
+++ b/packages/selection/frontend/sirius-components-selection/package.json
@@ -32,6 +32,7 @@
"peerDependencies": {
"@apollo/client": "3.10.4",
"@eclipse-sirius/sirius-components-core": "*",
+ "@eclipse-sirius/sirius-components-diagrams": "*",
"@material-ui/core": "4.12.4",
"@material-ui/icons": "4.11.3",
"@xstate/react": "1.6.3",
@@ -42,6 +43,7 @@
"devDependencies": {
"@apollo/client": "3.10.4",
"@eclipse-sirius/sirius-components-core": "*",
+ "@eclipse-sirius/sirius-components-diagrams": "*",
"@eclipse-sirius/sirius-components-tsconfig": "*",
"@material-ui/core": "4.12.4",
"@material-ui/icons": "4.11.3",
diff --git a/packages/selection/frontend/sirius-components-selection/src/SelectionDialog.tsx b/packages/selection/frontend/sirius-components-selection/src/SelectionDialog.tsx
index 13541f758e4..9965a4da815 100644
--- a/packages/selection/frontend/sirius-components-selection/src/SelectionDialog.tsx
+++ b/packages/selection/frontend/sirius-components-selection/src/SelectionDialog.tsx
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2021, 2023 Obeo.
+ * Copyright (c) 2021, 2024 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
@@ -12,6 +12,7 @@
*******************************************************************************/
import { gql, useSubscription } from '@apollo/client';
import { IconOverlay, Toast } from '@eclipse-sirius/sirius-components-core';
+import { DialogComponentProps, GQLToolVariableType } from '@eclipse-sirius/sirius-components-diagrams';
import Button from '@material-ui/core/Button';
import Dialog from '@material-ui/core/Dialog';
import DialogActions from '@material-ui/core/DialogActions';
@@ -26,7 +27,6 @@ import { createStyles, makeStyles } from '@material-ui/core/styles';
import CropDinIcon from '@material-ui/icons/CropDin';
import { useMachine } from '@xstate/react';
import { useEffect } from 'react';
-import { SelectionDialogProps } from './SelectionDialog.types';
import {
HandleCompleteEvent,
HandleSelectionUpdatedEvent,
@@ -35,8 +35,8 @@ import {
SchemaValue,
SelectionDialogContext,
SelectionDialogEvent,
- selectionDialogMachine,
ShowToastEvent,
+ selectionDialogMachine,
} from './SelectionDialogMachine';
import { GQLSelectionEventSubscription } from './SelectionEvent.types';
@@ -71,13 +71,15 @@ const useSelectionObjectModalStyles = makeStyles((_theme) =>
})
);
+export const SELECTION_DIALOG_ID: string = 'SELECTION_DIALOG_ID';
+
export const SelectionDialog = ({
editingContextId,
- selectionRepresentationId,
+ dialogDescriptionId,
targetObjectId,
onClose,
onFinish,
-}: SelectionDialogProps) => {
+}: DialogComponentProps) => {
const classes = useSelectionObjectModalStyles();
const [{ value, context }, dispatch] = useMachine(
@@ -92,7 +94,7 @@ export const SelectionDialog = ({
input: {
id,
editingContextId,
- selectionId: selectionRepresentationId,
+ selectionId: dialogDescriptionId,
targetObjectId: targetObjectId,
},
},
@@ -174,7 +176,7 @@ export const SelectionDialog = ({
color="primary"
onClick={() => {
if (selectedObjectId) {
- onFinish(selectedObjectId);
+ onFinish([{ name: 'selectedObject', value: selectedObjectId, type: GQLToolVariableType.objectId }]);
}
}}>
Finish
diff --git a/packages/sirius-web/backend/sirius-web-sample-application/src/test/java/org/eclipse/sirius/web/sample/tests/integration/view/ViewDiagramIntegrationTests.java b/packages/sirius-web/backend/sirius-web-sample-application/src/test/java/org/eclipse/sirius/web/sample/tests/integration/view/ViewDiagramIntegrationTests.java
index 952dd9da04a..df465bdbec3 100644
--- a/packages/sirius-web/backend/sirius-web-sample-application/src/test/java/org/eclipse/sirius/web/sample/tests/integration/view/ViewDiagramIntegrationTests.java
+++ b/packages/sirius-web/backend/sirius-web-sample-application/src/test/java/org/eclipse/sirius/web/sample/tests/integration/view/ViewDiagramIntegrationTests.java
@@ -21,6 +21,7 @@
import com.jayway.jsonpath.JsonPath;
import java.time.Duration;
+import java.util.List;
import java.util.Map;
import java.util.UUID;
import java.util.function.Predicate;
@@ -412,7 +413,7 @@ mutation invokeSingleClickOnDiagramElementTool($input: InvokeSingleClickOnDiagra
toolId,
0d,
0d,
- null
+ List.of()
);
var invokeToolExecutionInput = ExecutionInput.newExecutionInput()
diff --git a/packages/sirius-web/backend/sirius-web-sample-application/src/test/java/org/eclipse/sirius/web/sample/tests/integration/view/ViewInitialDirectEditElementLabelProviderIntegrationTests.java b/packages/sirius-web/backend/sirius-web-sample-application/src/test/java/org/eclipse/sirius/web/sample/tests/integration/view/ViewInitialDirectEditElementLabelProviderIntegrationTests.java
index daae39b646c..5aa771d9ae7 100644
--- a/packages/sirius-web/backend/sirius-web-sample-application/src/test/java/org/eclipse/sirius/web/sample/tests/integration/view/ViewInitialDirectEditElementLabelProviderIntegrationTests.java
+++ b/packages/sirius-web/backend/sirius-web-sample-application/src/test/java/org/eclipse/sirius/web/sample/tests/integration/view/ViewInitialDirectEditElementLabelProviderIntegrationTests.java
@@ -21,6 +21,7 @@
import com.jayway.jsonpath.JsonPath;
import java.time.Duration;
+import java.util.List;
import java.util.Map;
import java.util.UUID;
import java.util.function.Predicate;
@@ -416,7 +417,7 @@ mutation invokeSingleClickOnDiagramElementTool($input: InvokeSingleClickOnDiagra
toolId,
0d,
0d,
- null
+ List.of()
);
var invokeToolExecutionInput = ExecutionInput.newExecutionInput()
diff --git a/packages/sirius-web/backend/sirius-web/src/test/java/org/eclipse/sirius/web/application/controllers/diagrams/ExpandCollapseDiagramControllerTests.java b/packages/sirius-web/backend/sirius-web/src/test/java/org/eclipse/sirius/web/application/controllers/diagrams/ExpandCollapseDiagramControllerTests.java
index c9b952314f0..b7c5e901252 100644
--- a/packages/sirius-web/backend/sirius-web/src/test/java/org/eclipse/sirius/web/application/controllers/diagrams/ExpandCollapseDiagramControllerTests.java
+++ b/packages/sirius-web/backend/sirius-web/src/test/java/org/eclipse/sirius/web/application/controllers/diagrams/ExpandCollapseDiagramControllerTests.java
@@ -19,6 +19,7 @@
import com.jayway.jsonpath.JsonPath;
import java.time.Duration;
+import java.util.List;
import java.util.Optional;
import java.util.UUID;
import java.util.concurrent.atomic.AtomicReference;
@@ -136,7 +137,7 @@ public void givenDiagramWithCollapsedNodesByDefaultWhenToolExpandingNodesIsInvok
Runnable expandNodes = () -> {
String expandToolId = this.expandCollapseDiagramDescriptionProvider.getExpandNodeToolId();
- var input = new InvokeSingleClickOnDiagramElementToolInput(UUID.randomUUID(), PapayaIdentifiers.PAPAYA_PROJECT.toString(), diagramId.get(), collapsedNodeId.get(), expandToolId, 0, 0, null);
+ var input = new InvokeSingleClickOnDiagramElementToolInput(UUID.randomUUID(), PapayaIdentifiers.PAPAYA_PROJECT.toString(), diagramId.get(), collapsedNodeId.get(), expandToolId, 0, 0, List.of());
var result = this.invokeSingleClickOnDiagramElementToolMutationRunner.run(input);
String typename = JsonPath.read(result, "$.data.invokeSingleClickOnDiagramElementTool.__typename");
@@ -182,7 +183,7 @@ public void givenDiagramWithCollapsedNodesByDefaultWhenToolCollapsingNodesIsInvo
Runnable collapseNodes = () -> {
String collapseToolId = this.expandCollapseDiagramDescriptionProvider.getCollapseNodeToolId();
- var input = new InvokeSingleClickOnDiagramElementToolInput(UUID.randomUUID(), PapayaIdentifiers.PAPAYA_PROJECT.toString(), diagramId.get(), expandedNodeId.get(), collapseToolId, 0, 0, null);
+ var input = new InvokeSingleClickOnDiagramElementToolInput(UUID.randomUUID(), PapayaIdentifiers.PAPAYA_PROJECT.toString(), diagramId.get(), expandedNodeId.get(), collapseToolId, 0, 0, List.of());
var invokeSingleClickOnDiagramElementToolResult = this.invokeSingleClickOnDiagramElementToolMutationRunner.run(input);
String invokeSingleClickOnDiagramElementToolResultTypename = JsonPath.read(invokeSingleClickOnDiagramElementToolResult, "$.data.invokeSingleClickOnDiagramElementTool.__typename");
diff --git a/packages/sirius-web/backend/sirius-web/src/test/java/org/eclipse/sirius/web/application/controllers/diagrams/ModelOperationDiagramControllerTests.java b/packages/sirius-web/backend/sirius-web/src/test/java/org/eclipse/sirius/web/application/controllers/diagrams/ModelOperationDiagramControllerTests.java
index 0104fb603e1..6b59c861631 100644
--- a/packages/sirius-web/backend/sirius-web/src/test/java/org/eclipse/sirius/web/application/controllers/diagrams/ModelOperationDiagramControllerTests.java
+++ b/packages/sirius-web/backend/sirius-web/src/test/java/org/eclipse/sirius/web/application/controllers/diagrams/ModelOperationDiagramControllerTests.java
@@ -18,6 +18,7 @@
import com.jayway.jsonpath.JsonPath;
import java.time.Duration;
+import java.util.List;
import java.util.Optional;
import java.util.UUID;
import java.util.concurrent.atomic.AtomicReference;
@@ -107,7 +108,7 @@ public void givenDiagramWhenToolWithComplexModelOperationsIsExecutedThenItWorksA
Runnable createNode = () -> {
var createNodeToolId = this.modelOperationDiagramDescriptionProvider.getCreateNodeToolId();
- var input = new InvokeSingleClickOnDiagramElementToolInput(UUID.randomUUID(), PapayaIdentifiers.PAPAYA_PROJECT.toString(), diagramId.get(), diagramId.get(), createNodeToolId, 0, 0, null);
+ var input = new InvokeSingleClickOnDiagramElementToolInput(UUID.randomUUID(), PapayaIdentifiers.PAPAYA_PROJECT.toString(), diagramId.get(), diagramId.get(), createNodeToolId, 0, 0, List.of());
var result = this.invokeSingleClickOnDiagramElementToolMutationRunner.run(input);
String typename = JsonPath.read(result, "$.data.invokeSingleClickOnDiagramElementTool.__typename");
diff --git a/packages/sirius-web/backend/sirius-web/src/test/java/org/eclipse/sirius/web/application/controllers/diagrams/UnsynchronizedDiagramControllerTests.java b/packages/sirius-web/backend/sirius-web/src/test/java/org/eclipse/sirius/web/application/controllers/diagrams/UnsynchronizedDiagramControllerTests.java
index 2036e072390..b36e97bf1dd 100644
--- a/packages/sirius-web/backend/sirius-web/src/test/java/org/eclipse/sirius/web/application/controllers/diagrams/UnsynchronizedDiagramControllerTests.java
+++ b/packages/sirius-web/backend/sirius-web/src/test/java/org/eclipse/sirius/web/application/controllers/diagrams/UnsynchronizedDiagramControllerTests.java
@@ -132,7 +132,7 @@ public void givenUnsynchronousDiagramWhenNodeIsCreatedThenItAppearsInTheDiagram(
Runnable createNode = () -> {
var createNodeToolId = this.unsynchronizedDiagramDescriptionProvider.getCreateNodeToolId();
- var input = new InvokeSingleClickOnDiagramElementToolInput(UUID.randomUUID(), PapayaIdentifiers.PAPAYA_PROJECT.toString(), diagramId.get(), diagramId.get(), createNodeToolId, 0, 0, null);
+ var input = new InvokeSingleClickOnDiagramElementToolInput(UUID.randomUUID(), PapayaIdentifiers.PAPAYA_PROJECT.toString(), diagramId.get(), diagramId.get(), createNodeToolId, 0, 0, List.of());
var result = this.invokeSingleClickOnDiagramElementToolMutationRunner.run(input);
String typename = JsonPath.read(result, "$.data.invokeSingleClickOnDiagramElementTool.__typename");
diff --git a/packages/sirius-web/backend/sirius-web/src/test/java/org/eclipse/sirius/web/application/controllers/diagrams/VisibilityDiagramControllerTests.java b/packages/sirius-web/backend/sirius-web/src/test/java/org/eclipse/sirius/web/application/controllers/diagrams/VisibilityDiagramControllerTests.java
index f2ac701b1ca..008304ef17c 100644
--- a/packages/sirius-web/backend/sirius-web/src/test/java/org/eclipse/sirius/web/application/controllers/diagrams/VisibilityDiagramControllerTests.java
+++ b/packages/sirius-web/backend/sirius-web/src/test/java/org/eclipse/sirius/web/application/controllers/diagrams/VisibilityDiagramControllerTests.java
@@ -148,7 +148,7 @@ public void givenDiagramWithHiddenNodesByDefaultWhenToolRevealingNodesIsInvokedT
Runnable revealNodes = () -> {
String revealNodeToolId = this.visibilityDiagramDescriptionProvider.getRevealNodeToolId();
- var input = new InvokeSingleClickOnDiagramElementToolInput(UUID.randomUUID(), PapayaIdentifiers.PAPAYA_PROJECT.toString(), diagramId.get(), hiddenNodeId.get(), revealNodeToolId, 0, 0, null);
+ var input = new InvokeSingleClickOnDiagramElementToolInput(UUID.randomUUID(), PapayaIdentifiers.PAPAYA_PROJECT.toString(), diagramId.get(), hiddenNodeId.get(), revealNodeToolId, 0, 0, List.of());
var result = this.invokeSingleClickOnDiagramElementToolMutationRunner.run(input);
String typename = JsonPath.read(result, "$.data.invokeSingleClickOnDiagramElementTool.__typename");
@@ -194,7 +194,7 @@ public void givenDiagramWithHiddenNodesByDefaultWhenToolHiddingNodesIsInvokedThe
Runnable hideNodes = () -> {
String hideNodeToolId = this.visibilityDiagramDescriptionProvider.getHideNodeToolId();
- var input = new InvokeSingleClickOnDiagramElementToolInput(UUID.randomUUID(), PapayaIdentifiers.PAPAYA_PROJECT.toString(), diagramId.get(), revealedNodeId.get(), hideNodeToolId, 0, 0, null);
+ var input = new InvokeSingleClickOnDiagramElementToolInput(UUID.randomUUID(), PapayaIdentifiers.PAPAYA_PROJECT.toString(), diagramId.get(), revealedNodeId.get(), hideNodeToolId, 0, 0, List.of());
var invokeSingleClickOnDiagramElementToolResult = this.invokeSingleClickOnDiagramElementToolMutationRunner.run(input);
String invokeSingleClickOnDiagramElementToolResultTypename = JsonPath.read(invokeSingleClickOnDiagramElementToolResult, "$.data.invokeSingleClickOnDiagramElementTool.__typename");
@@ -244,7 +244,7 @@ public void givenDiagramWithFadedNodesByDefaultWhenToolFadingNodesIsInvokedThenN
Runnable fadeNodes = () -> {
String fadeNodeToolId = this.visibilityDiagramDescriptionProvider.getFadeNodeToolId();
- var input = new InvokeSingleClickOnDiagramElementToolInput(UUID.randomUUID(), PapayaIdentifiers.PAPAYA_PROJECT.toString(), diagramId.get(), unfadedNodeId.get(), fadeNodeToolId, 0, 0, null);
+ var input = new InvokeSingleClickOnDiagramElementToolInput(UUID.randomUUID(), PapayaIdentifiers.PAPAYA_PROJECT.toString(), diagramId.get(), unfadedNodeId.get(), fadeNodeToolId, 0, 0, List.of());
var invokeSingleClickOnDiagramElementToolResult = this.invokeSingleClickOnDiagramElementToolMutationRunner.run(input);
String invokeSingleClickOnDiagramElementToolResultTypename = JsonPath.read(invokeSingleClickOnDiagramElementToolResult, "$.data.invokeSingleClickOnDiagramElementTool.__typename");
@@ -292,7 +292,7 @@ public void givenDiagramWithFadedNodesByDefaultWhenToolUnFadingNodesIsInvokedThe
Runnable unfadeNodes = () -> {
String unfadeNodeToolId = this.visibilityDiagramDescriptionProvider.getUnfadeNodeToolId();
- var input = new InvokeSingleClickOnDiagramElementToolInput(UUID.randomUUID(), PapayaIdentifiers.PAPAYA_PROJECT.toString(), diagramId.get(), fadedNodeId.get(), unfadeNodeToolId, 0, 0, null);
+ var input = new InvokeSingleClickOnDiagramElementToolInput(UUID.randomUUID(), PapayaIdentifiers.PAPAYA_PROJECT.toString(), diagramId.get(), fadedNodeId.get(), unfadeNodeToolId, 0, 0, List.of());
var result = this.invokeSingleClickOnDiagramElementToolMutationRunner.run(input);
String typename = JsonPath.read(result, "$.data.invokeSingleClickOnDiagramElementTool.__typename");
@@ -337,7 +337,7 @@ public void givenDiagramWithFadedAndHiddenNodesWhenToolResettingVisibilityModifi
Runnable fadeNode = () -> {
String fadeNodeToolId = this.visibilityDiagramDescriptionProvider.getFadeNodeToolId();
- var input = new InvokeSingleClickOnDiagramElementToolInput(UUID.randomUUID(), PapayaIdentifiers.PAPAYA_PROJECT.toString(), diagramId.get(), nodeToFadeId.get(), fadeNodeToolId, 0, 0, null);
+ var input = new InvokeSingleClickOnDiagramElementToolInput(UUID.randomUUID(), PapayaIdentifiers.PAPAYA_PROJECT.toString(), diagramId.get(), nodeToFadeId.get(), fadeNodeToolId, 0, 0, List.of());
var result = this.invokeSingleClickOnDiagramElementToolMutationRunner.run(input);
String typename = JsonPath.read(result, "$.data.invokeSingleClickOnDiagramElementTool.__typename");
@@ -346,7 +346,7 @@ public void givenDiagramWithFadedAndHiddenNodesWhenToolResettingVisibilityModifi
Runnable hideNode = () -> {
String hideNodeToolId = this.visibilityDiagramDescriptionProvider.getHideNodeToolId();
- var input = new InvokeSingleClickOnDiagramElementToolInput(UUID.randomUUID(), PapayaIdentifiers.PAPAYA_PROJECT.toString(), diagramId.get(), nodeToHideId.get(), hideNodeToolId, 0, 0, null);
+ var input = new InvokeSingleClickOnDiagramElementToolInput(UUID.randomUUID(), PapayaIdentifiers.PAPAYA_PROJECT.toString(), diagramId.get(), nodeToHideId.get(), hideNodeToolId, 0, 0, List.of());
var result = this.invokeSingleClickOnDiagramElementToolMutationRunner.run(input);
String typename = JsonPath.read(result, "$.data.invokeSingleClickOnDiagramElementTool.__typename");
@@ -355,7 +355,7 @@ public void givenDiagramWithFadedAndHiddenNodesWhenToolResettingVisibilityModifi
Runnable resetFadedNodeVisibility = () -> {
String resetNodeToolId = this.visibilityDiagramDescriptionProvider.getResetNodeToolId();
- var input = new InvokeSingleClickOnDiagramElementToolInput(UUID.randomUUID(), PapayaIdentifiers.PAPAYA_PROJECT.toString(), diagramId.get(), nodeToFadeId.get(), resetNodeToolId, 0, 0, null);
+ var input = new InvokeSingleClickOnDiagramElementToolInput(UUID.randomUUID(), PapayaIdentifiers.PAPAYA_PROJECT.toString(), diagramId.get(), nodeToFadeId.get(), resetNodeToolId, 0, 0, List.of());
var result = this.invokeSingleClickOnDiagramElementToolMutationRunner.run(input);
String typename = JsonPath.read(result, "$.data.invokeSingleClickOnDiagramElementTool.__typename");
@@ -365,7 +365,7 @@ public void givenDiagramWithFadedAndHiddenNodesWhenToolResettingVisibilityModifi
Runnable resetHiddenNodeVisibility = () -> {
String resetNodeToolId = this.visibilityDiagramDescriptionProvider.getResetNodeToolId();
- var input = new InvokeSingleClickOnDiagramElementToolInput(UUID.randomUUID(), PapayaIdentifiers.PAPAYA_PROJECT.toString(), diagramId.get(), nodeToHideId.get(), resetNodeToolId, 0, 0, null);
+ var input = new InvokeSingleClickOnDiagramElementToolInput(UUID.randomUUID(), PapayaIdentifiers.PAPAYA_PROJECT.toString(), diagramId.get(), nodeToHideId.get(), resetNodeToolId, 0, 0, List.of());
var result = this.invokeSingleClickOnDiagramElementToolMutationRunner.run(input);
String typename = JsonPath.read(result, "$.data.invokeSingleClickOnDiagramElementTool.__typename");
diff --git a/packages/sirius-web/frontend/sirius-web-application/src/extension/DefaultExtensionRegistry.tsx b/packages/sirius-web/frontend/sirius-web-application/src/extension/DefaultExtensionRegistry.tsx
index fa55a694b4d..a52dda2a3c2 100644
--- a/packages/sirius-web/frontend/sirius-web-application/src/extension/DefaultExtensionRegistry.tsx
+++ b/packages/sirius-web/frontend/sirius-web-application/src/extension/DefaultExtensionRegistry.tsx
@@ -20,7 +20,12 @@ import {
workbenchViewContributionExtensionPoint,
} from '@eclipse-sirius/sirius-components-core';
import { DeckRepresentation } from '@eclipse-sirius/sirius-components-deck';
-import { DiagramRepresentation, diagramPanelActionExtensionPoint } from '@eclipse-sirius/sirius-components-diagrams';
+import {
+ DiagramDialogContribution,
+ DiagramRepresentation,
+ diagramDialogContributionExtensionPoint,
+ diagramPanelActionExtensionPoint,
+} from '@eclipse-sirius/sirius-components-diagrams';
import { FormDescriptionEditorRepresentation } from '@eclipse-sirius/sirius-components-formdescriptioneditors';
import {
DetailsView,
@@ -44,6 +49,7 @@ import { NewProjectCard } from '../views/project-browser/create-projects-area/Ne
import { ShowAllProjectTemplatesCard } from '../views/project-browser/create-projects-area/ShowAllProjectTemplatesCard';
import { UploadProjectCard } from '../views/project-browser/create-projects-area/UploadProjectCard';
+import { SELECTION_DIALOG_ID, SelectionDialog } from '@eclipse-sirius/sirius-components-selection';
const getType = (representation: RepresentationMetadata): string | null => {
const query = representation.kind.substring(representation.kind.indexOf('?') + 1, representation.kind.length);
const params = new URLSearchParams(query);
@@ -166,4 +172,25 @@ defaultExtensionRegistry.addComponent(diagramPanelActionExtensionPoint, {
Component: DiagramFilter,
});
+/*******************************************************************************
+ *
+ * Diagram dialog
+ *
+ * Used to register new components in the diagram dialog
+ *
+ *******************************************************************************/
+const diagramDialogContributions: DiagramDialogContribution[] = [
+ {
+ canHandle: (dialogKindId: string) => {
+ return SELECTION_DIALOG_ID === dialogKindId;
+ },
+ component: SelectionDialog,
+ },
+];
+
+defaultExtensionRegistry.putData(diagramDialogContributionExtensionPoint, {
+ identifier: `siriusweb_${diagramDialogContributionExtensionPoint.identifier}`,
+ data: diagramDialogContributions,
+});
+
export { defaultExtensionRegistry };
diff --git a/packages/sirius-web/frontend/sirius-web/src/nodes/EllipseNode.tsx b/packages/sirius-web/frontend/sirius-web/src/nodes/EllipseNode.tsx
index e733a21ba14..3f534b477e9 100644
--- a/packages/sirius-web/frontend/sirius-web/src/nodes/EllipseNode.tsx
+++ b/packages/sirius-web/frontend/sirius-web/src/nodes/EllipseNode.tsx
@@ -104,7 +104,11 @@ export const EllipseNode = memo(({ data, id, selected, dragging }: NodeProps
{data.insideLabel ? : null}
{selected ? (
-
+
) : null}
{selected ? : null}
diff --git a/packages/view/backend/sirius-components-view-builder/src/main/java/org/eclipse/sirius/components/view/builder/generated/DiagramBuilders.java b/packages/view/backend/sirius-components-view-builder/src/main/java/org/eclipse/sirius/components/view/builder/generated/DiagramBuilders.java
index eec100cc5c6..0e23e028330 100644
--- a/packages/view/backend/sirius-components-view-builder/src/main/java/org/eclipse/sirius/components/view/builder/generated/DiagramBuilders.java
+++ b/packages/view/backend/sirius-components-view-builder/src/main/java/org/eclipse/sirius/components/view/builder/generated/DiagramBuilders.java
@@ -311,13 +311,13 @@ public DeleteViewBuilder newDeleteView() {
}
/**
- * Instantiate a SelectionDescriptionBuilder .
+ * Instantiate a SelectionDialogDescriptionBuilder .
*
* @author BuilderGenerator
* @generated
*/
- public SelectionDescriptionBuilder newSelectionDescription() {
- return new SelectionDescriptionBuilder();
+ public SelectionDialogDescriptionBuilder newSelectionDialogDescription() {
+ return new SelectionDialogDescriptionBuilder();
}
/**
diff --git a/packages/view/backend/sirius-components-view-builder/src/main/java/org/eclipse/sirius/components/view/builder/generated/DialogDescriptionBuilder.java b/packages/view/backend/sirius-components-view-builder/src/main/java/org/eclipse/sirius/components/view/builder/generated/DialogDescriptionBuilder.java
new file mode 100644
index 00000000000..e42ef60833d
--- /dev/null
+++ b/packages/view/backend/sirius-components-view-builder/src/main/java/org/eclipse/sirius/components/view/builder/generated/DialogDescriptionBuilder.java
@@ -0,0 +1,31 @@
+/*******************************************************************************
+ * Copyright (c) 2023, 2024 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.builder.generated;
+
+/**
+ * Builder for org.eclipse.sirius.components.view.diagram.DialogDescription.
+ *
+ * @author BuilderGenerator
+ * @generated
+ */
+public abstract class DialogDescriptionBuilder {
+
+ /**
+ * Builder for org.eclipse.sirius.components.view.diagram.DialogDescription.
+ * @generated
+ */
+ protected abstract org.eclipse.sirius.components.view.diagram.DialogDescription getDialogDescription();
+
+
+}
+
diff --git a/packages/view/backend/sirius-components-view-builder/src/main/java/org/eclipse/sirius/components/view/builder/generated/NodeToolBuilder.java b/packages/view/backend/sirius-components-view-builder/src/main/java/org/eclipse/sirius/components/view/builder/generated/NodeToolBuilder.java
index 6aaafa25409..466a7e13096 100644
--- a/packages/view/backend/sirius-components-view-builder/src/main/java/org/eclipse/sirius/components/view/builder/generated/NodeToolBuilder.java
+++ b/packages/view/backend/sirius-components-view-builder/src/main/java/org/eclipse/sirius/components/view/builder/generated/NodeToolBuilder.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2023 Obeo.
+ * Copyright (c) 2023, 2024 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
@@ -74,12 +74,12 @@ public NodeToolBuilder body(org.eclipse.sirius.components.view.Operation ... val
}
/**
- * Setter for SelectionDescription.
+ * Setter for DialogDescription.
*
* @generated
*/
- public NodeToolBuilder selectionDescription(org.eclipse.sirius.components.view.diagram.SelectionDescription value) {
- this.getNodeTool().setSelectionDescription(value);
+ public NodeToolBuilder dialogDescription(org.eclipse.sirius.components.view.diagram.DialogDescription value) {
+ this.getNodeTool().setDialogDescription(value);
return this;
}
diff --git a/packages/view/backend/sirius-components-view-builder/src/main/java/org/eclipse/sirius/components/view/builder/generated/SelectionDescriptionBuilder.java b/packages/view/backend/sirius-components-view-builder/src/main/java/org/eclipse/sirius/components/view/builder/generated/SelectionDialogDescriptionBuilder.java
similarity index 59%
rename from packages/view/backend/sirius-components-view-builder/src/main/java/org/eclipse/sirius/components/view/builder/generated/SelectionDescriptionBuilder.java
rename to packages/view/backend/sirius-components-view-builder/src/main/java/org/eclipse/sirius/components/view/builder/generated/SelectionDialogDescriptionBuilder.java
index c38870ee386..35de1b11d04 100644
--- a/packages/view/backend/sirius-components-view-builder/src/main/java/org/eclipse/sirius/components/view/builder/generated/SelectionDescriptionBuilder.java
+++ b/packages/view/backend/sirius-components-view-builder/src/main/java/org/eclipse/sirius/components/view/builder/generated/SelectionDialogDescriptionBuilder.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2023 Obeo.
+ * Copyright (c) 2023, 2024 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
@@ -13,33 +13,33 @@
package org.eclipse.sirius.components.view.builder.generated;
/**
- * Builder for SelectionDescriptionBuilder.
+ * Builder for SelectionDialogDescriptionBuilder.
*
* @author BuilderGenerator
* @generated
*/
-public class SelectionDescriptionBuilder {
+public class SelectionDialogDescriptionBuilder {
/**
- * Create instance org.eclipse.sirius.components.view.diagram.SelectionDescription.
+ * Create instance org.eclipse.sirius.components.view.diagram.SelectionDialogDescription.
* @generated
*/
- private org.eclipse.sirius.components.view.diagram.SelectionDescription selectionDescription = org.eclipse.sirius.components.view.diagram.DiagramFactory.eINSTANCE.createSelectionDescription();
+ private org.eclipse.sirius.components.view.diagram.SelectionDialogDescription selectionDialogDescription = org.eclipse.sirius.components.view.diagram.DiagramFactory.eINSTANCE.createSelectionDialogDescription();
/**
- * Return instance org.eclipse.sirius.components.view.diagram.SelectionDescription.
+ * Return instance org.eclipse.sirius.components.view.diagram.SelectionDialogDescription.
* @generated
*/
- protected org.eclipse.sirius.components.view.diagram.SelectionDescription getSelectionDescription() {
- return this.selectionDescription;
+ protected org.eclipse.sirius.components.view.diagram.SelectionDialogDescription getSelectionDialogDescription() {
+ return this.selectionDialogDescription;
}
/**
- * Return instance org.eclipse.sirius.components.view.diagram.SelectionDescription.
+ * Return instance org.eclipse.sirius.components.view.diagram.SelectionDialogDescription.
* @generated
*/
- public org.eclipse.sirius.components.view.diagram.SelectionDescription build() {
- return this.getSelectionDescription();
+ public org.eclipse.sirius.components.view.diagram.SelectionDialogDescription build() {
+ return this.getSelectionDialogDescription();
}
/**
@@ -47,8 +47,8 @@ public org.eclipse.sirius.components.view.diagram.SelectionDescription build() {
*
* @generated
*/
- public SelectionDescriptionBuilder selectionCandidatesExpression(java.lang.String value) {
- this.getSelectionDescription().setSelectionCandidatesExpression(value);
+ public SelectionDialogDescriptionBuilder selectionCandidatesExpression(java.lang.String value) {
+ this.getSelectionDialogDescription().setSelectionCandidatesExpression(value);
return this;
}
/**
@@ -56,8 +56,8 @@ public SelectionDescriptionBuilder selectionCandidatesExpression(java.lang.Strin
*
* @generated
*/
- public SelectionDescriptionBuilder selectionMessage(java.lang.String value) {
- this.getSelectionDescription().setSelectionMessage(value);
+ public SelectionDialogDescriptionBuilder selectionMessage(java.lang.String value) {
+ this.getSelectionDialogDescription().setSelectionMessage(value);
return this;
}
diff --git a/packages/view/backend/sirius-components-view-diagram-edit/src/main/java/org/eclipse/sirius/components/view/diagram/provider/DiagramItemProviderAdapterFactory.java b/packages/view/backend/sirius-components-view-diagram-edit/src/main/java/org/eclipse/sirius/components/view/diagram/provider/DiagramItemProviderAdapterFactory.java
index fbb82d38a9c..ecd5b030ddf 100644
--- a/packages/view/backend/sirius-components-view-diagram-edit/src/main/java/org/eclipse/sirius/components/view/diagram/provider/DiagramItemProviderAdapterFactory.java
+++ b/packages/view/backend/sirius-components-view-diagram-edit/src/main/java/org/eclipse/sirius/components/view/diagram/provider/DiagramItemProviderAdapterFactory.java
@@ -337,15 +337,6 @@ public class DiagramItemProviderAdapterFactory extends DiagramAdapterFactory imp
*/
protected DeleteViewItemProvider deleteViewItemProvider;
- /**
- * This keeps track of the one adapter used for all
- * {@link org.eclipse.sirius.components.view.diagram.SelectionDescription} instances.
- *
- * @generated
- */
- protected SelectionDescriptionItemProvider selectionDescriptionItemProvider;
-
/**
* This keeps track of the one adapter used for all
* {@link org.eclipse.sirius.components.view.diagram.DiagramToolSection} instances.
+ *
+ *
+ * @generated
+ */
+ protected SelectionDialogDescriptionItemProvider selectionDialogDescriptionItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.sirius.components.view.diagram.SelectionDialogDescription}.
*
* @generated
*/
@Override
- public Adapter createSelectionDescriptionAdapter() {
- if (this.selectionDescriptionItemProvider == null) {
- this.selectionDescriptionItemProvider = new SelectionDescriptionItemProvider(this);
+ public Adapter createSelectionDialogDescriptionAdapter() {
+ if (this.selectionDialogDescriptionItemProvider == null) {
+ this.selectionDialogDescriptionItemProvider = new SelectionDialogDescriptionItemProvider(this);
}
- return this.selectionDescriptionItemProvider;
+ return this.selectionDialogDescriptionItemProvider;
}
/**
@@ -1092,8 +1092,8 @@ public void dispose() {
this.createViewItemProvider.dispose();
if (this.deleteViewItemProvider != null)
this.deleteViewItemProvider.dispose();
- if (this.selectionDescriptionItemProvider != null)
- this.selectionDescriptionItemProvider.dispose();
+ if (this.selectionDialogDescriptionItemProvider != null)
+ this.selectionDialogDescriptionItemProvider.dispose();
if (this.diagramToolSectionItemProvider != null)
this.diagramToolSectionItemProvider.dispose();
if (this.nodeToolSectionItemProvider != null)
diff --git a/packages/view/backend/sirius-components-view-diagram-edit/src/main/java/org/eclipse/sirius/components/view/diagram/provider/DialogDescriptionItemProvider.java b/packages/view/backend/sirius-components-view-diagram-edit/src/main/java/org/eclipse/sirius/components/view/diagram/provider/DialogDescriptionItemProvider.java
new file mode 100644
index 00000000000..c4588871e8a
--- /dev/null
+++ b/packages/view/backend/sirius-components-view-diagram-edit/src/main/java/org/eclipse/sirius/components/view/diagram/provider/DialogDescriptionItemProvider.java
@@ -0,0 +1,115 @@
+/*******************************************************************************
+ * Copyright (c) 2024 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.diagram.provider;
+
+import java.util.Collection;
+import java.util.List;
+
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.util.ResourceLocator;
+import org.eclipse.emf.edit.provider.IChildCreationExtender;
+import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
+import org.eclipse.emf.edit.provider.IItemLabelProvider;
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.IItemPropertySource;
+import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
+import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
+import org.eclipse.emf.edit.provider.ItemProviderAdapter;
+
+/**
+ * This is the item provider adapter for a {@link org.eclipse.sirius.components.view.diagram.DialogDescription} object.
+ *
+ *
+ * @generated
+ */
+public class DialogDescriptionItemProvider extends ItemProviderAdapter
+ implements IEditingDomainItemProvider, IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier.
+ *
+ * @generated
+ */
+ public DialogDescriptionItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class.
+ *
+ * @generated
+ */
+ @Override
+ public List getPropertyDescriptors(Object object) {
+ if (this.itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ }
+ return this.itemPropertyDescriptors;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ @Override
+ protected boolean shouldComposeCreationImage() {
+ return true;
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ *
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ return this.getString("_UI_DialogDescription_type");
+ }
+
+ /**
+ * This handles model notifications by calling {@link #updateChildren} to update any cached children and by creating
+ * a viewer notification, which it passes to {@link #fireNotifyChanged}.
+ *
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ this.updateChildren(notification);
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that can be created
+ * under this object.
+ *
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources.
+ *
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return ((IChildCreationExtender) this.adapterFactory).getResourceLocator();
+ }
+
+}
diff --git a/packages/view/backend/sirius-components-view-diagram-edit/src/main/java/org/eclipse/sirius/components/view/diagram/provider/NodeToolItemProvider.java b/packages/view/backend/sirius-components-view-diagram-edit/src/main/java/org/eclipse/sirius/components/view/diagram/provider/NodeToolItemProvider.java
index 11d840a266a..cfc52e3843c 100644
--- a/packages/view/backend/sirius-components-view-diagram-edit/src/main/java/org/eclipse/sirius/components/view/diagram/provider/NodeToolItemProvider.java
+++ b/packages/view/backend/sirius-components-view-diagram-edit/src/main/java/org/eclipse/sirius/components/view/diagram/provider/NodeToolItemProvider.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2021, 2023 Obeo.
+ * Copyright (c) 2021, 2024 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
@@ -81,7 +81,7 @@ protected void addIconURLsExpressionPropertyDescriptor(Object object) {
public Collection extends EStructuralFeature> getChildrenFeatures(Object object) {
if (this.childrenFeatures == null) {
super.getChildrenFeatures(object);
- this.childrenFeatures.add(DiagramPackage.Literals.NODE_TOOL__SELECTION_DESCRIPTION);
+ this.childrenFeatures.add(DiagramPackage.Literals.NODE_TOOL__DIALOG_DESCRIPTION);
}
return this.childrenFeatures;
}
@@ -145,7 +145,7 @@ public void notifyChanged(Notification notification) {
case DiagramPackage.NODE_TOOL__ICON_UR_LS_EXPRESSION:
this.fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
return;
- case DiagramPackage.NODE_TOOL__SELECTION_DESCRIPTION:
+ case DiagramPackage.NODE_TOOL__DIALOG_DESCRIPTION:
this.fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
return;
}
@@ -162,7 +162,7 @@ public void notifyChanged(Notification notification) {
protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) {
super.collectNewChildDescriptors(newChildDescriptors, object);
- newChildDescriptors.add(this.createChildParameter(DiagramPackage.Literals.NODE_TOOL__SELECTION_DESCRIPTION, DiagramFactory.eINSTANCE.createSelectionDescription()));
+ newChildDescriptors.add(this.createChildParameter(DiagramPackage.Literals.NODE_TOOL__DIALOG_DESCRIPTION, DiagramFactory.eINSTANCE.createSelectionDialogDescription()));
}
}
diff --git a/packages/view/backend/sirius-components-view-diagram-edit/src/main/java/org/eclipse/sirius/components/view/diagram/provider/SelectionDescriptionItemProvider.java b/packages/view/backend/sirius-components-view-diagram-edit/src/main/java/org/eclipse/sirius/components/view/diagram/provider/SelectionDialogDescriptionItemProvider.java
similarity index 64%
rename from packages/view/backend/sirius-components-view-diagram-edit/src/main/java/org/eclipse/sirius/components/view/diagram/provider/SelectionDescriptionItemProvider.java
rename to packages/view/backend/sirius-components-view-diagram-edit/src/main/java/org/eclipse/sirius/components/view/diagram/provider/SelectionDialogDescriptionItemProvider.java
index 5a58bb1d0c2..ed3e9b01cdf 100644
--- a/packages/view/backend/sirius-components-view-diagram-edit/src/main/java/org/eclipse/sirius/components/view/diagram/provider/SelectionDescriptionItemProvider.java
+++ b/packages/view/backend/sirius-components-view-diagram-edit/src/main/java/org/eclipse/sirius/components/view/diagram/provider/SelectionDialogDescriptionItemProvider.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2023 Obeo.
+ * Copyright (c) 2024 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,35 +17,26 @@
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.util.ResourceLocator;
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
-import org.eclipse.emf.edit.provider.IChildCreationExtender;
-import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
-import org.eclipse.emf.edit.provider.IItemLabelProvider;
import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
-import org.eclipse.emf.edit.provider.IItemPropertySource;
-import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
-import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
-import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;
import org.eclipse.sirius.components.view.diagram.DiagramPackage;
-import org.eclipse.sirius.components.view.diagram.SelectionDescription;
+import org.eclipse.sirius.components.view.diagram.SelectionDialogDescription;
/**
- * This is the item provider adapter for a {@link org.eclipse.sirius.components.view.diagram.SelectionDescription}
+ * This is the item provider adapter for a {@link org.eclipse.sirius.components.view.diagram.SelectionDialogDescription}
* object.
*
* @generated
*/
-public class SelectionDescriptionItemProvider extends ItemProviderAdapter
- implements IEditingDomainItemProvider, IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
+public class SelectionDialogDescriptionItemProvider extends DialogDescriptionItemProvider {
/**
* This constructs an instance from a factory and a notifier.
*
* @generated
*/
- public SelectionDescriptionItemProvider(AdapterFactory adapterFactory) {
+ public SelectionDialogDescriptionItemProvider(AdapterFactory adapterFactory) {
super(adapterFactory);
}
@@ -73,9 +64,9 @@ public List getPropertyDescriptors(Object object) {
*/
protected void addSelectionCandidatesExpressionPropertyDescriptor(Object object) {
this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor(((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(),
- this.getString("_UI_SelectionDescription_selectionCandidatesExpression_feature"),
- this.getString("_UI_PropertyDescriptor_description", "_UI_SelectionDescription_selectionCandidatesExpression_feature", "_UI_SelectionDescription_type"),
- DiagramPackage.Literals.SELECTION_DESCRIPTION__SELECTION_CANDIDATES_EXPRESSION, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ this.getString("_UI_SelectionDialogDescription_selectionCandidatesExpression_feature"),
+ this.getString("_UI_PropertyDescriptor_description", "_UI_SelectionDialogDescription_selectionCandidatesExpression_feature", "_UI_SelectionDialogDescription_type"),
+ DiagramPackage.Literals.SELECTION_DIALOG_DESCRIPTION__SELECTION_CANDIDATES_EXPRESSION, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
}
/**
@@ -85,19 +76,19 @@ protected void addSelectionCandidatesExpressionPropertyDescriptor(Object object)
*/
protected void addSelectionMessagePropertyDescriptor(Object object) {
this.itemPropertyDescriptors.add(this.createItemPropertyDescriptor(((ComposeableAdapterFactory) this.adapterFactory).getRootAdapterFactory(), this.getResourceLocator(),
- this.getString("_UI_SelectionDescription_selectionMessage_feature"),
- this.getString("_UI_PropertyDescriptor_description", "_UI_SelectionDescription_selectionMessage_feature", "_UI_SelectionDescription_type"),
- DiagramPackage.Literals.SELECTION_DESCRIPTION__SELECTION_MESSAGE, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ this.getString("_UI_SelectionDialogDescription_selectionMessage_feature"),
+ this.getString("_UI_PropertyDescriptor_description", "_UI_SelectionDialogDescription_selectionMessage_feature", "_UI_SelectionDialogDescription_type"),
+ DiagramPackage.Literals.SELECTION_DIALOG_DESCRIPTION__SELECTION_MESSAGE, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
}
/**
- * This returns SelectionDescription.gif.
+ * This returns SelectionDialogDescription.gif.
*
- * @generated
+ * @generated NOT
*/
@Override
public Object getImage(Object object) {
- return this.overlayImage(object, this.getResourceLocator().getImage("full/obj16/SelectionDescription"));
+ return this.overlayImage(object, this.getResourceLocator().getImage("full/obj16/SelectionDialogDescription.svg"));
}
/**
@@ -117,8 +108,8 @@ protected boolean shouldComposeCreationImage() {
*/
@Override
public String getText(Object object) {
- String label = ((SelectionDescription) object).getSelectionCandidatesExpression();
- return label == null || label.length() == 0 ? this.getString("_UI_SelectionDescription_type") : this.getString("_UI_SelectionDescription_type") + " " + label;
+ String label = ((SelectionDialogDescription) object).getSelectionCandidatesExpression();
+ return label == null || label.length() == 0 ? this.getString("_UI_SelectionDialogDescription_type") : this.getString("_UI_SelectionDialogDescription_type") + " " + label;
}
/**
@@ -132,9 +123,9 @@ public String getText(Object object) {
public void notifyChanged(Notification notification) {
this.updateChildren(notification);
- switch (notification.getFeatureID(SelectionDescription.class)) {
- case DiagramPackage.SELECTION_DESCRIPTION__SELECTION_CANDIDATES_EXPRESSION:
- case DiagramPackage.SELECTION_DESCRIPTION__SELECTION_MESSAGE:
+ switch (notification.getFeatureID(SelectionDialogDescription.class)) {
+ case DiagramPackage.SELECTION_DIALOG_DESCRIPTION__SELECTION_CANDIDATES_EXPRESSION:
+ case DiagramPackage.SELECTION_DIALOG_DESCRIPTION__SELECTION_MESSAGE:
this.fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
return;
}
@@ -152,14 +143,4 @@ protected void collectNewChildDescriptors(Collection newChildDescriptors
super.collectNewChildDescriptors(newChildDescriptors, object);
}
- /**
- * Return the resource locator for this item provider's resources.
- *
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return ((IChildCreationExtender) this.adapterFactory).getResourceLocator();
- }
-
}
diff --git a/packages/view/backend/sirius-components-view-diagram-edit/src/main/resources/icons/full/obj16/SelectionDialogDescription.svg b/packages/view/backend/sirius-components-view-diagram-edit/src/main/resources/icons/full/obj16/SelectionDialogDescription.svg
new file mode 100644
index 00000000000..9461283ac30
--- /dev/null
+++ b/packages/view/backend/sirius-components-view-diagram-edit/src/main/resources/icons/full/obj16/SelectionDialogDescription.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/packages/view/backend/sirius-components-view-diagram-edit/src/main/resources/plugin.properties b/packages/view/backend/sirius-components-view-diagram-edit/src/main/resources/plugin.properties
index 6c4c332a7fb..5dcb3330716 100644
--- a/packages/view/backend/sirius-components-view-diagram-edit/src/main/resources/plugin.properties
+++ b/packages/view/backend/sirius-components-view-diagram-edit/src/main/resources/plugin.properties
@@ -10,205 +10,211 @@
# Contributors:
# Obeo - initial API and implementation
#################################################################################
-pluginName=Diagram Edit Support
-providerName=www.example.org
-_UI_CreateChild_text={0}
-_UI_CreateChild_text2={1} {0}
-_UI_CreateChild_text3={1}
-_UI_CreateChild_tooltip=Create New {0} Under {1} Feature
-_UI_CreateChild_description=Create a new child of type {0} for the {1} feature of the selected {2}.
-_UI_CreateSibling_description=Create a new sibling of type {0} for the selected {2}, under the {1} feature of their parent.
-_UI_PropertyDescriptor_description=The {0} of the {1}
+pluginName = Diagram Edit Support
+providerName = www.example.org
+
+_UI_CreateChild_text = {0}
+_UI_CreateChild_text2 = {1} {0}
+_UI_CreateChild_text3 = {1}
+_UI_CreateChild_tooltip = Create New {0} Under {1} Feature
+_UI_CreateChild_description = Create a new child of type {0} for the {1} feature of the selected {2}.
+_UI_CreateSibling_description = Create a new sibling of type {0} for the selected {2}, under the {1} feature of their parent.
+
+_UI_PropertyDescriptor_description = The {0} of the {1}
_UI_DiagramDescription_type=Diagram Description
_UI_DiagramElementDescription_type=Diagram Element Description
-_UI_NodeDescription_type=Node Description
-_UI_EdgeDescription_type=Edge Description
-_UI_LayoutStrategyDescription_type=Layout Strategy Description
-_UI_ListLayoutStrategyDescription_type=List Layout Strategy Description
-_UI_FreeFormLayoutStrategyDescription_type=Free Form Layout Strategy Description
-_UI_LabelDescription_type=Label Description
-_UI_InsideLabelDescription_type=Inside Label Description
-_UI_OutsideLabelDescription_type=Outside Label Description
-_UI_Style_type=Style
-_UI_BorderStyle_type=Border Style
-_UI_InsideLabelStyle_type=Inside Label Style
-_UI_OutsideLabelStyle_type=Outside Label Style
-_UI_NodeLabelStyle_type=Node Label Style
-_UI_NodeStyleDescription_type=Node Style Description
-_UI_ConditionalNodeStyle_type=Conditional Node Style
-_UI_ConditionalInsideLabelStyle_type=Conditional Inside Label Style
-_UI_ConditionalOutsideLabelStyle_type=Conditional Outside Label Style
-_UI_RectangularNodeStyleDescription_type=Rectangular Node Style Description
-_UI_ImageNodeStyleDescription_type=Image Node Style Description
-_UI_IconLabelNodeStyleDescription_type=Icon Label Node Style Description
-_UI_EdgeStyle_type=Edge Style
-_UI_ConditionalEdgeStyle_type=Conditional Edge Style
-_UI_DiagramPalette_type=Palette
-_UI_NodePalette_type=Node Palette
-_UI_EdgePalette_type=Edge Palette
-_UI_Tool_type=Tool
-_UI_DeleteTool_type=Delete Tool
-_UI_DropTool_type=Drop Tool
-_UI_EdgeTool_type=Edge Tool
-_UI_EdgeReconnectionTool_type=Edge Reconnection Tool
-_UI_LabelEditTool_type=Label Edit Tool
-_UI_NodeTool_type=Node Tool
-_UI_SourceEdgeEndReconnectionTool_type=Source Edge End Reconnection Tool
-_UI_TargetEdgeEndReconnectionTool_type=Target Edge End Reconnection Tool
-_UI_CreateView_type=Create View
-_UI_DeleteView_type=Delete View
-_UI_SelectionDescription_type=Selection Description
-_UI_ToolSection_type=Tool Section
-_UI_DiagramToolSection_type=Diagram Tool Section
-_UI_NodeToolSection_type=Node Tool Section
-_UI_EdgeToolSection_type=Edge Tool Section
-_UI_DropNodeTool_type=Drop Node Tool
-_UI_Unknown_type=Object
-_UI_Unknown_datatype=Value
-_UI_DiagramDescription_autoLayout_feature=Auto Layout
-_UI_DiagramDescription_palette_feature=Palette
-_UI_DiagramDescription_nodeDescriptions_feature=Node Descriptions
-_UI_DiagramDescription_edgeDescriptions_feature=Edge Descriptions
-_UI_DiagramDescription_arrangeLayoutDirection_feature=Arrange Layout Direction
-_UI_DiagramElementDescription_name_feature=Name
-_UI_DiagramElementDescription_domainType_feature=Domain Type
-_UI_DiagramElementDescription_semanticCandidatesExpression_feature=Semantic Candidates Expression
-_UI_DiagramElementDescription_preconditionExpression_feature=Precondition Expression
-_UI_DiagramElementDescription_synchronizationPolicy_feature=Synchronization Policy
-_UI_NodeDescription_collapsible_feature=Collapsible
-_UI_NodeDescription_palette_feature=Palette
-_UI_NodeDescription_childrenLayoutStrategy_feature=Children Layout Strategy
-_UI_NodeDescription_style_feature=Style
-_UI_NodeDescription_conditionalStyles_feature=Conditional Styles
-_UI_NodeDescription_childrenDescriptions_feature=Children Descriptions
-_UI_NodeDescription_borderNodesDescriptions_feature=Border Nodes Descriptions
-_UI_NodeDescription_reusedChildNodeDescriptions_feature=Reused Child Node Descriptions
-_UI_NodeDescription_reusedBorderNodeDescriptions_feature=Reused Border Node Descriptions
-_UI_NodeDescription_userResizable_feature=User Resizable
-_UI_NodeDescription_defaultWidthExpression_feature=Default Width Expression
-_UI_NodeDescription_defaultHeightExpression_feature=Default Height Expression
-_UI_NodeDescription_keepAspectRatio_feature=Keep Aspect Ratio
-_UI_NodeDescription_isCollapsedByDefaultExpression_feature=Is Collapsed By Default Expression
-_UI_NodeDescription_isHiddenByDefaultExpression_feature=Is Hidden By Default Expression
-_UI_NodeDescription_isFadedByDefaultExpression_feature=Is Faded By Default Expression
-_UI_NodeDescription_insideLabel_feature=Inside Label
-_UI_NodeDescription_outsideLabels_feature=Outside Labels
-_UI_EdgeDescription_beginLabelExpression_feature=Begin Label Expression
-_UI_EdgeDescription_centerLabelExpression_feature=Center Label Expression
-_UI_EdgeDescription_endLabelExpression_feature=End Label Expression
-_UI_EdgeDescription_isDomainBasedEdge_feature=Is Domain Based Edge
-_UI_EdgeDescription_palette_feature=Palette
-_UI_EdgeDescription_sourceNodeDescriptions_feature=Source Node Descriptions
-_UI_EdgeDescription_targetNodeDescriptions_feature=Target Node Descriptions
-_UI_EdgeDescription_sourceNodesExpression_feature=Source Nodes Expression
-_UI_EdgeDescription_targetNodesExpression_feature=Target Nodes Expression
-_UI_EdgeDescription_style_feature=Style
-_UI_EdgeDescription_conditionalStyles_feature=Conditional Styles
-_UI_ListLayoutStrategyDescription_areChildNodesDraggableExpression_feature=Are Child Nodes Draggable Expression
-_UI_ListLayoutStrategyDescription_topGapExpression_feature=Top Gap Expression
-_UI_ListLayoutStrategyDescription_bottomGapExpression_feature=Bottom Gap Expression
-_UI_LabelDescription_labelExpression_feature=Label Expression
-_UI_LabelDescription_overflowStrategy_feature=Overflow Strategy
-_UI_LabelDescription_textAlign_feature=Text Align
-_UI_InsideLabelDescription_position_feature=Position
-_UI_InsideLabelDescription_style_feature=Style
-_UI_InsideLabelDescription_conditionalStyles_feature=Conditional Styles
-_UI_OutsideLabelDescription_position_feature=Position
-_UI_OutsideLabelDescription_style_feature=Style
-_UI_OutsideLabelDescription_conditionalStyles_feature=Conditional Styles
+_UI_NodeDescription_type = Node Description
+_UI_EdgeDescription_type = Edge Description
+_UI_LayoutStrategyDescription_type = Layout Strategy Description
+_UI_ListLayoutStrategyDescription_type = List Layout Strategy Description
+_UI_FreeFormLayoutStrategyDescription_type = Free Form Layout Strategy Description
+_UI_LabelDescription_type = Label Description
+_UI_InsideLabelDescription_type = Inside Label Description
+_UI_OutsideLabelDescription_type = Outside Label Description
+_UI_Style_type = Style
+_UI_BorderStyle_type = Border Style
+_UI_InsideLabelStyle_type = Inside Label Style
+_UI_OutsideLabelStyle_type = Outside Label Style
+_UI_NodeLabelStyle_type = Node Label Style
+_UI_NodeStyleDescription_type = Node Style Description
+_UI_ConditionalNodeStyle_type = Conditional Node Style
+_UI_ConditionalInsideLabelStyle_type = Conditional Inside Label Style
+_UI_ConditionalOutsideLabelStyle_type = Conditional Outside Label Style
+_UI_RectangularNodeStyleDescription_type = Rectangular Node Style Description
+_UI_ImageNodeStyleDescription_type = Image Node Style Description
+_UI_IconLabelNodeStyleDescription_type = Icon Label Node Style Description
+_UI_EdgeStyle_type = Edge Style
+_UI_ConditionalEdgeStyle_type = Conditional Edge Style
+_UI_DiagramPalette_type = Palette
+_UI_NodePalette_type = Node Palette
+_UI_EdgePalette_type = Edge Palette
+_UI_Tool_type = Tool
+_UI_DeleteTool_type = Delete Tool
+_UI_DropTool_type = Drop Tool
+_UI_EdgeTool_type = Edge Tool
+_UI_EdgeReconnectionTool_type = Edge Reconnection Tool
+_UI_LabelEditTool_type = Label Edit Tool
+_UI_NodeTool_type = Node Tool
+_UI_SourceEdgeEndReconnectionTool_type = Source Edge End Reconnection Tool
+_UI_TargetEdgeEndReconnectionTool_type = Target Edge End Reconnection Tool
+_UI_CreateView_type = Create View
+_UI_DeleteView_type = Delete View
+_UI_SelectionDialogDescription_type = Selection Dialog Description
+_UI_ToolSection_type = Tool Section
+_UI_DiagramToolSection_type = Diagram Tool Section
+_UI_NodeToolSection_type = Node Tool Section
+_UI_EdgeToolSection_type = Edge Tool Section
+_UI_DropNodeTool_type = Drop Node Tool
+_UI_DialogDescription_type = Dialog Description
+_UI_Unknown_type = Object
+
+_UI_Unknown_datatype= Value
+
+_UI_DiagramDescription_autoLayout_feature = Auto Layout
+_UI_DiagramDescription_palette_feature = Palette
+_UI_DiagramDescription_nodeDescriptions_feature = Node Descriptions
+_UI_DiagramDescription_edgeDescriptions_feature = Edge Descriptions
+_UI_DiagramDescription_arrangeLayoutDirection_feature = Arrange Layout Direction
+_UI_DiagramElementDescription_name_feature = Name
+_UI_DiagramElementDescription_domainType_feature = Domain Type
+_UI_DiagramElementDescription_semanticCandidatesExpression_feature = Semantic Candidates Expression
+_UI_DiagramElementDescription_preconditionExpression_feature = Precondition Expression
+_UI_DiagramElementDescription_synchronizationPolicy_feature = Synchronization Policy
+_UI_NodeDescription_collapsible_feature = Collapsible
+_UI_NodeDescription_palette_feature = Palette
+_UI_NodeDescription_childrenLayoutStrategy_feature = Children Layout Strategy
+_UI_NodeDescription_style_feature = Style
+_UI_NodeDescription_conditionalStyles_feature = Conditional Styles
+_UI_NodeDescription_childrenDescriptions_feature = Children Descriptions
+_UI_NodeDescription_borderNodesDescriptions_feature = Border Nodes Descriptions
+_UI_NodeDescription_reusedChildNodeDescriptions_feature = Reused Child Node Descriptions
+_UI_NodeDescription_reusedBorderNodeDescriptions_feature = Reused Border Node Descriptions
+_UI_NodeDescription_userResizable_feature = User Resizable
+_UI_NodeDescription_defaultWidthExpression_feature = Default Width Expression
+_UI_NodeDescription_defaultHeightExpression_feature = Default Height Expression
+_UI_NodeDescription_keepAspectRatio_feature = Keep Aspect Ratio
+_UI_NodeDescription_isCollapsedByDefaultExpression_feature = Is Collapsed By Default Expression
+_UI_NodeDescription_insideLabel_feature = Inside Label
+_UI_NodeDescription_outsideLabels_feature = Outside Labels
+_UI_NodeDescription_isHiddenByDefaultExpression_feature = Is Hidden By Default Expression
+_UI_NodeDescription_isFadedByDefaultExpression_feature = Is Faded By Default Expression
+_UI_EdgeDescription_beginLabelExpression_feature = Begin Label Expression
+_UI_EdgeDescription_centerLabelExpression_feature = Center Label Expression
+_UI_EdgeDescription_endLabelExpression_feature = End Label Expression
+_UI_EdgeDescription_isDomainBasedEdge_feature = Is Domain Based Edge
+_UI_EdgeDescription_palette_feature = Palette
+_UI_EdgeDescription_sourceNodeDescriptions_feature = Source Node Descriptions
+_UI_EdgeDescription_targetNodeDescriptions_feature = Target Node Descriptions
+_UI_EdgeDescription_sourceNodesExpression_feature = Source Nodes Expression
+_UI_EdgeDescription_targetNodesExpression_feature = Target Nodes Expression
+_UI_EdgeDescription_style_feature = Style
+_UI_EdgeDescription_conditionalStyles_feature = Conditional Styles
+_UI_ListLayoutStrategyDescription_areChildNodesDraggableExpression_feature = Are Child Nodes Draggable Expression
+_UI_ListLayoutStrategyDescription_topGapExpression_feature = Top Gap Expression
+_UI_ListLayoutStrategyDescription_bottomGapExpression_feature = Bottom Gap Expression
+_UI_LabelDescription_labelExpression_feature = Label Expression
+_UI_LabelDescription_overflowStrategy_feature = Overflow Strategy
+_UI_LabelDescription_textAlign_feature = Text Align
+_UI_InsideLabelDescription_position_feature = Position
+_UI_InsideLabelDescription_style_feature = Style
+_UI_InsideLabelDescription_conditionalStyles_feature = Conditional Styles
+_UI_OutsideLabelDescription_position_feature = Position
+_UI_OutsideLabelDescription_style_feature = Style
+_UI_OutsideLabelDescription_conditionalStyles_feature = Conditional Styles
_UI_ListLayoutStrategyDescription_growableNodes_feature=Growable Nodes
-_UI_Style_color_feature=Color
-_UI_BorderStyle_borderColor_feature=Border Color
-_UI_BorderStyle_borderRadius_feature=Border Radius
-_UI_BorderStyle_borderSize_feature=Border Size
-_UI_BorderStyle_borderLineStyle_feature=Border Line Style
-_UI_InsideLabelStyle_withHeader_feature=With Header
-_UI_InsideLabelStyle_displayHeaderSeparator_feature=Display Header Separator
-_UI_NodeLabelStyle_labelColor_feature=Label Color
-_UI_NodeLabelStyle_background_feature=Background
-_UI_NodeLabelStyle_showIcon_feature=Show Icon
-_UI_NodeLabelStyle_labelIcon_feature=Label Icon
-_UI_NodeLabelStyle_background_feature=Background
-_UI_ConditionalNodeStyle_style_feature=Style
-_UI_ConditionalInsideLabelStyle_style_feature=Style
-_UI_ConditionalOutsideLabelStyle_style_feature=Style
-_UI_RectangularNodeStyleDescription_background_feature=Background
-_UI_ImageNodeStyleDescription_shape_feature=Shape
-_UI_ImageNodeStyleDescription_positionDependentRotation_feature=Position-Dependent Rotation
-_UI_IconLabelNodeStyleDescription_background_feature=Background
-_UI_EdgeStyle_lineStyle_feature=Line Style
-_UI_EdgeStyle_sourceArrowStyle_feature=Source Arrow Style
-_UI_EdgeStyle_targetArrowStyle_feature=Target Arrow Style
-_UI_EdgeStyle_edgeWidth_feature=Edge Width
-_UI_EdgeStyle_showIcon_feature=Show Icon
-_UI_EdgeStyle_labelIcon_feature=Label Icon
-_UI_EdgeStyle_background_feature=Background
-_UI_DiagramPalette_dropTool_feature=Drop Tool
-_UI_DiagramPalette_dropNodeTool_feature=Drop Node Tool
-_UI_DiagramPalette_nodeTools_feature=Node Tools
-_UI_DiagramPalette_toolSections_feature=Tool Sections
-_UI_NodePalette_deleteTool_feature=Delete Tool
-_UI_NodePalette_labelEditTool_feature=Label Edit Tool
-_UI_NodePalette_dropNodeTool_feature=Drop Node Tool
-_UI_NodePalette_nodeTools_feature=Node Tools
-_UI_NodePalette_edgeTools_feature=Edge Tools
-_UI_NodePalette_toolSections_feature=Tool Sections
-_UI_EdgePalette_deleteTool_feature=Delete Tool
-_UI_EdgePalette_centerLabelEditTool_feature=Center Label Edit Tool
-_UI_EdgePalette_beginLabelEditTool_feature=Begin Label Edit Tool
-_UI_EdgePalette_endLabelEditTool_feature=End Label Edit Tool
-_UI_EdgePalette_nodeTools_feature=Node Tools
-_UI_EdgePalette_edgeReconnectionTools_feature=Edge Reconnection Tools
-_UI_EdgePalette_toolSections_feature=Tool Sections
-_UI_Tool_name_feature=Name
-_UI_Tool_preconditionExpression_feature=Precondition Expression
-_UI_Tool_body_feature=Body
-_UI_EdgeTool_targetElementDescriptions_feature=Target Element Descriptions
-_UI_EdgeTool_iconURLsExpression_feature=Icon URLs Expression
-_UI_LabelEditTool_initialDirectEditLabelExpression_feature=Initial Direct Edit Label Expression
-_UI_NodeTool_selectionDescription_feature=Selection Description
-_UI_NodeTool_iconURLsExpression_feature=Icon URLs Expression
-_UI_CreateView_parentViewExpression_feature=Parent View Expression
-_UI_CreateView_elementDescription_feature=Element Description
-_UI_CreateView_semanticElementExpression_feature=Semantic Element Expression
-_UI_CreateView_variableName_feature=Variable Name
-_UI_CreateView_containmentKind_feature=Containment Kind
-_UI_DeleteView_viewExpression_feature=View Expression
-_UI_SelectionDescription_selectionCandidatesExpression_feature=Selection Candidates Expression
-_UI_SelectionDescription_selectionMessage_feature=Selection Message
-_UI_ToolSection_name_feature=Name
-_UI_DiagramToolSection_nodeTools_feature=Node Tools
-_UI_NodeToolSection_nodeTools_feature=Node Tools
-_UI_NodeToolSection_edgeTools_feature=Edge Tools
-_UI_EdgeToolSection_nodeTools_feature=Node Tools
-_UI_DropNodeTool_acceptedNodeTypes_feature=Accepted Node Types
-_UI_Unknown_feature=Unspecified
-_UI_ArrowStyle_None_literal=None
-_UI_ArrowStyle_OutputArrow_literal=OutputArrow
-_UI_ArrowStyle_InputArrow_literal=InputArrow
-_UI_ArrowStyle_OutputClosedArrow_literal=OutputClosedArrow
-_UI_ArrowStyle_InputClosedArrow_literal=InputClosedArrow
-_UI_ArrowStyle_OutputFillClosedArrow_literal=OutputFillClosedArrow
-_UI_ArrowStyle_InputFillClosedArrow_literal=InputFillClosedArrow
-_UI_ArrowStyle_Diamond_literal=Diamond
-_UI_ArrowStyle_FillDiamond_literal=FillDiamond
-_UI_ArrowStyle_InputArrowWithDiamond_literal=InputArrowWithDiamond
-_UI_ArrowStyle_InputArrowWithFillDiamond_literal=InputArrowWithFillDiamond
-_UI_ArrowStyle_Circle_literal=Circle
-_UI_ArrowStyle_FillCircle_literal=FillCircle
-_UI_ArrowStyle_CrossedCircle_literal=CrossedCircle
-_UI_ArrowStyle_ClosedArrowWithVerticalBar_literal=ClosedArrowWithVerticalBar
-_UI_ArrowStyle_ClosedArrowWithDots_literal=ClosedArrowWithDots
-_UI_LayoutDirection_Column_literal=Column
-_UI_LineStyle_Solid_literal=Solid
-_UI_LineStyle_Dash_literal=Dash
-_UI_LineStyle_Dot_literal=Dot
-_UI_LineStyle_Dash_Dot_literal=Dash_Dot
-_UI_NodeContainmentKind_CHILD_NODE_literal=CHILD_NODE
-_UI_NodeContainmentKind_BORDER_NODE_literal=BORDER_NODE
-_UI_SynchronizationPolicy_SYNCHRONIZED_literal=SYNCHRONIZED
-_UI_SynchronizationPolicy_UNSYNCHRONIZED_literal=UNSYNCHRONIZED
-_UI_InsideLabelPosition_TOP_CENTER_literal=TOP_CENTER
+_UI_Style_color_feature = Color
+_UI_BorderStyle_borderColor_feature = Border Color
+_UI_BorderStyle_borderRadius_feature = Border Radius
+_UI_BorderStyle_borderSize_feature = Border Size
+_UI_BorderStyle_borderLineStyle_feature = Border Line Style
+_UI_InsideLabelStyle_withHeader_feature = With Header
+_UI_InsideLabelStyle_displayHeaderSeparator_feature = Display Header Separator
+_UI_NodeLabelStyle_labelColor_feature = Label Color
+_UI_NodeLabelStyle_background_feature = Background
+_UI_NodeLabelStyle_showIcon_feature = Show Icon
+_UI_NodeLabelStyle_labelIcon_feature = Label Icon
+_UI_NodeLabelStyle_background_feature = Background
+_UI_ConditionalNodeStyle_style_feature = Style
+_UI_ConditionalInsideLabelStyle_style_feature = Style
+_UI_ConditionalOutsideLabelStyle_style_feature = Style
+_UI_RectangularNodeStyleDescription_background_feature = Background
+_UI_ImageNodeStyleDescription_shape_feature = Shape
+_UI_ImageNodeStyleDescription_positionDependentRotation_feature = Position-Dependent Rotation
+_UI_IconLabelNodeStyleDescription_background_feature = Background
+_UI_EdgeStyle_lineStyle_feature = Line Style
+_UI_EdgeStyle_sourceArrowStyle_feature = Source Arrow Style
+_UI_EdgeStyle_targetArrowStyle_feature = Target Arrow Style
+_UI_EdgeStyle_edgeWidth_feature = Edge Width
+_UI_EdgeStyle_showIcon_feature = Show Icon
+_UI_EdgeStyle_labelIcon_feature = Label Icon
+_UI_EdgeStyle_background_feature = Background
+_UI_DiagramPalette_dropTool_feature = Drop Tool
+_UI_DiagramPalette_dropNodeTool_feature = Drop Node Tool
+_UI_DiagramPalette_nodeTools_feature = Node Tools
+_UI_DiagramPalette_toolSections_feature = Tool Sections
+_UI_NodePalette_deleteTool_feature = Delete Tool
+_UI_NodePalette_labelEditTool_feature = Label Edit Tool
+_UI_NodePalette_dropNodeTool_feature = Drop Node Tool
+_UI_NodePalette_nodeTools_feature = Node Tools
+_UI_NodePalette_edgeTools_feature = Edge Tools
+_UI_NodePalette_toolSections_feature = Tool Sections
+_UI_EdgePalette_deleteTool_feature = Delete Tool
+_UI_EdgePalette_centerLabelEditTool_feature = Center Label Edit Tool
+_UI_EdgePalette_beginLabelEditTool_feature = Begin Label Edit Tool
+_UI_EdgePalette_endLabelEditTool_feature = End Label Edit Tool
+_UI_EdgePalette_nodeTools_feature = Node Tools
+_UI_EdgePalette_edgeReconnectionTools_feature = Edge Reconnection Tools
+_UI_EdgePalette_toolSections_feature = Tool Sections
+_UI_Tool_name_feature = Name
+_UI_Tool_preconditionExpression_feature = Precondition Expression
+_UI_Tool_body_feature = Body
+_UI_EdgeTool_targetElementDescriptions_feature = Target Element Descriptions
+_UI_EdgeTool_iconURLsExpression_feature = Icon UR Ls Expression
+_UI_LabelEditTool_initialDirectEditLabelExpression_feature = Initial Direct Edit Label Expression
+_UI_NodeTool_dialogDescription_feature = Dialog Description
+_UI_NodeTool_iconURLsExpression_feature = Icon UR Ls Expression
+_UI_CreateView_parentViewExpression_feature = Parent View Expression
+_UI_CreateView_elementDescription_feature = Element Description
+_UI_CreateView_semanticElementExpression_feature = Semantic Element Expression
+_UI_CreateView_variableName_feature = Variable Name
+_UI_CreateView_containmentKind_feature = Containment Kind
+_UI_DeleteView_viewExpression_feature = View Expression
+_UI_SelectionDialogDescription_selectionCandidatesExpression_feature = Selection Candidates Expression
+_UI_SelectionDialogDescription_selectionMessage_feature = Selection Message
+_UI_ToolSection_name_feature = Name
+_UI_DiagramToolSection_nodeTools_feature = Node Tools
+_UI_NodeToolSection_nodeTools_feature = Node Tools
+_UI_NodeToolSection_edgeTools_feature = Edge Tools
+_UI_EdgeToolSection_nodeTools_feature = Node Tools
+_UI_DropNodeTool_acceptedNodeTypes_feature = Accepted Node Types
+_UI_Unknown_feature = Unspecified
+
+_UI_ArrowStyle_None_literal = None
+_UI_ArrowStyle_OutputArrow_literal = OutputArrow
+_UI_ArrowStyle_InputArrow_literal = InputArrow
+_UI_ArrowStyle_OutputClosedArrow_literal = OutputClosedArrow
+_UI_ArrowStyle_InputClosedArrow_literal = InputClosedArrow
+_UI_ArrowStyle_OutputFillClosedArrow_literal = OutputFillClosedArrow
+_UI_ArrowStyle_InputFillClosedArrow_literal = InputFillClosedArrow
+_UI_ArrowStyle_Diamond_literal = Diamond
+_UI_ArrowStyle_FillDiamond_literal = FillDiamond
+_UI_ArrowStyle_InputArrowWithDiamond_literal = InputArrowWithDiamond
+_UI_ArrowStyle_InputArrowWithFillDiamond_literal = InputArrowWithFillDiamond
+_UI_ArrowStyle_Circle_literal = Circle
+_UI_ArrowStyle_FillCircle_literal = FillCircle
+_UI_ArrowStyle_CrossedCircle_literal = CrossedCircle
+_UI_ArrowStyle_ClosedArrowWithVerticalBar_literal = ClosedArrowWithVerticalBar
+_UI_ArrowStyle_ClosedArrowWithDots_literal = ClosedArrowWithDots
+_UI_LayoutDirection_Column_literal = Column
+_UI_LineStyle_Solid_literal = Solid
+_UI_LineStyle_Dash_literal = Dash
+_UI_LineStyle_Dot_literal = Dot
+_UI_LineStyle_Dash_Dot_literal = Dash_Dot
+_UI_NodeContainmentKind_CHILD_NODE_literal = CHILD_NODE
+_UI_NodeContainmentKind_BORDER_NODE_literal = BORDER_NODE
+_UI_SynchronizationPolicy_SYNCHRONIZED_literal = SYNCHRONIZED
+_UI_SynchronizationPolicy_UNSYNCHRONIZED_literal = UNSYNCHRONIZED
+_UI_InsideLabelPosition_TOP_CENTER_literal = TOP_CENTER
_UI_InsideLabelPosition_TOP_LEFT_literal = TOP_LEFT
_UI_InsideLabelPosition_TOP_RIGHT_literal = TOP_RIGHT
_UI_InsideLabelPosition_MIDDLE_LEFT_literal = MIDDLE_LEFT
@@ -217,15 +223,15 @@ _UI_InsideLabelPosition_MIDDLE_RIGHT_literal = MIDDLE_RIGHT
_UI_InsideLabelPosition_BOTTOM_LEFT_literal = BOTTOM_LEFT
_UI_InsideLabelPosition_BOTTOM_CENTER_literal = BOTTOM_CENTER
_UI_InsideLabelPosition_BOTTOM_RIGHT_literal = BOTTOM_RIGHT
-_UI_OutsideLabelPosition_BOTTOM_CENTER_literal=BOTTOM_CENTER
-_UI_LabelOverflowStrategy_NONE_literal=NONE
-_UI_LabelOverflowStrategy_WRAP_literal=WRAP
-_UI_LabelOverflowStrategy_ELLIPSIS_literal=ELLIPSIS
-_UI_ArrangeLayoutDirection_UNDEFINED_literal=UNDEFINED
-_UI_ArrangeLayoutDirection_RIGHT_literal=RIGHT
-_UI_ArrangeLayoutDirection_DOWN_literal=DOWN
-_UI_ArrangeLayoutDirection_LEFT_literal=LEFT
-_UI_ArrangeLayoutDirection_UP_literal=UP
+_UI_OutsideLabelPosition_BOTTOM_CENTER_literal = BOTTOM_CENTER
+_UI_LabelOverflowStrategy_NONE_literal = NONE
+_UI_LabelOverflowStrategy_WRAP_literal = WRAP
+_UI_LabelOverflowStrategy_ELLIPSIS_literal = ELLIPSIS
+_UI_ArrangeLayoutDirection_UNDEFINED_literal = UNDEFINED
+_UI_ArrangeLayoutDirection_RIGHT_literal = RIGHT
+_UI_ArrangeLayoutDirection_DOWN_literal = DOWN
+_UI_ArrangeLayoutDirection_LEFT_literal = LEFT
+_UI_ArrangeLayoutDirection_UP_literal = UP
_UI_LabelTextAlign_LEFT_literal = LEFT
_UI_LabelTextAlign_RIGHT_literal = RIGHT
_UI_LabelTextAlign_CENTER_literal = CENTER
diff --git a/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/ArrangeLayoutDirection.java b/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/ArrangeLayoutDirection.java
index 49a79c3b485..29e5fef2025 100644
--- a/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/ArrangeLayoutDirection.java
+++ b/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/ArrangeLayoutDirection.java
@@ -22,102 +22,102 @@
* A representation of the literals of the enumeration 'Arrange Layout
* Direction ', and utility methods for working with them.
*
+ * @see org.eclipse.sirius.components.view.diagram.DiagramPackage#getArrangeLayoutDirection()
* @model
* @generated
- * @see org.eclipse.sirius.components.view.diagram.DiagramPackage#getArrangeLayoutDirection()
*/
public enum ArrangeLayoutDirection implements Enumerator {
/**
* The 'UNDEFINED ' literal object.
*
+ * @see #UNDEFINED_VALUE
* @generated
* @ordered
- * @see #UNDEFINED_VALUE
*/
UNDEFINED(0, "UNDEFINED", "UNDEFINED"),
/**
* The 'RIGHT ' literal object.
*
+ * @see #RIGHT_VALUE
* @generated
* @ordered
- * @see #RIGHT_VALUE
*/
RIGHT(1, "RIGHT", "RIGHT"),
/**
* The 'DOWN ' literal object.
*
+ * @see #DOWN_VALUE
* @generated
* @ordered
- * @see #DOWN_VALUE
*/
DOWN(2, "DOWN", "DOWN"),
/**
* The 'LEFT ' literal object.
*
+ * @see #LEFT_VALUE
* @generated
* @ordered
- * @see #LEFT_VALUE
*/
LEFT(3, "LEFT", "LEFT"),
/**
* The 'UP ' literal object.
*
+ * @see #UP_VALUE
* @generated
* @ordered
- * @see #UP_VALUE
*/
UP(4, "UP", "UP");
/**
* The 'UNDEFINED ' literal value.
*
+ * @see #UNDEFINED
* @model
* @generated
* @ordered
- * @see #UNDEFINED
*/
public static final int UNDEFINED_VALUE = 0;
/**
* The 'RIGHT ' literal value.
*
+ * @see #RIGHT
* @model
* @generated
* @ordered
- * @see #RIGHT
*/
public static final int RIGHT_VALUE = 1;
/**
* The 'DOWN ' literal value.
*
+ * @see #DOWN
* @model
* @generated
* @ordered
- * @see #DOWN
*/
public static final int DOWN_VALUE = 2;
/**
* The 'LEFT ' literal value.
*
+ * @see #LEFT
* @model
* @generated
* @ordered
- * @see #LEFT
*/
public static final int LEFT_VALUE = 3;
/**
* The 'UP ' literal value.
*
+ * @see #UP
* @model
* @generated
* @ordered
- * @see #UP
*/
public static final int UP_VALUE = 4;
@@ -163,7 +163,7 @@ public enum ArrangeLayoutDirection implements Enumerator {
*
* @generated
*/
- ArrangeLayoutDirection(int value, String name, String literal) {
+ private ArrangeLayoutDirection(int value, String name, String literal) {
this.value = value;
this.name = name;
this.literal = literal;
@@ -174,7 +174,7 @@ public enum ArrangeLayoutDirection implements Enumerator {
* begin-user-doc -->
*
* @param literal
- * the literal.
+ * the literal.
* @return the matching enumerator or null
.
* @generated
*/
@@ -193,7 +193,7 @@ public static ArrangeLayoutDirection get(String literal) {
*
*
* @param name
- * the name.
+ * the name.
* @return the matching enumerator or null
.
* @generated
*/
@@ -212,7 +212,7 @@ public static ArrangeLayoutDirection getByName(String name) {
* begin-user-doc -->
*
* @param value
- * the integer value.
+ * the integer value.
* @return the matching enumerator or null
.
* @generated
*/
diff --git a/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/DiagramDescription.java b/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/DiagramDescription.java
index c1ad91c8d56..c6dab1c8f1a 100644
--- a/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/DiagramDescription.java
+++ b/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/DiagramDescription.java
@@ -32,9 +32,9 @@
* Direction}
*
*
+ * @see org.eclipse.sirius.components.view.diagram.DiagramPackage#getDiagramDescription()
* @model
* @generated
- * @see org.eclipse.sirius.components.view.diagram.DiagramPackage#getDiagramDescription()
*/
public interface DiagramDescription extends RepresentationDescription {
@@ -42,10 +42,10 @@ public interface DiagramDescription extends RepresentationDescription {
* Returns the value of the 'Auto Layout ' attribute.
*
* @return the value of the 'Auto Layout ' attribute.
- * @model required="true"
- * @generated
* @see #setAutoLayout(boolean)
* @see org.eclipse.sirius.components.view.diagram.DiagramPackage#getDiagramDescription_AutoLayout()
+ * @model required="true"
+ * @generated
*/
boolean isAutoLayout();
@@ -54,9 +54,9 @@ public interface DiagramDescription extends RepresentationDescription {
* Layout}' attribute.
*
* @param value
- * the new value of the 'Auto Layout ' attribute.
- * @generated
+ * the new value of the 'Auto Layout ' attribute.
* @see #isAutoLayout()
+ * @generated
*/
void setAutoLayout(boolean value);
@@ -65,10 +65,10 @@ public interface DiagramDescription extends RepresentationDescription {
* end-user-doc -->
*
* @return the value of the 'Palette ' containment reference.
- * @model containment="true"
- * @generated
* @see #setPalette(DiagramPalette)
* @see org.eclipse.sirius.components.view.diagram.DiagramPackage#getDiagramDescription_Palette()
+ * @model containment="true"
+ * @generated
*/
DiagramPalette getPalette();
@@ -77,9 +77,9 @@ public interface DiagramDescription extends RepresentationDescription {
* Palette }' containment reference.
*
* @param value
- * the new value of the 'Palette ' containment reference.
- * @generated
+ * the new value of the 'Palette ' containment reference.
* @see #getPalette()
+ * @generated
*/
void setPalette(DiagramPalette value);
@@ -89,9 +89,9 @@ public interface DiagramDescription extends RepresentationDescription {
* end-user-doc -->
*
* @return the value of the 'Node Descriptions ' containment reference list.
+ * @see org.eclipse.sirius.components.view.diagram.DiagramPackage#getDiagramDescription_NodeDescriptions()
* @model containment="true"
* @generated
- * @see org.eclipse.sirius.components.view.diagram.DiagramPackage#getDiagramDescription_NodeDescriptions()
*/
EList getNodeDescriptions();
@@ -101,9 +101,9 @@ public interface DiagramDescription extends RepresentationDescription {
* end-user-doc -->
*
* @return the value of the 'Edge Descriptions ' containment reference list.
+ * @see org.eclipse.sirius.components.view.diagram.DiagramPackage#getDiagramDescription_EdgeDescriptions()
* @model containment="true"
* @generated
- * @see org.eclipse.sirius.components.view.diagram.DiagramPackage#getDiagramDescription_EdgeDescriptions()
*/
EList getEdgeDescriptions();
@@ -114,11 +114,11 @@ public interface DiagramDescription extends RepresentationDescription {
* end-user-doc -->
*
* @return the value of the 'Arrange Layout Direction ' attribute.
- * @model default="UNDEFINED" required="true"
- * @generated
* @see org.eclipse.sirius.components.view.diagram.ArrangeLayoutDirection
* @see #setArrangeLayoutDirection(ArrangeLayoutDirection)
* @see org.eclipse.sirius.components.view.diagram.DiagramPackage#getDiagramDescription_ArrangeLayoutDirection()
+ * @model default="UNDEFINED" required="true"
+ * @generated
*/
ArrangeLayoutDirection getArrangeLayoutDirection();
@@ -128,10 +128,10 @@ public interface DiagramDescription extends RepresentationDescription {
* Layout Direction}' attribute.
*
* @param value
- * the new value of the 'Arrange Layout Direction ' attribute.
- * @generated
+ * the new value of the 'Arrange Layout Direction ' attribute.
* @see org.eclipse.sirius.components.view.diagram.ArrangeLayoutDirection
* @see #getArrangeLayoutDirection()
+ * @generated
*/
void setArrangeLayoutDirection(ArrangeLayoutDirection value);
diff --git a/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/DiagramFactory.java b/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/DiagramFactory.java
index 9376eaf7d18..78b1880f776 100644
--- a/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/DiagramFactory.java
+++ b/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/DiagramFactory.java
@@ -272,12 +272,13 @@ public interface DiagramFactory extends EFactory {
DeleteView createDeleteView();
/**
- * Returns a new object of class 'Selection Description '.
+ * Returns a new object of class 'Selection Dialog Description '.
*
- * @return a new object of class 'Selection Description '.
+ * @return a new object of class 'Selection Dialog Description '.
* @generated
*/
- SelectionDescription createSelectionDescription();
+ SelectionDialogDescription createSelectionDialogDescription();
/**
* Returns a new object of class 'Tool Section '.
diff --git a/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/DiagramPackage.java b/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/DiagramPackage.java
index 7b0f3f83771..45904ecd0bc 100644
--- a/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/DiagramPackage.java
+++ b/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/DiagramPackage.java
@@ -30,9 +30,9 @@
*
*
*
+ * @see org.eclipse.sirius.components.view.diagram.DiagramFactory
* @model kind="package"
* @generated
- * @see org.eclipse.sirius.components.view.diagram.DiagramFactory
*/
public interface DiagramPackage extends EPackage {
@@ -61,9 +61,9 @@ public interface DiagramPackage extends EPackage {
* The meta object id for the '{@link org.eclipse.sirius.components.view.diagram.impl.DiagramDescriptionImpl
* Description }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramDescriptionImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getDiagramDescription()
+ * @generated
*/
int DIAGRAM_DESCRIPTION = 0;
@@ -107,7 +107,7 @@ public interface DiagramPackage extends EPackage {
* @generated
* @ordered
*/
- int DIAGRAM_DESCRIPTION__AUTO_LAYOUT = ViewPackage.REPRESENTATION_DESCRIPTION_FEATURE_COUNT;
+ int DIAGRAM_DESCRIPTION__AUTO_LAYOUT = ViewPackage.REPRESENTATION_DESCRIPTION_FEATURE_COUNT + 0;
/**
* The feature id for the 'Palette ' containment reference.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramElementDescriptionImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getDiagramElementDescription()
+ * @generated
*/
int DIAGRAM_ELEMENT_DESCRIPTION = 1;
@@ -237,9 +237,9 @@ public interface DiagramPackage extends EPackage {
* The meta object id for the '{@link org.eclipse.sirius.components.view.diagram.impl.NodeDescriptionImpl Node
* Description }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.NodeDescriptionImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getNodeDescription()
+ * @generated
*/
int NODE_DESCRIPTION = 2;
@@ -292,7 +292,7 @@ public interface DiagramPackage extends EPackage {
* @generated
* @ordered
*/
- int NODE_DESCRIPTION__COLLAPSIBLE = DIAGRAM_ELEMENT_DESCRIPTION_FEATURE_COUNT;
+ int NODE_DESCRIPTION__COLLAPSIBLE = DIAGRAM_ELEMENT_DESCRIPTION_FEATURE_COUNT + 0;
/**
* The feature id for the 'Palette ' containment reference.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.EdgeDescriptionImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getEdgeDescription()
+ * @generated
*/
int EDGE_DESCRIPTION = 3;
@@ -523,7 +523,7 @@ public interface DiagramPackage extends EPackage {
* @generated
* @ordered
*/
- int EDGE_DESCRIPTION__BEGIN_LABEL_EXPRESSION = DIAGRAM_ELEMENT_DESCRIPTION_FEATURE_COUNT;
+ int EDGE_DESCRIPTION__BEGIN_LABEL_EXPRESSION = DIAGRAM_ELEMENT_DESCRIPTION_FEATURE_COUNT + 0;
/**
* The feature id for the 'Center Label Expression ' attribute.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.LayoutStrategyDescription
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getLayoutStrategyDescription()
+ * @generated
*/
int LAYOUT_STRATEGY_DESCRIPTION = 4;
@@ -665,9 +665,9 @@ public interface DiagramPackage extends EPackage {
* '{@link org.eclipse.sirius.components.view.diagram.impl.ListLayoutStrategyDescriptionImpl List Layout
* Strategy Description }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.ListLayoutStrategyDescriptionImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getListLayoutStrategyDescription()
+ * @generated
*/
int LIST_LAYOUT_STRATEGY_DESCRIPTION = 5;
@@ -678,7 +678,7 @@ public interface DiagramPackage extends EPackage {
* @generated
* @ordered
*/
- int LIST_LAYOUT_STRATEGY_DESCRIPTION__ARE_CHILD_NODES_DRAGGABLE_EXPRESSION = LAYOUT_STRATEGY_DESCRIPTION_FEATURE_COUNT;
+ int LIST_LAYOUT_STRATEGY_DESCRIPTION__ARE_CHILD_NODES_DRAGGABLE_EXPRESSION = LAYOUT_STRATEGY_DESCRIPTION_FEATURE_COUNT + 0;
/**
* The feature id for the 'Top Gap Expression ' attribute.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.FreeFormLayoutStrategyDescriptionImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getFreeFormLayoutStrategyDescription()
+ * @generated
*/
int FREE_FORM_LAYOUT_STRATEGY_DESCRIPTION = 6;
@@ -743,7 +743,7 @@ public interface DiagramPackage extends EPackage {
* @generated
* @ordered
*/
- int FREE_FORM_LAYOUT_STRATEGY_DESCRIPTION_FEATURE_COUNT = LAYOUT_STRATEGY_DESCRIPTION_FEATURE_COUNT;
+ int FREE_FORM_LAYOUT_STRATEGY_DESCRIPTION_FEATURE_COUNT = LAYOUT_STRATEGY_DESCRIPTION_FEATURE_COUNT + 0;
/**
* The number of operations of the 'Free Form Layout Strategy Description ' class.
@@ -752,15 +752,15 @@ public interface DiagramPackage extends EPackage {
* @generated
* @ordered
*/
- int FREE_FORM_LAYOUT_STRATEGY_DESCRIPTION_OPERATION_COUNT = LAYOUT_STRATEGY_DESCRIPTION_OPERATION_COUNT;
+ int FREE_FORM_LAYOUT_STRATEGY_DESCRIPTION_OPERATION_COUNT = LAYOUT_STRATEGY_DESCRIPTION_OPERATION_COUNT + 0;
/**
* The meta object id for the '{@link org.eclipse.sirius.components.view.diagram.impl.LabelDescriptionImpl Label
* Description }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.LabelDescriptionImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getLabelDescription()
+ * @generated
*/
int LABEL_DESCRIPTION = 7;
@@ -811,9 +811,9 @@ public interface DiagramPackage extends EPackage {
* The meta object id for the '{@link org.eclipse.sirius.components.view.diagram.impl.InsideLabelDescriptionImpl
* Inside Label Description }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.InsideLabelDescriptionImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getInsideLabelDescription()
+ * @generated
*/
int INSIDE_LABEL_DESCRIPTION = 8;
@@ -849,7 +849,7 @@ public interface DiagramPackage extends EPackage {
* @generated
* @ordered
*/
- int INSIDE_LABEL_DESCRIPTION__POSITION = LABEL_DESCRIPTION_FEATURE_COUNT;
+ int INSIDE_LABEL_DESCRIPTION__POSITION = LABEL_DESCRIPTION_FEATURE_COUNT + 0;
/**
* The feature id for the 'Style ' containment reference.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.OutsideLabelDescriptionImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getOutsideLabelDescription()
+ * @generated
*/
int OUTSIDE_LABEL_DESCRIPTION = 9;
@@ -929,7 +929,7 @@ public interface DiagramPackage extends EPackage {
* @generated
* @ordered
*/
- int OUTSIDE_LABEL_DESCRIPTION__POSITION = LABEL_DESCRIPTION_FEATURE_COUNT;
+ int OUTSIDE_LABEL_DESCRIPTION__POSITION = LABEL_DESCRIPTION_FEATURE_COUNT + 0;
/**
* The feature id for the 'Style ' containment reference.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.StyleImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getStyle()
+ * @generated
*/
int STYLE = 10;
@@ -1005,9 +1005,9 @@ public interface DiagramPackage extends EPackage {
* The meta object id for the '{@link org.eclipse.sirius.components.view.diagram.BorderStyle Border Style }'
* class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.BorderStyle
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getBorderStyle()
+ * @generated
*/
int BORDER_STYLE = 11;
@@ -1065,9 +1065,9 @@ public interface DiagramPackage extends EPackage {
* The meta object id for the '{@link org.eclipse.sirius.components.view.diagram.NodeLabelStyle Node Label
* Style }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.NodeLabelStyle
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getNodeLabelStyle()
+ * @generated
*/
int NODE_LABEL_STYLE = 14;
@@ -1117,7 +1117,7 @@ public interface DiagramPackage extends EPackage {
* @generated
* @ordered
*/
- int NODE_LABEL_STYLE__BORDER_COLOR = ViewPackage.LABEL_STYLE_FEATURE_COUNT;
+ int NODE_LABEL_STYLE__BORDER_COLOR = ViewPackage.LABEL_STYLE_FEATURE_COUNT + 0;
/**
* The feature id for the 'Border Radius ' attribute.
@@ -1191,15 +1191,15 @@ public interface DiagramPackage extends EPackage {
* @generated
* @ordered
*/
- int NODE_LABEL_STYLE_OPERATION_COUNT = ViewPackage.LABEL_STYLE_OPERATION_COUNT;
+ int NODE_LABEL_STYLE_OPERATION_COUNT = ViewPackage.LABEL_STYLE_OPERATION_COUNT + 0;
/**
* The meta object id for the '{@link org.eclipse.sirius.components.view.diagram.impl.InsideLabelStyleImpl
* Inside Label Style }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.InsideLabelStyleImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getInsideLabelStyle()
+ * @generated
*/
int INSIDE_LABEL_STYLE = 12;
@@ -1314,7 +1314,7 @@ public interface DiagramPackage extends EPackage {
* @generated
* @ordered
*/
- int INSIDE_LABEL_STYLE__WITH_HEADER = NODE_LABEL_STYLE_FEATURE_COUNT;
+ int INSIDE_LABEL_STYLE__WITH_HEADER = NODE_LABEL_STYLE_FEATURE_COUNT + 0;
/**
* The feature id for the 'Display Header Separator ' attribute.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.OutsideLabelStyleImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getOutsideLabelStyle()
+ * @generated
*/
int OUTSIDE_LABEL_STYLE = 13;
@@ -1465,7 +1465,7 @@ public interface DiagramPackage extends EPackage {
* @generated
* @ordered
*/
- int OUTSIDE_LABEL_STYLE_FEATURE_COUNT = NODE_LABEL_STYLE_FEATURE_COUNT;
+ int OUTSIDE_LABEL_STYLE_FEATURE_COUNT = NODE_LABEL_STYLE_FEATURE_COUNT + 0;
/**
* The number of operations of the 'Outside Label Style ' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.NodeStyleDescription
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getNodeStyleDescription()
+ * @generated
*/
int NODE_STYLE_DESCRIPTION = 15;
@@ -1493,338 +1493,381 @@ public interface DiagramPackage extends EPackage {
* @ordered
*/
int NODE_STYLE_DESCRIPTION__BORDER_COLOR = BORDER_STYLE__BORDER_COLOR;
+
/**
- * The feature id for the 'Border Color ' reference.
+ * The feature id for the 'Border Radius ' attribute.
*
* @generated
* @ordered
*/
- int RECTANGULAR_NODE_STYLE_DESCRIPTION__BORDER_COLOR = NODE_STYLE_DESCRIPTION__BORDER_COLOR;
+ int NODE_STYLE_DESCRIPTION__BORDER_RADIUS = BORDER_STYLE__BORDER_RADIUS;
+
/**
- * The feature id for the 'Border Color ' reference.
+ * The feature id for the 'Border Size ' attribute.
*
* @generated
* @ordered
*/
- int IMAGE_NODE_STYLE_DESCRIPTION__BORDER_COLOR = NODE_STYLE_DESCRIPTION__BORDER_COLOR;
+ int NODE_STYLE_DESCRIPTION__BORDER_SIZE = BORDER_STYLE__BORDER_SIZE;
+
/**
- * The feature id for the 'Border Color ' reference.
+ * The feature id for the 'Border Line Style ' attribute.
*
* @generated
* @ordered
*/
- int ICON_LABEL_NODE_STYLE_DESCRIPTION__BORDER_COLOR = NODE_STYLE_DESCRIPTION__BORDER_COLOR;
+ int NODE_STYLE_DESCRIPTION__BORDER_LINE_STYLE = BORDER_STYLE__BORDER_LINE_STYLE;
+
/**
- * The feature id for the 'Border Radius ' attribute.
+ * The number of structural features of the 'Node Style Description ' class.
*
* @generated
* @ordered
*/
- int NODE_STYLE_DESCRIPTION__BORDER_RADIUS = BORDER_STYLE__BORDER_RADIUS;
+ int NODE_STYLE_DESCRIPTION_FEATURE_COUNT = BORDER_STYLE_FEATURE_COUNT + 0;
+
/**
- * The feature id for the 'Border Radius ' attribute.
+ * The number of operations of the 'Node Style Description ' class.
*
* @generated
* @ordered
*/
- int RECTANGULAR_NODE_STYLE_DESCRIPTION__BORDER_RADIUS = NODE_STYLE_DESCRIPTION__BORDER_RADIUS;
+ int NODE_STYLE_DESCRIPTION_OPERATION_COUNT = BORDER_STYLE_OPERATION_COUNT + 0;
+
/**
- * The feature id for the 'Border Radius ' attribute.
+ * The meta object id for the '{@link org.eclipse.sirius.components.view.diagram.impl.ConditionalNodeStyleImpl
+ * Conditional Node Style }' class.
*
+ * @see org.eclipse.sirius.components.view.diagram.impl.ConditionalNodeStyleImpl
+ * @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getConditionalNodeStyle()
* @generated
- * @ordered
*/
- int IMAGE_NODE_STYLE_DESCRIPTION__BORDER_RADIUS = NODE_STYLE_DESCRIPTION__BORDER_RADIUS;
+ int CONDITIONAL_NODE_STYLE = 16;
+
/**
- * The feature id for the 'Border Radius ' attribute.
+ * The feature id for the 'Condition ' attribute.
*
* @generated
* @ordered
*/
- int ICON_LABEL_NODE_STYLE_DESCRIPTION__BORDER_RADIUS = NODE_STYLE_DESCRIPTION__BORDER_RADIUS;
+ int CONDITIONAL_NODE_STYLE__CONDITION = ViewPackage.CONDITIONAL__CONDITION;
+
/**
- * The feature id for the 'Border Size ' attribute.
+ * The feature id for the 'Style ' containment reference.
*
* @generated
* @ordered
*/
- int NODE_STYLE_DESCRIPTION__BORDER_SIZE = BORDER_STYLE__BORDER_SIZE;
+ int CONDITIONAL_NODE_STYLE__STYLE = ViewPackage.CONDITIONAL_FEATURE_COUNT + 0;
+
/**
- * The feature id for the 'Border Size ' attribute.
+ * The number of structural features of the 'Conditional Node Style ' class.
*
* @generated
* @ordered
*/
- int RECTANGULAR_NODE_STYLE_DESCRIPTION__BORDER_SIZE = NODE_STYLE_DESCRIPTION__BORDER_SIZE;
+ int CONDITIONAL_NODE_STYLE_FEATURE_COUNT = ViewPackage.CONDITIONAL_FEATURE_COUNT + 1;
+
/**
- * The feature id for the 'Border Size ' attribute.
+ * The number of operations of the 'Conditional Node Style ' class.
*
* @generated
* @ordered
*/
- int IMAGE_NODE_STYLE_DESCRIPTION__BORDER_SIZE = NODE_STYLE_DESCRIPTION__BORDER_SIZE;
+ int CONDITIONAL_NODE_STYLE_OPERATION_COUNT = ViewPackage.CONDITIONAL_OPERATION_COUNT + 0;
+
/**
- * The feature id for the 'Border Size ' attribute.
+ * The meta object id for the
+ * '{@link org.eclipse.sirius.components.view.diagram.impl.ConditionalInsideLabelStyleImpl Conditional Inside
+ * Label Style }' class.
*
+ * @see org.eclipse.sirius.components.view.diagram.impl.ConditionalInsideLabelStyleImpl
+ * @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getConditionalInsideLabelStyle()
* @generated
- * @ordered
*/
- int ICON_LABEL_NODE_STYLE_DESCRIPTION__BORDER_SIZE = NODE_STYLE_DESCRIPTION__BORDER_SIZE;
+ int CONDITIONAL_INSIDE_LABEL_STYLE = 17;
+
/**
- * The feature id for the 'Border Line Style ' attribute.
+ * The feature id for the 'Condition ' attribute.
*
* @generated
* @ordered
*/
- int NODE_STYLE_DESCRIPTION__BORDER_LINE_STYLE = BORDER_STYLE__BORDER_LINE_STYLE;
+ int CONDITIONAL_INSIDE_LABEL_STYLE__CONDITION = ViewPackage.CONDITIONAL__CONDITION;
+
/**
- * The feature id for the 'Border Line Style ' attribute.
*
* @generated
* @ordered
*/
- int RECTANGULAR_NODE_STYLE_DESCRIPTION__BORDER_LINE_STYLE = NODE_STYLE_DESCRIPTION__BORDER_LINE_STYLE;
+ int CONDITIONAL_INSIDE_LABEL_STYLE__STYLE = ViewPackage.CONDITIONAL_FEATURE_COUNT + 0;
+
/**
- * The feature id for the 'Border Line Style ' attribute.
+ * The number of structural features of the 'Conditional Inside Label Style ' class.
+ *
*
* @generated
* @ordered
*/
- int IMAGE_NODE_STYLE_DESCRIPTION__BORDER_LINE_STYLE = NODE_STYLE_DESCRIPTION__BORDER_LINE_STYLE;
+ int CONDITIONAL_INSIDE_LABEL_STYLE_FEATURE_COUNT = ViewPackage.CONDITIONAL_FEATURE_COUNT + 1;
+
/**
- * The feature id for the 'Border Line Style ' attribute.
+ * The number of operations of the 'Conditional Inside Label Style ' class.
*
* @generated
* @ordered
*/
- int ICON_LABEL_NODE_STYLE_DESCRIPTION__BORDER_LINE_STYLE = NODE_STYLE_DESCRIPTION__BORDER_LINE_STYLE;
+ int CONDITIONAL_INSIDE_LABEL_STYLE_OPERATION_COUNT = ViewPackage.CONDITIONAL_OPERATION_COUNT + 0;
+
/**
- * The number of structural features of the 'Node Style Description ' class.
+ * The meta object id for the
+ * '{@link org.eclipse.sirius.components.view.diagram.impl.ConditionalOutsideLabelStyleImpl Conditional Outside
+ * Label Style }' class.
+ *
+ * @see org.eclipse.sirius.components.view.diagram.impl.ConditionalOutsideLabelStyleImpl
+ * @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getConditionalOutsideLabelStyle()
+ * @generated
+ */
+ int CONDITIONAL_OUTSIDE_LABEL_STYLE = 18;
+
+ /**
+ * The feature id for the 'Condition ' attribute.
*
* @generated
* @ordered
*/
- int NODE_STYLE_DESCRIPTION_FEATURE_COUNT = BORDER_STYLE_FEATURE_COUNT;
+ int CONDITIONAL_OUTSIDE_LABEL_STYLE__CONDITION = ViewPackage.CONDITIONAL__CONDITION;
+
/**
- * The feature id for the 'Background ' reference.
+ * The feature id for the 'Style ' containment reference.
*
* @generated
* @ordered
*/
- int RECTANGULAR_NODE_STYLE_DESCRIPTION__BACKGROUND = NODE_STYLE_DESCRIPTION_FEATURE_COUNT;
+ int CONDITIONAL_OUTSIDE_LABEL_STYLE__STYLE = ViewPackage.CONDITIONAL_FEATURE_COUNT + 0;
+
/**
- * The number of structural features of the 'Rectangular Node Style Description ' class.
*
* @generated
* @ordered
*/
- int RECTANGULAR_NODE_STYLE_DESCRIPTION_FEATURE_COUNT = NODE_STYLE_DESCRIPTION_FEATURE_COUNT + 1;
+ int CONDITIONAL_OUTSIDE_LABEL_STYLE_FEATURE_COUNT = ViewPackage.CONDITIONAL_FEATURE_COUNT + 1;
+
/**
- * The feature id for the 'Shape ' attribute.
+ * The number of operations of the 'Conditional Outside Label Style ' class.
*
* @generated
* @ordered
*/
- int IMAGE_NODE_STYLE_DESCRIPTION__SHAPE = NODE_STYLE_DESCRIPTION_FEATURE_COUNT;
+ int CONDITIONAL_OUTSIDE_LABEL_STYLE_OPERATION_COUNT = ViewPackage.CONDITIONAL_OPERATION_COUNT + 0;
+
/**
- * The feature id for the 'Position Dependent Rotation ' attribute.
+ * The feature id for the 'Border Color ' reference.
*
* @generated
* @ordered
*/
- int IMAGE_NODE_STYLE_DESCRIPTION__POSITION_DEPENDENT_ROTATION = NODE_STYLE_DESCRIPTION_FEATURE_COUNT + 1;
+ int RECTANGULAR_NODE_STYLE_DESCRIPTION__BORDER_COLOR = NODE_STYLE_DESCRIPTION__BORDER_COLOR;
+
/**
- * The number of structural features of the 'Image Node Style Description ' class.
- *
+ * The feature id for the 'Border Radius ' attribute.
*
* @generated
* @ordered
*/
- int IMAGE_NODE_STYLE_DESCRIPTION_FEATURE_COUNT = NODE_STYLE_DESCRIPTION_FEATURE_COUNT + 2;
+ int RECTANGULAR_NODE_STYLE_DESCRIPTION__BORDER_RADIUS = NODE_STYLE_DESCRIPTION__BORDER_RADIUS;
+
/**
- * The feature id for the 'Background ' reference.
+ * The feature id for the 'Border Size ' attribute.
*
* @generated
* @ordered
*/
- int ICON_LABEL_NODE_STYLE_DESCRIPTION__BACKGROUND = NODE_STYLE_DESCRIPTION_FEATURE_COUNT;
+ int RECTANGULAR_NODE_STYLE_DESCRIPTION__BORDER_SIZE = NODE_STYLE_DESCRIPTION__BORDER_SIZE;
+
/**
- * The number of structural features of the 'Icon Label Node Style Description ' class.
+ * The feature id for the 'Border Line Style ' attribute.
*
* @generated
* @ordered
*/
- int ICON_LABEL_NODE_STYLE_DESCRIPTION_FEATURE_COUNT = NODE_STYLE_DESCRIPTION_FEATURE_COUNT + 1;
+ int RECTANGULAR_NODE_STYLE_DESCRIPTION__BORDER_LINE_STYLE = NODE_STYLE_DESCRIPTION__BORDER_LINE_STYLE;
+
/**
- * The number of operations of the 'Node Style Description ' class.
+ * The feature id for the 'Background ' reference.
*
* @generated
* @ordered
*/
- int NODE_STYLE_DESCRIPTION_OPERATION_COUNT = BORDER_STYLE_OPERATION_COUNT;
+ int RECTANGULAR_NODE_STYLE_DESCRIPTION__BACKGROUND = NODE_STYLE_DESCRIPTION_FEATURE_COUNT + 0;
+
/**
- * The number of operations of the 'Rectangular Node Style Description ' class.
+ * The number of structural features of the 'Rectangular Node Style Description ' class.
*
* @generated
* @ordered
*/
- int RECTANGULAR_NODE_STYLE_DESCRIPTION_OPERATION_COUNT = NODE_STYLE_DESCRIPTION_OPERATION_COUNT;
+ int RECTANGULAR_NODE_STYLE_DESCRIPTION_FEATURE_COUNT = NODE_STYLE_DESCRIPTION_FEATURE_COUNT + 1;
+
/**
- * The number of operations of the 'Image Node Style Description ' class.
*
* @generated
* @ordered
*/
- int IMAGE_NODE_STYLE_DESCRIPTION_OPERATION_COUNT = NODE_STYLE_DESCRIPTION_OPERATION_COUNT;
+ int RECTANGULAR_NODE_STYLE_DESCRIPTION_OPERATION_COUNT = NODE_STYLE_DESCRIPTION_OPERATION_COUNT + 0;
+
/**
- * The number of operations of the 'Icon Label Node Style Description ' class.
+ * The feature id for the 'Border Color ' reference.
*
* @generated
* @ordered
*/
- int ICON_LABEL_NODE_STYLE_DESCRIPTION_OPERATION_COUNT = NODE_STYLE_DESCRIPTION_OPERATION_COUNT;
+ int IMAGE_NODE_STYLE_DESCRIPTION__BORDER_COLOR = NODE_STYLE_DESCRIPTION__BORDER_COLOR;
+
/**
- * The meta object id for the '{@link org.eclipse.sirius.components.view.diagram.impl.ConditionalNodeStyleImpl
- * Conditional Node Style }' class.
+ * The feature id for the 'Border Radius ' attribute.
*
* @generated
- * @see org.eclipse.sirius.components.view.diagram.impl.ConditionalNodeStyleImpl
- * @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getConditionalNodeStyle()
+ * @ordered
*/
- int CONDITIONAL_NODE_STYLE = 16;
+ int IMAGE_NODE_STYLE_DESCRIPTION__BORDER_RADIUS = NODE_STYLE_DESCRIPTION__BORDER_RADIUS;
+
/**
- * The feature id for the 'Condition ' attribute.
+ * The feature id for the 'Border Size ' attribute.
*
* @generated
* @ordered
*/
- int CONDITIONAL_NODE_STYLE__CONDITION = ViewPackage.CONDITIONAL__CONDITION;
+ int IMAGE_NODE_STYLE_DESCRIPTION__BORDER_SIZE = NODE_STYLE_DESCRIPTION__BORDER_SIZE;
+
/**
- * The feature id for the 'Style ' containment reference.
*
* @generated
* @ordered
*/
- int CONDITIONAL_NODE_STYLE__STYLE = ViewPackage.CONDITIONAL_FEATURE_COUNT;
+ int IMAGE_NODE_STYLE_DESCRIPTION__BORDER_LINE_STYLE = NODE_STYLE_DESCRIPTION__BORDER_LINE_STYLE;
+
/**
- * The number of structural features of the 'Conditional Node Style ' class.
+ * The feature id for the 'Shape ' attribute.
*
* @generated
* @ordered
*/
- int CONDITIONAL_NODE_STYLE_FEATURE_COUNT = ViewPackage.CONDITIONAL_FEATURE_COUNT + 1;
+ int IMAGE_NODE_STYLE_DESCRIPTION__SHAPE = NODE_STYLE_DESCRIPTION_FEATURE_COUNT + 0;
+
/**
- * The number of operations of the 'Conditional Node Style ' class.
*
* @generated
* @ordered
*/
- int CONDITIONAL_NODE_STYLE_OPERATION_COUNT = ViewPackage.CONDITIONAL_OPERATION_COUNT;
+ int IMAGE_NODE_STYLE_DESCRIPTION__POSITION_DEPENDENT_ROTATION = NODE_STYLE_DESCRIPTION_FEATURE_COUNT + 1;
+
/**
- * The meta object id for the
- * '{@link org.eclipse.sirius.components.view.diagram.impl.ConditionalInsideLabelStyleImpl Conditional Inside
- * Label Style }' class.
+ * The number of structural features of the 'Image Node Style Description ' class.
+ *
*
* @generated
- * @see org.eclipse.sirius.components.view.diagram.impl.ConditionalInsideLabelStyleImpl
- * @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getConditionalInsideLabelStyle()
+ * @ordered
*/
- int CONDITIONAL_INSIDE_LABEL_STYLE = 17;
+ int IMAGE_NODE_STYLE_DESCRIPTION_FEATURE_COUNT = NODE_STYLE_DESCRIPTION_FEATURE_COUNT + 2;
+
/**
- * The feature id for the 'Condition ' attribute.
+ * The number of operations of the 'Image Node Style Description ' class.
*
* @generated
* @ordered
*/
- int CONDITIONAL_INSIDE_LABEL_STYLE__CONDITION = ViewPackage.CONDITIONAL__CONDITION;
+ int IMAGE_NODE_STYLE_DESCRIPTION_OPERATION_COUNT = NODE_STYLE_DESCRIPTION_OPERATION_COUNT + 0;
+
/**
- * The feature id for the 'Style ' containment reference.
+ * The feature id for the 'Border Color ' reference.
*
* @generated
* @ordered
*/
- int CONDITIONAL_INSIDE_LABEL_STYLE__STYLE = ViewPackage.CONDITIONAL_FEATURE_COUNT;
+ int ICON_LABEL_NODE_STYLE_DESCRIPTION__BORDER_COLOR = NODE_STYLE_DESCRIPTION__BORDER_COLOR;
+
/**
- * The number of structural features of the 'Conditional Inside Label Style ' class.
- *
+ * The feature id for the 'Border Radius ' attribute.
*
* @generated
* @ordered
*/
- int CONDITIONAL_INSIDE_LABEL_STYLE_FEATURE_COUNT = ViewPackage.CONDITIONAL_FEATURE_COUNT + 1;
+ int ICON_LABEL_NODE_STYLE_DESCRIPTION__BORDER_RADIUS = NODE_STYLE_DESCRIPTION__BORDER_RADIUS;
+
/**
- * The number of operations of the 'Conditional Inside Label Style ' class.
+ * The feature id for the 'Border Size ' attribute.
*
* @generated
* @ordered
*/
- int CONDITIONAL_INSIDE_LABEL_STYLE_OPERATION_COUNT = ViewPackage.CONDITIONAL_OPERATION_COUNT;
+ int ICON_LABEL_NODE_STYLE_DESCRIPTION__BORDER_SIZE = NODE_STYLE_DESCRIPTION__BORDER_SIZE;
+
/**
- * The meta object id for the
- * '{@link org.eclipse.sirius.components.view.diagram.impl.ConditionalOutsideLabelStyleImpl Conditional Outside
- * Label Style }' class.
- *
- * @generated
- * @see org.eclipse.sirius.components.view.diagram.impl.ConditionalOutsideLabelStyleImpl
- * @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getConditionalOutsideLabelStyle()
- */
- int CONDITIONAL_OUTSIDE_LABEL_STYLE = 18;
- /**
- * The feature id for the 'Condition ' attribute.
+ * The feature id for the 'Border Line Style ' attribute.
*
* @generated
* @ordered
*/
- int CONDITIONAL_OUTSIDE_LABEL_STYLE__CONDITION = ViewPackage.CONDITIONAL__CONDITION;
+ int ICON_LABEL_NODE_STYLE_DESCRIPTION__BORDER_LINE_STYLE = NODE_STYLE_DESCRIPTION__BORDER_LINE_STYLE;
+
/**
- * The feature id for the 'Style ' containment reference.
+ * The feature id for the 'Background ' reference.
*
* @generated
* @ordered
*/
- int CONDITIONAL_OUTSIDE_LABEL_STYLE__STYLE = ViewPackage.CONDITIONAL_FEATURE_COUNT;
+ int ICON_LABEL_NODE_STYLE_DESCRIPTION__BACKGROUND = NODE_STYLE_DESCRIPTION_FEATURE_COUNT + 0;
+
/**
- * The number of structural features of the 'Conditional Outside Label Style ' class.
*
* @generated
* @ordered
*/
- int CONDITIONAL_OUTSIDE_LABEL_STYLE_FEATURE_COUNT = ViewPackage.CONDITIONAL_FEATURE_COUNT + 1;
+ int ICON_LABEL_NODE_STYLE_DESCRIPTION_FEATURE_COUNT = NODE_STYLE_DESCRIPTION_FEATURE_COUNT + 1;
+
/**
- * The number of operations of the 'Conditional Outside Label Style ' class.
*
* @generated
* @ordered
*/
- int CONDITIONAL_OUTSIDE_LABEL_STYLE_OPERATION_COUNT = ViewPackage.CONDITIONAL_OPERATION_COUNT;
+ int ICON_LABEL_NODE_STYLE_DESCRIPTION_OPERATION_COUNT = NODE_STYLE_DESCRIPTION_OPERATION_COUNT + 0;
+
/**
* The meta object id for the
* '{@link org.eclipse.sirius.components.view.diagram.impl.RectangularNodeStyleDescriptionImpl Rectangular Node
* Style Description }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.RectangularNodeStyleDescriptionImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getRectangularNodeStyleDescription()
+ * @generated
*/
int RECTANGULAR_NODE_STYLE_DESCRIPTION = 19;
@@ -1832,9 +1875,9 @@ public interface DiagramPackage extends EPackage {
* The meta object id for the '{@link org.eclipse.sirius.components.view.diagram.impl.ImageNodeStyleDescriptionImpl
* Image Node Style Description }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.ImageNodeStyleDescriptionImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getImageNodeStyleDescription()
+ * @generated
*/
int IMAGE_NODE_STYLE_DESCRIPTION = 20;
@@ -1843,9 +1886,9 @@ public interface DiagramPackage extends EPackage {
* '{@link org.eclipse.sirius.components.view.diagram.impl.IconLabelNodeStyleDescriptionImpl Icon Label Node
* Style Description }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.IconLabelNodeStyleDescriptionImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getIconLabelNodeStyleDescription()
+ * @generated
*/
int ICON_LABEL_NODE_STYLE_DESCRIPTION = 21;
@@ -1853,9 +1896,9 @@ public interface DiagramPackage extends EPackage {
* The meta object id for the '{@link org.eclipse.sirius.components.view.diagram.impl.EdgeStyleImpl Edge
* Style }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.EdgeStyleImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getEdgeStyle()
+ * @generated
*/
int EDGE_STYLE = 22;
@@ -1873,7 +1916,7 @@ public interface DiagramPackage extends EPackage {
* @generated
* @ordered
*/
- int EDGE_STYLE__FONT_SIZE = STYLE_FEATURE_COUNT;
+ int EDGE_STYLE__FONT_SIZE = STYLE_FEATURE_COUNT + 0;
/**
* The feature id for the 'Italic ' attribute.
@@ -2013,15 +2056,15 @@ public interface DiagramPackage extends EPackage {
* @generated
* @ordered
*/
- int EDGE_STYLE_OPERATION_COUNT = STYLE_OPERATION_COUNT;
+ int EDGE_STYLE_OPERATION_COUNT = STYLE_OPERATION_COUNT + 0;
/**
* The meta object id for the '{@link org.eclipse.sirius.components.view.diagram.impl.ConditionalEdgeStyleImpl
* Conditional Edge Style }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.ConditionalEdgeStyleImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getConditionalEdgeStyle()
+ * @generated
*/
int CONDITIONAL_EDGE_STYLE = 23;
@@ -2039,7 +2082,7 @@ public interface DiagramPackage extends EPackage {
* @generated
* @ordered
*/
- int CONDITIONAL_EDGE_STYLE__COLOR = ViewPackage.CONDITIONAL_FEATURE_COUNT;
+ int CONDITIONAL_EDGE_STYLE__COLOR = ViewPackage.CONDITIONAL_FEATURE_COUNT + 0;
/**
* The feature id for the 'Font Size ' attribute.
@@ -2188,15 +2231,15 @@ public interface DiagramPackage extends EPackage {
* @generated
* @ordered
*/
- int CONDITIONAL_EDGE_STYLE_OPERATION_COUNT = ViewPackage.CONDITIONAL_OPERATION_COUNT;
+ int CONDITIONAL_EDGE_STYLE_OPERATION_COUNT = ViewPackage.CONDITIONAL_OPERATION_COUNT + 0;
/**
* The meta object id for the '{@link org.eclipse.sirius.components.view.diagram.impl.DiagramPaletteImpl
* Palette }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPaletteImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getDiagramPalette()
+ * @generated
*/
int DIAGRAM_PALETTE = 24;
@@ -2256,9 +2299,9 @@ public interface DiagramPackage extends EPackage {
* The meta object id for the '{@link org.eclipse.sirius.components.view.diagram.impl.NodePaletteImpl Node
* Palette }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.NodePaletteImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getNodePalette()
+ * @generated
*/
int NODE_PALETTE = 25;
@@ -2337,9 +2380,9 @@ public interface DiagramPackage extends EPackage {
* The meta object id for the '{@link org.eclipse.sirius.components.view.diagram.impl.EdgePaletteImpl Edge
* Palette }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.EdgePaletteImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getEdgePalette()
+ * @generated
*/
int EDGE_PALETTE = 26;
@@ -2427,9 +2470,9 @@ public interface DiagramPackage extends EPackage {
* The meta object id for the '{@link org.eclipse.sirius.components.view.diagram.impl.ToolImpl Tool }'
* class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.ToolImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getTool()
+ * @generated
*/
int TOOL = 27;
@@ -2479,9 +2522,9 @@ public interface DiagramPackage extends EPackage {
* The meta object id for the '{@link org.eclipse.sirius.components.view.diagram.impl.DeleteToolImpl Delete
* Tool }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.DeleteToolImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getDeleteTool()
+ * @generated
*/
int DELETE_TOOL = 28;
@@ -2518,7 +2561,7 @@ public interface DiagramPackage extends EPackage {
* @generated
* @ordered
*/
- int DELETE_TOOL_FEATURE_COUNT = TOOL_FEATURE_COUNT;
+ int DELETE_TOOL_FEATURE_COUNT = TOOL_FEATURE_COUNT + 0;
/**
* The number of operations of the 'Delete Tool ' class.
@@ -2526,15 +2569,15 @@ public interface DiagramPackage extends EPackage {
* @generated
* @ordered
*/
- int DELETE_TOOL_OPERATION_COUNT = TOOL_OPERATION_COUNT;
+ int DELETE_TOOL_OPERATION_COUNT = TOOL_OPERATION_COUNT + 0;
/**
* The meta object id for the '{@link org.eclipse.sirius.components.view.diagram.impl.DropToolImpl Drop
* Tool }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.DropToolImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getDropTool()
+ * @generated
*/
int DROP_TOOL = 29;
@@ -2571,7 +2614,7 @@ public interface DiagramPackage extends EPackage {
* @generated
* @ordered
*/
- int DROP_TOOL_FEATURE_COUNT = TOOL_FEATURE_COUNT;
+ int DROP_TOOL_FEATURE_COUNT = TOOL_FEATURE_COUNT + 0;
/**
* The number of operations of the 'Drop Tool ' class.
@@ -2579,15 +2622,15 @@ public interface DiagramPackage extends EPackage {
* @generated
* @ordered
*/
- int DROP_TOOL_OPERATION_COUNT = TOOL_OPERATION_COUNT;
+ int DROP_TOOL_OPERATION_COUNT = TOOL_OPERATION_COUNT + 0;
/**
* The meta object id for the '{@link org.eclipse.sirius.components.view.diagram.impl.EdgeToolImpl Edge
* Tool }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.EdgeToolImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getEdgeTool()
+ * @generated
*/
int EDGE_TOOL = 30;
@@ -2624,7 +2667,7 @@ public interface DiagramPackage extends EPackage {
* @generated
* @ordered
*/
- int EDGE_TOOL__TARGET_ELEMENT_DESCRIPTIONS = TOOL_FEATURE_COUNT;
+ int EDGE_TOOL__TARGET_ELEMENT_DESCRIPTIONS = TOOL_FEATURE_COUNT + 0;
/**
* The feature id for the 'Icon UR Ls Expression ' attribute.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.EdgeReconnectionToolImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getEdgeReconnectionTool()
+ * @generated
*/
int EDGE_RECONNECTION_TOOL = 31;
@@ -2669,60 +2712,70 @@ public interface DiagramPackage extends EPackage {
* @ordered
*/
int EDGE_RECONNECTION_TOOL__NAME = TOOL__NAME;
+
/**
- * The feature id for the 'Name ' attribute.
+ * The feature id for the 'Precondition Expression ' attribute.
*
* @generated
* @ordered
*/
- int SOURCE_EDGE_END_RECONNECTION_TOOL__NAME = EDGE_RECONNECTION_TOOL__NAME;
+ int EDGE_RECONNECTION_TOOL__PRECONDITION_EXPRESSION = TOOL__PRECONDITION_EXPRESSION;
+
/**
- * The feature id for the 'Name ' attribute.
+ * The feature id for the 'Body ' containment reference list.
*
* @generated
* @ordered
*/
- int TARGET_EDGE_END_RECONNECTION_TOOL__NAME = EDGE_RECONNECTION_TOOL__NAME;
+ int EDGE_RECONNECTION_TOOL__BODY = TOOL__BODY;
+
/**
- * The feature id for the 'Precondition Expression ' attribute.
*
* @generated
* @ordered
*/
- int EDGE_RECONNECTION_TOOL__PRECONDITION_EXPRESSION = TOOL__PRECONDITION_EXPRESSION;
+ int EDGE_RECONNECTION_TOOL_FEATURE_COUNT = TOOL_FEATURE_COUNT + 0;
+
/**
- * The feature id for the 'Precondition Expression ' attribute.
*
* @generated
* @ordered
*/
- int SOURCE_EDGE_END_RECONNECTION_TOOL__PRECONDITION_EXPRESSION = EDGE_RECONNECTION_TOOL__PRECONDITION_EXPRESSION;
+ int EDGE_RECONNECTION_TOOL_OPERATION_COUNT = TOOL_OPERATION_COUNT + 0;
+
/**
- * The feature id for the 'Precondition Expression ' attribute.
+ * The meta object id for the '{@link org.eclipse.sirius.components.view.diagram.impl.LabelEditToolImpl Label
+ * Edit Tool }' class.
*
+ * @see org.eclipse.sirius.components.view.diagram.impl.LabelEditToolImpl
+ * @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getLabelEditTool()
* @generated
- * @ordered
*/
- int TARGET_EDGE_END_RECONNECTION_TOOL__PRECONDITION_EXPRESSION = EDGE_RECONNECTION_TOOL__PRECONDITION_EXPRESSION;
+ int LABEL_EDIT_TOOL = 32;
+
/**
- * The feature id for the 'Body ' containment reference list.
+ * The feature id for the 'Name ' attribute.
*
* @generated
* @ordered
*/
- int EDGE_RECONNECTION_TOOL__BODY = TOOL__BODY;
+ int LABEL_EDIT_TOOL__NAME = TOOL__NAME;
+
/**
- * The feature id for the 'Body ' containment reference list.
*
* @generated
* @ordered
*/
- int SOURCE_EDGE_END_RECONNECTION_TOOL__BODY = EDGE_RECONNECTION_TOOL__BODY;
+ int LABEL_EDIT_TOOL__PRECONDITION_EXPRESSION = TOOL__PRECONDITION_EXPRESSION;
+
/**
* The feature id for the 'Body ' containment reference list.
@@ -2730,181 +2783,201 @@ public interface DiagramPackage extends EPackage {
* @generated
* @ordered
*/
- int TARGET_EDGE_END_RECONNECTION_TOOL__BODY = EDGE_RECONNECTION_TOOL__BODY;
+ int LABEL_EDIT_TOOL__BODY = TOOL__BODY;
+
/**
- * The number of structural features of the 'Edge Reconnection Tool ' class.
+ * The feature id for the 'Initial Direct Edit Label Expression ' attribute.
+ *
*
* @generated
* @ordered
*/
- int EDGE_RECONNECTION_TOOL_FEATURE_COUNT = TOOL_FEATURE_COUNT;
+ int LABEL_EDIT_TOOL__INITIAL_DIRECT_EDIT_LABEL_EXPRESSION = TOOL_FEATURE_COUNT + 0;
+
/**
- * The number of structural features of the 'Source Edge End Reconnection Tool ' class.
+ * The number of structural features of the 'Label Edit Tool ' class.
*
* @generated
* @ordered
*/
- int SOURCE_EDGE_END_RECONNECTION_TOOL_FEATURE_COUNT = EDGE_RECONNECTION_TOOL_FEATURE_COUNT;
+ int LABEL_EDIT_TOOL_FEATURE_COUNT = TOOL_FEATURE_COUNT + 1;
+
/**
- * The number of structural features of the 'Target Edge End Reconnection Tool ' class.
+ * The number of operations of the 'Label Edit Tool ' class.
*
* @generated
* @ordered
*/
- int TARGET_EDGE_END_RECONNECTION_TOOL_FEATURE_COUNT = EDGE_RECONNECTION_TOOL_FEATURE_COUNT;
+ int LABEL_EDIT_TOOL_OPERATION_COUNT = TOOL_OPERATION_COUNT + 0;
+
/**
- * The number of operations of the 'Edge Reconnection Tool ' class.
+ * The meta object id for the '{@link org.eclipse.sirius.components.view.diagram.impl.NodeToolImpl Node
+ * Tool }' class.
*
+ * @see org.eclipse.sirius.components.view.diagram.impl.NodeToolImpl
+ * @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getNodeTool()
* @generated
- * @ordered
*/
- int EDGE_RECONNECTION_TOOL_OPERATION_COUNT = TOOL_OPERATION_COUNT;
+ int NODE_TOOL = 33;
+
/**
- * The number of operations of the 'Source Edge End Reconnection Tool ' class.
+ * The feature id for the 'Name ' attribute.
*
* @generated
* @ordered
*/
- int SOURCE_EDGE_END_RECONNECTION_TOOL_OPERATION_COUNT = EDGE_RECONNECTION_TOOL_OPERATION_COUNT;
+ int NODE_TOOL__NAME = TOOL__NAME;
+
/**
- * The number of operations of the 'Target Edge End Reconnection Tool ' class.
*
* @generated
* @ordered
*/
- int TARGET_EDGE_END_RECONNECTION_TOOL_OPERATION_COUNT = EDGE_RECONNECTION_TOOL_OPERATION_COUNT;
+ int NODE_TOOL__PRECONDITION_EXPRESSION = TOOL__PRECONDITION_EXPRESSION;
+
/**
- * The meta object id for the '{@link org.eclipse.sirius.components.view.diagram.impl.LabelEditToolImpl Label
- * Edit Tool }' class.
+ * The feature id for the 'Body ' containment reference list.
*
* @generated
- * @see org.eclipse.sirius.components.view.diagram.impl.LabelEditToolImpl
- * @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getLabelEditTool()
+ * @ordered
*/
- int LABEL_EDIT_TOOL = 32;
+ int NODE_TOOL__BODY = TOOL__BODY;
+
/**
- * The feature id for the 'Name ' attribute.
+ * The feature id for the 'Dialog Description ' containment reference.
*
* @generated
* @ordered
*/
- int LABEL_EDIT_TOOL__NAME = TOOL__NAME;
+ int NODE_TOOL__DIALOG_DESCRIPTION = TOOL_FEATURE_COUNT + 0;
+
/**
- * The feature id for the 'Precondition Expression ' attribute.
*
* @generated
* @ordered
*/
- int LABEL_EDIT_TOOL__PRECONDITION_EXPRESSION = TOOL__PRECONDITION_EXPRESSION;
+ int NODE_TOOL__ICON_UR_LS_EXPRESSION = TOOL_FEATURE_COUNT + 1;
+
/**
- * The feature id for the 'Body ' containment reference list.
+ * The number of structural features of the 'Node Tool ' class.
*
* @generated
* @ordered
*/
- int LABEL_EDIT_TOOL__BODY = TOOL__BODY;
+ int NODE_TOOL_FEATURE_COUNT = TOOL_FEATURE_COUNT + 2;
+
/**
- * The feature id for the 'Initial Direct Edit Label Expression ' attribute.
- *
+ * The number of operations of the 'Node Tool ' class.
*
* @generated
* @ordered
*/
- int LABEL_EDIT_TOOL__INITIAL_DIRECT_EDIT_LABEL_EXPRESSION = TOOL_FEATURE_COUNT;
+ int NODE_TOOL_OPERATION_COUNT = TOOL_OPERATION_COUNT + 0;
+
/**
- * The number of structural features of the 'Label Edit Tool ' class.
+ * The feature id for the 'Name ' attribute.
*
* @generated
* @ordered
*/
- int LABEL_EDIT_TOOL_FEATURE_COUNT = TOOL_FEATURE_COUNT + 1;
+ int SOURCE_EDGE_END_RECONNECTION_TOOL__NAME = EDGE_RECONNECTION_TOOL__NAME;
+
/**
- * The number of operations of the 'Label Edit Tool ' class.
+ * The feature id for the 'Precondition Expression ' attribute.
*
* @generated
* @ordered
*/
- int LABEL_EDIT_TOOL_OPERATION_COUNT = TOOL_OPERATION_COUNT;
+ int SOURCE_EDGE_END_RECONNECTION_TOOL__PRECONDITION_EXPRESSION = EDGE_RECONNECTION_TOOL__PRECONDITION_EXPRESSION;
+
/**
- * The meta object id for the '{@link org.eclipse.sirius.components.view.diagram.impl.NodeToolImpl Node
- * Tool }' class.
+ * The feature id for the 'Body ' containment reference list.
*
* @generated
- * @see org.eclipse.sirius.components.view.diagram.impl.NodeToolImpl
- * @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getNodeTool()
+ * @ordered
*/
- int NODE_TOOL = 33;
+ int SOURCE_EDGE_END_RECONNECTION_TOOL__BODY = EDGE_RECONNECTION_TOOL__BODY;
+
/**
- * The feature id for the 'Name ' attribute.
+ * The number of structural features of the 'Source Edge End Reconnection Tool ' class.
*
* @generated
* @ordered
*/
- int NODE_TOOL__NAME = TOOL__NAME;
+ int SOURCE_EDGE_END_RECONNECTION_TOOL_FEATURE_COUNT = EDGE_RECONNECTION_TOOL_FEATURE_COUNT + 0;
+
/**
- * The feature id for the 'Precondition Expression ' attribute.
*
* @generated
* @ordered
*/
- int NODE_TOOL__PRECONDITION_EXPRESSION = TOOL__PRECONDITION_EXPRESSION;
+ int SOURCE_EDGE_END_RECONNECTION_TOOL_OPERATION_COUNT = EDGE_RECONNECTION_TOOL_OPERATION_COUNT + 0;
+
/**
- * The feature id for the 'Body ' containment reference list.
+ * The feature id for the 'Name ' attribute.
*
* @generated
* @ordered
*/
- int NODE_TOOL__BODY = TOOL__BODY;
+ int TARGET_EDGE_END_RECONNECTION_TOOL__NAME = EDGE_RECONNECTION_TOOL__NAME;
+
/**
- * The feature id for the 'Selection Description ' containment reference.
- *
+ * The feature id for the 'Precondition Expression ' attribute.
*
* @generated
* @ordered
*/
- int NODE_TOOL__SELECTION_DESCRIPTION = TOOL_FEATURE_COUNT;
+ int TARGET_EDGE_END_RECONNECTION_TOOL__PRECONDITION_EXPRESSION = EDGE_RECONNECTION_TOOL__PRECONDITION_EXPRESSION;
+
/**
- * The feature id for the 'Icon UR Ls Expression ' attribute.
*
* @generated
* @ordered
*/
- int NODE_TOOL__ICON_UR_LS_EXPRESSION = TOOL_FEATURE_COUNT + 1;
+ int TARGET_EDGE_END_RECONNECTION_TOOL__BODY = EDGE_RECONNECTION_TOOL__BODY;
+
/**
- * The number of structural features of the 'Node Tool ' class.
+ * The number of structural features of the 'Target Edge End Reconnection Tool ' class.
*
* @generated
* @ordered
*/
- int NODE_TOOL_FEATURE_COUNT = TOOL_FEATURE_COUNT + 2;
+ int TARGET_EDGE_END_RECONNECTION_TOOL_FEATURE_COUNT = EDGE_RECONNECTION_TOOL_FEATURE_COUNT + 0;
+
/**
- * The number of operations of the 'Node Tool ' class.
+ * The number of operations of the 'Target Edge End Reconnection Tool ' class.
*
* @generated
* @ordered
*/
- int NODE_TOOL_OPERATION_COUNT = TOOL_OPERATION_COUNT;
+ int TARGET_EDGE_END_RECONNECTION_TOOL_OPERATION_COUNT = EDGE_RECONNECTION_TOOL_OPERATION_COUNT + 0;
+
/**
* The meta object id for the
* '{@link org.eclipse.sirius.components.view.diagram.impl.SourceEdgeEndReconnectionToolImpl Source Edge End
* Reconnection Tool }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.SourceEdgeEndReconnectionToolImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getSourceEdgeEndReconnectionTool()
+ * @generated
*/
int SOURCE_EDGE_END_RECONNECTION_TOOL = 34;
@@ -2913,9 +2986,9 @@ public interface DiagramPackage extends EPackage {
* '{@link org.eclipse.sirius.components.view.diagram.impl.TargetEdgeEndReconnectionToolImpl Target Edge End
* Reconnection Tool }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.TargetEdgeEndReconnectionToolImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getTargetEdgeEndReconnectionTool()
+ * @generated
*/
int TARGET_EDGE_END_RECONNECTION_TOOL = 35;
@@ -2923,9 +2996,9 @@ public interface DiagramPackage extends EPackage {
* The meta object id for the '{@link org.eclipse.sirius.components.view.diagram.impl.CreateViewImpl Create
* View }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.CreateViewImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getCreateView()
+ * @generated
*/
int CREATE_VIEW = 36;
@@ -2945,7 +3018,7 @@ public interface DiagramPackage extends EPackage {
* @generated
* @ordered
*/
- int CREATE_VIEW__PARENT_VIEW_EXPRESSION = ViewPackage.OPERATION_FEATURE_COUNT;
+ int CREATE_VIEW__PARENT_VIEW_EXPRESSION = ViewPackage.OPERATION_FEATURE_COUNT + 0;
/**
* The feature id for the 'Element Description ' reference.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.DeleteViewImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getDeleteView()
+ * @generated
*/
int DELETE_VIEW = 37;
@@ -3024,7 +3097,7 @@ public interface DiagramPackage extends EPackage {
* @generated
* @ordered
*/
- int DELETE_VIEW__VIEW_EXPRESSION = ViewPackage.OPERATION_FEATURE_COUNT;
+ int DELETE_VIEW__VIEW_EXPRESSION = ViewPackage.OPERATION_FEATURE_COUNT + 0;
/**
* The number of structural features of the 'Delete View ' class.
+ * The meta object id for the '{@link org.eclipse.sirius.components.view.diagram.impl.DialogDescriptionImpl
+ * Dialog Description }' class.
*
+ * @see org.eclipse.sirius.components.view.diagram.impl.DialogDescriptionImpl
+ * @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getDialogDescription()
* @generated
- * @see org.eclipse.sirius.components.view.diagram.impl.SelectionDescriptionImpl
- * @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getSelectionDescription()
*/
- int SELECTION_DESCRIPTION = 38;
+ int DIALOG_DESCRIPTION = 44;
/**
- * The feature id for the 'Selection Candidates Expression ' attribute.
*
* @generated
* @ordered
*/
- int SELECTION_DESCRIPTION__SELECTION_CANDIDATES_EXPRESSION = 0;
+ int DIALOG_DESCRIPTION_FEATURE_COUNT = 0;
/**
- * The feature id for the 'Selection Message ' attribute.
*
* @generated
* @ordered
*/
- int SELECTION_DESCRIPTION__SELECTION_MESSAGE = 1;
+ int DIALOG_DESCRIPTION_OPERATION_COUNT = 0;
/**
- * The number of structural features of the 'Selection Description ' class.
+ *
+ * @see org.eclipse.sirius.components.view.diagram.impl.SelectionDialogDescriptionImpl
+ * @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getSelectionDialogDescription()
+ * @generated
+ */
+ int SELECTION_DIALOG_DESCRIPTION = 38;
+
+ /**
+ * The feature id for the 'Selection Candidates Expression ' attribute.
*
* @generated
* @ordered
*/
- int SELECTION_DESCRIPTION_FEATURE_COUNT = 2;
+ int SELECTION_DIALOG_DESCRIPTION__SELECTION_CANDIDATES_EXPRESSION = DIALOG_DESCRIPTION_FEATURE_COUNT + 0;
/**
- * The number of operations of the 'Selection Description ' class.
*
* @generated
* @ordered
*/
- int SELECTION_DESCRIPTION_OPERATION_COUNT = 0;
+ int SELECTION_DIALOG_DESCRIPTION__SELECTION_MESSAGE = DIALOG_DESCRIPTION_FEATURE_COUNT + 1;
+
+ /**
+ * The number of structural features of the 'Selection Dialog Description ' class.
+ *
+ *
+ * @generated
+ * @ordered
+ */
+ int SELECTION_DIALOG_DESCRIPTION_FEATURE_COUNT = DIALOG_DESCRIPTION_FEATURE_COUNT + 2;
+
+ /**
+ * The number of operations of the 'Selection Dialog Description ' class.
+ *
+ * @generated
+ * @ordered
+ */
+ int SELECTION_DIALOG_DESCRIPTION_OPERATION_COUNT = DIALOG_DESCRIPTION_OPERATION_COUNT + 0;
/**
* The meta object id for the '{@link org.eclipse.sirius.components.view.diagram.impl.ToolSectionImpl Tool
* Section }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.ToolSectionImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getToolSection()
+ * @generated
*/
int TOOL_SECTION = 39;
@@ -3128,9 +3229,9 @@ public interface DiagramPackage extends EPackage {
* The meta object id for the '{@link org.eclipse.sirius.components.view.diagram.impl.DiagramToolSectionImpl
* Tool Section }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramToolSectionImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getDiagramToolSection()
+ * @generated
*/
int DIAGRAM_TOOL_SECTION = 40;
@@ -3149,7 +3250,7 @@ public interface DiagramPackage extends EPackage {
* @generated
* @ordered
*/
- int DIAGRAM_TOOL_SECTION__NODE_TOOLS = TOOL_SECTION_FEATURE_COUNT;
+ int DIAGRAM_TOOL_SECTION__NODE_TOOLS = TOOL_SECTION_FEATURE_COUNT + 0;
/**
* The number of structural features of the 'Tool Section ' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.NodeToolSectionImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getNodeToolSection()
+ * @generated
*/
int NODE_TOOL_SECTION = 41;
@@ -3193,7 +3294,7 @@ public interface DiagramPackage extends EPackage {
* @generated
* @ordered
*/
- int NODE_TOOL_SECTION__NODE_TOOLS = TOOL_SECTION_FEATURE_COUNT;
+ int NODE_TOOL_SECTION__NODE_TOOLS = TOOL_SECTION_FEATURE_COUNT + 0;
/**
* The feature id for the 'Edge Tools ' containment reference list.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.EdgeToolSectionImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getEdgeToolSection()
+ * @generated
*/
int EDGE_TOOL_SECTION = 42;
@@ -3246,7 +3347,7 @@ public interface DiagramPackage extends EPackage {
* @generated
* @ordered
*/
- int EDGE_TOOL_SECTION__NODE_TOOLS = TOOL_SECTION_FEATURE_COUNT;
+ int EDGE_TOOL_SECTION__NODE_TOOLS = TOOL_SECTION_FEATURE_COUNT + 0;
/**
* The number of structural features of the 'Edge Tool Section ' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.DropNodeToolImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getDropNodeTool()
+ * @generated
*/
int DROP_NODE_TOOL = 43;
@@ -3308,13 +3409,15 @@ public interface DiagramPackage extends EPackage {
* @generated
* @ordered
*/
- int DROP_NODE_TOOL__ACCEPTED_NODE_TYPES = TOOL_FEATURE_COUNT;
+ int DROP_NODE_TOOL__ACCEPTED_NODE_TYPES = TOOL_FEATURE_COUNT + 0;
+
/**
* The singleton instance of the package.
*
* @generated
*/
DiagramPackage eINSTANCE = org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl.init();
+
/**
* The number of structural features of the 'Drop Node Tool ' class.
@@ -3323,111 +3426,122 @@ public interface DiagramPackage extends EPackage {
* @ordered
*/
int DROP_NODE_TOOL_FEATURE_COUNT = TOOL_FEATURE_COUNT + 1;
+
/**
* The number of operations of the 'Drop Node Tool ' class.
*
* @generated
* @ordered
*/
- int DROP_NODE_TOOL_OPERATION_COUNT = TOOL_OPERATION_COUNT;
+ int DROP_NODE_TOOL_OPERATION_COUNT = TOOL_OPERATION_COUNT + 0;
+
/**
* The meta object id for the '{@link org.eclipse.sirius.components.view.diagram.ArrowStyle Arrow Style }'
* enum.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.ArrowStyle
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getArrowStyle()
+ * @generated
*/
- int ARROW_STYLE = 44;
+ int ARROW_STYLE = 45;
+
/**
* The meta object id for the '{@link org.eclipse.sirius.components.view.diagram.LayoutDirection Layout
* Direction }' enum.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.LayoutDirection
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getLayoutDirection()
+ * @generated
*/
- int LAYOUT_DIRECTION = 45;
+ int LAYOUT_DIRECTION = 46;
+
/**
* The meta object id for the '{@link org.eclipse.sirius.components.view.diagram.LineStyle Line Style }'
* enum.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.LineStyle
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getLineStyle()
+ * @generated
*/
- int LINE_STYLE = 46;
+ int LINE_STYLE = 47;
+
/**
* The meta object id for the '{@link org.eclipse.sirius.components.view.diagram.NodeContainmentKind Node
* Containment Kind }' enum.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.NodeContainmentKind
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getNodeContainmentKind()
+ * @generated
*/
- int NODE_CONTAINMENT_KIND = 47;
+ int NODE_CONTAINMENT_KIND = 48;
+
/**
* The meta object id for the '{@link org.eclipse.sirius.components.view.diagram.SynchronizationPolicy
* Synchronization Policy }' enum.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.SynchronizationPolicy
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getSynchronizationPolicy()
+ * @generated
*/
- int SYNCHRONIZATION_POLICY = 48;
+ int SYNCHRONIZATION_POLICY = 49;
+
/**
* The meta object id for the '{@link org.eclipse.sirius.components.view.diagram.InsideLabelPosition Inside
* Label Position }' enum.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.InsideLabelPosition
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getInsideLabelPosition()
+ * @generated
*/
- int INSIDE_LABEL_POSITION = 49;
+ int INSIDE_LABEL_POSITION = 50;
+
/**
* The meta object id for the '{@link org.eclipse.sirius.components.view.diagram.OutsideLabelPosition Outside
* Label Position }' enum.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.OutsideLabelPosition
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getOutsideLabelPosition()
+ * @generated
*/
- int OUTSIDE_LABEL_POSITION = 50;
+ int OUTSIDE_LABEL_POSITION = 51;
+
/**
* The meta object id for the '{@link org.eclipse.sirius.components.view.diagram.LabelOverflowStrategy Label
* Overflow Strategy }' enum.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.LabelOverflowStrategy
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getLabelOverflowStrategy()
+ * @generated
*/
- int LABEL_OVERFLOW_STRATEGY = 51;
+ int LABEL_OVERFLOW_STRATEGY = 52;
+
/**
* The meta object id for the '{@link org.eclipse.sirius.components.view.diagram.ArrangeLayoutDirection Arrange
* Layout Direction }' enum.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.ArrangeLayoutDirection
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getArrangeLayoutDirection()
+ * @generated
*/
- int ARRANGE_LAYOUT_DIRECTION = 52;
+ int ARRANGE_LAYOUT_DIRECTION = 53;
+
/**
* The meta object id for the '{@link org.eclipse.sirius.components.view.diagram.LabelTextAlign Label Text
* Align }' enum.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.LabelTextAlign
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getLabelTextAlign()
+ * @generated
*/
- int LABEL_TEXT_ALIGN = 53;
+ int LABEL_TEXT_ALIGN = 54;
/**
* Returns the meta object for class '{@link org.eclipse.sirius.components.view.diagram.DiagramDescription
* Description }'.
*
* @return the meta object for class 'Description '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.DiagramDescription
+ * @generated
*/
EClass getDiagramDescription();
@@ -3461,9 +3575,9 @@ public interface DiagramPackage extends EPackage {
* Descriptions}'.
*
* @return the meta object for the containment reference list 'Node Descriptions '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.DiagramDescription#getNodeDescriptions()
* @see #getDiagramDescription()
+ * @generated
*/
EReference getDiagramDescription_NodeDescriptions();
@@ -3473,9 +3587,9 @@ public interface DiagramPackage extends EPackage {
* Descriptions}'.
*
* @return the meta object for the containment reference list 'Edge Descriptions '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.DiagramDescription#getEdgeDescriptions()
* @see #getDiagramDescription()
+ * @generated
*/
EReference getDiagramDescription_EdgeDescriptions();
@@ -3485,9 +3599,9 @@ public interface DiagramPackage extends EPackage {
* Layout Direction}'.
*
* @return the meta object for the attribute 'Arrange Layout Direction '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.DiagramDescription#getArrangeLayoutDirection()
* @see #getDiagramDescription()
+ * @generated
*/
EAttribute getDiagramDescription_ArrangeLayoutDirection();
@@ -3496,8 +3610,8 @@ public interface DiagramPackage extends EPackage {
* Element Description }'.
*
* @return the meta object for class 'Element Description '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.DiagramElementDescription
+ * @generated
*/
EClass getDiagramElementDescription();
@@ -3519,9 +3633,9 @@ public interface DiagramPackage extends EPackage {
* Type}'.
*
* @return the meta object for the attribute 'Domain Type '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.DiagramElementDescription#getDomainType()
* @see #getDiagramElementDescription()
+ * @generated
*/
EAttribute getDiagramElementDescription_DomainType();
@@ -3531,9 +3645,9 @@ public interface DiagramPackage extends EPackage {
* Semantic Candidates Expression }'.
*
* @return the meta object for the attribute 'Semantic Candidates Expression '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.DiagramElementDescription#getSemanticCandidatesExpression()
* @see #getDiagramElementDescription()
+ * @generated
*/
EAttribute getDiagramElementDescription_SemanticCandidatesExpression();
@@ -3543,9 +3657,9 @@ public interface DiagramPackage extends EPackage {
* Precondition Expression }'.
*
* @return the meta object for the attribute 'Precondition Expression '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.DiagramElementDescription#getPreconditionExpression()
* @see #getDiagramElementDescription()
+ * @generated
*/
EAttribute getDiagramElementDescription_PreconditionExpression();
@@ -3555,9 +3669,9 @@ public interface DiagramPackage extends EPackage {
* Synchronization Policy }'.
*
* @return the meta object for the attribute 'Synchronization Policy '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.DiagramElementDescription#getSynchronizationPolicy()
* @see #getDiagramElementDescription()
+ * @generated
*/
EAttribute getDiagramElementDescription_SynchronizationPolicy();
@@ -3566,8 +3680,8 @@ public interface DiagramPackage extends EPackage {
* Description}'.
*
* @return the meta object for class 'Node Description '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.NodeDescription
+ * @generated
*/
EClass getNodeDescription();
@@ -3601,9 +3715,9 @@ public interface DiagramPackage extends EPackage {
* Strategy}'.
*
* @return the meta object for the containment reference 'Children Layout Strategy '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.NodeDescription#getChildrenLayoutStrategy()
* @see #getNodeDescription()
+ * @generated
*/
EReference getNodeDescription_ChildrenLayoutStrategy();
@@ -3613,9 +3727,9 @@ public interface DiagramPackage extends EPackage {
* -->
*
* @return the meta object for the containment reference 'Style '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.NodeDescription#getStyle()
* @see #getNodeDescription()
+ * @generated
*/
EReference getNodeDescription_Style();
@@ -3625,9 +3739,9 @@ public interface DiagramPackage extends EPackage {
* Styles}'.
*
* @return the meta object for the containment reference list 'Conditional Styles '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.NodeDescription#getConditionalStyles()
* @see #getNodeDescription()
+ * @generated
*/
EReference getNodeDescription_ConditionalStyles();
@@ -3637,9 +3751,9 @@ public interface DiagramPackage extends EPackage {
* Descriptions}'.
*
* @return the meta object for the containment reference list 'Children Descriptions '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.NodeDescription#getChildrenDescriptions()
* @see #getNodeDescription()
+ * @generated
*/
EReference getNodeDescription_ChildrenDescriptions();
@@ -3649,9 +3763,9 @@ public interface DiagramPackage extends EPackage {
* Descriptions}'.
*
* @return the meta object for the containment reference list 'Border Nodes Descriptions '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.NodeDescription#getBorderNodesDescriptions()
* @see #getNodeDescription()
+ * @generated
*/
EReference getNodeDescription_BorderNodesDescriptions();
@@ -3661,9 +3775,9 @@ public interface DiagramPackage extends EPackage {
* Child Node Descriptions}'.
*
* @return the meta object for the reference list 'Reused Child Node Descriptions '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.NodeDescription#getReusedChildNodeDescriptions()
* @see #getNodeDescription()
+ * @generated
*/
EReference getNodeDescription_ReusedChildNodeDescriptions();
@@ -3673,9 +3787,9 @@ public interface DiagramPackage extends EPackage {
* Border Node Descriptions}'.
*
* @return the meta object for the reference list 'Reused Border Node Descriptions '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.NodeDescription#getReusedBorderNodeDescriptions()
* @see #getNodeDescription()
+ * @generated
*/
EReference getNodeDescription_ReusedBorderNodeDescriptions();
@@ -3685,9 +3799,9 @@ public interface DiagramPackage extends EPackage {
*
*
* @return the meta object for the attribute 'User Resizable '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.NodeDescription#isUserResizable()
* @see #getNodeDescription()
+ * @generated
*/
EAttribute getNodeDescription_UserResizable();
@@ -3697,9 +3811,9 @@ public interface DiagramPackage extends EPackage {
* Expression}'.
*
* @return the meta object for the attribute 'Default Width Expression '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.NodeDescription#getDefaultWidthExpression()
* @see #getNodeDescription()
+ * @generated
*/
EAttribute getNodeDescription_DefaultWidthExpression();
@@ -3709,9 +3823,9 @@ public interface DiagramPackage extends EPackage {
* Expression}'.
*
* @return the meta object for the attribute 'Default Height Expression '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.NodeDescription#getDefaultHeightExpression()
* @see #getNodeDescription()
+ * @generated
*/
EAttribute getNodeDescription_DefaultHeightExpression();
@@ -3721,9 +3835,9 @@ public interface DiagramPackage extends EPackage {
* Ratio}'.
*
* @return the meta object for the attribute 'Keep Aspect Ratio '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.NodeDescription#isKeepAspectRatio()
* @see #getNodeDescription()
+ * @generated
*/
EAttribute getNodeDescription_KeepAspectRatio();
@@ -3733,9 +3847,9 @@ public interface DiagramPackage extends EPackage {
* Collapsed By Default Expression}'.
*
* @return the meta object for the attribute 'Is Collapsed By Default Expression '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.NodeDescription#getIsCollapsedByDefaultExpression()
* @see #getNodeDescription()
+ * @generated
*/
EAttribute getNodeDescription_IsCollapsedByDefaultExpression();
@@ -3757,9 +3871,9 @@ public interface DiagramPackage extends EPackage {
*
*
* @return the meta object for the containment reference list 'Outside Labels '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.NodeDescription#getOutsideLabels()
* @see #getNodeDescription()
+ * @generated
*/
EReference getNodeDescription_OutsideLabels();
@@ -3769,9 +3883,9 @@ public interface DiagramPackage extends EPackage {
* By Default Expression}'.
*
* @return the meta object for the attribute 'Is Hidden By Default Expression '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.NodeDescription#getIsHiddenByDefaultExpression()
* @see #getNodeDescription()
+ * @generated
*/
EAttribute getNodeDescription_IsHiddenByDefaultExpression();
@@ -3781,9 +3895,9 @@ public interface DiagramPackage extends EPackage {
* Default Expression}'.
*
* @return the meta object for the attribute 'Is Faded By Default Expression '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.NodeDescription#getIsFadedByDefaultExpression()
* @see #getNodeDescription()
+ * @generated
*/
EAttribute getNodeDescription_IsFadedByDefaultExpression();
@@ -3792,8 +3906,8 @@ public interface DiagramPackage extends EPackage {
* Description}'.
*
* @return the meta object for class 'Edge Description '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.EdgeDescription
+ * @generated
*/
EClass getEdgeDescription();
@@ -3803,9 +3917,9 @@ public interface DiagramPackage extends EPackage {
* Expression}'.
*
* @return the meta object for the attribute 'Begin Label Expression '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.EdgeDescription#getBeginLabelExpression()
* @see #getEdgeDescription()
+ * @generated
*/
EAttribute getEdgeDescription_BeginLabelExpression();
@@ -3815,9 +3929,9 @@ public interface DiagramPackage extends EPackage {
* Expression}'.
*
* @return the meta object for the attribute 'Center Label Expression '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.EdgeDescription#getCenterLabelExpression()
* @see #getEdgeDescription()
+ * @generated
*/
EAttribute getEdgeDescription_CenterLabelExpression();
@@ -3827,9 +3941,9 @@ public interface DiagramPackage extends EPackage {
* Expression}'.
*
* @return the meta object for the attribute 'End Label Expression '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.EdgeDescription#getEndLabelExpression()
* @see #getEdgeDescription()
+ * @generated
*/
EAttribute getEdgeDescription_EndLabelExpression();
@@ -3839,9 +3953,9 @@ public interface DiagramPackage extends EPackage {
* Edge}'.
*
* @return the meta object for the attribute 'Is Domain Based Edge '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.EdgeDescription#isIsDomainBasedEdge()
* @see #getEdgeDescription()
+ * @generated
*/
EAttribute getEdgeDescription_IsDomainBasedEdge();
@@ -3863,9 +3977,9 @@ public interface DiagramPackage extends EPackage {
* Descriptions}'.
*
* @return the meta object for the reference list 'Source Node Descriptions '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.EdgeDescription#getSourceNodeDescriptions()
* @see #getEdgeDescription()
+ * @generated
*/
EReference getEdgeDescription_SourceNodeDescriptions();
@@ -3875,9 +3989,9 @@ public interface DiagramPackage extends EPackage {
* Descriptions}'.
*
* @return the meta object for the reference list 'Target Node Descriptions '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.EdgeDescription#getTargetNodeDescriptions()
* @see #getEdgeDescription()
+ * @generated
*/
EReference getEdgeDescription_TargetNodeDescriptions();
@@ -3887,9 +4001,9 @@ public interface DiagramPackage extends EPackage {
* Expression}'.
*
* @return the meta object for the attribute 'Source Nodes Expression '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.EdgeDescription#getSourceNodesExpression()
* @see #getEdgeDescription()
+ * @generated
*/
EAttribute getEdgeDescription_SourceNodesExpression();
@@ -3899,9 +4013,9 @@ public interface DiagramPackage extends EPackage {
* Expression}'.
*
* @return the meta object for the attribute 'Target Nodes Expression '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.EdgeDescription#getTargetNodesExpression()
* @see #getEdgeDescription()
+ * @generated
*/
EAttribute getEdgeDescription_TargetNodesExpression();
@@ -3911,9 +4025,9 @@ public interface DiagramPackage extends EPackage {
* -->
*
* @return the meta object for the containment reference 'Style '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.EdgeDescription#getStyle()
* @see #getEdgeDescription()
+ * @generated
*/
EReference getEdgeDescription_Style();
@@ -3923,9 +4037,9 @@ public interface DiagramPackage extends EPackage {
* Styles}'.
*
* @return the meta object for the containment reference list 'Conditional Styles '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.EdgeDescription#getConditionalStyles()
* @see #getEdgeDescription()
+ * @generated
*/
EReference getEdgeDescription_ConditionalStyles();
@@ -3934,8 +4048,8 @@ public interface DiagramPackage extends EPackage {
* Layout Strategy Description }'.
*
* @return the meta object for class 'Layout Strategy Description '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.LayoutStrategyDescription
+ * @generated
*/
EClass getLayoutStrategyDescription();
@@ -3945,8 +4059,8 @@ public interface DiagramPackage extends EPackage {
* Description}'.
*
* @return the meta object for class 'List Layout Strategy Description '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.ListLayoutStrategyDescription
+ * @generated
*/
EClass getListLayoutStrategyDescription();
@@ -3956,9 +4070,9 @@ public interface DiagramPackage extends EPackage {
* Are Child Nodes Draggable Expression }'.
*
* @return the meta object for the attribute 'Are Child Nodes Draggable Expression '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.ListLayoutStrategyDescription#getAreChildNodesDraggableExpression()
* @see #getListLayoutStrategyDescription()
+ * @generated
*/
EAttribute getListLayoutStrategyDescription_AreChildNodesDraggableExpression();
@@ -3968,9 +4082,9 @@ public interface DiagramPackage extends EPackage {
* Expression}'.
*
* @return the meta object for the attribute 'Top Gap Expression '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.ListLayoutStrategyDescription#getTopGapExpression()
* @see #getListLayoutStrategyDescription()
+ * @generated
*/
EAttribute getListLayoutStrategyDescription_TopGapExpression();
@@ -3980,9 +4094,9 @@ public interface DiagramPackage extends EPackage {
* Bottom Gap Expression }'.
*
* @return the meta object for the attribute 'Bottom Gap Expression '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.ListLayoutStrategyDescription#getBottomGapExpression()
* @see #getListLayoutStrategyDescription()
+ * @generated
*/
EAttribute getListLayoutStrategyDescription_BottomGapExpression();
@@ -3992,9 +4106,9 @@ public interface DiagramPackage extends EPackage {
* Nodes}'.
*
* @return the meta object for the reference list 'Growable Nodes '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.ListLayoutStrategyDescription#getGrowableNodes()
* @see #getListLayoutStrategyDescription()
+ * @generated
*/
EReference getListLayoutStrategyDescription_GrowableNodes();
@@ -4004,8 +4118,8 @@ public interface DiagramPackage extends EPackage {
* Strategy Description}'.
*
* @return the meta object for class 'Free Form Layout Strategy Description '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.FreeFormLayoutStrategyDescription
+ * @generated
*/
EClass getFreeFormLayoutStrategyDescription();
@@ -4014,8 +4128,8 @@ public interface DiagramPackage extends EPackage {
* Description}'.
*
* @return the meta object for class 'Label Description '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.LabelDescription
+ * @generated
*/
EClass getLabelDescription();
@@ -4025,9 +4139,9 @@ public interface DiagramPackage extends EPackage {
* Expression}'.
*
* @return the meta object for the attribute 'Label Expression '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.LabelDescription#getLabelExpression()
* @see #getLabelDescription()
+ * @generated
*/
EAttribute getLabelDescription_LabelExpression();
@@ -4037,9 +4151,9 @@ public interface DiagramPackage extends EPackage {
* Strategy}'.
*
* @return the meta object for the attribute 'Overflow Strategy '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.LabelDescription#getOverflowStrategy()
* @see #getLabelDescription()
+ * @generated
*/
EAttribute getLabelDescription_OverflowStrategy();
@@ -4060,8 +4174,8 @@ public interface DiagramPackage extends EPackage {
* Inside Label Description }'.
*
* @return the meta object for class 'Inside Label Description '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.InsideLabelDescription
+ * @generated
*/
EClass getInsideLabelDescription();
@@ -4095,9 +4209,9 @@ public interface DiagramPackage extends EPackage {
* Styles}'.
*
* @return the meta object for the containment reference list 'Conditional Styles '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.InsideLabelDescription#getConditionalStyles()
* @see #getInsideLabelDescription()
+ * @generated
*/
EReference getInsideLabelDescription_ConditionalStyles();
@@ -4106,8 +4220,8 @@ public interface DiagramPackage extends EPackage {
* Outside Label Description }'.
*
* @return the meta object for class 'Outside Label Description '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.OutsideLabelDescription
+ * @generated
*/
EClass getOutsideLabelDescription();
@@ -4141,9 +4255,9 @@ public interface DiagramPackage extends EPackage {
* Styles}'.
*
* @return the meta object for the containment reference list 'Conditional Styles '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.OutsideLabelDescription#getConditionalStyles()
* @see #getOutsideLabelDescription()
+ * @generated
*/
EReference getOutsideLabelDescription_ConditionalStyles();
@@ -4162,9 +4276,9 @@ public interface DiagramPackage extends EPackage {
* Color }'.
*
* @return the meta object for the reference 'Color '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.Style#getColor()
* @see #getStyle()
+ * @generated
*/
EReference getStyle_Color();
@@ -4173,8 +4287,8 @@ public interface DiagramPackage extends EPackage {
* Style}'.
*
* @return the meta object for class 'Border Style '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.BorderStyle
+ * @generated
*/
EClass getBorderStyle();
@@ -4220,9 +4334,9 @@ public interface DiagramPackage extends EPackage {
*
*
* @return the meta object for the attribute 'Border Line Style '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.BorderStyle#getBorderLineStyle()
* @see #getBorderStyle()
+ * @generated
*/
EAttribute getBorderStyle_BorderLineStyle();
@@ -4231,8 +4345,8 @@ public interface DiagramPackage extends EPackage {
* Label Style}'.
*
* @return the meta object for class 'Inside Label Style '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.InsideLabelStyle
+ * @generated
*/
EClass getInsideLabelStyle();
@@ -4254,9 +4368,9 @@ public interface DiagramPackage extends EPackage {
* Separator}'.
*
* @return the meta object for the attribute 'Display Header Separator '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.InsideLabelStyle#isDisplayHeaderSeparator()
* @see #getInsideLabelStyle()
+ * @generated
*/
EAttribute getInsideLabelStyle_DisplayHeaderSeparator();
@@ -4265,8 +4379,8 @@ public interface DiagramPackage extends EPackage {
* Outside Label Style }'.
*
* @return the meta object for class 'Outside Label Style '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.OutsideLabelStyle
+ * @generated
*/
EClass getOutsideLabelStyle();
@@ -4275,8 +4389,8 @@ public interface DiagramPackage extends EPackage {
* Label Style}'.
*
* @return the meta object for class 'Node Label Style '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.NodeLabelStyle
+ * @generated
*/
EClass getNodeLabelStyle();
@@ -4333,8 +4447,8 @@ public interface DiagramPackage extends EPackage {
* Node Style Description }'.
*
* @return the meta object for class 'Node Style Description '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.NodeStyleDescription
+ * @generated
*/
EClass getNodeStyleDescription();
@@ -4343,8 +4457,8 @@ public interface DiagramPackage extends EPackage {
* Conditional Node Style }'.
*
* @return the meta object for class 'Conditional Node Style '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.ConditionalNodeStyle
+ * @generated
*/
EClass getConditionalNodeStyle();
@@ -4365,8 +4479,8 @@ public interface DiagramPackage extends EPackage {
* Conditional Inside Label Style }'.
*
* @return the meta object for class 'Conditional Inside Label Style '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.ConditionalInsideLabelStyle
+ * @generated
*/
EClass getConditionalInsideLabelStyle();
@@ -4387,8 +4501,8 @@ public interface DiagramPackage extends EPackage {
* Conditional Outside Label Style }'.
*
* @return the meta object for class 'Conditional Outside Label Style '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.ConditionalOutsideLabelStyle
+ * @generated
*/
EClass getConditionalOutsideLabelStyle();
@@ -4410,8 +4524,8 @@ public interface DiagramPackage extends EPackage {
* Description}'.
*
* @return the meta object for class 'Rectangular Node Style Description '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.RectangularNodeStyleDescription
+ * @generated
*/
EClass getRectangularNodeStyleDescription();
@@ -4421,9 +4535,9 @@ public interface DiagramPackage extends EPackage {
* Background }'.
*
* @return the meta object for the reference 'Background '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.RectangularNodeStyleDescription#getBackground()
* @see #getRectangularNodeStyleDescription()
+ * @generated
*/
EReference getRectangularNodeStyleDescription_Background();
@@ -4432,8 +4546,8 @@ public interface DiagramPackage extends EPackage {
* Image Node Style Description }'.
*
* @return the meta object for class 'Image Node Style Description '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.ImageNodeStyleDescription
+ * @generated
*/
EClass getImageNodeStyleDescription();
@@ -4455,9 +4569,9 @@ public interface DiagramPackage extends EPackage {
* Position Dependent Rotation }'.
*
* @return the meta object for the attribute 'Position Dependent Rotation '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.ImageNodeStyleDescription#isPositionDependentRotation()
* @see #getImageNodeStyleDescription()
+ * @generated
*/
EAttribute getImageNodeStyleDescription_PositionDependentRotation();
@@ -4467,8 +4581,8 @@ public interface DiagramPackage extends EPackage {
* Description}'.
*
* @return the meta object for class 'Icon Label Node Style Description '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.IconLabelNodeStyleDescription
+ * @generated
*/
EClass getIconLabelNodeStyleDescription();
@@ -4478,9 +4592,9 @@ public interface DiagramPackage extends EPackage {
* Background }'.
*
* @return the meta object for the reference 'Background '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.IconLabelNodeStyleDescription#getBackground()
* @see #getIconLabelNodeStyleDescription()
+ * @generated
*/
EReference getIconLabelNodeStyleDescription_Background();
@@ -4489,8 +4603,8 @@ public interface DiagramPackage extends EPackage {
* Style}'.
*
* @return the meta object for class 'Edge Style '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.EdgeStyle
+ * @generated
*/
EClass getEdgeStyle();
@@ -4512,9 +4626,9 @@ public interface DiagramPackage extends EPackage {
*
*
* @return the meta object for the attribute 'Source Arrow Style '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.EdgeStyle#getSourceArrowStyle()
* @see #getEdgeStyle()
+ * @generated
*/
EAttribute getEdgeStyle_SourceArrowStyle();
@@ -4524,9 +4638,9 @@ public interface DiagramPackage extends EPackage {
*
*
* @return the meta object for the attribute 'Target Arrow Style '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.EdgeStyle#getTargetArrowStyle()
* @see #getEdgeStyle()
+ * @generated
*/
EAttribute getEdgeStyle_TargetArrowStyle();
@@ -4547,9 +4661,9 @@ public interface DiagramPackage extends EPackage {
* Show Icon }'.
*
* @return the meta object for the attribute 'Show Icon '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.EdgeStyle#isShowIcon()
* @see #getEdgeStyle()
+ * @generated
*/
EAttribute getEdgeStyle_ShowIcon();
@@ -4582,8 +4696,8 @@ public interface DiagramPackage extends EPackage {
* Conditional Edge Style }'.
*
* @return the meta object for class 'Conditional Edge Style '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.ConditionalEdgeStyle
+ * @generated
*/
EClass getConditionalEdgeStyle();
@@ -4592,8 +4706,8 @@ public interface DiagramPackage extends EPackage {
* Palette }'.
*
* @return the meta object for class 'Palette '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.DiagramPalette
+ * @generated
*/
EClass getDiagramPalette();
@@ -4650,8 +4764,8 @@ public interface DiagramPackage extends EPackage {
* Palette}'.
*
* @return the meta object for class 'Node Palette '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.NodePalette
+ * @generated
*/
EClass getNodePalette();
@@ -4732,8 +4846,8 @@ public interface DiagramPackage extends EPackage {
* Palette}'.
*
* @return the meta object for class 'Edge Palette '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.EdgePalette
+ * @generated
*/
EClass getEdgePalette();
@@ -4755,9 +4869,9 @@ public interface DiagramPackage extends EPackage {
* Tool}'.
*
* @return the meta object for the containment reference 'Center Label Edit Tool '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.EdgePalette#getCenterLabelEditTool()
* @see #getEdgePalette()
+ * @generated
*/
EReference getEdgePalette_CenterLabelEditTool();
@@ -4767,9 +4881,9 @@ public interface DiagramPackage extends EPackage {
* Tool}'.
*
* @return the meta object for the containment reference 'Begin Label Edit Tool '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.EdgePalette#getBeginLabelEditTool()
* @see #getEdgePalette()
+ * @generated
*/
EReference getEdgePalette_BeginLabelEditTool();
@@ -4779,9 +4893,9 @@ public interface DiagramPackage extends EPackage {
* Tool}'.
*
* @return the meta object for the containment reference 'End Label Edit Tool '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.EdgePalette#getEndLabelEditTool()
* @see #getEdgePalette()
+ * @generated
*/
EReference getEdgePalette_EndLabelEditTool();
@@ -4803,9 +4917,9 @@ public interface DiagramPackage extends EPackage {
* Tools}'.
*
* @return the meta object for the containment reference list 'Edge Reconnection Tools '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.EdgePalette#getEdgeReconnectionTools()
* @see #getEdgePalette()
+ * @generated
*/
EReference getEdgePalette_EdgeReconnectionTools();
@@ -4836,9 +4950,9 @@ public interface DiagramPackage extends EPackage {
* Name }'.
*
* @return the meta object for the attribute 'Name '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.Tool#getName()
* @see #getTool()
+ * @generated
*/
EAttribute getTool_Name();
@@ -4848,9 +4962,9 @@ public interface DiagramPackage extends EPackage {
* Expression}'.
*
* @return the meta object for the attribute 'Precondition Expression '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.Tool#getPreconditionExpression()
* @see #getTool()
+ * @generated
*/
EAttribute getTool_PreconditionExpression();
@@ -4860,9 +4974,9 @@ public interface DiagramPackage extends EPackage {
* end-user-doc -->
*
* @return the meta object for the containment reference list 'Body '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.Tool#getBody()
* @see #getTool()
+ * @generated
*/
EReference getTool_Body();
@@ -4871,8 +4985,8 @@ public interface DiagramPackage extends EPackage {
* Tool}'.
*
* @return the meta object for class 'Delete Tool '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.DeleteTool
+ * @generated
*/
EClass getDeleteTool();
@@ -4881,8 +4995,8 @@ public interface DiagramPackage extends EPackage {
* Tool}'.
*
* @return the meta object for class 'Drop Tool '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.DropTool
+ * @generated
*/
EClass getDropTool();
@@ -4891,8 +5005,8 @@ public interface DiagramPackage extends EPackage {
* Tool}'.
*
* @return the meta object for class 'Edge Tool '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.EdgeTool
+ * @generated
*/
EClass getEdgeTool();
@@ -4902,9 +5016,9 @@ public interface DiagramPackage extends EPackage {
* Descriptions}'.
*
* @return the meta object for the reference list 'Target Element Descriptions '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.EdgeTool#getTargetElementDescriptions()
* @see #getEdgeTool()
+ * @generated
*/
EReference getEdgeTool_TargetElementDescriptions();
@@ -4914,9 +5028,9 @@ public interface DiagramPackage extends EPackage {
* Expression}'.
*
* @return the meta object for the attribute 'Icon UR Ls Expression '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.EdgeTool#getIconURLsExpression()
* @see #getEdgeTool()
+ * @generated
*/
EAttribute getEdgeTool_IconURLsExpression();
@@ -4925,8 +5039,8 @@ public interface DiagramPackage extends EPackage {
* Edge Reconnection Tool }'.
*
* @return the meta object for class 'Edge Reconnection Tool '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.EdgeReconnectionTool
+ * @generated
*/
EClass getEdgeReconnectionTool();
@@ -4935,8 +5049,8 @@ public interface DiagramPackage extends EPackage {
* Tool}'.
*
* @return the meta object for class 'Label Edit Tool '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.LabelEditTool
+ * @generated
*/
EClass getLabelEditTool();
@@ -4946,9 +5060,9 @@ public interface DiagramPackage extends EPackage {
* Direct Edit Label Expression}'.
*
* @return the meta object for the attribute 'Initial Direct Edit Label Expression '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.LabelEditTool#getInitialDirectEditLabelExpression()
* @see #getLabelEditTool()
+ * @generated
*/
EAttribute getLabelEditTool_InitialDirectEditLabelExpression();
@@ -4957,22 +5071,22 @@ public interface DiagramPackage extends EPackage {
* Tool}'.
*
* @return the meta object for class 'Node Tool '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.NodeTool
+ * @generated
*/
EClass getNodeTool();
/**
* Returns the meta object for the containment reference
- * '{@link org.eclipse.sirius.components.view.diagram.NodeTool#getSelectionDescription Selection
- * Description }'.
+ * '{@link org.eclipse.sirius.components.view.diagram.NodeTool#getDialogDescription Dialog Description }'.
+ *
*
- * @return the meta object for the containment reference 'Selection Description '.
- * @generated
- * @see org.eclipse.sirius.components.view.diagram.NodeTool#getSelectionDescription()
+ * @return the meta object for the containment reference 'Dialog Description '.
+ * @see org.eclipse.sirius.components.view.diagram.NodeTool#getDialogDescription()
* @see #getNodeTool()
+ * @generated
*/
- EReference getNodeTool_SelectionDescription();
+ EReference getNodeTool_DialogDescription();
/**
* Returns the meta object for the attribute
@@ -4980,9 +5094,9 @@ public interface DiagramPackage extends EPackage {
* Expression}'.
*
* @return the meta object for the attribute 'Icon UR Ls Expression '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.NodeTool#getIconURLsExpression()
* @see #getNodeTool()
+ * @generated
*/
EAttribute getNodeTool_IconURLsExpression();
@@ -4992,8 +5106,8 @@ public interface DiagramPackage extends EPackage {
* Tool}'.
*
* @return the meta object for class 'Source Edge End Reconnection Tool '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.SourceEdgeEndReconnectionTool
+ * @generated
*/
EClass getSourceEdgeEndReconnectionTool();
@@ -5003,8 +5117,8 @@ public interface DiagramPackage extends EPackage {
* Tool}'.
*
* @return the meta object for class 'Target Edge End Reconnection Tool '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.TargetEdgeEndReconnectionTool
+ * @generated
*/
EClass getTargetEdgeEndReconnectionTool();
@@ -5013,8 +5127,8 @@ public interface DiagramPackage extends EPackage {
* View}'.
*
* @return the meta object for class 'Create View '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.CreateView
+ * @generated
*/
EClass getCreateView();
@@ -5024,9 +5138,9 @@ public interface DiagramPackage extends EPackage {
* Expression}'.
*
* @return the meta object for the attribute 'Parent View Expression '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.CreateView#getParentViewExpression()
* @see #getCreateView()
+ * @generated
*/
EAttribute getCreateView_ParentViewExpression();
@@ -5036,9 +5150,9 @@ public interface DiagramPackage extends EPackage {
* Description}'.
*
* @return the meta object for the reference 'Element Description '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.CreateView#getElementDescription()
* @see #getCreateView()
+ * @generated
*/
EReference getCreateView_ElementDescription();
@@ -5048,9 +5162,9 @@ public interface DiagramPackage extends EPackage {
* Expression}'.
*
* @return the meta object for the attribute 'Semantic Element Expression '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.CreateView#getSemanticElementExpression()
* @see #getCreateView()
+ * @generated
*/
EAttribute getCreateView_SemanticElementExpression();
@@ -5072,9 +5186,9 @@ public interface DiagramPackage extends EPackage {
*
*
* @return the meta object for the attribute 'Containment Kind '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.CreateView#getContainmentKind()
* @see #getCreateView()
+ * @generated
*/
EAttribute getCreateView_ContainmentKind();
@@ -5083,8 +5197,8 @@ public interface DiagramPackage extends EPackage {
* View}'.
*
* @return the meta object for class 'Delete View '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.DeleteView
+ * @generated
*/
EClass getDeleteView();
@@ -5101,46 +5215,46 @@ public interface DiagramPackage extends EPackage {
EAttribute getDeleteView_ViewExpression();
/**
- * Returns the meta object for class '{@link org.eclipse.sirius.components.view.diagram.SelectionDescription
- * Selection Description }'.
+ * Returns the meta object for class '{@link org.eclipse.sirius.components.view.diagram.SelectionDialogDescription
+ * Selection Dialog Description }'.
*
- * @return the meta object for class 'Selection Description '.
+ * @return the meta object for class 'Selection Dialog Description '.
+ * @see org.eclipse.sirius.components.view.diagram.SelectionDialogDescription
* @generated
- * @see org.eclipse.sirius.components.view.diagram.SelectionDescription
*/
- EClass getSelectionDescription();
+ EClass getSelectionDialogDescription();
/**
* Returns the meta object for the attribute
- * '{@link org.eclipse.sirius.components.view.diagram.SelectionDescription#getSelectionCandidatesExpression
+ * '{@link org.eclipse.sirius.components.view.diagram.SelectionDialogDescription#getSelectionCandidatesExpression
* Selection Candidates Expression }'.
*
* @return the meta object for the attribute 'Selection Candidates Expression '.
+ * @see org.eclipse.sirius.components.view.diagram.SelectionDialogDescription#getSelectionCandidatesExpression()
+ * @see #getSelectionDialogDescription()
* @generated
- * @see org.eclipse.sirius.components.view.diagram.SelectionDescription#getSelectionCandidatesExpression()
- * @see #getSelectionDescription()
*/
- EAttribute getSelectionDescription_SelectionCandidatesExpression();
+ EAttribute getSelectionDialogDescription_SelectionCandidatesExpression();
/**
* Returns the meta object for the attribute
- * '{@link org.eclipse.sirius.components.view.diagram.SelectionDescription#getSelectionMessage Selection
+ * '{@link org.eclipse.sirius.components.view.diagram.SelectionDialogDescription#getSelectionMessage Selection
* Message }'.
*
* @return the meta object for the attribute 'Selection Message '.
+ * @see org.eclipse.sirius.components.view.diagram.SelectionDialogDescription#getSelectionMessage()
+ * @see #getSelectionDialogDescription()
* @generated
- * @see org.eclipse.sirius.components.view.diagram.SelectionDescription#getSelectionMessage()
- * @see #getSelectionDescription()
*/
- EAttribute getSelectionDescription_SelectionMessage();
+ EAttribute getSelectionDialogDescription_SelectionMessage();
/**
* Returns the meta object for class '{@link org.eclipse.sirius.components.view.diagram.ToolSection Tool
* Section }'.
*
* @return the meta object for class 'Tool Section '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.ToolSection
+ * @generated
*/
EClass getToolSection();
@@ -5149,9 +5263,9 @@ public interface DiagramPackage extends EPackage {
* Name }'.
*
* @return the meta object for the attribute 'Name '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.ToolSection#getName()
* @see #getToolSection()
+ * @generated
*/
EAttribute getToolSection_Name();
@@ -5160,8 +5274,8 @@ public interface DiagramPackage extends EPackage {
* Section }'.
*
* @return the meta object for class 'Tool Section '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.DiagramToolSection
+ * @generated
*/
EClass getDiagramToolSection();
@@ -5182,8 +5296,8 @@ public interface DiagramPackage extends EPackage {
* Tool Section}'.
*
* @return the meta object for class 'Node Tool Section '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.NodeToolSection
+ * @generated
*/
EClass getNodeToolSection();
@@ -5216,8 +5330,8 @@ public interface DiagramPackage extends EPackage {
* Tool Section}'.
*
* @return the meta object for class 'Edge Tool Section '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.EdgeToolSection
+ * @generated
*/
EClass getEdgeToolSection();
@@ -5238,8 +5352,8 @@ public interface DiagramPackage extends EPackage {
* Tool}'.
*
* @return the meta object for class 'Drop Node Tool '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.DropNodeTool
+ * @generated
*/
EClass getDropNodeTool();
@@ -5249,19 +5363,29 @@ public interface DiagramPackage extends EPackage {
* Types}'.
*
* @return the meta object for the reference list 'Accepted Node Types '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.DropNodeTool#getAcceptedNodeTypes()
* @see #getDropNodeTool()
+ * @generated
*/
EReference getDropNodeTool_AcceptedNodeTypes();
+ /**
+ * Returns the meta object for class '{@link org.eclipse.sirius.components.view.diagram.DialogDescription Dialog
+ * Description }'.
+ *
+ * @return the meta object for class 'Dialog Description '.
+ * @see org.eclipse.sirius.components.view.diagram.DialogDescription
+ * @generated
+ */
+ EClass getDialogDescription();
+
/**
* Returns the meta object for enum '{@link org.eclipse.sirius.components.view.diagram.ArrowStyle Arrow
* Style }'.
*
* @return the meta object for enum 'Arrow Style '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.ArrowStyle
+ * @generated
*/
EEnum getArrowStyle();
@@ -5270,8 +5394,8 @@ public interface DiagramPackage extends EPackage {
* Direction}'.
*
* @return the meta object for enum 'Layout Direction '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.LayoutDirection
+ * @generated
*/
EEnum getLayoutDirection();
@@ -5280,8 +5404,8 @@ public interface DiagramPackage extends EPackage {
* Style}'.
*
* @return the meta object for enum 'Line Style '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.LineStyle
+ * @generated
*/
EEnum getLineStyle();
@@ -5290,8 +5414,8 @@ public interface DiagramPackage extends EPackage {
* Containment Kind}'.
*
* @return the meta object for enum 'Node Containment Kind '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.NodeContainmentKind
+ * @generated
*/
EEnum getNodeContainmentKind();
@@ -5300,8 +5424,8 @@ public interface DiagramPackage extends EPackage {
* Synchronization Policy }'.
*
* @return the meta object for enum 'Synchronization Policy '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.SynchronizationPolicy
+ * @generated
*/
EEnum getSynchronizationPolicy();
@@ -5310,8 +5434,8 @@ public interface DiagramPackage extends EPackage {
* Inside Label Position }'.
*
* @return the meta object for enum 'Inside Label Position '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.InsideLabelPosition
+ * @generated
*/
EEnum getInsideLabelPosition();
@@ -5320,8 +5444,8 @@ public interface DiagramPackage extends EPackage {
* Outside Label Position }'.
*
* @return the meta object for enum 'Outside Label Position '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.OutsideLabelPosition
+ * @generated
*/
EEnum getOutsideLabelPosition();
@@ -5330,8 +5454,8 @@ public interface DiagramPackage extends EPackage {
* Label Overflow Strategy }'.
*
* @return the meta object for enum 'Label Overflow Strategy '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.LabelOverflowStrategy
+ * @generated
*/
EEnum getLabelOverflowStrategy();
@@ -5340,8 +5464,8 @@ public interface DiagramPackage extends EPackage {
* Arrange Layout Direction }'.
*
* @return the meta object for enum 'Arrange Layout Direction '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.ArrangeLayoutDirection
+ * @generated
*/
EEnum getArrangeLayoutDirection();
@@ -5350,8 +5474,8 @@ public interface DiagramPackage extends EPackage {
* Align}'.
*
* @return the meta object for enum 'Label Text Align '.
- * @generated
* @see org.eclipse.sirius.components.view.diagram.LabelTextAlign
+ * @generated
*/
EEnum getLabelTextAlign();
@@ -5383,9 +5507,9 @@ interface Literals {
* '{@link org.eclipse.sirius.components.view.diagram.impl.DiagramDescriptionImpl Description }' class.
*
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramDescriptionImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getDiagramDescription()
+ * @generated
*/
EClass DIAGRAM_DESCRIPTION = eINSTANCE.getDiagramDescription();
@@ -5434,9 +5558,9 @@ interface Literals {
* '{@link org.eclipse.sirius.components.view.diagram.impl.DiagramElementDescriptionImpl Element
* Description }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramElementDescriptionImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getDiagramElementDescription()
+ * @generated
*/
EClass DIAGRAM_ELEMENT_DESCRIPTION = eINSTANCE.getDiagramElementDescription();
@@ -5484,9 +5608,9 @@ interface Literals {
* The meta object literal for the '{@link org.eclipse.sirius.components.view.diagram.impl.NodeDescriptionImpl
* Node Description }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.NodeDescriptionImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getNodeDescription()
+ * @generated
*/
EClass NODE_DESCRIPTION = eINSTANCE.getNodeDescription();
@@ -5638,9 +5762,9 @@ interface Literals {
* The meta object literal for the '{@link org.eclipse.sirius.components.view.diagram.impl.EdgeDescriptionImpl
* Edge Description }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.EdgeDescriptionImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getEdgeDescription()
+ * @generated
*/
EClass EDGE_DESCRIPTION = eINSTANCE.getEdgeDescription();
@@ -5736,9 +5860,9 @@ interface Literals {
* The meta object literal for the '{@link org.eclipse.sirius.components.view.diagram.LayoutStrategyDescription
* Layout Strategy Description }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.LayoutStrategyDescription
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getLayoutStrategyDescription()
+ * @generated
*/
EClass LAYOUT_STRATEGY_DESCRIPTION = eINSTANCE.getLayoutStrategyDescription();
@@ -5747,9 +5871,9 @@ interface Literals {
* '{@link org.eclipse.sirius.components.view.diagram.impl.ListLayoutStrategyDescriptionImpl List Layout
* Strategy Description }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.ListLayoutStrategyDescriptionImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getListLayoutStrategyDescription()
+ * @generated
*/
EClass LIST_LAYOUT_STRATEGY_DESCRIPTION = eINSTANCE.getListLayoutStrategyDescription();
@@ -5790,9 +5914,9 @@ interface Literals {
* '{@link org.eclipse.sirius.components.view.diagram.impl.FreeFormLayoutStrategyDescriptionImpl Free Form
* Layout Strategy Description }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.FreeFormLayoutStrategyDescriptionImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getFreeFormLayoutStrategyDescription()
+ * @generated
*/
EClass FREE_FORM_LAYOUT_STRATEGY_DESCRIPTION = eINSTANCE.getFreeFormLayoutStrategyDescription();
@@ -5800,9 +5924,9 @@ interface Literals {
* The meta object literal for the '{@link org.eclipse.sirius.components.view.diagram.impl.LabelDescriptionImpl
* Label Description }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.LabelDescriptionImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getLabelDescription()
+ * @generated
*/
EClass LABEL_DESCRIPTION = eINSTANCE.getLabelDescription();
@@ -5835,9 +5959,9 @@ interface Literals {
* '{@link org.eclipse.sirius.components.view.diagram.impl.InsideLabelDescriptionImpl Inside Label
* Description }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.InsideLabelDescriptionImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getInsideLabelDescription()
+ * @generated
*/
EClass INSIDE_LABEL_DESCRIPTION = eINSTANCE.getInsideLabelDescription();
@@ -5870,9 +5994,9 @@ interface Literals {
* '{@link org.eclipse.sirius.components.view.diagram.impl.OutsideLabelDescriptionImpl Outside Label
* Description }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.OutsideLabelDescriptionImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getOutsideLabelDescription()
+ * @generated
*/
EClass OUTSIDE_LABEL_DESCRIPTION = eINSTANCE.getOutsideLabelDescription();
@@ -5904,9 +6028,9 @@ interface Literals {
* The meta object literal for the '{@link org.eclipse.sirius.components.view.diagram.impl.StyleImpl
* Style }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.StyleImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getStyle()
+ * @generated
*/
EClass STYLE = eINSTANCE.getStyle();
@@ -5922,9 +6046,9 @@ interface Literals {
* The meta object literal for the '{@link org.eclipse.sirius.components.view.diagram.BorderStyle Border
* Style }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.BorderStyle
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getBorderStyle()
+ * @generated
*/
EClass BORDER_STYLE = eINSTANCE.getBorderStyle();
@@ -5964,9 +6088,9 @@ interface Literals {
* The meta object literal for the '{@link org.eclipse.sirius.components.view.diagram.impl.InsideLabelStyleImpl
* Inside Label Style }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.InsideLabelStyleImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getInsideLabelStyle()
+ * @generated
*/
EClass INSIDE_LABEL_STYLE = eINSTANCE.getInsideLabelStyle();
@@ -5990,9 +6114,9 @@ interface Literals {
* The meta object literal for the '{@link org.eclipse.sirius.components.view.diagram.impl.OutsideLabelStyleImpl
* Outside Label Style }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.OutsideLabelStyleImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getOutsideLabelStyle()
+ * @generated
*/
EClass OUTSIDE_LABEL_STYLE = eINSTANCE.getOutsideLabelStyle();
@@ -6000,9 +6124,9 @@ interface Literals {
* The meta object literal for the '{@link org.eclipse.sirius.components.view.diagram.NodeLabelStyle Node
* Label Style }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.NodeLabelStyle
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getNodeLabelStyle()
+ * @generated
*/
EClass NODE_LABEL_STYLE = eINSTANCE.getNodeLabelStyle();
@@ -6042,9 +6166,9 @@ interface Literals {
* The meta object literal for the '{@link org.eclipse.sirius.components.view.diagram.NodeStyleDescription
* Node Style Description }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.NodeStyleDescription
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getNodeStyleDescription()
+ * @generated
*/
EClass NODE_STYLE_DESCRIPTION = eINSTANCE.getNodeStyleDescription();
@@ -6053,9 +6177,9 @@ interface Literals {
* '{@link org.eclipse.sirius.components.view.diagram.impl.ConditionalNodeStyleImpl Conditional Node
* Style }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.ConditionalNodeStyleImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getConditionalNodeStyle()
+ * @generated
*/
EClass CONDITIONAL_NODE_STYLE = eINSTANCE.getConditionalNodeStyle();
@@ -6072,9 +6196,9 @@ interface Literals {
* '{@link org.eclipse.sirius.components.view.diagram.impl.ConditionalInsideLabelStyleImpl Conditional
* Inside Label Style }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.ConditionalInsideLabelStyleImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getConditionalInsideLabelStyle()
+ * @generated
*/
EClass CONDITIONAL_INSIDE_LABEL_STYLE = eINSTANCE.getConditionalInsideLabelStyle();
@@ -6091,9 +6215,9 @@ interface Literals {
* '{@link org.eclipse.sirius.components.view.diagram.impl.ConditionalOutsideLabelStyleImpl Conditional
* Outside Label Style }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.ConditionalOutsideLabelStyleImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getConditionalOutsideLabelStyle()
+ * @generated
*/
EClass CONDITIONAL_OUTSIDE_LABEL_STYLE = eINSTANCE.getConditionalOutsideLabelStyle();
@@ -6110,9 +6234,9 @@ interface Literals {
* '{@link org.eclipse.sirius.components.view.diagram.impl.RectangularNodeStyleDescriptionImpl Rectangular
* Node Style Description }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.RectangularNodeStyleDescriptionImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getRectangularNodeStyleDescription()
+ * @generated
*/
EClass RECTANGULAR_NODE_STYLE_DESCRIPTION = eINSTANCE.getRectangularNodeStyleDescription();
@@ -6129,9 +6253,9 @@ interface Literals {
* '{@link org.eclipse.sirius.components.view.diagram.impl.ImageNodeStyleDescriptionImpl Image Node Style
* Description }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.ImageNodeStyleDescriptionImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getImageNodeStyleDescription()
+ * @generated
*/
EClass IMAGE_NODE_STYLE_DESCRIPTION = eINSTANCE.getImageNodeStyleDescription();
@@ -6156,9 +6280,9 @@ interface Literals {
* '{@link org.eclipse.sirius.components.view.diagram.impl.IconLabelNodeStyleDescriptionImpl Icon Label Node
* Style Description }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.IconLabelNodeStyleDescriptionImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getIconLabelNodeStyleDescription()
+ * @generated
*/
EClass ICON_LABEL_NODE_STYLE_DESCRIPTION = eINSTANCE.getIconLabelNodeStyleDescription();
@@ -6174,9 +6298,9 @@ interface Literals {
* The meta object literal for the '{@link org.eclipse.sirius.components.view.diagram.impl.EdgeStyleImpl
* Edge Style }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.EdgeStyleImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getEdgeStyle()
+ * @generated
*/
EClass EDGE_STYLE = eINSTANCE.getEdgeStyle();
@@ -6241,9 +6365,9 @@ interface Literals {
* '{@link org.eclipse.sirius.components.view.diagram.impl.ConditionalEdgeStyleImpl Conditional Edge
* Style }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.ConditionalEdgeStyleImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getConditionalEdgeStyle()
+ * @generated
*/
EClass CONDITIONAL_EDGE_STYLE = eINSTANCE.getConditionalEdgeStyle();
@@ -6251,9 +6375,9 @@ interface Literals {
* The meta object literal for the '{@link org.eclipse.sirius.components.view.diagram.impl.DiagramPaletteImpl
* Palette }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPaletteImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getDiagramPalette()
+ * @generated
*/
EClass DIAGRAM_PALETTE = eINSTANCE.getDiagramPalette();
@@ -6293,9 +6417,9 @@ interface Literals {
* The meta object literal for the '{@link org.eclipse.sirius.components.view.diagram.impl.NodePaletteImpl
* Node Palette }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.NodePaletteImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getNodePalette()
+ * @generated
*/
EClass NODE_PALETTE = eINSTANCE.getNodePalette();
@@ -6351,9 +6475,9 @@ interface Literals {
* The meta object literal for the '{@link org.eclipse.sirius.components.view.diagram.impl.EdgePaletteImpl
* Edge Palette }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.EdgePaletteImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getEdgePalette()
+ * @generated
*/
EClass EDGE_PALETTE = eINSTANCE.getEdgePalette();
@@ -6417,9 +6541,9 @@ interface Literals {
* The meta object literal for the '{@link org.eclipse.sirius.components.view.diagram.impl.ToolImpl
* Tool }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.ToolImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getTool()
+ * @generated
*/
EClass TOOL = eINSTANCE.getTool();
@@ -6451,9 +6575,9 @@ interface Literals {
* The meta object literal for the '{@link org.eclipse.sirius.components.view.diagram.impl.DeleteToolImpl
* Delete Tool }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.DeleteToolImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getDeleteTool()
+ * @generated
*/
EClass DELETE_TOOL = eINSTANCE.getDeleteTool();
@@ -6461,9 +6585,9 @@ interface Literals {
* The meta object literal for the '{@link org.eclipse.sirius.components.view.diagram.impl.DropToolImpl Drop
* Tool }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.DropToolImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getDropTool()
+ * @generated
*/
EClass DROP_TOOL = eINSTANCE.getDropTool();
@@ -6471,9 +6595,9 @@ interface Literals {
* The meta object literal for the '{@link org.eclipse.sirius.components.view.diagram.impl.EdgeToolImpl Edge
* Tool }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.EdgeToolImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getEdgeTool()
+ * @generated
*/
EClass EDGE_TOOL = eINSTANCE.getEdgeTool();
@@ -6498,9 +6622,9 @@ interface Literals {
* '{@link org.eclipse.sirius.components.view.diagram.impl.EdgeReconnectionToolImpl Edge Reconnection
* Tool }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.EdgeReconnectionToolImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getEdgeReconnectionTool()
+ * @generated
*/
EClass EDGE_RECONNECTION_TOOL = eINSTANCE.getEdgeReconnectionTool();
@@ -6508,9 +6632,9 @@ interface Literals {
* The meta object literal for the '{@link org.eclipse.sirius.components.view.diagram.impl.LabelEditToolImpl
* Label Edit Tool }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.LabelEditToolImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getLabelEditTool()
+ * @generated
*/
EClass LABEL_EDIT_TOOL = eINSTANCE.getLabelEditTool();
@@ -6526,19 +6650,19 @@ interface Literals {
* The meta object literal for the '{@link org.eclipse.sirius.components.view.diagram.impl.NodeToolImpl Node
* Tool }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.NodeToolImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getNodeTool()
+ * @generated
*/
EClass NODE_TOOL = eINSTANCE.getNodeTool();
/**
- * The meta object literal for the 'Selection Description ' containment reference feature.
*
* @generated
*/
- EReference NODE_TOOL__SELECTION_DESCRIPTION = eINSTANCE.getNodeTool_SelectionDescription();
+ EReference NODE_TOOL__DIALOG_DESCRIPTION = eINSTANCE.getNodeTool_DialogDescription();
/**
* The meta object literal for the 'Icon UR Ls Expression ' attribute feature.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.SourceEdgeEndReconnectionToolImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getSourceEdgeEndReconnectionTool()
+ * @generated
*/
EClass SOURCE_EDGE_END_RECONNECTION_TOOL = eINSTANCE.getSourceEdgeEndReconnectionTool();
@@ -6564,9 +6688,9 @@ interface Literals {
* '{@link org.eclipse.sirius.components.view.diagram.impl.TargetEdgeEndReconnectionToolImpl Target Edge End
* Reconnection Tool }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.TargetEdgeEndReconnectionToolImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getTargetEdgeEndReconnectionTool()
+ * @generated
*/
EClass TARGET_EDGE_END_RECONNECTION_TOOL = eINSTANCE.getTargetEdgeEndReconnectionTool();
@@ -6574,9 +6698,9 @@ interface Literals {
* The meta object literal for the '{@link org.eclipse.sirius.components.view.diagram.impl.CreateViewImpl
* Create View }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.CreateViewImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getCreateView()
+ * @generated
*/
EClass CREATE_VIEW = eINSTANCE.getCreateView();
@@ -6624,9 +6748,9 @@ interface Literals {
* The meta object literal for the '{@link org.eclipse.sirius.components.view.diagram.impl.DeleteViewImpl
* Delete View }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.DeleteViewImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getDeleteView()
+ * @generated
*/
EClass DELETE_VIEW = eINSTANCE.getDeleteView();
@@ -6640,14 +6764,14 @@ interface Literals {
/**
* The meta object literal for the
- * '{@link org.eclipse.sirius.components.view.diagram.impl.SelectionDescriptionImpl Selection
+ * '{@link org.eclipse.sirius.components.view.diagram.impl.SelectionDialogDescriptionImpl Selection Dialog
* Description }' class.
*
+ * @see org.eclipse.sirius.components.view.diagram.impl.SelectionDialogDescriptionImpl
+ * @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getSelectionDialogDescription()
* @generated
- * @see org.eclipse.sirius.components.view.diagram.impl.SelectionDescriptionImpl
- * @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getSelectionDescription()
*/
- EClass SELECTION_DESCRIPTION = eINSTANCE.getSelectionDescription();
+ EClass SELECTION_DIALOG_DESCRIPTION = eINSTANCE.getSelectionDialogDescription();
/**
* The meta object literal for the 'Selection Candidates Expression ' attribute feature.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.ToolSectionImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getToolSection()
+ * @generated
*/
EClass TOOL_SECTION = eINSTANCE.getToolSection();
@@ -6688,9 +6812,9 @@ interface Literals {
* '{@link org.eclipse.sirius.components.view.diagram.impl.DiagramToolSectionImpl Tool Section }' class.
*
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramToolSectionImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getDiagramToolSection()
+ * @generated
*/
EClass DIAGRAM_TOOL_SECTION = eINSTANCE.getDiagramToolSection();
@@ -6706,9 +6830,9 @@ interface Literals {
* The meta object literal for the '{@link org.eclipse.sirius.components.view.diagram.impl.NodeToolSectionImpl
* Node Tool Section }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.NodeToolSectionImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getNodeToolSection()
+ * @generated
*/
EClass NODE_TOOL_SECTION = eINSTANCE.getNodeToolSection();
@@ -6732,9 +6856,9 @@ interface Literals {
* The meta object literal for the '{@link org.eclipse.sirius.components.view.diagram.impl.EdgeToolSectionImpl
* Edge Tool Section }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.EdgeToolSectionImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getEdgeToolSection()
+ * @generated
*/
EClass EDGE_TOOL_SECTION = eINSTANCE.getEdgeToolSection();
@@ -6750,9 +6874,9 @@ interface Literals {
* The meta object literal for the '{@link org.eclipse.sirius.components.view.diagram.impl.DropNodeToolImpl
* Drop Node Tool }' class.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.impl.DropNodeToolImpl
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getDropNodeTool()
+ * @generated
*/
EClass DROP_NODE_TOOL = eINSTANCE.getDropNodeTool();
@@ -6764,13 +6888,23 @@ interface Literals {
*/
EReference DROP_NODE_TOOL__ACCEPTED_NODE_TYPES = eINSTANCE.getDropNodeTool_AcceptedNodeTypes();
+ /**
+ * The meta object literal for the '{@link org.eclipse.sirius.components.view.diagram.impl.DialogDescriptionImpl
+ * Dialog Description }' class.
+ *
+ * @see org.eclipse.sirius.components.view.diagram.impl.DialogDescriptionImpl
+ * @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getDialogDescription()
+ * @generated
+ */
+ EClass DIALOG_DESCRIPTION = eINSTANCE.getDialogDescription();
+
/**
* The meta object literal for the '{@link org.eclipse.sirius.components.view.diagram.ArrowStyle Arrow
* Style }' enum.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.ArrowStyle
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getArrowStyle()
+ * @generated
*/
EEnum ARROW_STYLE = eINSTANCE.getArrowStyle();
@@ -6778,9 +6912,9 @@ interface Literals {
* The meta object literal for the '{@link org.eclipse.sirius.components.view.diagram.LayoutDirection Layout
* Direction }' enum.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.LayoutDirection
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getLayoutDirection()
+ * @generated
*/
EEnum LAYOUT_DIRECTION = eINSTANCE.getLayoutDirection();
@@ -6788,9 +6922,9 @@ interface Literals {
* The meta object literal for the '{@link org.eclipse.sirius.components.view.diagram.LineStyle Line
* Style }' enum.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.LineStyle
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getLineStyle()
+ * @generated
*/
EEnum LINE_STYLE = eINSTANCE.getLineStyle();
@@ -6798,9 +6932,9 @@ interface Literals {
* The meta object literal for the '{@link org.eclipse.sirius.components.view.diagram.NodeContainmentKind
* Node Containment Kind }' enum.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.NodeContainmentKind
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getNodeContainmentKind()
+ * @generated
*/
EEnum NODE_CONTAINMENT_KIND = eINSTANCE.getNodeContainmentKind();
@@ -6808,9 +6942,9 @@ interface Literals {
* The meta object literal for the '{@link org.eclipse.sirius.components.view.diagram.SynchronizationPolicy
* Synchronization Policy }' enum.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.SynchronizationPolicy
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getSynchronizationPolicy()
+ * @generated
*/
EEnum SYNCHRONIZATION_POLICY = eINSTANCE.getSynchronizationPolicy();
@@ -6818,9 +6952,9 @@ interface Literals {
* The meta object literal for the '{@link org.eclipse.sirius.components.view.diagram.InsideLabelPosition
* Inside Label Position }' enum.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.InsideLabelPosition
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getInsideLabelPosition()
+ * @generated
*/
EEnum INSIDE_LABEL_POSITION = eINSTANCE.getInsideLabelPosition();
@@ -6828,9 +6962,9 @@ interface Literals {
* The meta object literal for the '{@link org.eclipse.sirius.components.view.diagram.OutsideLabelPosition
* Outside Label Position }' enum.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.OutsideLabelPosition
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getOutsideLabelPosition()
+ * @generated
*/
EEnum OUTSIDE_LABEL_POSITION = eINSTANCE.getOutsideLabelPosition();
@@ -6838,9 +6972,9 @@ interface Literals {
* The meta object literal for the '{@link org.eclipse.sirius.components.view.diagram.LabelOverflowStrategy
* Label Overflow Strategy }' enum.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.LabelOverflowStrategy
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getLabelOverflowStrategy()
+ * @generated
*/
EEnum LABEL_OVERFLOW_STRATEGY = eINSTANCE.getLabelOverflowStrategy();
@@ -6848,9 +6982,9 @@ interface Literals {
* The meta object literal for the '{@link org.eclipse.sirius.components.view.diagram.ArrangeLayoutDirection
* Arrange Layout Direction }' enum.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.ArrangeLayoutDirection
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getArrangeLayoutDirection()
+ * @generated
*/
EEnum ARRANGE_LAYOUT_DIRECTION = eINSTANCE.getArrangeLayoutDirection();
@@ -6858,9 +6992,9 @@ interface Literals {
* The meta object literal for the '{@link org.eclipse.sirius.components.view.diagram.LabelTextAlign Label
* Text Align }' enum.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.LabelTextAlign
* @see org.eclipse.sirius.components.view.diagram.impl.DiagramPackageImpl#getLabelTextAlign()
+ * @generated
*/
EEnum LABEL_TEXT_ALIGN = eINSTANCE.getLabelTextAlign();
diff --git a/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/DialogDescription.java b/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/DialogDescription.java
new file mode 100644
index 00000000000..af29e24f5ad
--- /dev/null
+++ b/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/DialogDescription.java
@@ -0,0 +1,27 @@
+/*******************************************************************************
+ * Copyright (c) 2024 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.diagram;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * A representation of the model object 'Dialog Description '.
+ *
+ *
+ * @see org.eclipse.sirius.components.view.diagram.DiagramPackage#getDialogDescription()
+ * @model abstract="true"
+ * @generated
+ */
+public interface DialogDescription extends EObject {
+} // DialogDescription
diff --git a/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/InsideLabelPosition.java b/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/InsideLabelPosition.java
index 181ecba07a6..6f5bc35ca87 100644
--- a/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/InsideLabelPosition.java
+++ b/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/InsideLabelPosition.java
@@ -22,171 +22,171 @@
* A representation of the literals of the enumeration 'Inside Label Position ',
* and utility methods for working with them.
*
+ * @see org.eclipse.sirius.components.view.diagram.DiagramPackage#getInsideLabelPosition()
* @model
* @generated
- * @see org.eclipse.sirius.components.view.diagram.DiagramPackage#getInsideLabelPosition()
*/
public enum InsideLabelPosition implements Enumerator {
/**
* The 'TOP CENTER ' literal object.
*
+ * @see #TOP_CENTER_VALUE
* @generated
* @ordered
- * @see #TOP_CENTER_VALUE
*/
TOP_CENTER(0, "TOP_CENTER", "TOP_CENTER"),
/**
* The 'TOP LEFT ' literal object.
*
+ * @see #TOP_LEFT_VALUE
* @generated
* @ordered
- * @see #TOP_LEFT_VALUE
*/
TOP_LEFT(1, "TOP_LEFT", "TOP_LEFT"),
/**
* The 'TOP RIGHT ' literal object.
*
+ * @see #TOP_RIGHT_VALUE
* @generated
* @ordered
- * @see #TOP_RIGHT_VALUE
*/
TOP_RIGHT(2, "TOP_RIGHT", "TOP_RIGHT"),
/**
* The 'MIDDLE LEFT ' literal object.
*
+ * @see #MIDDLE_LEFT_VALUE
* @generated
* @ordered
- * @see #MIDDLE_LEFT_VALUE
*/
MIDDLE_LEFT(3, "MIDDLE_LEFT", "MIDDLE_LEFT"),
/**
* The 'MIDDLE CENTER ' literal object.
*
+ * @see #MIDDLE_CENTER_VALUE
* @generated
* @ordered
- * @see #MIDDLE_CENTER_VALUE
*/
MIDDLE_CENTER(4, "MIDDLE_CENTER", "MIDDLE_CENTER"),
/**
* The 'MIDDLE RIGHT ' literal object.
*
+ * @see #MIDDLE_RIGHT_VALUE
* @generated
* @ordered
- * @see #MIDDLE_RIGHT_VALUE
*/
MIDDLE_RIGHT(5, "MIDDLE_RIGHT", "MIDDLE_RIGHT"),
/**
* The 'BOTTOM LEFT ' literal object.
*
+ * @see #BOTTOM_LEFT_VALUE
* @generated
* @ordered
- * @see #BOTTOM_LEFT_VALUE
*/
BOTTOM_LEFT(6, "BOTTOM_LEFT", "BOTTOM_LEFT"),
/**
* The 'BOTTOM CENTER ' literal object.
*
+ * @see #BOTTOM_CENTER_VALUE
* @generated
* @ordered
- * @see #BOTTOM_CENTER_VALUE
*/
BOTTOM_CENTER(7, "BOTTOM_CENTER", "BOTTOM_CENTER"),
/**
* The 'BOTTOM RIGHT ' literal object.
*
+ * @see #BOTTOM_RIGHT_VALUE
* @generated
* @ordered
- * @see #BOTTOM_RIGHT_VALUE
*/
BOTTOM_RIGHT(8, "BOTTOM_RIGHT", "BOTTOM_RIGHT");
/**
* The 'TOP CENTER ' literal value.
*
+ * @see #TOP_CENTER
* @model
* @generated
* @ordered
- * @see #TOP_CENTER
*/
public static final int TOP_CENTER_VALUE = 0;
/**
* The 'TOP LEFT ' literal value.
*
+ * @see #TOP_LEFT
* @model
* @generated
* @ordered
- * @see #TOP_LEFT
*/
public static final int TOP_LEFT_VALUE = 1;
/**
* The 'TOP RIGHT ' literal value.
*
+ * @see #TOP_RIGHT
* @model
* @generated
* @ordered
- * @see #TOP_RIGHT
*/
public static final int TOP_RIGHT_VALUE = 2;
/**
* The 'MIDDLE LEFT ' literal value.
*
+ * @see #MIDDLE_LEFT
* @model
* @generated
* @ordered
- * @see #MIDDLE_LEFT
*/
public static final int MIDDLE_LEFT_VALUE = 3;
/**
* The 'MIDDLE CENTER ' literal value.
*
+ * @see #MIDDLE_CENTER
* @model
* @generated
* @ordered
- * @see #MIDDLE_CENTER
*/
public static final int MIDDLE_CENTER_VALUE = 4;
/**
* The 'MIDDLE RIGHT ' literal value.
*
+ * @see #MIDDLE_RIGHT
* @model
* @generated
* @ordered
- * @see #MIDDLE_RIGHT
*/
public static final int MIDDLE_RIGHT_VALUE = 5;
/**
* The 'BOTTOM LEFT ' literal value.
*
+ * @see #BOTTOM_LEFT
* @model
* @generated
* @ordered
- * @see #BOTTOM_LEFT
*/
public static final int BOTTOM_LEFT_VALUE = 6;
/**
* The 'BOTTOM CENTER ' literal value.
*
+ * @see #BOTTOM_CENTER
* @model
* @generated
* @ordered
- * @see #BOTTOM_CENTER
*/
public static final int BOTTOM_CENTER_VALUE = 7;
/**
* The 'BOTTOM RIGHT ' literal value.
*
+ * @see #BOTTOM_RIGHT
* @model
* @generated
* @ordered
- * @see #BOTTOM_RIGHT
*/
public static final int BOTTOM_RIGHT_VALUE = 8;
@@ -197,7 +197,7 @@ public enum InsideLabelPosition implements Enumerator {
* @generated
*/
private static final InsideLabelPosition[] VALUES_ARRAY = new InsideLabelPosition[] { TOP_CENTER, TOP_LEFT, TOP_RIGHT, MIDDLE_LEFT, MIDDLE_CENTER, MIDDLE_RIGHT, BOTTOM_LEFT, BOTTOM_CENTER,
- BOTTOM_RIGHT, };
+ BOTTOM_RIGHT, };
/**
* A public read-only list of all the 'Inside Label Position ' enumerators.
@@ -233,7 +233,7 @@ public enum InsideLabelPosition implements Enumerator {
*
* @generated
*/
- InsideLabelPosition(int value, String name, String literal) {
+ private InsideLabelPosition(int value, String name, String literal) {
this.value = value;
this.name = name;
this.literal = literal;
@@ -244,7 +244,7 @@ public enum InsideLabelPosition implements Enumerator {
* -->
*
* @param literal
- * the literal.
+ * the literal.
* @return the matching enumerator or null
.
* @generated
*/
@@ -263,7 +263,7 @@ public static InsideLabelPosition get(String literal) {
* end-user-doc -->
*
* @param name
- * the name.
+ * the name.
* @return the matching enumerator or null
.
* @generated
*/
@@ -282,7 +282,7 @@ public static InsideLabelPosition getByName(String name) {
* -->
*
* @param value
- * the integer value.
+ * the integer value.
* @return the matching enumerator or null
.
* @generated
*/
diff --git a/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/LabelDescription.java b/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/LabelDescription.java
index 08601b74d05..a6e0d0cb01c 100644
--- a/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/LabelDescription.java
+++ b/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/LabelDescription.java
@@ -40,10 +40,10 @@ public interface LabelDescription extends EObject {
* "aql:self.name"
.
*
* @return the value of the 'Label Expression ' attribute.
- * @model default="aql:self.name" dataType="org.eclipse.sirius.components.view.InterpretedExpression"
- * @generated
* @see #setLabelExpression(String)
* @see org.eclipse.sirius.components.view.diagram.DiagramPackage#getLabelDescription_LabelExpression()
+ * @model default="aql:self.name" dataType="org.eclipse.sirius.components.view.InterpretedExpression"
+ * @generated
*/
String getLabelExpression();
@@ -52,9 +52,9 @@ public interface LabelDescription extends EObject {
* Label Expression }' attribute.
*
* @param value
- * the new value of the 'Label Expression ' attribute.
- * @generated
+ * the new value of the 'Label Expression ' attribute.
* @see #getLabelExpression()
+ * @generated
*/
void setLabelExpression(String value);
@@ -64,11 +64,11 @@ public interface LabelDescription extends EObject {
* end-user-doc -->
*
* @return the value of the 'Overflow Strategy ' attribute.
- * @model required="true"
- * @generated
* @see org.eclipse.sirius.components.view.diagram.LabelOverflowStrategy
* @see #setOverflowStrategy(LabelOverflowStrategy)
* @see org.eclipse.sirius.components.view.diagram.DiagramPackage#getLabelDescription_OverflowStrategy()
+ * @model required="true"
+ * @generated
*/
LabelOverflowStrategy getOverflowStrategy();
@@ -77,10 +77,10 @@ public interface LabelDescription extends EObject {
* Overflow Strategy }' attribute.
*
* @param value
- * the new value of the 'Overflow Strategy ' attribute.
- * @generated
+ * the new value of the 'Overflow Strategy ' attribute.
* @see org.eclipse.sirius.components.view.diagram.LabelOverflowStrategy
* @see #getOverflowStrategy()
+ * @generated
*/
void setOverflowStrategy(LabelOverflowStrategy value);
@@ -89,11 +89,11 @@ public interface LabelDescription extends EObject {
* {@link org.eclipse.sirius.components.view.diagram.LabelTextAlign}.
*
* @return the value of the 'Text Align ' attribute.
- * @model required="true"
- * @generated
* @see org.eclipse.sirius.components.view.diagram.LabelTextAlign
* @see #setTextAlign(LabelTextAlign)
* @see org.eclipse.sirius.components.view.diagram.DiagramPackage#getLabelDescription_TextAlign()
+ * @model required="true"
+ * @generated
*/
LabelTextAlign getTextAlign();
@@ -102,10 +102,10 @@ public interface LabelDescription extends EObject {
* Align }' attribute.
*
* @param value
- * the new value of the 'Text Align ' attribute.
- * @generated
+ * the new value of the 'Text Align ' attribute.
* @see org.eclipse.sirius.components.view.diagram.LabelTextAlign
* @see #getTextAlign()
+ * @generated
*/
void setTextAlign(LabelTextAlign value);
diff --git a/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/LabelOverflowStrategy.java b/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/LabelOverflowStrategy.java
index f959ca0fa4c..3747301c2f7 100644
--- a/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/LabelOverflowStrategy.java
+++ b/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/LabelOverflowStrategy.java
@@ -22,65 +22,65 @@
* A representation of the literals of the enumeration 'Label Overflow
* Strategy ', and utility methods for working with them.
*
+ * @see org.eclipse.sirius.components.view.diagram.DiagramPackage#getLabelOverflowStrategy()
* @model
* @generated
- * @see org.eclipse.sirius.components.view.diagram.DiagramPackage#getLabelOverflowStrategy()
*/
public enum LabelOverflowStrategy implements Enumerator {
/**
* The 'NONE ' literal object.
*
+ * @see #NONE_VALUE
* @generated
* @ordered
- * @see #NONE_VALUE
*/
NONE(0, "NONE", "NONE"),
/**
* The 'WRAP ' literal object.
*
+ * @see #WRAP_VALUE
* @generated
* @ordered
- * @see #WRAP_VALUE
*/
WRAP(1, "WRAP", "WRAP"),
/**
* The 'ELLIPSIS ' literal object.
*
+ * @see #ELLIPSIS_VALUE
* @generated
* @ordered
- * @see #ELLIPSIS_VALUE
*/
ELLIPSIS(2, "ELLIPSIS", "ELLIPSIS");
/**
* The 'NONE ' literal value.
*
+ * @see #NONE
* @model
* @generated
* @ordered
- * @see #NONE
*/
public static final int NONE_VALUE = 0;
/**
* The 'WRAP ' literal value.
*
+ * @see #WRAP
* @model
* @generated
* @ordered
- * @see #WRAP
*/
public static final int WRAP_VALUE = 1;
/**
* The 'ELLIPSIS ' literal value.
*
+ * @see #ELLIPSIS
* @model
* @generated
* @ordered
- * @see #ELLIPSIS
*/
public static final int ELLIPSIS_VALUE = 2;
@@ -126,7 +126,7 @@ public enum LabelOverflowStrategy implements Enumerator {
*
* @generated
*/
- LabelOverflowStrategy(int value, String name, String literal) {
+ private LabelOverflowStrategy(int value, String name, String literal) {
this.value = value;
this.name = name;
this.literal = literal;
@@ -137,7 +137,7 @@ public enum LabelOverflowStrategy implements Enumerator {
* begin-user-doc -->
*
* @param literal
- * the literal.
+ * the literal.
* @return the matching enumerator or null
.
* @generated
*/
@@ -156,7 +156,7 @@ public static LabelOverflowStrategy get(String literal) {
*
*
* @param name
- * the name.
+ * the name.
* @return the matching enumerator or null
.
* @generated
*/
@@ -175,7 +175,7 @@ public static LabelOverflowStrategy getByName(String name) {
* begin-user-doc -->
*
* @param value
- * the integer value.
+ * the integer value.
* @return the matching enumerator or null
.
* @generated
*/
diff --git a/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/LabelTextAlign.java b/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/LabelTextAlign.java
index 0f84bd72d4d..bf639672631 100644
--- a/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/LabelTextAlign.java
+++ b/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/LabelTextAlign.java
@@ -22,84 +22,84 @@
* A representation of the literals of the enumeration 'Label Text Align ', and
* utility methods for working with them.
*
+ * @see org.eclipse.sirius.components.view.diagram.DiagramPackage#getLabelTextAlign()
* @model
* @generated
- * @see org.eclipse.sirius.components.view.diagram.DiagramPackage#getLabelTextAlign()
*/
public enum LabelTextAlign implements Enumerator {
/**
* The 'LEFT ' literal object.
*
+ * @see #LEFT_VALUE
* @generated
* @ordered
- * @see #LEFT_VALUE
*/
LEFT(0, "LEFT", "LEFT"),
/**
* The 'RIGHT ' literal object.
*
+ * @see #RIGHT_VALUE
* @generated
* @ordered
- * @see #RIGHT_VALUE
*/
RIGHT(1, "RIGHT", "RIGHT"),
/**
* The 'CENTER ' literal object.
*
+ * @see #CENTER_VALUE
* @generated
* @ordered
- * @see #CENTER_VALUE
*/
CENTER(2, "CENTER", "CENTER"),
/**
* The 'JUSTIFY ' literal object.
*
+ * @see #JUSTIFY_VALUE
* @generated
* @ordered
- * @see #JUSTIFY_VALUE
*/
JUSTIFY(3, "JUSTIFY", "JUSTIFY");
/**
* The 'LEFT ' literal value.
*
+ * @see #LEFT
* @model
* @generated
* @ordered
- * @see #LEFT
*/
public static final int LEFT_VALUE = 0;
/**
* The 'RIGHT ' literal value.
*
+ * @see #RIGHT
* @model
* @generated
* @ordered
- * @see #RIGHT
*/
public static final int RIGHT_VALUE = 1;
/**
* The 'CENTER ' literal value.
*
+ * @see #CENTER
* @model
* @generated
* @ordered
- * @see #CENTER
*/
public static final int CENTER_VALUE = 2;
/**
* The 'JUSTIFY ' literal value.
*
+ * @see #JUSTIFY
* @model
* @generated
* @ordered
- * @see #JUSTIFY
*/
public static final int JUSTIFY_VALUE = 3;
@@ -144,7 +144,7 @@ public enum LabelTextAlign implements Enumerator {
*
* @generated
*/
- LabelTextAlign(int value, String name, String literal) {
+ private LabelTextAlign(int value, String name, String literal) {
this.value = value;
this.name = name;
this.literal = literal;
@@ -155,7 +155,7 @@ public enum LabelTextAlign implements Enumerator {
*
*
* @param literal
- * the literal.
+ * the literal.
* @return the matching enumerator or null
.
* @generated
*/
@@ -174,7 +174,7 @@ public static LabelTextAlign get(String literal) {
* end-user-doc -->
*
* @param name
- * the name.
+ * the name.
* @return the matching enumerator or null
.
* @generated
*/
@@ -193,7 +193,7 @@ public static LabelTextAlign getByName(String name) {
*
*
* @param value
- * the integer value.
+ * the integer value.
* @return the matching enumerator or null
.
* @generated
*/
diff --git a/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/NodeTool.java b/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/NodeTool.java
index 08725e0b32d..923d9851b32 100644
--- a/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/NodeTool.java
+++ b/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/NodeTool.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2023 Obeo.
+ * Copyright (c) 2023, 2024 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,8 +19,7 @@
* The following features are supported:
*
*
- * {@link org.eclipse.sirius.components.view.diagram.NodeTool#getSelectionDescription Selection
- * Description }
+ * {@link org.eclipse.sirius.components.view.diagram.NodeTool#getDialogDescription Dialog Description }
* {@link org.eclipse.sirius.components.view.diagram.NodeTool#getIconURLsExpression Icon UR Ls
* Expression }
*
@@ -31,27 +30,27 @@
*/
public interface NodeTool extends Tool {
/**
- * Returns the value of the 'Selection Description ' containment reference.
- *
+ * Returns the value of the 'Dialog Description ' containment reference.
*
- * @return the value of the 'Selection Description ' containment reference.
- * @see #setSelectionDescription(SelectionDescription)
- * @see org.eclipse.sirius.components.view.diagram.DiagramPackage#getNodeTool_SelectionDescription()
+ * @return the value of the 'Dialog Description ' containment reference.
+ * @see #setDialogDescription(DialogDescription)
+ * @see org.eclipse.sirius.components.view.diagram.DiagramPackage#getNodeTool_DialogDescription()
* @model containment="true"
* @generated
*/
- SelectionDescription getSelectionDescription();
+ DialogDescription getDialogDescription();
/**
- * Sets the value of the '{@link org.eclipse.sirius.components.view.diagram.NodeTool#getSelectionDescription
- * Selection Description }' containment reference.
+ * Sets the value of the '{@link org.eclipse.sirius.components.view.diagram.NodeTool#getDialogDescription Dialog
+ * Description }' containment reference.
*
* @param value
- * the new value of the 'Selection Description ' containment reference.
- * @see #getSelectionDescription()
+ * the new value of the 'Dialog Description ' containment reference.
+ * @see #getDialogDescription()
* @generated
*/
- void setSelectionDescription(SelectionDescription value);
+ void setDialogDescription(DialogDescription value);
/**
* Returns the value of the 'Icon UR Ls Expression ' attribute. A representation of the model object 'Selection Description '. A representation of the model object 'Selection Dialog Description '.
*
*
* The following features are supported:
*
*
- * {@link org.eclipse.sirius.components.view.diagram.SelectionDescription#getSelectionCandidatesExpression
+ * {@link org.eclipse.sirius.components.view.diagram.SelectionDialogDescription#getSelectionCandidatesExpression
* Selection Candidates Expression }
- * {@link org.eclipse.sirius.components.view.diagram.SelectionDescription#getSelectionMessage Selection
+ * {@link org.eclipse.sirius.components.view.diagram.SelectionDialogDescription#getSelectionMessage Selection
* Message }
*
*
- * @see org.eclipse.sirius.components.view.diagram.DiagramPackage#getSelectionDescription()
+ * @see org.eclipse.sirius.components.view.diagram.DiagramPackage#getSelectionDialogDescription()
* @model
* @generated
*/
-public interface SelectionDescription extends EObject {
+public interface SelectionDialogDescription extends DialogDescription {
/**
* Returns the value of the 'Selection Candidates Expression ' attribute. The default value is
* "aql:self"
.
*
* @return the value of the 'Selection Candidates Expression ' attribute.
* @see #setSelectionCandidatesExpression(String)
- * @see org.eclipse.sirius.components.view.diagram.DiagramPackage#getSelectionDescription_SelectionCandidatesExpression()
+ * @see org.eclipse.sirius.components.view.diagram.DiagramPackage#getSelectionDialogDescription_SelectionCandidatesExpression()
* @model default="aql:self" dataType="org.eclipse.sirius.components.view.InterpretedExpression"
* @generated
*/
@@ -47,7 +45,7 @@ public interface SelectionDescription extends EObject {
/**
* Sets the value of the
- * '{@link org.eclipse.sirius.components.view.diagram.SelectionDescription#getSelectionCandidatesExpression
+ * '{@link org.eclipse.sirius.components.view.diagram.SelectionDialogDescription#getSelectionCandidatesExpression
* Selection Candidates Expression }' attribute.
*
* @param value
@@ -63,15 +61,16 @@ public interface SelectionDescription extends EObject {
*
* @return the value of the 'Selection Message ' attribute.
* @see #setSelectionMessage(String)
- * @see org.eclipse.sirius.components.view.diagram.DiagramPackage#getSelectionDescription_SelectionMessage()
+ * @see org.eclipse.sirius.components.view.diagram.DiagramPackage#getSelectionDialogDescription_SelectionMessage()
* @model
* @generated
*/
String getSelectionMessage();
/**
- * Sets the value of the '{@link org.eclipse.sirius.components.view.diagram.SelectionDescription#getSelectionMessage
- * Selection Message }' attribute.
+ * Sets the value of the
+ * '{@link org.eclipse.sirius.components.view.diagram.SelectionDialogDescription#getSelectionMessage Selection
+ * Message }' attribute.
*
* @param value
* the new value of the 'Selection Message ' attribute.
@@ -80,4 +79,4 @@ public interface SelectionDescription extends EObject {
*/
void setSelectionMessage(String value);
-} // SelectionDescription
+} // SelectionDialogDescription
diff --git a/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/impl/DiagramDescriptionImpl.java b/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/impl/DiagramDescriptionImpl.java
index dba22598ced..75e23d7a737 100644
--- a/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/impl/DiagramDescriptionImpl.java
+++ b/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/impl/DiagramDescriptionImpl.java
@@ -55,56 +55,62 @@ public class DiagramDescriptionImpl extends RepresentationDescriptionImpl implem
* The default value of the '{@link #isAutoLayout() Auto Layout }' attribute.
*
- * @generated
- * @ordered
* @see #isAutoLayout()
- */
- protected static final boolean AUTO_LAYOUT_EDEFAULT = false;
- /**
- * The default value of the '{@link #getArrangeLayoutDirection() Arrange Layout Direction }' attribute.
- *
* @generated
* @ordered
- * @see #getArrangeLayoutDirection()
*/
- protected static final ArrangeLayoutDirection ARRANGE_LAYOUT_DIRECTION_EDEFAULT = ArrangeLayoutDirection.UNDEFINED;
+ protected static final boolean AUTO_LAYOUT_EDEFAULT = false;
+
/**
* The cached value of the '{@link #isAutoLayout() Auto Layout }' attribute.
*
+ * @see #isAutoLayout()
* @generated
* @ordered
- * @see #isAutoLayout()
*/
protected boolean autoLayout = AUTO_LAYOUT_EDEFAULT;
+
/**
* The cached value of the '{@link #getPalette() Palette }' containment reference.
*
*
+ * @see #getPalette()
* @generated
* @ordered
- * @see #getPalette()
*/
protected DiagramPalette palette;
+
/**
* The cached value of the '{@link #getNodeDescriptions() Node Descriptions }' containment reference list.
*
*
+ * @see #getNodeDescriptions()
* @generated
* @ordered
- * @see #getNodeDescriptions()
*/
protected EList nodeDescriptions;
+
/**
* The cached value of the '{@link #getEdgeDescriptions() Edge Descriptions }' containment reference list.
*
*
+ * @see #getEdgeDescriptions()
* @generated
* @ordered
- * @see #getEdgeDescriptions()
*/
protected EList edgeDescriptions;
+
+ /**
+ * The default value of the '{@link #getArrangeLayoutDirection() Arrange Layout Direction }' attribute.
+ *
+ * @generated
+ * @ordered
+ * @see #getArrangeLayoutDirection()
+ */
+ protected static final ArrangeLayoutDirection ARRANGE_LAYOUT_DIRECTION_EDEFAULT = ArrangeLayoutDirection.UNDEFINED;
+
/**
* The cached value of the '{@link #getArrangeLayoutDirection() Arrange Layout Direction }' attribute.
@@ -336,7 +342,7 @@ public void eUnset(int featureID) {
this.setAutoLayout(AUTO_LAYOUT_EDEFAULT);
return;
case DiagramPackage.DIAGRAM_DESCRIPTION__PALETTE:
- this.setPalette(null);
+ this.setPalette((DiagramPalette) null);
return;
case DiagramPackage.DIAGRAM_DESCRIPTION__NODE_DESCRIPTIONS:
this.getNodeDescriptions().clear();
@@ -383,12 +389,13 @@ public String toString() {
if (this.eIsProxy())
return super.toString();
- String result = super.toString() + " (autoLayout: " +
- this.autoLayout +
- ", arrangeLayoutDirection: " +
- this.arrangeLayoutDirection +
- ')';
- return result;
+ StringBuilder result = new StringBuilder(super.toString());
+ result.append(" (autoLayout: ");
+ result.append(this.autoLayout);
+ result.append(", arrangeLayoutDirection: ");
+ result.append(this.arrangeLayoutDirection);
+ result.append(')');
+ return result.toString();
}
} // DiagramDescriptionImpl
diff --git a/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/impl/DiagramFactoryImpl.java b/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/impl/DiagramFactoryImpl.java
index bec03e5a343..496ddfbb374 100644
--- a/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/impl/DiagramFactoryImpl.java
+++ b/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/impl/DiagramFactoryImpl.java
@@ -60,7 +60,7 @@
import org.eclipse.sirius.components.view.diagram.OutsideLabelPosition;
import org.eclipse.sirius.components.view.diagram.OutsideLabelStyle;
import org.eclipse.sirius.components.view.diagram.RectangularNodeStyleDescription;
-import org.eclipse.sirius.components.view.diagram.SelectionDescription;
+import org.eclipse.sirius.components.view.diagram.SelectionDialogDescription;
import org.eclipse.sirius.components.view.diagram.SourceEdgeEndReconnectionTool;
import org.eclipse.sirius.components.view.diagram.SynchronizationPolicy;
import org.eclipse.sirius.components.view.diagram.TargetEdgeEndReconnectionTool;
@@ -101,8 +101,8 @@ public static DiagramFactory init() {
/**
*
*
- * @generated
* @deprecated
+ * @generated
*/
@Deprecated
public static DiagramPackage getPackage() {
@@ -175,8 +175,8 @@ public EObject create(EClass eClass) {
return this.createCreateView();
case DiagramPackage.DELETE_VIEW:
return this.createDeleteView();
- case DiagramPackage.SELECTION_DESCRIPTION:
- return this.createSelectionDescription();
+ case DiagramPackage.SELECTION_DIALOG_DESCRIPTION:
+ return this.createSelectionDialogDescription();
case DiagramPackage.DIAGRAM_TOOL_SECTION:
return this.createDiagramToolSection();
case DiagramPackage.NODE_TOOL_SECTION:
@@ -581,9 +581,9 @@ public DeleteView createDeleteView() {
* @generated
*/
@Override
- public SelectionDescription createSelectionDescription() {
- SelectionDescriptionImpl selectionDescription = new SelectionDescriptionImpl();
- return selectionDescription;
+ public SelectionDialogDescription createSelectionDialogDescription() {
+ SelectionDialogDescriptionImpl selectionDialogDescription = new SelectionDialogDescriptionImpl();
+ return selectionDialogDescription;
}
/**
diff --git a/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/impl/DiagramPackageImpl.java b/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/impl/DiagramPackageImpl.java
index 9d20d776b8c..5518309fda2 100644
--- a/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/impl/DiagramPackageImpl.java
+++ b/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/impl/DiagramPackageImpl.java
@@ -35,6 +35,7 @@
import org.eclipse.sirius.components.view.diagram.DiagramPackage;
import org.eclipse.sirius.components.view.diagram.DiagramPalette;
import org.eclipse.sirius.components.view.diagram.DiagramToolSection;
+import org.eclipse.sirius.components.view.diagram.DialogDescription;
import org.eclipse.sirius.components.view.diagram.DropNodeTool;
import org.eclipse.sirius.components.view.diagram.DropTool;
import org.eclipse.sirius.components.view.diagram.EdgeDescription;
@@ -68,7 +69,7 @@
import org.eclipse.sirius.components.view.diagram.OutsideLabelPosition;
import org.eclipse.sirius.components.view.diagram.OutsideLabelStyle;
import org.eclipse.sirius.components.view.diagram.RectangularNodeStyleDescription;
-import org.eclipse.sirius.components.view.diagram.SelectionDescription;
+import org.eclipse.sirius.components.view.diagram.SelectionDialogDescription;
import org.eclipse.sirius.components.view.diagram.SourceEdgeEndReconnectionTool;
import org.eclipse.sirius.components.view.diagram.Style;
import org.eclipse.sirius.components.view.diagram.SynchronizationPolicy;
@@ -361,7 +362,7 @@ public class DiagramPackageImpl extends EPackageImpl implements DiagramPackage {
*
* @generated
*/
- private EClass selectionDescriptionEClass = null;
+ private EClass selectionDialogDescriptionEClass = null;
/**
*
@@ -398,6 +399,13 @@ public class DiagramPackageImpl extends EPackageImpl implements DiagramPackage {
*/
private EClass dropNodeToolEClass = null;
+ /**
+ *
+ *
+ * @generated
+ */
+ private EClass dialogDescriptionEClass = null;
+
/**
*
*
@@ -507,10 +515,10 @@ private DiagramPackageImpl() {
* 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 DiagramPackage init() {
if (isInited)
@@ -1885,7 +1893,7 @@ public EClass getNodeTool() {
* @generated
*/
@Override
- public EReference getNodeTool_SelectionDescription() {
+ public EReference getNodeTool_DialogDescription() {
return (EReference) this.nodeToolEClass.getEStructuralFeatures().get(0);
}
@@ -2005,8 +2013,8 @@ public EAttribute getDeleteView_ViewExpression() {
* @generated
*/
@Override
- public EClass getSelectionDescription() {
- return this.selectionDescriptionEClass;
+ public EClass getSelectionDialogDescription() {
+ return this.selectionDialogDescriptionEClass;
}
/**
@@ -2015,8 +2023,8 @@ public EClass getSelectionDescription() {
* @generated
*/
@Override
- public EAttribute getSelectionDescription_SelectionCandidatesExpression() {
- return (EAttribute) this.selectionDescriptionEClass.getEStructuralFeatures().get(0);
+ public EAttribute getSelectionDialogDescription_SelectionCandidatesExpression() {
+ return (EAttribute) this.selectionDialogDescriptionEClass.getEStructuralFeatures().get(0);
}
/**
@@ -2025,8 +2033,8 @@ public EAttribute getSelectionDescription_SelectionCandidatesExpression() {
* @generated
*/
@Override
- public EAttribute getSelectionDescription_SelectionMessage() {
- return (EAttribute) this.selectionDescriptionEClass.getEStructuralFeatures().get(1);
+ public EAttribute getSelectionDialogDescription_SelectionMessage() {
+ return (EAttribute) this.selectionDialogDescriptionEClass.getEStructuralFeatures().get(1);
}
/**
@@ -2139,6 +2147,16 @@ public EReference getDropNodeTool_AcceptedNodeTypes() {
return (EReference) this.dropNodeToolEClass.getEStructuralFeatures().get(0);
}
+ /**
+ *
+ *
+ * @generated
+ */
+ @Override
+ public EClass getDialogDescription() {
+ return this.dialogDescriptionEClass;
+ }
+
/**
*
*
@@ -2428,7 +2446,7 @@ public void createPackageContents() {
this.createEAttribute(this.labelEditToolEClass, LABEL_EDIT_TOOL__INITIAL_DIRECT_EDIT_LABEL_EXPRESSION);
this.nodeToolEClass = this.createEClass(NODE_TOOL);
- this.createEReference(this.nodeToolEClass, NODE_TOOL__SELECTION_DESCRIPTION);
+ this.createEReference(this.nodeToolEClass, NODE_TOOL__DIALOG_DESCRIPTION);
this.createEAttribute(this.nodeToolEClass, NODE_TOOL__ICON_UR_LS_EXPRESSION);
this.sourceEdgeEndReconnectionToolEClass = this.createEClass(SOURCE_EDGE_END_RECONNECTION_TOOL);
@@ -2445,9 +2463,9 @@ public void createPackageContents() {
this.deleteViewEClass = this.createEClass(DELETE_VIEW);
this.createEAttribute(this.deleteViewEClass, DELETE_VIEW__VIEW_EXPRESSION);
- this.selectionDescriptionEClass = this.createEClass(SELECTION_DESCRIPTION);
- this.createEAttribute(this.selectionDescriptionEClass, SELECTION_DESCRIPTION__SELECTION_CANDIDATES_EXPRESSION);
- this.createEAttribute(this.selectionDescriptionEClass, SELECTION_DESCRIPTION__SELECTION_MESSAGE);
+ this.selectionDialogDescriptionEClass = this.createEClass(SELECTION_DIALOG_DESCRIPTION);
+ this.createEAttribute(this.selectionDialogDescriptionEClass, SELECTION_DIALOG_DESCRIPTION__SELECTION_CANDIDATES_EXPRESSION);
+ this.createEAttribute(this.selectionDialogDescriptionEClass, SELECTION_DIALOG_DESCRIPTION__SELECTION_MESSAGE);
this.toolSectionEClass = this.createEClass(TOOL_SECTION);
this.createEAttribute(this.toolSectionEClass, TOOL_SECTION__NAME);
@@ -2465,6 +2483,8 @@ public void createPackageContents() {
this.dropNodeToolEClass = this.createEClass(DROP_NODE_TOOL);
this.createEReference(this.dropNodeToolEClass, DROP_NODE_TOOL__ACCEPTED_NODE_TYPES);
+ this.dialogDescriptionEClass = this.createEClass(DIALOG_DESCRIPTION);
+
// Create enums
this.arrowStyleEEnum = this.createEEnum(ARROW_STYLE);
this.layoutDirectionEEnum = this.createEEnum(LAYOUT_DIRECTION);
@@ -2535,6 +2555,7 @@ public void initializePackageContents() {
this.targetEdgeEndReconnectionToolEClass.getESuperTypes().add(this.getEdgeReconnectionTool());
this.createViewEClass.getESuperTypes().add(theViewPackage.getOperation());
this.deleteViewEClass.getESuperTypes().add(theViewPackage.getOperation());
+ this.selectionDialogDescriptionEClass.getESuperTypes().add(this.getDialogDescription());
this.diagramToolSectionEClass.getESuperTypes().add(this.getToolSection());
this.nodeToolSectionEClass.getESuperTypes().add(this.getToolSection());
this.edgeToolSectionEClass.getESuperTypes().add(this.getToolSection());
@@ -2809,8 +2830,8 @@ public void initializePackageContents() {
!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
this.initEClass(this.nodeToolEClass, NodeTool.class, "NodeTool", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- this.initEReference(this.getNodeTool_SelectionDescription(), this.getSelectionDescription(), null, "selectionDescription", null, 0, 1, NodeTool.class, !IS_TRANSIENT, !IS_VOLATILE,
- IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ this.initEReference(this.getNodeTool_DialogDescription(), this.getDialogDescription(), null, "dialogDescription", null, 0, 1, NodeTool.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,
+ IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
this.initEAttribute(this.getNodeTool_IconURLsExpression(), theViewPackage.getInterpretedExpression(), "iconURLsExpression", null, 0, 1, NodeTool.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
@@ -2834,11 +2855,11 @@ public void initializePackageContents() {
this.initEAttribute(this.getDeleteView_ViewExpression(), theViewPackage.getInterpretedExpression(), "viewExpression", "aql:selectedNode", 1, 1, DeleteView.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- this.initEClass(this.selectionDescriptionEClass, SelectionDescription.class, "SelectionDescription", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- this.initEAttribute(this.getSelectionDescription_SelectionCandidatesExpression(), theViewPackage.getInterpretedExpression(), "selectionCandidatesExpression", "aql:self", 0, 1,
- SelectionDescription.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- this.initEAttribute(this.getSelectionDescription_SelectionMessage(), this.ecorePackage.getEString(), "selectionMessage", null, 0, 1, SelectionDescription.class, !IS_TRANSIENT, !IS_VOLATILE,
- IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ this.initEClass(this.selectionDialogDescriptionEClass, SelectionDialogDescription.class, "SelectionDialogDescription", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ this.initEAttribute(this.getSelectionDialogDescription_SelectionCandidatesExpression(), theViewPackage.getInterpretedExpression(), "selectionCandidatesExpression", "aql:self", 0, 1,
+ SelectionDialogDescription.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ this.initEAttribute(this.getSelectionDialogDescription_SelectionMessage(), this.ecorePackage.getEString(), "selectionMessage", null, 0, 1, SelectionDialogDescription.class, !IS_TRANSIENT,
+ !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
this.initEClass(this.toolSectionEClass, ToolSection.class, "ToolSection", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
this.initEAttribute(this.getToolSection_Name(), theViewPackage.getIdentifier(), "name", "Tool Section", 1, 1, ToolSection.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE,
@@ -2862,6 +2883,8 @@ public void initializePackageContents() {
this.initEReference(this.getDropNodeTool_AcceptedNodeTypes(), this.getNodeDescription(), null, "acceptedNodeTypes", null, 0, -1, DropNodeTool.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,
!IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ this.initEClass(this.dialogDescriptionEClass, DialogDescription.class, "DialogDescription", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+
// Initialize enums and add enum literals
this.initEEnum(this.arrowStyleEEnum, ArrowStyle.class, "ArrowStyle");
this.addEEnumLiteral(this.arrowStyleEEnum, ArrowStyle.NONE);
diff --git a/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/impl/DialogDescriptionImpl.java b/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/impl/DialogDescriptionImpl.java
new file mode 100644
index 00000000000..6a3fa9d9981
--- /dev/null
+++ b/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/impl/DialogDescriptionImpl.java
@@ -0,0 +1,46 @@
+/*******************************************************************************
+ * Copyright (c) 2024 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.diagram.impl;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+import org.eclipse.sirius.components.view.diagram.DiagramPackage;
+import org.eclipse.sirius.components.view.diagram.DialogDescription;
+
+/**
+ * An implementation of the model object 'Dialog Description '.
+ *
+ * @generated
+ */
+public abstract class DialogDescriptionImpl extends MinimalEObjectImpl.Container implements DialogDescription {
+ /**
+ *
+ *
+ * @generated
+ */
+ protected DialogDescriptionImpl() {
+ super();
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return DiagramPackage.Literals.DIALOG_DESCRIPTION;
+ }
+
+} // DialogDescriptionImpl
diff --git a/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/impl/LabelDescriptionImpl.java b/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/impl/LabelDescriptionImpl.java
index 23707ee9581..f7018c20878 100644
--- a/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/impl/LabelDescriptionImpl.java
+++ b/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/impl/LabelDescriptionImpl.java
@@ -43,54 +43,59 @@ public abstract class LabelDescriptionImpl extends MinimalEObjectImpl.Container
* The default value of the '{@link #getLabelExpression() Label Expression }' attribute.
*
+ * @see #getLabelExpression()
* @generated
* @ordered
- * @see #getLabelExpression()
*/
protected static final String LABEL_EXPRESSION_EDEFAULT = "aql:self.name";
+
/**
- * The default value of the '{@link #getOverflowStrategy() Overflow Strategy }' attribute.
+ * The cached value of the '{@link #getLabelExpression() Label Expression }' attribute.
*
+ * @see #getLabelExpression()
* @generated
* @ordered
- * @see #getOverflowStrategy()
*/
- protected static final LabelOverflowStrategy OVERFLOW_STRATEGY_EDEFAULT = LabelOverflowStrategy.NONE;
+ protected String labelExpression = LABEL_EXPRESSION_EDEFAULT;
+
/**
- * The default value of the '{@link #getTextAlign() Text Align }' attribute.
+ * The default value of the '{@link #getOverflowStrategy() Overflow Strategy }' attribute.
*
* @generated
* @ordered
- * @see #getTextAlign()
+ * @see #getOverflowStrategy()
*/
- protected static final LabelTextAlign TEXT_ALIGN_EDEFAULT = LabelTextAlign.LEFT;
+ protected static final LabelOverflowStrategy OVERFLOW_STRATEGY_EDEFAULT = LabelOverflowStrategy.NONE;
+
/**
- * The cached value of the '{@link #getLabelExpression() Label Expression }' attribute.
+ * The cached value of the '{@link #getOverflowStrategy() Overflow Strategy }' attribute.
*
* @generated
* @ordered
- * @see #getLabelExpression()
+ * @see #getOverflowStrategy()
*/
- protected String labelExpression = LABEL_EXPRESSION_EDEFAULT;
+ protected LabelOverflowStrategy overflowStrategy = OVERFLOW_STRATEGY_EDEFAULT;
+
/**
- * The cached value of the '{@link #getOverflowStrategy() Overflow Strategy }' attribute.
+ * The default value of the '{@link #getTextAlign() Text Align }' attribute.
*
+ * @see #getTextAlign()
* @generated
* @ordered
- * @see #getOverflowStrategy()
*/
- protected LabelOverflowStrategy overflowStrategy = OVERFLOW_STRATEGY_EDEFAULT;
+ protected static final LabelTextAlign TEXT_ALIGN_EDEFAULT = LabelTextAlign.LEFT;
+
/**
* The cached value of the '{@link #getTextAlign() Text Align }' attribute.
*
+ * @see #getTextAlign()
* @generated
* @ordered
- * @see #getTextAlign()
*/
protected LabelTextAlign textAlign = TEXT_ALIGN_EDEFAULT;
@@ -271,14 +276,15 @@ public String toString() {
if (this.eIsProxy())
return super.toString();
- String result = super.toString() + " (labelExpression: " +
- this.labelExpression +
- ", overflowStrategy: " +
- this.overflowStrategy +
- ", textAlign: " +
- this.textAlign +
- ')';
- return result;
+ StringBuilder result = new StringBuilder(super.toString());
+ result.append(" (labelExpression: ");
+ result.append(this.labelExpression);
+ result.append(", overflowStrategy: ");
+ result.append(this.overflowStrategy);
+ result.append(", textAlign: ");
+ result.append(this.textAlign);
+ result.append(')');
+ return result.toString();
}
} // LabelDescriptionImpl
diff --git a/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/impl/NodeToolImpl.java b/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/impl/NodeToolImpl.java
index 477a02846d2..e07bac654cb 100644
--- a/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/impl/NodeToolImpl.java
+++ b/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/impl/NodeToolImpl.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2023 Obeo.
+ * Copyright (c) 2023, 2024 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
@@ -18,8 +18,8 @@
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.sirius.components.view.diagram.DiagramPackage;
+import org.eclipse.sirius.components.view.diagram.DialogDescription;
import org.eclipse.sirius.components.view.diagram.NodeTool;
-import org.eclipse.sirius.components.view.diagram.SelectionDescription;
/**
* An implementation of the model object 'Node Tool '.
@@ -27,7 +27,7 @@
* The following features are implemented:
*
*
- * {@link org.eclipse.sirius.components.view.diagram.impl.NodeToolImpl#getSelectionDescription Selection
+ * {@link org.eclipse.sirius.components.view.diagram.impl.NodeToolImpl#getDialogDescription Dialog
* Description }
* {@link org.eclipse.sirius.components.view.diagram.impl.NodeToolImpl#getIconURLsExpression Icon UR Ls
* Expression }
@@ -37,14 +37,14 @@
*/
public class NodeToolImpl extends ToolImpl implements NodeTool {
/**
- * The cached value of the '{@link #getSelectionDescription() Selection Description }' containment
- * reference.
+ * The cached value of the '{@link #getDialogDescription() Dialog Description }' containment reference.
*
- * @see #getSelectionDescription()
+ * @see #getDialogDescription()
* @generated
* @ordered
*/
- protected SelectionDescription selectionDescription;
+ protected DialogDescription dialogDescription;
/**
* The default value of the '{@link #getIconURLsExpression() Icon UR Ls Expression }' attribute. An implementation of the model object 'Selection Description '. An implementation of the model object 'Selection Dialog Description '.
*
* The following features are implemented:
*
*
- * {@link org.eclipse.sirius.components.view.diagram.impl.SelectionDescriptionImpl#getSelectionCandidatesExpression
+ * {@link org.eclipse.sirius.components.view.diagram.impl.SelectionDialogDescriptionImpl#getSelectionCandidatesExpression
* Selection Candidates Expression }
- * {@link org.eclipse.sirius.components.view.diagram.impl.SelectionDescriptionImpl#getSelectionMessage Selection
- * Message }
+ * {@link org.eclipse.sirius.components.view.diagram.impl.SelectionDialogDescriptionImpl#getSelectionMessage
+ * Selection Message }
*
*
* @generated
*/
-public class SelectionDescriptionImpl extends MinimalEObjectImpl.Container implements SelectionDescription {
+public class SelectionDialogDescriptionImpl extends DialogDescriptionImpl implements SelectionDialogDescription {
/**
* The default value of the '{@link #getSelectionCandidatesExpression() Selection Candidates Expression }'
* attribute.
@@ -80,7 +79,7 @@ public class SelectionDescriptionImpl extends MinimalEObjectImpl.Container imple
*
* @generated
*/
- protected SelectionDescriptionImpl() {
+ protected SelectionDialogDescriptionImpl() {
super();
}
@@ -91,7 +90,7 @@ protected SelectionDescriptionImpl() {
*/
@Override
protected EClass eStaticClass() {
- return DiagramPackage.Literals.SELECTION_DESCRIPTION;
+ return DiagramPackage.Literals.SELECTION_DIALOG_DESCRIPTION;
}
/**
@@ -114,7 +113,7 @@ public void setSelectionCandidatesExpression(String newSelectionCandidatesExpres
String oldSelectionCandidatesExpression = this.selectionCandidatesExpression;
this.selectionCandidatesExpression = newSelectionCandidatesExpression;
if (this.eNotificationRequired())
- this.eNotify(new ENotificationImpl(this, Notification.SET, DiagramPackage.SELECTION_DESCRIPTION__SELECTION_CANDIDATES_EXPRESSION, oldSelectionCandidatesExpression,
+ this.eNotify(new ENotificationImpl(this, Notification.SET, DiagramPackage.SELECTION_DIALOG_DESCRIPTION__SELECTION_CANDIDATES_EXPRESSION, oldSelectionCandidatesExpression,
this.selectionCandidatesExpression));
}
@@ -138,7 +137,7 @@ public void setSelectionMessage(String newSelectionMessage) {
String oldSelectionMessage = this.selectionMessage;
this.selectionMessage = newSelectionMessage;
if (this.eNotificationRequired())
- this.eNotify(new ENotificationImpl(this, Notification.SET, DiagramPackage.SELECTION_DESCRIPTION__SELECTION_MESSAGE, oldSelectionMessage, this.selectionMessage));
+ this.eNotify(new ENotificationImpl(this, Notification.SET, DiagramPackage.SELECTION_DIALOG_DESCRIPTION__SELECTION_MESSAGE, oldSelectionMessage, this.selectionMessage));
}
/**
@@ -149,9 +148,9 @@ public void setSelectionMessage(String newSelectionMessage) {
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case DiagramPackage.SELECTION_DESCRIPTION__SELECTION_CANDIDATES_EXPRESSION:
+ case DiagramPackage.SELECTION_DIALOG_DESCRIPTION__SELECTION_CANDIDATES_EXPRESSION:
return this.getSelectionCandidatesExpression();
- case DiagramPackage.SELECTION_DESCRIPTION__SELECTION_MESSAGE:
+ case DiagramPackage.SELECTION_DIALOG_DESCRIPTION__SELECTION_MESSAGE:
return this.getSelectionMessage();
}
return super.eGet(featureID, resolve, coreType);
@@ -165,10 +164,10 @@ public Object eGet(int featureID, boolean resolve, boolean coreType) {
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case DiagramPackage.SELECTION_DESCRIPTION__SELECTION_CANDIDATES_EXPRESSION:
+ case DiagramPackage.SELECTION_DIALOG_DESCRIPTION__SELECTION_CANDIDATES_EXPRESSION:
this.setSelectionCandidatesExpression((String) newValue);
return;
- case DiagramPackage.SELECTION_DESCRIPTION__SELECTION_MESSAGE:
+ case DiagramPackage.SELECTION_DIALOG_DESCRIPTION__SELECTION_MESSAGE:
this.setSelectionMessage((String) newValue);
return;
}
@@ -183,10 +182,10 @@ public void eSet(int featureID, Object newValue) {
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case DiagramPackage.SELECTION_DESCRIPTION__SELECTION_CANDIDATES_EXPRESSION:
+ case DiagramPackage.SELECTION_DIALOG_DESCRIPTION__SELECTION_CANDIDATES_EXPRESSION:
this.setSelectionCandidatesExpression(SELECTION_CANDIDATES_EXPRESSION_EDEFAULT);
return;
- case DiagramPackage.SELECTION_DESCRIPTION__SELECTION_MESSAGE:
+ case DiagramPackage.SELECTION_DIALOG_DESCRIPTION__SELECTION_MESSAGE:
this.setSelectionMessage(SELECTION_MESSAGE_EDEFAULT);
return;
}
@@ -201,10 +200,10 @@ public void eUnset(int featureID) {
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case DiagramPackage.SELECTION_DESCRIPTION__SELECTION_CANDIDATES_EXPRESSION:
+ case DiagramPackage.SELECTION_DIALOG_DESCRIPTION__SELECTION_CANDIDATES_EXPRESSION:
return SELECTION_CANDIDATES_EXPRESSION_EDEFAULT == null ? this.selectionCandidatesExpression != null
- : !SELECTION_CANDIDATES_EXPRESSION_EDEFAULT.equals(this.selectionCandidatesExpression);
- case DiagramPackage.SELECTION_DESCRIPTION__SELECTION_MESSAGE:
+ : !SELECTION_CANDIDATES_EXPRESSION_EDEFAULT.equals(this.selectionCandidatesExpression);
+ case DiagramPackage.SELECTION_DIALOG_DESCRIPTION__SELECTION_MESSAGE:
return SELECTION_MESSAGE_EDEFAULT == null ? this.selectionMessage != null : !SELECTION_MESSAGE_EDEFAULT.equals(this.selectionMessage);
}
return super.eIsSet(featureID);
@@ -229,4 +228,4 @@ public String toString() {
return result.toString();
}
-} // SelectionDescriptionImpl
+} // SelectionDialogDescriptionImpl
diff --git a/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/util/DiagramAdapterFactory.java b/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/util/DiagramAdapterFactory.java
index 848ac9360e8..8d6ead83e9c 100644
--- a/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/util/DiagramAdapterFactory.java
+++ b/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/util/DiagramAdapterFactory.java
@@ -33,6 +33,7 @@
import org.eclipse.sirius.components.view.diagram.DiagramPackage;
import org.eclipse.sirius.components.view.diagram.DiagramPalette;
import org.eclipse.sirius.components.view.diagram.DiagramToolSection;
+import org.eclipse.sirius.components.view.diagram.DialogDescription;
import org.eclipse.sirius.components.view.diagram.DropNodeTool;
import org.eclipse.sirius.components.view.diagram.DropTool;
import org.eclipse.sirius.components.view.diagram.EdgeDescription;
@@ -59,7 +60,7 @@
import org.eclipse.sirius.components.view.diagram.OutsideLabelDescription;
import org.eclipse.sirius.components.view.diagram.OutsideLabelStyle;
import org.eclipse.sirius.components.view.diagram.RectangularNodeStyleDescription;
-import org.eclipse.sirius.components.view.diagram.SelectionDescription;
+import org.eclipse.sirius.components.view.diagram.SelectionDialogDescription;
import org.eclipse.sirius.components.view.diagram.SourceEdgeEndReconnectionTool;
import org.eclipse.sirius.components.view.diagram.Style;
import org.eclipse.sirius.components.view.diagram.TargetEdgeEndReconnectionTool;
@@ -279,8 +280,8 @@ public Adapter caseDeleteView(DeleteView object) {
}
@Override
- public Adapter caseSelectionDescription(SelectionDescription object) {
- return DiagramAdapterFactory.this.createSelectionDescriptionAdapter();
+ public Adapter caseSelectionDialogDescription(SelectionDialogDescription object) {
+ return DiagramAdapterFactory.this.createSelectionDialogDescriptionAdapter();
}
@Override
@@ -308,6 +309,11 @@ public Adapter caseDropNodeTool(DropNodeTool object) {
return DiagramAdapterFactory.this.createDropNodeToolAdapter();
}
+ @Override
+ public Adapter caseDialogDescription(DialogDescription object) {
+ return DiagramAdapterFactory.this.createDialogDescriptionAdapter();
+ }
+
@Override
public Adapter caseRepresentationDescription(RepresentationDescription object) {
return DiagramAdapterFactory.this.createRepresentationDescriptionAdapter();
@@ -906,15 +912,15 @@ public Adapter createDeleteViewAdapter() {
/**
* Creates a new adapter for an object of class
- * '{@link org.eclipse.sirius.components.view.diagram.SelectionDescription Selection Description }'. 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.
+ * '{@link org.eclipse.sirius.components.view.diagram.SelectionDialogDescription Selection Dialog
+ * Description }'. 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.diagram.SelectionDialogDescription
* @generated
- * @see org.eclipse.sirius.components.view.diagram.SelectionDescription
*/
- public Adapter createSelectionDescriptionAdapter() {
+ public Adapter createSelectionDialogDescriptionAdapter() {
return null;
}
@@ -988,6 +994,20 @@ public Adapter createDropNodeToolAdapter() {
return null;
}
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.sirius.components.view.diagram.DialogDescription
+ * Dialog Description }'. 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.diagram.DialogDescription
+ * @generated
+ */
+ public Adapter createDialogDescriptionAdapter() {
+ 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-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/util/DiagramSwitch.java b/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/util/DiagramSwitch.java
index 3d42764c908..beaa7c2c26e 100644
--- a/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/util/DiagramSwitch.java
+++ b/packages/view/backend/sirius-components-view-diagram/src/main/java/org/eclipse/sirius/components/view/diagram/util/DiagramSwitch.java
@@ -32,6 +32,7 @@
import org.eclipse.sirius.components.view.diagram.DiagramPackage;
import org.eclipse.sirius.components.view.diagram.DiagramPalette;
import org.eclipse.sirius.components.view.diagram.DiagramToolSection;
+import org.eclipse.sirius.components.view.diagram.DialogDescription;
import org.eclipse.sirius.components.view.diagram.DropNodeTool;
import org.eclipse.sirius.components.view.diagram.DropTool;
import org.eclipse.sirius.components.view.diagram.EdgeDescription;
@@ -58,7 +59,7 @@
import org.eclipse.sirius.components.view.diagram.OutsideLabelDescription;
import org.eclipse.sirius.components.view.diagram.OutsideLabelStyle;
import org.eclipse.sirius.components.view.diagram.RectangularNodeStyleDescription;
-import org.eclipse.sirius.components.view.diagram.SelectionDescription;
+import org.eclipse.sirius.components.view.diagram.SelectionDialogDescription;
import org.eclipse.sirius.components.view.diagram.SourceEdgeEndReconnectionTool;
import org.eclipse.sirius.components.view.diagram.Style;
import org.eclipse.sirius.components.view.diagram.TargetEdgeEndReconnectionTool;
@@ -71,8 +72,8 @@
* starting with the actual class of the object and proceeding up the inheritance hierarchy until a non-null result is
* returned, which is the result of the switch.
*
- * @generated
* @see org.eclipse.sirius.components.view.diagram.DiagramPackage
+ * @generated
*/
public class DiagramSwitch extends Switch {
@@ -98,7 +99,7 @@ public DiagramSwitch() {
* Checks whether this is a switch for the given package.
*
* @param ePackage
- * the package in question.
+ * the package in question.
* @return whether this is a switch for the given package.
* @generated
*/
@@ -473,9 +474,11 @@ protected T doSwitch(int classifierID, EObject theEObject) {
result = this.defaultCase(theEObject);
return result;
}
- case DiagramPackage.SELECTION_DESCRIPTION: {
- SelectionDescription selectionDescription = (SelectionDescription) theEObject;
- T result = this.caseSelectionDescription(selectionDescription);
+ case DiagramPackage.SELECTION_DIALOG_DESCRIPTION: {
+ SelectionDialogDescription selectionDialogDescription = (SelectionDialogDescription) theEObject;
+ T result = this.caseSelectionDialogDescription(selectionDialogDescription);
+ if (result == null)
+ result = this.caseDialogDescription(selectionDialogDescription);
if (result == null)
result = this.defaultCase(theEObject);
return result;
@@ -523,6 +526,13 @@ protected T doSwitch(int classifierID, EObject theEObject) {
result = this.defaultCase(theEObject);
return result;
}
+ case DiagramPackage.DIALOG_DESCRIPTION: {
+ DialogDescription dialogDescription = (DialogDescription) theEObject;
+ T result = this.caseDialogDescription(dialogDescription);
+ if (result == null)
+ result = this.defaultCase(theEObject);
+ return result;
+ }
default:
return this.defaultCase(theEObject);
}
@@ -533,10 +543,10 @@ protected T doSwitch(int classifierID, EObject theEObject) {
* This implementation returns null; returning a non-null result will terminate the switch.
*
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of 'Description '.
- * @generated
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
*/
public T caseDiagramDescription(DiagramDescription object) {
return null;
@@ -548,7 +558,7 @@ public T caseDiagramDescription(DiagramDescription object) {
* end-user-doc -->
*
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of 'Element Description '.
* @generated
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
@@ -563,7 +573,7 @@ public T caseDiagramElementDescription(DiagramElementDescription object) {
* -->
*
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of 'Node Description '.
* @generated
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
@@ -578,7 +588,7 @@ public T caseNodeDescription(NodeDescription object) {
* -->
*
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of 'Edge Description '.
* @generated
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
@@ -593,7 +603,7 @@ public T caseEdgeDescription(EdgeDescription object) {
* end-user-doc -->
*
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of 'Layout Strategy Description '.
* @generated
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
@@ -608,7 +618,7 @@ public T caseLayoutStrategyDescription(LayoutStrategyDescription object) {
* end-user-doc -->
*
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of 'List Layout Strategy Description '.
* @generated
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
@@ -623,10 +633,10 @@ public T caseListLayoutStrategyDescription(ListLayoutStrategyDescription object)
*
*
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of 'Free Form Layout Strategy Description '.
- * @generated
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
*/
public T caseFreeFormLayoutStrategyDescription(FreeFormLayoutStrategyDescription object) {
return null;
@@ -638,7 +648,7 @@ public T caseFreeFormLayoutStrategyDescription(FreeFormLayoutStrategyDescription
* -->
*
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of 'Label Description '.
* @generated
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
@@ -653,7 +663,7 @@ public T caseLabelDescription(LabelDescription object) {
* end-user-doc -->
*
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of 'Inside Label Description '.
* @generated
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
@@ -668,7 +678,7 @@ public T caseInsideLabelDescription(InsideLabelDescription object) {
* end-user-doc -->
*
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of 'Outside Label Description '.
* @generated
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
@@ -682,10 +692,10 @@ public T caseOutsideLabelDescription(OutsideLabelDescription object) {
* implementation returns null; returning a non-null result will terminate the switch.
*
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of 'Style '.
- * @generated
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
*/
public T caseStyle(Style object) {
return null;
@@ -696,10 +706,10 @@ public T caseStyle(Style object) {
* This implementation returns null; returning a non-null result will terminate the switch.
*
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of 'Border Style '.
- * @generated
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
*/
public T caseBorderStyle(BorderStyle object) {
return null;
@@ -711,7 +721,7 @@ public T caseBorderStyle(BorderStyle object) {
* end-user-doc -->
*
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of 'Inside Label Style '.
* @generated
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
@@ -726,7 +736,7 @@ public T caseInsideLabelStyle(InsideLabelStyle object) {
* end-user-doc -->
*
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of 'Outside Label Style '.
* @generated
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
@@ -741,7 +751,7 @@ public T caseOutsideLabelStyle(OutsideLabelStyle object) {
* -->
*
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of 'Node Label Style '.
* @generated
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
@@ -756,7 +766,7 @@ public T caseNodeLabelStyle(NodeLabelStyle object) {
* end-user-doc -->
*
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of 'Node Style Description '.
* @generated
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
@@ -771,7 +781,7 @@ public T caseNodeStyleDescription(NodeStyleDescription object) {
* end-user-doc -->
*
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of 'Conditional Node Style '.
* @generated
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
@@ -786,7 +796,7 @@ public T caseConditionalNodeStyle(ConditionalNodeStyle object) {
* end-user-doc -->
*
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of 'Conditional Inside Label Style '.
* @generated
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
@@ -801,7 +811,7 @@ public T caseConditionalInsideLabelStyle(ConditionalInsideLabelStyle object) {
* end-user-doc -->
*
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of 'Conditional Outside Label Style '.
* @generated
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
@@ -816,10 +826,10 @@ public T caseConditionalOutsideLabelStyle(ConditionalOutsideLabelStyle object) {
*
*
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of 'Rectangular Node Style Description '.
- * @generated
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
*/
public T caseRectangularNodeStyleDescription(RectangularNodeStyleDescription object) {
return null;
@@ -831,7 +841,7 @@ public T caseRectangularNodeStyleDescription(RectangularNodeStyleDescription obj
* end-user-doc -->
*
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of 'Image Node Style Description '.
* @generated
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
@@ -846,10 +856,10 @@ public T caseImageNodeStyleDescription(ImageNodeStyleDescription object) {
*
*
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of 'Icon Label Node Style Description '.
- * @generated
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
*/
public T caseIconLabelNodeStyleDescription(IconLabelNodeStyleDescription object) {
return null;
@@ -860,10 +870,10 @@ public T caseIconLabelNodeStyleDescription(IconLabelNodeStyleDescription object)
* This implementation returns null; returning a non-null result will terminate the switch.
*
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of 'Edge Style '.
- * @generated
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
*/
public T caseEdgeStyle(EdgeStyle object) {
return null;
@@ -875,7 +885,7 @@ public T caseEdgeStyle(EdgeStyle object) {
* end-user-doc -->
*
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of 'Conditional Edge Style '.
* @generated
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
@@ -889,10 +899,10 @@ public T caseConditionalEdgeStyle(ConditionalEdgeStyle object) {
* implementation returns null; returning a non-null result will terminate the switch.
*
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of 'Palette '.
- * @generated
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
*/
public T caseDiagramPalette(DiagramPalette object) {
return null;
@@ -903,10 +913,10 @@ public T caseDiagramPalette(DiagramPalette object) {
* This implementation returns null; returning a non-null result will terminate the switch.
*
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of 'Node Palette '.
- * @generated
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
*/
public T caseNodePalette(NodePalette object) {
return null;
@@ -917,10 +927,10 @@ public T caseNodePalette(NodePalette object) {
* This implementation returns null; returning a non-null result will terminate the switch.
*
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of 'Edge Palette '.
- * @generated
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
*/
public T caseEdgePalette(EdgePalette object) {
return null;
@@ -931,10 +941,10 @@ public T caseEdgePalette(EdgePalette object) {
* implementation returns null; returning a non-null result will terminate the switch.
*
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of 'Tool '.
- * @generated
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
*/
public T caseTool(Tool object) {
return null;
@@ -945,10 +955,10 @@ public T caseTool(Tool object) {
* This implementation returns null; returning a non-null result will terminate the switch.
*
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of 'Delete Tool '.
- * @generated
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
*/
public T caseDeleteTool(DeleteTool object) {
return null;
@@ -959,10 +969,10 @@ public T caseDeleteTool(DeleteTool object) {
* This implementation returns null; returning a non-null result will terminate the switch.
*
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of 'Drop Tool '.
- * @generated
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
*/
public T caseDropTool(DropTool object) {
return null;
@@ -973,10 +983,10 @@ public T caseDropTool(DropTool object) {
* This implementation returns null; returning a non-null result will terminate the switch.
*
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of 'Edge Tool '.
- * @generated
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
*/
public T caseEdgeTool(EdgeTool object) {
return null;
@@ -988,7 +998,7 @@ public T caseEdgeTool(EdgeTool object) {
* end-user-doc -->
*
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of 'Edge Reconnection Tool '.
* @generated
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
@@ -1003,7 +1013,7 @@ public T caseEdgeReconnectionTool(EdgeReconnectionTool object) {
* -->
*
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of 'Label Edit Tool '.
* @generated
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
@@ -1017,10 +1027,10 @@ public T caseLabelEditTool(LabelEditTool object) {
* This implementation returns null; returning a non-null result will terminate the switch.
*
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of 'Node Tool '.
- * @generated
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
*/
public T caseNodeTool(NodeTool object) {
return null;
@@ -1032,10 +1042,10 @@ public T caseNodeTool(NodeTool object) {
*
*
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of 'Source Edge End Reconnection Tool '.
- * @generated
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
*/
public T caseSourceEdgeEndReconnectionTool(SourceEdgeEndReconnectionTool object) {
return null;
@@ -1047,10 +1057,10 @@ public T caseSourceEdgeEndReconnectionTool(SourceEdgeEndReconnectionTool object)
*
*
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of 'Target Edge End Reconnection Tool '.
- * @generated
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
*/
public T caseTargetEdgeEndReconnectionTool(TargetEdgeEndReconnectionTool object) {
return null;
@@ -1061,10 +1071,10 @@ public T caseTargetEdgeEndReconnectionTool(TargetEdgeEndReconnectionTool object)
* This implementation returns null; returning a non-null result will terminate the switch.
*
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of 'Create View '.
- * @generated
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
*/
public T caseCreateView(CreateView object) {
return null;
@@ -1075,27 +1085,27 @@ public T caseCreateView(CreateView object) {
* This implementation returns null; returning a non-null result will terminate the switch.
*
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of 'Delete View '.
- * @generated
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
*/
public T caseDeleteView(DeleteView object) {
return null;
}
/**
- * Returns the result of interpreting the object as an instance of 'Selection Description '. 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 'Selection Description '.
- * @generated
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Selection Dialog Description '.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
*/
- public T caseSelectionDescription(SelectionDescription object) {
+ public T caseSelectionDialogDescription(SelectionDialogDescription object) {
return null;
}
@@ -1104,10 +1114,10 @@ public T caseSelectionDescription(SelectionDescription object) {
* This implementation returns null; returning a non-null result will terminate the switch.
*
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of 'Tool Section '.
- * @generated
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
*/
public T caseToolSection(ToolSection object) {
return null;
@@ -1118,10 +1128,10 @@ public T caseToolSection(ToolSection object) {
* This implementation returns null; returning a non-null result will terminate the switch.
*
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of 'Tool Section '.
- * @generated
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
*/
public T caseDiagramToolSection(DiagramToolSection object) {
return null;
@@ -1133,7 +1143,7 @@ public T caseDiagramToolSection(DiagramToolSection object) {
* -->
*
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of 'Node Tool Section '.
* @generated
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
@@ -1148,7 +1158,7 @@ public T caseNodeToolSection(NodeToolSection object) {
* -->
*
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of 'Edge Tool Section '.
* @generated
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
@@ -1163,7 +1173,7 @@ public T caseEdgeToolSection(EdgeToolSection object) {
* -->
*
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of 'Drop Node Tool '.
* @generated
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
@@ -1172,13 +1182,28 @@ public T caseDropNodeTool(DropNodeTool object) {
return null;
}
+ /**
+ * Returns the result of interpreting the object as an instance of 'Dialog Description '. 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 'Dialog Description '.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseDialogDescription(DialogDescription 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.
*
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of 'Representation Description '.
* @generated
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
@@ -1192,10 +1217,10 @@ public T caseRepresentationDescription(RepresentationDescription object) {
* This implementation returns null; returning a non-null result will terminate the switch.
*
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of 'Label Style '.
- * @generated
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
*/
public T caseLabelStyle(LabelStyle object) {
return null;
@@ -1206,10 +1231,10 @@ public T caseLabelStyle(LabelStyle object) {
* This implementation returns null; returning a non-null result will terminate the switch.
*
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of 'Conditional '.
- * @generated
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
*/
public T caseConditional(Conditional object) {
return null;
@@ -1220,10 +1245,10 @@ public T caseConditional(Conditional object) {
* This implementation returns null; returning a non-null result will terminate the switch.
*
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of 'Operation '.
- * @generated
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
*/
public T caseOperation(Operation object) {
return null;
@@ -1235,10 +1260,10 @@ public T caseOperation(Operation object) {
* anyway.
*
* @param object
- * the target of the switch.
+ * the target of the switch.
* @return the result of interpreting the object as an instance of 'EObject '.
- * @generated
* @see #doSwitch(org.eclipse.emf.ecore.EObject)
+ * @generated
*/
@Override
public T defaultCase(EObject object) {
diff --git a/packages/view/backend/sirius-components-view-diagram/src/main/resources/model/diagram.ecore b/packages/view/backend/sirius-components-view-diagram/src/main/resources/model/diagram.ecore
index 42a2f7f6474..77c741d887d 100644
--- a/packages/view/backend/sirius-components-view-diagram/src/main/resources/model/diagram.ecore
+++ b/packages/view/backend/sirius-components-view-diagram/src/main/resources/model/diagram.ecore
@@ -323,7 +323,7 @@
eType="ecore:EDataType ../../../../../sirius-components-view/src/main/resources/model/view.ecore#//InterpretedExpression"/>
-
@@ -346,7 +346,7 @@
eType="ecore:EDataType ../../../../../sirius-components-view/src/main/resources/model/view.ecore#//InterpretedExpression"
defaultValueLiteral="aql:selectedNode"/>
-
+
@@ -374,4 +374,5 @@
+
diff --git a/packages/view/backend/sirius-components-view-diagram/src/main/resources/model/diagram.genmodel b/packages/view/backend/sirius-components-view-diagram/src/main/resources/model/diagram.genmodel
index df5246756c3..85abf42a66d 100644
--- a/packages/view/backend/sirius-components-view-diagram/src/main/resources/model/diagram.genmodel
+++ b/packages/view/backend/sirius-components-view-diagram/src/main/resources/model/diagram.genmodel
@@ -240,7 +240,7 @@
-
+
@@ -255,9 +255,9 @@
-
-
-
+
+
+
@@ -275,5 +275,6 @@
+
diff --git a/packages/view/backend/sirius-components-view-emf/src/main/java/org/eclipse/sirius/components/view/emf/ViewConverter.java b/packages/view/backend/sirius-components-view-emf/src/main/java/org/eclipse/sirius/components/view/emf/ViewConverter.java
index 3ff8d716533..b9dc5f10d22 100644
--- a/packages/view/backend/sirius-components-view-emf/src/main/java/org/eclipse/sirius/components/view/emf/ViewConverter.java
+++ b/packages/view/backend/sirius-components-view-emf/src/main/java/org/eclipse/sirius/components/view/emf/ViewConverter.java
@@ -103,13 +103,13 @@ public List convert(List views, List
private List convertSelectionsDialogs(View view, AQLInterpreter interpreter) {
return view.getDescriptions().stream().filter(DiagramDescription.class::isInstance)
.flatMap(this::getAllContent)
- .filter(org.eclipse.sirius.components.view.diagram.SelectionDescription.class::isInstance)
- .map(org.eclipse.sirius.components.view.diagram.SelectionDescription.class::cast)
+ .filter(org.eclipse.sirius.components.view.diagram.SelectionDialogDescription.class::isInstance)
+ .map(org.eclipse.sirius.components.view.diagram.SelectionDialogDescription.class::cast)
.map(selectionDescription -> this.convertSelectionDialog(selectionDescription, interpreter))
.toList();
}
- private IRepresentationDescription convertSelectionDialog(org.eclipse.sirius.components.view.diagram.SelectionDescription selectionDescription, AQLInterpreter interpreter) {
+ private IRepresentationDescription convertSelectionDialog(org.eclipse.sirius.components.view.diagram.SelectionDialogDescription selectionDescription, AQLInterpreter interpreter) {
String selectionDescriptionId = this.objectService.getId(selectionDescription);
return SelectionDescription.newSelectionDescription(selectionDescriptionId)
diff --git a/packages/view/backend/sirius-components-view-emf/src/main/java/org/eclipse/sirius/components/view/emf/diagram/ToolConverter.java b/packages/view/backend/sirius-components-view-emf/src/main/java/org/eclipse/sirius/components/view/emf/diagram/ToolConverter.java
index 063f1d8f98d..acd0afd5e13 100644
--- a/packages/view/backend/sirius-components-view-emf/src/main/java/org/eclipse/sirius/components/view/emf/diagram/ToolConverter.java
+++ b/packages/view/backend/sirius-components-view-emf/src/main/java/org/eclipse/sirius/components/view/emf/diagram/ToolConverter.java
@@ -181,7 +181,7 @@ private ITool createNodeTool(NodeTool nodeTool, ViewDiagramDescriptionConverterC
return this.execute(converterContext, convertedNodes, nodeTool, child);
})
.targetDescriptions(List.of())
- .selectionDescriptionId(this.objectService.getId(nodeTool.getSelectionDescription()))
+ .dialogDescriptionId(this.objectService.getId(nodeTool.getDialogDescription()))
.appliesToDiagramRoot(appliesToDiagramRoot)
.build();
}
diff --git a/packages/view/backend/sirius-components-view-emf/src/main/java/org/eclipse/sirius/components/view/emf/diagram/ViewPaletteProvider.java b/packages/view/backend/sirius-components-view-emf/src/main/java/org/eclipse/sirius/components/view/emf/diagram/ViewPaletteProvider.java
index 7d367ea7fed..2580276234e 100644
--- a/packages/view/backend/sirius-components-view-emf/src/main/java/org/eclipse/sirius/components/view/emf/diagram/ViewPaletteProvider.java
+++ b/packages/view/backend/sirius-components-view-emf/src/main/java/org/eclipse/sirius/components/view/emf/diagram/ViewPaletteProvider.java
@@ -175,15 +175,15 @@ private ITool createNodeTool(NodeTool viewNodeTool, VariableManager variableMana
private ITool createNodeTool(NodeTool viewNodeTool, boolean appliesToDiagramRoot, VariableManager variableManager, AQLInterpreter interpreter) {
String toolId = this.idProvider.apply(viewNodeTool).toString();
List iconURLProvider = this.nodeToolIconURLProvider(viewNodeTool, interpreter, variableManager);
- String selectionDescriptionId = "";
- if (viewNodeTool.getSelectionDescription() != null) {
- selectionDescriptionId = this.objectService.getId(viewNodeTool.getSelectionDescription());
+ String dialogDescriptionId = "";
+ if (viewNodeTool.getDialogDescription() != null) {
+ dialogDescriptionId = this.objectService.getId(viewNodeTool.getDialogDescription());
}
return SingleClickOnDiagramElementTool.newSingleClickOnDiagramElementTool(toolId)
.label(viewNodeTool.getName())
.iconURL(iconURLProvider)
- .selectionDescriptionId(selectionDescriptionId)
+ .dialogDescriptionId(dialogDescriptionId)
.targetDescriptions(List.of())
.appliesToDiagramRoot(appliesToDiagramRoot)
.build();