root / branches / v2_0_0_prep / applications / appgvSIG / src / org / gvsig / app / ApplicationManager.java @ 34002
History | View | Annotate | Download (3.67 KB)
1 |
/* gvSIG. Geographic Information System of the Valencian Government
|
---|---|
2 |
*
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department
|
4 |
* of the Valencian Government (CIT)
|
5 |
*
|
6 |
* This program is free software; you can redistribute it and/or
|
7 |
* modify it under the terms of the GNU General Public License
|
8 |
* as published by the Free Software Foundation; either version 2
|
9 |
* of the License, or (at your option) any later version.
|
10 |
*
|
11 |
* This program is distributed in the hope that it will be useful,
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14 |
* GNU General Public License for more details.
|
15 |
*
|
16 |
* You should have received a copy of the GNU General Public License
|
17 |
* along with this program; if not, write to the Free Software
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19 |
* MA 02110-1301, USA.
|
20 |
*
|
21 |
*/
|
22 |
|
23 |
/*
|
24 |
* AUTHORS (In addition to CIT):
|
25 |
* 2009 IVER T.I {{Task}}
|
26 |
*/
|
27 |
|
28 |
package org.gvsig.app; |
29 |
|
30 |
import java.util.List; |
31 |
|
32 |
import org.cresques.cts.IProjection; |
33 |
import org.gvsig.about.AboutManager; |
34 |
import org.gvsig.andami.iconthemes.IconThemeManager; |
35 |
import org.gvsig.andami.ui.mdiManager.MDIManager; |
36 |
import org.gvsig.app.extension.Version; |
37 |
import org.gvsig.app.gui.WizardPanel; |
38 |
import org.gvsig.app.prepareAction.PrepareContext; |
39 |
import org.gvsig.app.prepareAction.PrepareContextView; |
40 |
import org.gvsig.app.prepareAction.PrepareDataStore; |
41 |
import org.gvsig.app.prepareAction.PrepareDataStoreParameters; |
42 |
import org.gvsig.app.prepareAction.PrepareLayer; |
43 |
import org.gvsig.app.project.Project; |
44 |
import org.gvsig.app.project.ProjectManager; |
45 |
import org.gvsig.fmap.dal.DataManager; |
46 |
import org.gvsig.fmap.dal.DataStore; |
47 |
import org.gvsig.fmap.dal.DataStoreParameters; |
48 |
import org.gvsig.fmap.geom.GeometryManager; |
49 |
import org.gvsig.fmap.mapcontext.MapContextManager; |
50 |
import org.gvsig.fmap.mapcontext.layers.FLayer; |
51 |
import org.gvsig.tools.dispose.DisposableManager; |
52 |
import org.gvsig.tools.dynobject.DynObjectManager; |
53 |
import org.gvsig.tools.extensionpoint.ExtensionPointManager; |
54 |
import org.gvsig.tools.persistence.PersistenceManager; |
55 |
|
56 |
|
57 |
public interface ApplicationManager { |
58 |
|
59 |
Version getVersion() ; |
60 |
|
61 |
PreferencesNode getPreferences(); |
62 |
|
63 |
PreferencesNode getPreferences(String nodeName);
|
64 |
|
65 |
Project getCurrentProject(); |
66 |
|
67 |
DataManager getDataManager(); |
68 |
|
69 |
ProjectManager getProjectManager(); |
70 |
|
71 |
MDIManager getUIManager(); |
72 |
|
73 |
GeometryManager getGeometryManager(); |
74 |
|
75 |
PersistenceManager getPersistenceManager(); |
76 |
|
77 |
DisposableManager getDisposableManager() ; |
78 |
|
79 |
DynObjectManager getDynObjectManager() ; |
80 |
|
81 |
ExtensionPointManager getExtensionPointManager(); |
82 |
|
83 |
MapContextManager getMapContextManager(); |
84 |
|
85 |
IProjection getCRS(String code);
|
86 |
|
87 |
IconThemeManager getIconThemeManager(); |
88 |
|
89 |
String[] getArguments(); |
90 |
|
91 |
String getArgument(String name); |
92 |
|
93 |
String getFromClipboard();
|
94 |
|
95 |
void putInClipboard(String data) ; |
96 |
|
97 |
|
98 |
void registerAddTableWizard(String name, String description, |
99 |
Class<? extends WizardPanel> wpClass); |
100 |
|
101 |
List<WizardPanel> getWizardPanels() throws Exception; |
102 |
|
103 |
|
104 |
|
105 |
void registerPrepareOpenDataStore(PrepareDataStore action);
|
106 |
void registerPrepareOpenDataStoreParameters( PrepareDataStoreParameters action);
|
107 |
void registerPrepareOpenLayer(PrepareLayer action);
|
108 |
|
109 |
DataStore pepareOpenDataSource(DataStore store, |
110 |
PrepareContext context) |
111 |
throws Exception; |
112 |
|
113 |
DataStoreParameters prepareOpenDataStoreParameters( |
114 |
DataStoreParameters storeParameters, PrepareContext context) |
115 |
throws Exception; |
116 |
|
117 |
FLayer prepareOpenLayer(FLayer layer, |
118 |
PrepareContextView context) |
119 |
throws Exception; |
120 |
|
121 |
public AboutManager getAbout();
|
122 |
|
123 |
// void registerPrepareOpenAction(PrepareAction action);
|
124 |
//
|
125 |
// Object executePrepareOpenAction(PrepareContext context, Object data) throws Exception;
|
126 |
|
127 |
|
128 |
|
129 |
} |