Revision 39593
branches/v2_0_0_prep/applications/appgvSIG/src/org/gvsig/app/project/Project.java | ||
---|---|---|
12 | 12 |
|
13 | 13 |
import org.gvsig.app.project.documents.Document; |
14 | 14 |
import org.gvsig.fmap.mapcontext.layers.FLayer; |
15 |
import org.gvsig.tools.observer.Observable; |
|
15 | 16 |
import org.gvsig.tools.persistence.Persistent; |
16 | 17 |
import org.gvsig.tools.persistence.exception.PersistenceException; |
17 | 18 |
|
18 |
public interface Project extends Iterable<Document>, Persistent{ |
|
19 |
public interface Project extends Iterable<Document>, Persistent, Observable {
|
|
19 | 20 |
|
20 | 21 |
public static final String FILE_EXTENSION = ".gvsproj"; |
21 | 22 |
|
branches/v2_0_0_prep/applications/appgvSIG/src/org/gvsig/app/project/ProjectNotifycation.java | ||
---|---|---|
1 |
package org.gvsig.app.project; |
|
2 |
|
|
3 |
import java.io.File; |
|
4 |
|
|
5 |
import org.gvsig.app.project.documents.Document; |
|
6 |
|
|
7 |
public interface ProjectNotifycation { |
|
8 |
|
|
9 |
public static final int BEFORE_ADD_DOCUMENT = 1; |
|
10 |
public static final int AFTER_ADD_DOCUMENT = 2; |
|
11 |
|
|
12 |
public static final int BEFORE_REMOVE_DOCUMENT = 3; |
|
13 |
public static final int AFTER_REMOVE_DOCUMENT = 4; |
|
14 |
|
|
15 |
public static final int BEFORE_SAVE_TO_FILE = 9; |
|
16 |
public static final int AFTER_SAVE_TO_FILE = 10; |
|
17 |
|
|
18 |
public static final int BEFORE_SAVE_TO_STREAM = 11; |
|
19 |
public static final int AFTER_SAVE_TO_STREAM = 12; |
|
20 |
|
|
21 |
public static final int BEFORE_LOAD_FROM_FILE = 13; |
|
22 |
public static final int AFTER_LOAD_FROM_FILE = 14; |
|
23 |
|
|
24 |
public static final int BEFORE_LOAD_FROM_STREAM = 15; |
|
25 |
public static final int AFTER_LOAD_FROM_STREAM = 16; |
|
26 |
|
|
27 |
public Document getDocument(); |
|
28 |
public File getFile(); |
|
29 |
public void cancelProcess(); |
|
30 |
public boolean isProcessCanceled(); |
|
31 |
|
|
32 |
} |
|
0 | 33 |
Also available in: Unified diff