Revision 47050
trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app/org.gvsig.app.mainplugin/src/main/java/org/gvsig/app/project/documents/Document.java | ||
---|---|---|
31 | 31 |
import org.gvsig.app.project.documents.gui.WindowLayout; |
32 | 32 |
import org.gvsig.tools.persistence.Persistent; |
33 | 33 |
import org.gvsig.tools.util.Contains; |
34 |
import org.gvsig.tools.util.PropertiesSupport; |
|
34 | 35 |
|
35 |
public interface Document extends Persistent, Contains { |
|
36 |
public interface Document extends Persistent, Contains, PropertiesSupport {
|
|
36 | 37 |
|
37 | 38 |
public static final String ACCESS_DOCUMENT_AUTHORIZATION = "project-document-access"; |
38 | 39 |
|
trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app/org.gvsig.app.mainplugin/src/main/java/org/gvsig/app/project/documents/AbstractDocument.java | ||
---|---|---|
31 | 31 |
import java.util.ArrayList; |
32 | 32 |
import java.util.Date; |
33 | 33 |
import java.util.List; |
34 |
import java.util.Map; |
|
34 | 35 |
import javax.swing.JComponent; |
35 | 36 |
import org.apache.commons.lang3.StringUtils; |
36 | 37 |
|
... | ... | |
44 | 45 |
import org.gvsig.tools.persistence.Persistent; |
45 | 46 |
import org.gvsig.tools.persistence.PersistentState; |
46 | 47 |
import org.gvsig.tools.persistence.exception.PersistenceException; |
48 |
import org.gvsig.tools.util.PropertiesSupport; |
|
49 |
import org.gvsig.tools.util.PropertiesSupportHelper; |
|
47 | 50 |
|
48 | 51 |
|
49 | 52 |
|
... | ... | |
78 | 81 |
private DocumentManager factory; |
79 | 82 |
|
80 | 83 |
private WindowLayout windowLayout = null; |
84 |
|
|
85 |
private PropertiesSupportHelper propertiesHelper; |
|
81 | 86 |
|
82 | 87 |
private List<ProjectDocumentListener> projectDocListener = new ArrayList<ProjectDocumentListener>(); |
83 | 88 |
|
... | ... | |
90 | 95 |
this.factory = null; |
91 | 96 |
this.project = null; |
92 | 97 |
this.name = PluginServices.getText(this, "untitled"); |
98 |
propertiesHelper = new PropertiesSupportHelper(); |
|
93 | 99 |
} |
94 | 100 |
|
95 | 101 |
public AbstractDocument(DocumentManager factory) { |
... | ... | |
386 | 392 |
|
387 | 393 |
} |
388 | 394 |
|
395 |
@Override |
|
396 |
public Object getProperty(String name) { |
|
397 |
return this.propertiesHelper.getProperty(name); |
|
398 |
} |
|
399 |
|
|
400 |
@Override |
|
401 |
public void setProperty(String name, Object value) { |
|
402 |
this.propertiesHelper.setProperty(name, value); |
|
403 |
} |
|
404 |
|
|
405 |
@Override |
|
406 |
public Map<String,Object> getProperties() { |
|
407 |
return this.propertiesHelper.getProperties(); |
|
408 |
} |
|
389 | 409 |
} |
Also available in: Unified diff