Revision 32448

View differences:

branches/v2_0_0_prep/extensions/org.gvsig.installer/org.gvsig.installer.app/org.gvsig.installer.app.extension/src/main/java/org/gvsig/installer/app/extension/execution/InstallerExecutionExtension.java
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
* 2010 {Prodevelop}   {Task}
26
*/
27
 
28
package org.gvsig.installer.app.extension.execution;
29

  
30
import org.gvsig.andami.plugins.Extension;
31

  
32
/**
33
 * @author <a href="mailto:jpiera@gvsig.org">Jorge Piera Llodr&aacute;</a>
34
 */
35
public class InstallerExecutionExtension extends Extension {
36

  
37
	public void execute(String actionCommand) {
38
			
39
	}
40

  
41
	public void initialize() {	
42
		
43
	}
44

  
45
	public boolean isEnabled() {	
46
		return true;
47
	}
48

  
49
	public boolean isVisible() {
50
		return true;
51
	}
52

  
53
}
54

  
0 55

  
branches/v2_0_0_prep/extensions/org.gvsig.installer/org.gvsig.installer.app/org.gvsig.installer.app.extension/src/main/java/org/gvsig/installer/app/extension/execution/InstallerExecutionWindow.java
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
* 2010 {Prodevelop}   {Task}
26
*/
27
 
28
package org.gvsig.installer.app.extension.execution;
29

  
30
import java.io.File;
31

  
32
import javax.swing.JPanel;
33

  
34
import org.gvsig.andami.ui.mdiManager.IWindow;
35
import org.gvsig.andami.ui.mdiManager.WindowInfo;
36
import org.gvsig.installer.lib.api.execution.InstallerExecutionServiceException;
37
import org.gvsig.installer.swing.api.SwingInstallerLocator;
38
import org.gvsig.installer.swing.api.execution.CreateInstallerExecutionWizardException;
39
import org.gvsig.installer.swing.api.execution.InstallerExecutionWizard;
40
import org.gvsig.tools.locator.LocatorException;
41

  
42
/**
43
 * @author <a href="mailto:jpiera@gvsig.org">Jorge Piera Llodr&aacute;</a>
44
 */
45
public class InstallerExecutionWindow extends JPanel implements IWindow{
46
	WindowInfo windowInfo = null;
47
	
48
	public InstallerExecutionWindow(File applicationDirectory) throws LocatorException, CreateInstallerExecutionWizardException, InstallerExecutionServiceException {
49
		super();		
50
		InstallerExecutionWizard installerExecutionWizard =
51
			SwingInstallerLocator.getSwingInstallerManager().createInstallerExecutionWizard();
52
		installerExecutionWizard.setApplicationDirectory(applicationDirectory);
53
		add(installerExecutionWizard);
54
	}
55

  
56
	public WindowInfo getWindowInfo() {
57
		if (windowInfo == null){
58
			windowInfo = new WindowInfo();
59
			windowInfo.setWidth(500);
60
			windowInfo.setHeight(500);
61
		}
62
		return windowInfo;
63
	}
64

  
65
	public Object getWindowProfile() {
66
		return WindowInfo.DIALOG_PROFILE;
67
	}
68

  
69
}
0 70

  
branches/v2_0_0_prep/extensions/org.gvsig.installer/org.gvsig.installer.app/org.gvsig.installer.app.extension/src/main/java/org/gvsig/installer/app/extension/creation/InstallerCreationExtension.java
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
* 2010 {Prodevelop}   {Task}
26
*/
27
 
28
package org.gvsig.installer.app.extension.creation;
29

  
30
import org.gvsig.andami.plugins.Extension;
31

  
32
/**
33
 * @author <a href="mailto:jpiera@gvsig.org">Jorge Piera Llodr&aacute;</a>
34
 */
35
public class InstallerCreationExtension extends Extension{
36

  
37
	public void execute(String actionCommand) {
38
			
39
	}
40

  
41
	public void initialize() {
42
	
43
		
44
	}
45

  
46
	public boolean isEnabled() {
47
		return true;
48
	}
49

  
50
	public boolean isVisible() {		
51
		return true;
52
	}
53

  
54
}
55

  
0 56

  
branches/v2_0_0_prep/extensions/org.gvsig.installer/org.gvsig.installer.app/org.gvsig.installer.app.extension/src/main/java/org/gvsig/installer/app/extension/creation/InstallerCreationWindow.java
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
* 2010 {Prodevelop}   {Task}
26
*/
27
 
28
package org.gvsig.installer.app.extension.creation;
29

  
30
import java.io.File;
31

  
32
import javax.swing.JPanel;
33

  
34
import org.gvsig.andami.ui.mdiManager.IWindow;
35
import org.gvsig.andami.ui.mdiManager.WindowInfo;
36
import org.gvsig.installer.lib.api.creation.InstallerCreationServiceException;
37
import org.gvsig.installer.swing.api.SwingInstallerLocator;
38
import org.gvsig.installer.swing.api.creation.CreateInstallerCreationWizardException;
39
import org.gvsig.installer.swing.api.creation.InstallerCreationWizard;
40
import org.gvsig.tools.locator.LocatorException;
41

  
42
/**
43
 * @author <a href="mailto:jpiera@gvsig.org">Jorge Piera Llodr&aacute;</a>
44
 */
45
public class InstallerCreationWindow extends JPanel implements IWindow{
46
	WindowInfo windowInfo = null;
47
	
48
	public InstallerCreationWindow(File applicationDirectory) throws LocatorException, CreateInstallerCreationWizardException, InstallerCreationServiceException {
49
		super();		
50
		InstallerCreationWizard installerCreationWizard = 
51
			SwingInstallerLocator.getSwingInstallerManager().createInstallerCreationWizard();
52
		installerCreationWizard.setApplicationDirectory(applicationDirectory);
53
		add(installerCreationWizard);
54
	}
55

  
56

  
57
	public WindowInfo getWindowInfo() {
58
		if (windowInfo == null){
59
			windowInfo = new WindowInfo();
60
			windowInfo.setWidth(500);
61
			windowInfo.setHeight(500);
62
		}
63
		return windowInfo;
64
	}
65

  
66
	public Object getWindowProfile() {
67
		return WindowInfo.DIALOG_PROFILE;
68
	}}
69

  
0 70

  
branches/v2_0_0_prep/extensions/org.gvsig.installer/org.gvsig.installer.app/org.gvsig.installer.app.extension/src/main/resources/locale/text.properties
1
create_installer=Crear instalador
2
create_installer_description=Crea un intalador de un plugin instalado
3
execute_installer=Instalar
4
execute_installer_description=Ejecuta un instalador para instalar un nuevo plugin en gvSIG 
0 5

  
branches/v2_0_0_prep/extensions/org.gvsig.installer/org.gvsig.installer.app/org.gvsig.installer.app.extension/src/main/resources/locale/text_en.properties
1
create_installer=Create installer
2
create_installer_description=Create an installer from an installed plugin
3
execute_installer=Execute an installer
4
execute_installer_description=Executes an installer to install a new plugin in gvSIG 
0 5

  
branches/v2_0_0_prep/extensions/org.gvsig.installer/org.gvsig.installer.app/org.gvsig.installer.app.extension/src/main/resources/config/config.xml
1
<?xml version="1.0" encoding="ISO-8859-1"?>
2
<plugin-config>
3
	<libraries library-dir="lib"/>
4
	<depends plugin-name="org.gvsig.app"/>
5
	<resourceBundle name="text"/>
6
	<extensions>
7
		<extension class-name="org.gvsig.installer.app.extension.creation.InstallerCreationExtensionn"
8
			description="This extension is used to create an installer from thh current gvSIG application."
9
			active="true">
10
			<menu text="tool/create_installer"
11
				  tooltip="create_installer_description"
12
				  action-command="" />			
13
		</extension>
14
			<extension class-name="org.gvsig.installer.app.extension.execution.InstallerExecutionExtensionn"
15
			description="This extension is used to install an installer in gvSIG"
16
			active="true">
17
			<menu text="tool/execute_installer"
18
				  tooltip="execute_installer_description"
19
				  action-command="" />			
20
		</extension>
21
	</extensions>
22
</plugin-config>
0 23

  
branches/v2_0_0_prep/extensions/org.gvsig.installer/org.gvsig.installer.app/org.gvsig.installer.app.extension/pom.xml
9 9
	<artifactId>org.gvsig.installer.app</artifactId>	
10 10
	<version>1.0-SNAPSHOT</version>
11 11
  </parent>
12
  
13
  <dependencies>
14
  		<dependency>
15
			<groupId>org.gvsig</groupId>
16
			<artifactId>org.gvsig.app</artifactId>			
17
		</dependency>	
18
		<dependency>
19
			<groupId>org.gvsig</groupId>
20
			<artifactId>org.gvsig.andami</artifactId>			
21
		</dependency>  
22
		<dependency>
23
      		<groupId>org.gvsig</groupId>
24
      		<artifactId>org.gvsig.installer.swing.api</artifactId>     
25
    	</dependency>   
26
  </dependencies>
12 27
</project>
branches/v2_0_0_prep/extensions/org.gvsig.installer/org.gvsig.installer.app/org.gvsig.installer.app.extension/distribution/distribution.xml
1
<assembly>
2
	<id>distribution</id>
3
	<formats>
4
		<format>dir</format>
5
	</formats>
6
	<fileSets>
7
		<!-- Extructure for the extension -->
8
		<fileSet>
9
			<directory>config</directory>
10
			<outputDirectory>${extension-distribution}
11
			</outputDirectory>
12
		</fileSet>
13
		<fileSet>
14
			<directory>images</directory>
15
			<outputDirectory>/${extension-distribution}/images
16
			</outputDirectory>
17
		</fileSet>
18
		<fileSet>
19
			<directory>about</directory>
20
			<outputDirectory>/${extension-distribution}/about
21
			</outputDirectory>
22
		</fileSet>
23
	</fileSets>
24
	<files>
25
		<file>
26
			<source>build.number</source>
27
			<outputDirectory>${extension-distribution}
28
			</outputDirectory>
29
		</file> 
30
	</files>
31
	<!--
32
		***********************************************************************
33
	-->
34
	<!-- *													   *-->
35
	<!--
36
		***********************************************************************
37
	-->
38
	<dependencySets>		
39
		
40
		<dependencySet>
41
			<outputDirectory>${extension-distribution}/${library-dir}
42
			</outputDirectory>
43
			<includes>
44
				<include>org.gvsig:org.gvsig.installer**</include>					
45
			</includes>
46
		</dependencySet>		
47
	</dependencySets>
48
</assembly>
0 49

  

Also available in: Unified diff