Revision 45931 trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app/org.gvsig.app.mainplugin/src/main/java/org/gvsig/app/project/documents/AbstractDocumentManager.java
AbstractDocumentManager.java | ||
---|---|---|
64 | 64 |
import org.gvsig.tools.persistence.PersistentState; |
65 | 65 |
import org.gvsig.tools.persistence.exception.PersistenceException; |
66 | 66 |
import org.gvsig.tools.swing.api.Component; |
67 |
import org.gvsig.tools.util.Invocable; |
|
67 | 68 |
|
68 | 69 |
|
69 | 70 |
|
... | ... | |
125 | 126 |
return PluginServices.getText(this, "documento"); |
126 | 127 |
} |
127 | 128 |
|
129 |
@Override |
|
128 | 130 |
public AbstractDocument createDocumentByUser() { |
129 | 131 |
return createDocument(); |
130 | 132 |
} |
131 | 133 |
|
134 |
@Override |
|
132 | 135 |
public Iterator<? extends Document> createDocumentsByUser() { |
133 |
Set<AbstractDocument> doc = new HashSet<AbstractDocument>(1);
|
|
136 |
Set<AbstractDocument> doc = new HashSet<>(1); |
|
134 | 137 |
doc.add(createDocumentByUser()); |
135 | 138 |
return doc.iterator(); |
136 | 139 |
} |
137 | 140 |
|
141 |
@Override |
|
142 |
public Iterator<? extends Document> createDocumentsByUser(Invocable whenDocumentsLoaded) { |
|
143 |
Set<AbstractDocument> docs = new HashSet<>(1); |
|
144 |
docs.add(createDocumentByUser()); |
|
145 |
return docs.iterator(); |
|
146 |
} |
|
147 |
|
|
138 | 148 |
/** |
139 | 149 |
* @see ExtensionBuilder |
140 | 150 |
*/ |
151 |
@Override |
|
141 | 152 |
public Object create() { |
142 | 153 |
return this; |
143 | 154 |
} |
Also available in: Unified diff