Commit 2cd5dea5 authored by Robert Smith's avatar Robert Smith
Browse files

Fixed persistence bugs

Fixed a bug where ExecutableEntries were calling the supertype clone()
method, causing Forms using them to have Entries of the wrong type. 

Fixed a bug where the VibeModel's IOservice, which does not need to be
persisted, was missing an XMLTransient annotation.
Signed-off-by: Robert Smith's avatarRobert Smith <>
parent e8806ea6
......@@ -147,6 +147,46 @@ public class ExecutableEntry extends DiscreteEntry {
* (non-Javadoc)
* @see
public Object clone() {
ExecutableEntry entry = new ExecutableEntry();
return entry;
* Copy the source entity's data into this object.
* @param entity The Entry of which this object will be come a copy.
public void copy(ExecutableEntry entity) {
// Return if null
if (entity == null) {
//Copy all data members
executableUri = entity.executableUri;
//Clear the current map
//Copy in each value from the other map.
for(String value : entity.allowedValueToURI.keySet()){
allowedValueToURI.put(value, allowedValueToURI.get(value));
* (non-Javadoc)
......@@ -22,6 +22,7 @@ import;
import java.util.ArrayList;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IProject;
......@@ -58,6 +59,7 @@ public class VibeModel extends Model {
private ArrayList<String> actionItems;
private IIOService ioService;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment