public class RelationUploadOrderHook extends java.lang.Object implements UploadHook
Constructor and Description |
---|
RelationUploadOrderHook() |
Modifier and Type | Method and Description |
---|---|
protected javax.swing.JPanel |
buildWarningPanel(java.util.List<Relation> dep)
builds the panel which warns users about a cyclic dependency
|
boolean |
checkUpload(APIDataSet apiDataSet)
Check, and/or change, the data to be uploaded.
|
protected void |
warnCyclicUploadDependency(CyclicUploadDependencyException e)
Warns the user if a cyclic dependency is detected
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
modifyChangesetTags
public RelationUploadOrderHook()
protected javax.swing.JPanel buildWarningPanel(java.util.List<Relation> dep)
dep
- the list of relations with a cyclic dependencyprotected void warnCyclicUploadDependency(CyclicUploadDependencyException e)
e
- the cyclic dependency exceptionpublic boolean checkUpload(APIDataSet apiDataSet)
UploadHook
checkUpload
in interface UploadHook
apiDataSet
- the data to upload, modify this to change the data.true
if upload is possible, false
to block the upload.