Skip to content
Snippets Groups Projects
Commit 1c50c30d authored by tjc's avatar tjc
Browse files

implement new constructor that takes an existing DatabaseDocument

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@6132 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent 3aa725b6
Branches
Tags
No related merge requests found
......@@ -251,6 +251,22 @@ public class DatabaseDocument extends Document
}
}
/**
* Use another DatabaseDocument to make a new document.
* @param originalDocument
* @param srcFeatureId
* @param schema
* @param gene_builder
* @return
*/
public DatabaseDocument (DatabaseDocument originalDocument,
String srcFeatureId, String schema, boolean gene_builder)
{
this((String)originalDocument.getLocation(),
originalDocument.getPfield(),
srcFeatureId, schema, gene_builder);
}
/**
* Reset the schema.
* @param location
......@@ -2071,4 +2087,10 @@ public class DatabaseDocument extends Document
{
return srcFeatureId;
}
private JPasswordField getPfield()
{
return pfield;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment