forked from eclipse-sirius/sirius-web
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[2032] Add the selection variable to form
Bug: eclipse-sirius#2032 Signed-off-by: Florian Rouëné <florian.rouene@obeosoft.com>
- Loading branch information
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
...ava/org/eclipse/sirius/components/collaborative/forms/variables/FormVariableProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2023 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.forms.variables; | ||
|
||
import java.util.List; | ||
|
||
import org.eclipse.sirius.components.core.api.variables.IVariableProvider; | ||
import org.eclipse.sirius.components.core.api.variables.Variable; | ||
import org.springframework.stereotype.Service; | ||
|
||
/** | ||
* Used to provide the variables available for all form operations. | ||
* | ||
* @author frouene | ||
*/ | ||
@Service | ||
public class FormVariableProvider implements IVariableProvider { | ||
|
||
public static final Variable SELECTION = new Variable("selection", List.of(Object.class), "The selection of the workbench"); | ||
|
||
@Override | ||
public List<Variable> getVariables(String operation) { | ||
return List.of(); | ||
} | ||
} |