Revision 36631 branches/v2_0_0_prep/applications/appgvSIG/src/org/gvsig/app/project/documents/AbstractDocumentManager.java
AbstractDocumentManager.java | ||
---|---|---|
30 | 30 |
|
31 | 31 |
import java.lang.reflect.Constructor; |
32 | 32 |
import java.util.ArrayList; |
33 |
import java.util.HashSet; |
|
34 |
import java.util.Iterator; |
|
33 | 35 |
import java.util.List; |
34 | 36 |
import java.util.Map; |
37 |
import java.util.Set; |
|
35 | 38 |
|
36 | 39 |
import javax.swing.ImageIcon; |
37 | 40 |
|
... | ... | |
100 | 103 |
return PluginServices.getText(this, "documento"); |
101 | 104 |
} |
102 | 105 |
|
103 |
/** |
|
104 |
* Introdece a gui to be able from the characteristics that we want a ProjectDocument |
|
105 |
* |
|
106 |
* @param project present Project. |
|
107 |
* |
|
108 |
* @return new ProjectDocument. |
|
109 |
*/ |
|
110 | 106 |
public AbstractDocument createDocumentByUser() { |
111 | 107 |
return createDocument(); |
112 | 108 |
} |
113 | 109 |
|
110 |
public Iterator<? extends Document> createDocumentsByUser() { |
|
111 |
Set<AbstractDocument> doc = new HashSet<AbstractDocument>(1); |
|
112 |
doc.add(createDocumentByUser()); |
|
113 |
return doc.iterator(); |
|
114 |
} |
|
115 |
|
|
114 | 116 |
/** |
115 | 117 |
* @see ExtensionBuilder |
116 | 118 |
*/ |
Also available in: Unified diff