Revision 37599 branches/v2_0_0_prep/extensions/org.gvsig.installer/org.gvsig.installer.swing/org.gvsig.installer.swing.api/src/main/java/org/gvsig/installer/swing/api/SwingInstallerManager.java
SwingInstallerManager.java | ||
---|---|---|
28 | 28 |
package org.gvsig.installer.swing.api; |
29 | 29 |
|
30 | 30 |
import java.io.File; |
31 |
import java.net.MalformedURLException; |
|
32 | 31 |
import java.net.URL; |
33 | 32 |
import java.util.List; |
34 | 33 |
|
... | ... | |
56 | 55 |
*/ |
57 | 56 |
public interface SwingInstallerManager { |
58 | 57 |
|
59 |
/**
|
|
60 |
* Registers a class that implements a wizard to create an installer
|
|
61 |
* of a plugin from a gvSIG installation directory.
|
|
62 |
*
|
|
63 |
* @param clazz
|
|
64 |
* Class that inherits of the {@link MakePluginPackageWizard}
|
|
65 |
* abstract class.
|
|
66 |
*/
|
|
67 |
public void registerMakePluginPackageWizardInstallerCreationWizard(
|
|
68 |
Class<? extends MakePluginPackageWizard> clazz);
|
|
58 |
/**
|
|
59 |
* Registers a class that implements a wizard to create an installer of a
|
|
60 |
* plugin from a gvSIG installation directory.
|
|
61 |
*
|
|
62 |
* @param clazz
|
|
63 |
* Class that inherits of the {@link MakePluginPackageWizard}
|
|
64 |
* abstract class.
|
|
65 |
*/
|
|
66 |
public void registerMakePluginPackageWizardInstallerCreationWizard(
|
|
67 |
Class<? extends MakePluginPackageWizard> clazz);
|
|
69 | 68 |
|
70 |
/** |
|
71 |
* This method returns a class that is used to create an |
|
72 |
* installer from a gvSIG installation directory. |
|
73 |
* |
|
74 |
* @return |
|
75 |
* The wizard to create an installer. |
|
76 |
* @throws MakePluginPackageWizardException |
|
77 |
* If there is a problem creating the wizard. |
|
78 |
*/ |
|
79 |
public MakePluginPackageWizard createMakePluginPackageWizard( |
|
80 |
File applicationDirectory, File pluginsFolder, File installFolder) |
|
81 |
throws MakePluginPackageWizardException; |
|
69 |
/** |
|
70 |
* This method returns a class that is used to create an installer from a |
|
71 |
* gvSIG installation directory. |
|
72 |
* |
|
73 |
* @return The wizard to create an installer. |
|
74 |
* @throws MakePluginPackageWizardException |
|
75 |
* If there is a problem creating the wizard. |
|
76 |
*/ |
|
77 |
public MakePluginPackageWizard createMakePluginPackageWizard( |
|
78 |
File applicationDirectory, File pluginsFolder, File installFolder) |
|
79 |
throws MakePluginPackageWizardException; |
|
82 | 80 |
|
83 |
/**
|
|
84 |
* Registers a class that implements a wizard to execte an installer
|
|
85 |
* to install a set of plugins in a gvSIG installation directory.
|
|
86 |
*
|
|
87 |
* @param clazz
|
|
88 |
* Class that inherits of the {@link AbstractInstallPackageWizard}
|
|
89 |
* abstract class.
|
|
90 |
*/
|
|
91 |
public void registerInstallPackageWizard(
|
|
92 |
Class<? extends AbstractInstallPackageWizard> clazz);
|
|
81 |
/**
|
|
82 |
* Registers a class that implements a wizard to execte an installer to
|
|
83 |
* install a set of plugins in a gvSIG installation directory.
|
|
84 |
*
|
|
85 |
* @param clazz
|
|
86 |
* Class that inherits of the
|
|
87 |
* {@link AbstractInstallPackageWizard} abstract class.
|
|
88 |
*/
|
|
89 |
public void registerInstallPackageWizard(
|
|
90 |
Class<? extends AbstractInstallPackageWizard> clazz);
|
|
93 | 91 |
|
94 |
/** |
|
95 |
* This method returns a class that is used to execute an |
|
96 |
* installer to install a set of plugins in a gvSIG installation directory. |
|
97 |
* |
|
98 |
* @return |
|
99 |
* The wizard to execute an installer. |
|
100 |
* @throws InstallPackageWizardException |
|
101 |
* If there is a problem creating the wizard. |
|
102 |
*/ |
|
103 |
public AbstractInstallPackageWizard createInstallPackageWizard( |
|
104 |
File applicationDirectory, File pluginsFolder, File installFolder) |
|
105 |
throws InstallPackageWizardException; |
|
92 |
/** |
|
93 |
* This method returns a class that is used to execute an installer to |
|
94 |
* install a set of plugins in a gvSIG installation directory. |
|
95 |
* |
|
96 |
* @return The wizard to execute an installer. |
|
97 |
* @throws InstallPackageWizardException |
|
98 |
* If there is a problem creating the wizard. |
|
99 |
*/ |
|
100 |
public AbstractInstallPackageWizard createInstallPackageWizard( |
|
101 |
File applicationDirectory, File pluginsFolder, File installFolder) |
|
102 |
throws InstallPackageWizardException; |
|
106 | 103 |
|
107 |
/**
|
|
108 |
* Returns the current application version.
|
|
109 |
*
|
|
110 |
* @return the current application version
|
|
111 |
*/
|
|
112 |
public String getApplicationVersion();
|
|
104 |
/**
|
|
105 |
* Returns the current application version.
|
|
106 |
*
|
|
107 |
* @return the current application version
|
|
108 |
*/
|
|
109 |
public String getApplicationVersion();
|
|
113 | 110 |
|
114 |
/**
|
|
115 |
* Sets the current application version.
|
|
116 |
*
|
|
117 |
* @param gvSIGVersion
|
|
118 |
* the current application version
|
|
119 |
*/
|
|
120 |
public void setApplicationVersion(String gvSIGVersion);
|
|
111 |
/**
|
|
112 |
* Sets the current application version.
|
|
113 |
*
|
|
114 |
* @param gvSIGVersion
|
|
115 |
* the current application version
|
|
116 |
*/
|
|
117 |
public void setApplicationVersion(String gvSIGVersion);
|
|
121 | 118 |
|
122 |
/**
|
|
123 |
* Returns the default URL to download packages from.
|
|
124 |
*
|
|
125 |
* @return the default URL to download packages from
|
|
126 |
*/
|
|
127 |
public URL getDefaultDownloadURL();
|
|
119 |
/**
|
|
120 |
* Returns the default URL to download packages from.
|
|
121 |
*
|
|
122 |
* @return the default URL to download packages from
|
|
123 |
*/
|
|
124 |
public URL getDefaultDownloadURL();
|
|
128 | 125 |
|
129 |
/**
|
|
130 |
* Sets the default URL to download packages from
|
|
131 |
*
|
|
132 |
* @param defaultDownloadURL
|
|
133 |
* the default URL to download packages from
|
|
134 |
*/
|
|
135 |
public void setDefaultDownloadURL(URL defaultDownloadURL);
|
|
126 |
/**
|
|
127 |
* Sets the default URL to download packages from
|
|
128 |
*
|
|
129 |
* @param defaultDownloadURL
|
|
130 |
* the default URL to download packages from
|
|
131 |
*/
|
|
132 |
public void setDefaultDownloadURL(URL defaultDownloadURL);
|
|
136 | 133 |
|
137 |
/** |
|
138 |
* Translate a key in a text using the current application language |
|
139 |
* |
|
140 |
* @param key |
|
141 |
* The key to translate |
|
142 |
* @return |
|
143 |
* The translated key |
|
144 |
*/ |
|
145 |
public String getText(String key); |
|
134 |
/** |
|
135 |
* Translate a key in a text using the current application language |
|
136 |
* |
|
137 |
* @param key |
|
138 |
* The key to translate |
|
139 |
* @return The translated key |
|
140 |
*/ |
|
141 |
public String getText(String key); |
|
146 | 142 |
|
147 |
/**
|
|
148 |
* Returns a reference to the {@link InstallerManager}.
|
|
149 |
*
|
|
150 |
* @return a reference to the {@link InstallerManager}
|
|
151 |
*/
|
|
152 |
public InstallerManager getInstallerManager();
|
|
143 |
/**
|
|
144 |
* Returns a reference to the {@link InstallerManager}.
|
|
145 |
*
|
|
146 |
* @return a reference to the {@link InstallerManager}
|
|
147 |
*/
|
|
148 |
public InstallerManager getInstallerManager();
|
|
153 | 149 |
|
154 |
public JShowPackageStatusAndAskContinuePanel createJShowPackageStatusAndAskContinuePanel(List<PackageInfo> packages, String message); |
|
155 |
|
|
156 |
public JPackageInfoPanel createPackageInfoPanel(); |
|
157 |
public JOutputPanel createOutputPanel(); |
|
158 |
public JProgressPanel createProgressPanel() ; |
|
159 |
|
|
160 |
public void setDefaultDownloadURL(String defaultDownloadURLs); |
|
150 |
public JShowPackageStatusAndAskContinuePanel createJShowPackageStatusAndAskContinuePanel( |
|
151 |
List<PackageInfo> packages, String message); |
|
161 | 152 |
|
162 |
public void setDefaultDownloadURL(File defaultDownloadURLs);
|
|
153 |
public JPackageInfoPanel createPackageInfoPanel();
|
|
163 | 154 |
|
164 |
public void addDefaultDownloadURL(URL url); |
|
165 |
|
|
166 |
public List<URL>getDefaultDownloadURLs(); |
|
155 |
public JOutputPanel createOutputPanel(); |
|
156 |
|
|
157 |
public JProgressPanel createProgressPanel(); |
|
158 |
|
|
159 |
public void setDefaultDownloadURL(String defaultDownloadURLs); |
|
160 |
|
|
161 |
public void setDefaultDownloadURL(File defaultDownloadURLs); |
|
162 |
|
|
163 |
public void addDefaultDownloadURL(URL url); |
|
164 |
|
|
165 |
public List<URL> getDefaultDownloadURLs(); |
|
167 | 166 |
} |
Also available in: Unified diff