public class

AddAssociationCmd

extends Object
implements Command
java.lang.Object
   ↳ vars.annotation.ui.commandqueue.impl.AddAssociationCmd

Class Overview

Command to add a given association to a collection of observations

Summary

Fields
protected final ILink associationTemplate
protected final Collection<Observation> originalObservations
Public Constructors
AddAssociationCmd(ILink associationTemplate, Collection<Observation> originalObservations)
Public Methods
void apply(ToolBelt toolBelt)
Apply/execute the command
String getDescription()
void unapply(ToolBelt toolBelt)
The inverse of apply, essentially an undo
Protected Methods
void doCommand(ToolBelt toolBelt, boolean isApply)
[Expand]
Inherited Methods
From class java.lang.Object
From interface vars.annotation.ui.commandqueue.Command

Fields

protected final ILink associationTemplate

protected final Collection<Observation> originalObservations

Public Constructors

public AddAssociationCmd (ILink associationTemplate, Collection<Observation> originalObservations)

Public Methods

public void apply (ToolBelt toolBelt)

Apply/execute the command

public String getDescription ()

public void unapply (ToolBelt toolBelt)

The inverse of apply, essentially an undo

Protected Methods

protected void doCommand (ToolBelt toolBelt, boolean isApply)