|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.josm.actions.upload.RelationUploadOrderHook
public class RelationUploadOrderHook
This upload hook reorders the list of new relations to upload such that child relations are uploaded before parent relations. It also checks for cyclic dependencies in the list of new relations.
Field Summary | |
---|---|
private APIDataSet |
data
the data to be analyzed |
Constructor Summary | |
---|---|
RelationUploadOrderHook()
|
Method Summary | |
---|---|
protected javax.swing.JPanel |
buildWarningPanel(java.util.List<Relation> dep)
builds the panel which warns users about a cyclic dependency |
boolean |
checkUpload(APIDataSet apiDataSet)
Checks the upload. |
protected void |
warnCyclicUploadDependency(CyclicUploadDependencyException e)
Warns the user if a cyclic dependency is detected |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private APIDataSet data
Constructor Detail |
---|
public RelationUploadOrderHook()
Method Detail |
---|
protected javax.swing.JPanel buildWarningPanel(java.util.List<Relation> dep)
dep
- the list of relations with a cyclic dependency
protected void warnCyclicUploadDependency(CyclicUploadDependencyException e)
e
- the cyclic dependency exceptionpublic boolean checkUpload(APIDataSet apiDataSet)
UploadHook
checkUpload
in interface UploadHook
apiDataSet
- the data to upload
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |