Revision 33729 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/execution/InstallPackageWizard.java
InstallPackageWizard.java | ||
---|---|---|
1 | 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 |
*/ |
|
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 | 22 |
|
23 | 23 |
/* |
24 |
* AUTHORS (In addition to CIT): |
|
25 |
* 2010 {Prodevelop} {Task} |
|
26 |
*/ |
|
27 |
|
|
24 |
* AUTHORS (In addition to CIT):
|
|
25 |
* 2010 {Prodevelop} {Task}
|
|
26 |
*/
|
|
27 |
|
|
28 | 28 |
package org.gvsig.installer.swing.api.execution; |
29 | 29 |
|
30 | 30 |
import java.io.File; |
... | ... | |
34 | 34 |
|
35 | 35 |
/** |
36 | 36 |
* <p> |
37 |
* Wizard that is used to open a bundle file to |
|
38 |
* install one or more packages in a valid gvSIG directory. |
|
39 |
* This class receive a directory where gvSIG |
|
40 |
* is installed and it allows to select from the user interface |
|
41 |
* the packages to install. |
|
37 |
* Wizard that is used to open a bundle file to install one or more packages in |
|
38 |
* a valid gvSIG directory. This class receive a directory where gvSIG is |
|
39 |
* installed and it allows to select from the user interface the packages to |
|
40 |
* install. |
|
42 | 41 |
* </p> |
43 | 42 |
* <p> |
44 |
* All the classes that inherit if this abstract class have to have a constructor
|
|
45 |
* with an argument of type {@link File}, that is the application |
|
43 |
* All the classes that inherit if this abstract class have to have a |
|
44 |
* constructor with an argument of type {@link File}, that is the application
|
|
46 | 45 |
* directory. |
47 | 46 |
* </p> |
48 | 47 |
* |
49 | 48 |
* @author <a href="mailto:jpiera@gvsig.org">Jorge Piera Llodrá</a> |
50 | 49 |
*/ |
51 |
public abstract class InstallPackageWizard extends AbstractInstallerWizard{ |
|
52 |
private static final long serialVersionUID = -758246118332926598L; |
|
53 |
|
|
54 |
public InstallPackageWizard(File applicationDirectory) { |
|
55 |
super(applicationDirectory); |
|
56 |
} |
|
57 |
|
|
58 |
/** |
|
59 |
* If this method is selected the first window of the wizard is |
|
60 |
* not visible and the installation process takes the installers |
|
61 |
* form the default directory. |
|
62 |
* @throws InstallPackageServiceException |
|
63 |
* if there an error reading the default directory. |
|
64 |
*/ |
|
65 |
public abstract void installFromDefaultDirectory() throws InstallPackageServiceException; |
|
66 |
|
|
50 |
public abstract class InstallPackageWizard extends AbstractInstallerWizard { |
|
51 |
|
|
52 |
private static final long serialVersionUID = -758246118332926598L; |
|
53 |
|
|
54 |
public InstallPackageWizard(File applicationDirectory) { |
|
55 |
super(applicationDirectory); |
|
56 |
} |
|
57 |
|
|
58 |
/** |
|
59 |
* If this method is selected the first window of the wizard is |
|
60 |
* not visible and the installation process takes the installers |
|
61 |
* form the default directory. |
|
62 |
* |
|
63 |
* @throws InstallPackageServiceException |
|
64 |
* if there an error reading the default directory. |
|
65 |
*/ |
|
66 |
public abstract void installFromDefaultDirectory() |
|
67 |
throws InstallPackageServiceException; |
|
68 |
|
|
67 | 69 |
} |
68 |
|
Also available in: Unified diff