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, waitmodifyChangesetTagspublic 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)
UploadHookcheckUpload in interface UploadHookapiDataSet - the data to upload, modify this to change the data.true if upload is possible, false to block the upload.