java.lang.Object
org.palladiosimulator.editors.sirius.custom.externaljavaactions.EditProbability
All Implemented Interfaces:
org.eclipse.sirius.tools.api.ui.IExternalJavaAction
Direct Known Subclasses:
EditBranchProbability, EditInternalFailureOccurrenceDescriptionProbability, EditLinkingResourceFailureProbability

public abstract class EditProbability extends Object implements org.eclipse.sirius.tools.api.ui.IExternalJavaAction
Abstract class used to edit a probability using the Direct Edit Label. The input value must be passed as an argument called "var"
  • Constructor Details

    • EditProbability

      public EditProbability()
  • Method Details

    • execute

      public void execute(Collection<? extends EObject> selections, Map<String,Object> parameters)
      Specified by:
      execute in interface org.eclipse.sirius.tools.api.ui.IExternalJavaAction
    • setProbability

      protected abstract void setProbability(EObject eObject, double probability)
    • canExecute

      public boolean canExecute(Collection<? extends EObject> selections)
      Specified by:
      canExecute in interface org.eclipse.sirius.tools.api.ui.IExternalJavaAction