Revision 36648 branches/v2_0_0_prep/applications/appgvSIG/src/org/gvsig/app/project/DefaultProject.java
DefaultProject.java | ||
---|---|---|
72 | 72 |
import org.gvsig.app.project.documents.exceptions.SaveException; |
73 | 73 |
import org.gvsig.app.project.documents.gui.IDocumentWindow; |
74 | 74 |
import org.gvsig.app.project.documents.gui.ProjectWindow; |
75 |
import org.gvsig.app.project.documents.layout.DefaultLayoutManager; |
|
76 |
import org.gvsig.app.project.documents.layout.LayoutDocument; |
|
77 | 75 |
import org.gvsig.app.project.documents.view.DefaultViewDocument; |
78 | 76 |
import org.gvsig.app.project.documents.view.ViewManager; |
79 | 77 |
import org.gvsig.fmap.dal.DataTypes; |
... | ... | |
1021 | 1019 |
} |
1022 | 1020 |
|
1023 | 1021 |
/** |
1024 |
* Return the list of maps of the project |
|
1025 |
* |
|
1026 |
* @return tables as ArrayList of IProjectDocument |
|
1027 |
* |
|
1028 |
* @deprecated see {@link #getDocumentsByType(String)} |
|
1029 |
*/ |
|
1030 |
public List<Document> getMaps() { |
|
1031 |
return getDocuments(DefaultLayoutManager.TYPENAME); |
|
1032 |
} |
|
1033 |
|
|
1034 |
/** |
|
1035 |
* Add a {@link LayoutDocument} to the project |
|
1036 |
* |
|
1037 |
* @deprecated see {@link #add(Document)} |
|
1038 |
*/ |
|
1039 |
public void addMap(LayoutDocument m) { |
|
1040 |
add(m); |
|
1041 |
} |
|
1042 |
|
|
1043 |
/** |
|
1044 |
* Remove a map of the project |
|
1045 |
* |
|
1046 |
* @param index |
|
1047 |
* of the map as integer |
|
1048 |
* |
|
1049 |
* @deprecated see {@link #remove(Document)} |
|
1050 |
*/ |
|
1051 |
public void delMap(int i) { |
|
1052 |
List<Document> list = getDocuments(DefaultLayoutManager.TYPENAME); |
|
1053 |
remove(list.get(i)); |
|
1054 |
} |
|
1055 |
|
|
1056 |
/** |
|
1057 | 1022 |
* Return the list of views of the project |
1058 | 1023 |
* |
1059 | 1024 |
* @return views as ArrayList of ProjectDocument |
Also available in: Unified diff