Revision 36521
tags/v_1_12_0_Build_1402/org.gvsig.installer.app.extension/.project | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<projectDescription> |
|
3 |
<name>org.gvsig.installer.app.extension</name> |
|
4 |
<comment></comment> |
|
5 |
<projects> |
|
6 |
</projects> |
|
7 |
<buildSpec> |
|
8 |
<buildCommand> |
|
9 |
<name>org.eclipse.jdt.core.javabuilder</name> |
|
10 |
<arguments> |
|
11 |
</arguments> |
|
12 |
</buildCommand> |
|
13 |
</buildSpec> |
|
14 |
<natures> |
|
15 |
<nature>org.eclipse.jdt.core.javanature</nature> |
|
16 |
</natures> |
|
17 |
</projectDescription> |
|
0 | 18 |
tags/v_1_12_0_Build_1402/org.gvsig.installer.app.extension/build.number | ||
---|---|---|
1 |
#Build Number for ANT. Do not edit! |
|
2 |
#Wed Sep 21 10:30:55 CEST 2011 |
|
3 |
build.number=1402 |
tags/v_1_12_0_Build_1402/org.gvsig.installer.app.extension/src/main/java/org/gvsig/installer/app/extension/GvSIGFolders.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 |
package org.gvsig.installer.app.extension; |
|
23 |
|
|
24 |
import java.io.File; |
|
25 |
|
|
26 |
import com.iver.andami.Launcher; |
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
/** |
|
31 |
* Gets the main gvSIG application folders. |
|
32 |
* |
|
33 |
* @author gvSIG Team |
|
34 |
* @version $Id$ |
|
35 |
*/ |
|
36 |
public class GvSIGFolders { |
|
37 |
|
|
38 |
/** |
|
39 |
* Returns the gvSIG main application folder. |
|
40 |
* |
|
41 |
* @return the gvSIG main application folder |
|
42 |
*/ |
|
43 |
public File getApplicationFolder() { |
|
44 |
// TODO: check if there is a better way to handle this |
|
45 |
return new File(System.getProperty("user.dir")); |
|
46 |
} |
|
47 |
|
|
48 |
/** |
|
49 |
* Returns the gvSIG plugins folder. |
|
50 |
* |
|
51 |
* @return the gvSIG plugins folder |
|
52 |
*/ |
|
53 |
public File getPluginsFolder() { |
|
54 |
return new File(Launcher.getAndamiConfig().getPluginsDirectory()) |
|
55 |
.getAbsoluteFile(); |
|
56 |
} |
|
57 |
|
|
58 |
/** |
|
59 |
* Returns the default gvSIG folder with the installable package bundles. |
|
60 |
* |
|
61 |
* @return the default gvSIG folder with the installable package bundles |
|
62 |
*/ |
|
63 |
public File getInstallFolder() { |
|
64 |
return new File(getApplicationFolder(), "install"); |
|
65 |
} |
|
66 |
|
|
67 |
} |
|
0 | 68 |
tags/v_1_12_0_Build_1402/org.gvsig.installer.app.extension/src/main/java/org/gvsig/installer/app/extension/utils/WindowInstallerListener.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.utils; |
|
29 |
|
|
30 |
|
|
31 |
import org.gvsig.installer.swing.api.wizard.InstallerWizardActionListener; |
|
32 |
import org.gvsig.installer.swing.api.wizard.InstallerWizardPanel; |
|
33 |
|
|
34 |
import com.iver.andami.PluginServices; |
|
35 |
import com.iver.andami.ui.mdiManager.IWindow; |
|
36 |
|
|
37 |
/** |
|
38 |
* @author <a href="mailto:jpiera@gvsig.org">Jorge Piera Llodrá</a> |
|
39 |
*/ |
|
40 |
public class WindowInstallerListener implements InstallerWizardActionListener { |
|
41 |
|
|
42 |
private IWindow window = null; |
|
43 |
|
|
44 |
public WindowInstallerListener(IWindow window) { |
|
45 |
super(); |
|
46 |
this.window = window; |
|
47 |
} |
|
48 |
|
|
49 |
public void closeWizard() { |
|
50 |
PluginServices.getMDIManager().closeWindow(window); |
|
51 |
} |
|
52 |
|
|
53 |
public void cancel(InstallerWizardPanel installerWizard) { |
|
54 |
PluginServices.getMDIManager().closeWindow(window); |
|
55 |
} |
|
56 |
|
|
57 |
public void finish(InstallerWizardPanel installerWizard) { |
|
58 |
PluginServices.getMDIManager().closeWindow(window); |
|
59 |
} |
|
60 |
|
|
61 |
} |
|
0 | 62 |
tags/v_1_12_0_Build_1402/org.gvsig.installer.app.extension/src/main/java/org/gvsig/installer/app/extension/execution/InstallPackageExtension.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.net.MalformedURLException; |
|
31 |
import java.net.URL; |
|
32 |
|
|
33 |
import javax.swing.JOptionPane; |
|
34 |
|
|
35 |
import org.gvsig.i18n.Messages; |
|
36 |
import org.gvsig.installer.app.extension.GvSIGFolders; |
|
37 |
import org.gvsig.installer.swing.api.SwingInstallerLocator; |
|
38 |
import org.gvsig.tools.library.impl.DefaultLibrariesInitializer; |
|
39 |
import org.slf4j.Logger; |
|
40 |
import org.slf4j.LoggerFactory; |
|
41 |
|
|
42 |
import com.iver.andami.PluginServices; |
|
43 |
import com.iver.andami.plugins.Extension; |
|
44 |
import com.iver.cit.gvsig.Version; |
|
45 |
|
|
46 |
/** |
|
47 |
* @author <a href="mailto:jpiera@gvsig.org">Jorge Piera Llodrá</a> |
|
48 |
*/ |
|
49 |
public class InstallPackageExtension extends Extension { |
|
50 |
|
|
51 |
private static final Logger LOG = LoggerFactory |
|
52 |
.getLogger(InstallPackageExtension.class); |
|
53 |
|
|
54 |
public void execute(String actionCommand) { |
|
55 |
int resp = JOptionPane.showConfirmDialog( |
|
56 |
null, |
|
57 |
Messages.getText("install_package_extension_warning"), |
|
58 |
Messages.getText("select_an_option"), |
|
59 |
JOptionPane.YES_NO_OPTION); |
|
60 |
if (resp!=JOptionPane.OK_OPTION){ |
|
61 |
return; |
|
62 |
} |
|
63 |
|
|
64 |
GvSIGFolders folders = new GvSIGFolders(); |
|
65 |
try { |
|
66 |
PluginServices.getMDIManager().addCentredWindow( |
|
67 |
new InstallPackageWindow(folders.getApplicationFolder(), |
|
68 |
folders.getPluginsFolder(), folders.getInstallFolder())); |
|
69 |
} catch (Exception e) { |
|
70 |
LOG.error("Error creating the wizard to install a package ", e); |
|
71 |
} |
|
72 |
} |
|
73 |
|
|
74 |
public void initialize() { |
|
75 |
|
|
76 |
// TODO: move to user preferences or an external configuration file |
|
77 |
String packageDownloadURL = |
|
78 |
"http://gvsig-desktop.forge.osor.eu/gvSIG-desktop/dists/"+(new Version()).getFormat()+"/packages.gvspki"; |
|
79 |
|
|
80 |
try { |
|
81 |
|
|
82 |
// InitializeLibraries.initialize(); |
|
83 |
new DefaultLibrariesInitializer(this.getClass().getClassLoader()).fullInitialize(); |
|
84 |
|
|
85 |
|
|
86 |
SwingInstallerLocator.getSwingInstallerManager() |
|
87 |
.setDefaultDownloadURL(new URL(packageDownloadURL)); |
|
88 |
} catch (MalformedURLException e) { |
|
89 |
LOG.error( |
|
90 |
"Error creating the default packages download URL pointing to" |
|
91 |
+ packageDownloadURL, e); |
|
92 |
} |
|
93 |
} |
|
94 |
|
|
95 |
public boolean isEnabled() { |
|
96 |
return true; |
|
97 |
} |
|
98 |
|
|
99 |
public boolean isVisible() { |
|
100 |
return true; |
|
101 |
} |
|
102 |
|
|
103 |
} |
|
0 | 104 |
tags/v_1_12_0_Build_1402/org.gvsig.installer.app.extension/src/main/java/org/gvsig/installer/app/extension/execution/InstallPackageWindow.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.awt.BorderLayout; |
|
31 |
import java.awt.Dimension; |
|
32 |
import java.io.File; |
|
33 |
|
|
34 |
import javax.swing.JPanel; |
|
35 |
|
|
36 |
import org.gvsig.i18n.Messages; |
|
37 |
import org.gvsig.installer.app.extension.utils.WindowInstallerListener; |
|
38 |
import org.gvsig.installer.swing.api.SwingInstallerLocator; |
|
39 |
import org.gvsig.installer.swing.api.execution.AbstractInstallPackageWizard; |
|
40 |
import org.gvsig.installer.swing.api.execution.InstallPackageWizardException; |
|
41 |
import org.gvsig.tools.locator.LocatorException; |
|
42 |
|
|
43 |
import com.iver.andami.ui.mdiManager.IWindow; |
|
44 |
import com.iver.andami.ui.mdiManager.WindowInfo; |
|
45 |
|
|
46 |
/** |
|
47 |
* @author <a href="mailto:jpiera@gvsig.org">Jorge Piera Llodrá</a> |
|
48 |
*/ |
|
49 |
public class InstallPackageWindow extends JPanel implements IWindow { |
|
50 |
|
|
51 |
private static final long serialVersionUID = 4719868181091291809L; |
|
52 |
WindowInfo windowInfo = null; |
|
53 |
|
|
54 |
public InstallPackageWindow(File applicationFolder, File pluginsFolder, |
|
55 |
File installFolder) throws LocatorException, |
|
56 |
InstallPackageWizardException { |
|
57 |
super(); |
|
58 |
AbstractInstallPackageWizard installPackageWizard = |
|
59 |
SwingInstallerLocator.getSwingInstallerManager() |
|
60 |
.createInstallPackageWizard(applicationFolder, pluginsFolder, |
|
61 |
installFolder); |
|
62 |
installPackageWizard |
|
63 |
.setWizardActionListener(new WindowInstallerListener(this)); |
|
64 |
this.setLayout(new BorderLayout()); |
|
65 |
add(installPackageWizard, BorderLayout.CENTER); |
|
66 |
} |
|
67 |
|
|
68 |
public WindowInfo getWindowInfo() { |
|
69 |
if (windowInfo == null) { |
|
70 |
windowInfo = |
|
71 |
new WindowInfo(WindowInfo.MODELESSDIALOG |
|
72 |
| WindowInfo.ICONIFIABLE | WindowInfo.RESIZABLE); |
|
73 |
Dimension dim = getPreferredSize(); |
|
74 |
windowInfo.setWidth((int) dim.getWidth()); |
|
75 |
windowInfo.setHeight((int) dim.getHeight()); |
|
76 |
windowInfo.setTitle(Messages.getText("install_package")); |
|
77 |
} |
|
78 |
return windowInfo; |
|
79 |
} |
|
80 |
|
|
81 |
public Object getWindowProfile() { |
|
82 |
return WindowInfo.DIALOG_PROFILE; |
|
83 |
} |
|
84 |
|
|
85 |
} |
|
0 | 86 |
tags/v_1_12_0_Build_1402/org.gvsig.installer.app.extension/src/main/java/org/gvsig/installer/app/extension/creation/MakePluginPackageExtension.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.installer.app.extension.GvSIGFolders; |
|
31 |
import org.gvsig.installer.swing.api.SwingInstallerLocator; |
|
32 |
import org.slf4j.Logger; |
|
33 |
import org.slf4j.LoggerFactory; |
|
34 |
|
|
35 |
import com.iver.andami.PluginServices; |
|
36 |
import com.iver.andami.plugins.Extension; |
|
37 |
import com.iver.cit.gvsig.Version; |
|
38 |
|
|
39 |
/** |
|
40 |
* @author <a href="mailto:jpiera@gvsig.org">Jorge Piera Llodrá</a> |
|
41 |
*/ |
|
42 |
public class MakePluginPackageExtension extends Extension { |
|
43 |
|
|
44 |
private static final Logger LOG = LoggerFactory |
|
45 |
.getLogger(MakePluginPackageExtension.class); |
|
46 |
|
|
47 |
public void execute(String actionCommand) { |
|
48 |
GvSIGFolders folders = new GvSIGFolders(); |
|
49 |
|
|
50 |
try { |
|
51 |
PluginServices.getMDIManager().addCentredWindow( |
|
52 |
new MakePluginPackageWindow(folders.getApplicationFolder(), |
|
53 |
folders.getPluginsFolder(), folders.getInstallFolder())); |
|
54 |
} catch (Exception e) { |
|
55 |
LOG.error("Error creating teh wizard to create an installer ", e); |
|
56 |
} |
|
57 |
} |
|
58 |
|
|
59 |
public void initialize() { |
|
60 |
} |
|
61 |
|
|
62 |
@Override |
|
63 |
public void postInitialize() { |
|
64 |
super.postInitialize(); |
|
65 |
//Version version = ApplicationLocator.getManager().getVersion(); |
|
66 |
SwingInstallerLocator.getSwingInstallerManager().setApplicationVersion( |
|
67 |
Version.format()); |
|
68 |
} |
|
69 |
|
|
70 |
public boolean isEnabled() { |
|
71 |
return true; |
|
72 |
} |
|
73 |
|
|
74 |
public boolean isVisible() { |
|
75 |
return true; |
|
76 |
} |
|
77 |
|
|
78 |
} |
|
0 | 79 |
tags/v_1_12_0_Build_1402/org.gvsig.installer.app.extension/src/main/java/org/gvsig/installer/app/extension/creation/MakePluginPackageWindow.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.awt.BorderLayout; |
|
31 |
import java.awt.Dimension; |
|
32 |
import java.io.File; |
|
33 |
|
|
34 |
import javax.swing.JPanel; |
|
35 |
|
|
36 |
import org.gvsig.installer.app.extension.utils.WindowInstallerListener; |
|
37 |
import org.gvsig.installer.swing.api.SwingInstallerLocator; |
|
38 |
import org.gvsig.installer.swing.api.creation.MakePluginPackageWizard; |
|
39 |
import org.gvsig.installer.swing.api.creation.MakePluginPackageWizardException; |
|
40 |
import org.gvsig.tools.locator.LocatorException; |
|
41 |
|
|
42 |
import org.gvsig.i18n.Messages; |
|
43 |
import com.iver.andami.ui.mdiManager.IWindow; |
|
44 |
import com.iver.andami.ui.mdiManager.WindowInfo; |
|
45 |
|
|
46 |
/** |
|
47 |
* @author <a href="mailto:jpiera@gvsig.org">Jorge Piera Llodrá</a> |
|
48 |
*/ |
|
49 |
public class MakePluginPackageWindow extends JPanel implements IWindow { |
|
50 |
|
|
51 |
private static final long serialVersionUID = 3423389124323013058L; |
|
52 |
WindowInfo windowInfo = null; |
|
53 |
|
|
54 |
public MakePluginPackageWindow(File applicationFolder, File pluginsFolder, |
|
55 |
File installFolder) throws LocatorException, |
|
56 |
MakePluginPackageWizardException { |
|
57 |
super(); |
|
58 |
MakePluginPackageWizard makePluginPackageWizard = |
|
59 |
SwingInstallerLocator.getSwingInstallerManager() |
|
60 |
.createMakePluginPackageWizard(applicationFolder, |
|
61 |
pluginsFolder, installFolder); |
|
62 |
makePluginPackageWizard |
|
63 |
.setWizardActionListener(new WindowInstallerListener(this)); |
|
64 |
this.setLayout(new BorderLayout()); |
|
65 |
add(makePluginPackageWizard, BorderLayout.CENTER); |
|
66 |
} |
|
67 |
|
|
68 |
public WindowInfo getWindowInfo() { |
|
69 |
if (windowInfo == null) { |
|
70 |
windowInfo = |
|
71 |
new WindowInfo(WindowInfo.MODELESSDIALOG |
|
72 |
| WindowInfo.ICONIFIABLE | WindowInfo.RESIZABLE); |
|
73 |
Dimension dim = getPreferredSize(); |
|
74 |
windowInfo.setWidth((int) dim.getWidth()); |
|
75 |
windowInfo.setHeight((int) dim.getHeight()); |
|
76 |
windowInfo.setTitle(Messages.getText("make_plugin_package")); |
|
77 |
} |
|
78 |
return windowInfo; |
|
79 |
} |
|
80 |
|
|
81 |
public Object getWindowProfile() { |
|
82 |
return WindowInfo.DIALOG_PROFILE; |
|
83 |
} |
|
84 |
} |
|
0 | 85 |
tags/v_1_12_0_Build_1402/org.gvsig.installer.app.extension/src/main/resources/locale/text.properties | ||
---|---|---|
1 |
make_plugin_package=Crear paquete instalaci?n de plugin |
|
2 |
make_plugin_package_description=Crea un paquete de instalaci?n de un plugin instalado |
|
3 |
install_package=Administrador de complementos |
|
4 |
install_package_description=instala un nuevo paquete (plugin, traducciones, tema, etc.) en gvSIG |
|
5 |
install_package_extension_warning=Herramienta en desarrollo no exenta de fallos. ?Desea continuar? |
|
6 |
select_an_option=Seleccione una opci?n |
|
0 | 7 |
tags/v_1_12_0_Build_1402/org.gvsig.installer.app.extension/src/main/resources/locale/text_en.properties | ||
---|---|---|
1 |
make_plugin_package=Create plugin installation package |
|
2 |
make_plugin_package_description=Create an installation package from an already installed plugin |
|
3 |
install_package=Add-ons manager |
|
4 |
install_package_description=Installs a new package (plugin, translations, theme, etc.) in gvSIG |
|
5 |
install_package_extension_warning=Tool under development. It may contain errors. Continue anyway? |
|
6 |
select_an_option=Select an Option |
|
0 | 7 |
tags/v_1_12_0_Build_1402/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="com.iver.cit.gvsig"/> |
|
5 |
<resourceBundle name="text"/> |
|
6 |
<extensions> |
|
7 |
<extension class-name="org.gvsig.installer.app.extension.creation.MakePluginPackageExtension" |
|
8 |
description="This extension is used to create a bundle for a plugin package from the current gvSIG application." |
|
9 |
active="false"> |
|
10 |
<menu text="tools/Development/make_plugin_package" |
|
11 |
tooltip="make_plugin_package_description" |
|
12 |
action-command="" |
|
13 |
position="4998" /> |
|
14 |
</extension> |
|
15 |
<extension class-name="org.gvsig.installer.app.extension.execution.InstallPackageExtension" |
|
16 |
description="This extension is used to install a package from a bundle in gvSIG" |
|
17 |
active="true"> |
|
18 |
<menu text="tools/install_package" |
|
19 |
tooltip="install_package_description" |
|
20 |
action-command="" |
|
21 |
position="4999" /> |
|
22 |
</extension> |
|
23 |
</extensions> |
|
24 |
</plugin-config> |
|
0 | 25 |
tags/v_1_12_0_Build_1402/org.gvsig.installer.app.extension/src/main/resources/config/package.info | ||
---|---|---|
1 |
|
|
2 |
state=devel |
|
3 |
name=Add-ons manager |
|
4 |
official=true |
|
5 |
code=org.gvsig.installer.app.extension |
|
6 |
operating-system=all |
|
7 |
architecture=all |
|
8 |
java-version=j1_5 |
|
9 |
gvSIG-version=1.11 |
|
10 |
version=1.0.1 |
|
11 |
type=plugin |
|
12 |
build=1 |
|
13 |
description= |
|
14 |
model-version=1.0.0 |
|
15 |
|
tags/v_1_12_0_Build_1402/org.gvsig.installer.app.extension/.settings/org.eclipse.jdt.core.prefs | ||
---|---|---|
1 |
#Wed Jan 26 12:19:55 CET 2011 |
|
2 |
eclipse.preferences.version=1 |
|
3 |
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled |
|
4 |
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 |
|
5 |
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve |
|
6 |
org.eclipse.jdt.core.compiler.compliance=1.6 |
|
7 |
org.eclipse.jdt.core.compiler.debug.lineNumber=generate |
|
8 |
org.eclipse.jdt.core.compiler.debug.localVariable=generate |
|
9 |
org.eclipse.jdt.core.compiler.debug.sourceFile=generate |
|
10 |
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error |
|
11 |
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error |
|
12 |
org.eclipse.jdt.core.compiler.source=1.6 |
|
0 | 13 |
tags/v_1_12_0_Build_1402/org.gvsig.installer.app.extension/build.xml | ||
---|---|---|
1 |
<project name="Generar extension en Andami" default="generate-without-source" basedir="."> |
|
2 |
<description> |
|
3 |
Instala el plugin de instalaciĆ³n de gvSIG en Andami. |
|
4 |
</description> |
|
5 |
<!-- set global properties for this build --> |
|
6 |
<property name="src" location="src"/> |
|
7 |
<property name="build" location="target/classes"/> |
|
8 |
<property name="dist" location="dist-temp"/> |
|
9 |
<property name="plugin" value="org.gvsig.installer.app.extension"/> |
|
10 |
<property name="extension-dir" location="../_fwAndami/gvSIG/extensiones"/> |
|
11 |
<property name="andami-dir" location="../_fwAndami"/> |
|
12 |
<property name="gvSIG_lib" value="${extension-dir}/com.iver.cit.gvsig/lib"/> |
|
13 |
<property name="mydist" location="dist"/> |
|
14 |
<import file="../binaries/ant/utilities.xml"/> |
|
15 |
|
|
16 |
<target name="init"> |
|
17 |
<!-- Create the time stamp --> |
|
18 |
<tstamp/> |
|
19 |
<!-- Create the build directory structure used by compile --> |
|
20 |
<mkdir dir="${build}"/> |
|
21 |
<mkdir dir="${dist}"/> |
|
22 |
<mkdir dir="${dist}/lib"/> |
|
23 |
|
|
24 |
</target> |
|
25 |
|
|
26 |
<target name="batch-build" |
|
27 |
description="compile the sources, create the jar file" |
|
28 |
depends="init,compile,create-jar,copy-data-files,move-to-andami"> |
|
29 |
</target> |
|
30 |
|
|
31 |
<target name="compile" description="compile the source" > |
|
32 |
<antcall target="gvSIG-import-build-number"/> |
|
33 |
<!-- Compile the Java code from ${src} to ${build} --> |
|
34 |
<mkdir dir="${build}" /> |
|
35 |
<loadEclipseClasspath project="${basedir}"/> |
|
36 |
<gvSIG-javac |
|
37 |
classpath="${eclipseClasspath}" |
|
38 |
/> |
|
39 |
</target> |
|
40 |
|
|
41 |
<target name="generate-without-source" |
|
42 |
description="generate the distribution without the source file" |
|
43 |
depends="init,create-jar,copy-data-files,move-to-andami"> |
|
44 |
|
|
45 |
</target> |
|
46 |
|
|
47 |
<target name="create-jar" |
|
48 |
description="Creates the plugin jar"> |
|
49 |
<jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}"/> |
|
50 |
</target> |
|
51 |
|
|
52 |
<target name="copy-data-files" |
|
53 |
depends="make-package-info"> |
|
54 |
<copy todir="${dist}"> |
|
55 |
<fileset dir="./src/main/resources/config" includes="**/**"/> |
|
56 |
<fileset dir="./src/main/resources/locale" includes="**/**"/> |
|
57 |
</copy> |
|
58 |
<copy todir="${dist}/lib"> |
|
59 |
<fileset dir="./lib" includes="**/**"/> |
|
60 |
</copy> |
|
61 |
|
|
62 |
</target> |
|
63 |
|
|
64 |
|
|
65 |
<target name="move-to-andami"> |
|
66 |
<move todir="${extension-dir}/${plugin}/"> |
|
67 |
<fileset dir="${dist}" includes="**/**"/> |
|
68 |
</move> |
|
69 |
</target> |
|
70 |
|
|
71 |
<target name="clean"> |
|
72 |
<delete dir="${dist}" failonerror="no"/> |
|
73 |
<delete dir="${build}" failonerror="no"/> |
|
74 |
</target> |
|
75 |
|
|
76 |
<target name="make-package-info"> |
|
77 |
<echo file="src/main/resources/config/package.info"> |
|
78 |
state=devel |
|
79 |
name=Add-ons manager |
|
80 |
official=true |
|
81 |
code=${plugin} |
|
82 |
operating-system=all |
|
83 |
architecture=all |
|
84 |
java-version=j1_5 |
|
85 |
gvSIG-version=1.11 |
|
86 |
version=1.0.1 |
|
87 |
type=plugin |
|
88 |
build=1 |
|
89 |
description= |
|
90 |
model-version=1.0.0 |
|
91 |
</echo> |
|
92 |
</target> |
|
93 |
</project> |
|
0 | 94 |
tags/v_1_12_0_Build_1402/org.gvsig.installer.app.extension/.classpath | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<classpath> |
|
3 |
<classpathentry kind="src" path="src/main/java"/> |
|
4 |
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/> |
|
5 |
<classpathentry combineaccessrules="false" kind="src" path="/appgvSIG"/> |
|
6 |
<classpathentry kind="lib" path="/_fwAndami/lib/gvsig-i18n.jar" sourcepath="/libInternationalization/src"/> |
|
7 |
<classpathentry combineaccessrules="false" kind="src" path="/_fwAndami"/> |
|
8 |
<classpathentry kind="lib" path="/_fwAndami/lib/org.gvsig.installer.lib.api-1.0.1-SNAPSHOT.jar"/> |
|
9 |
<classpathentry kind="lib" path="/_fwAndami/lib/org.gvsig.installer.swing.api-1.0.1-SNAPSHOT.jar"/> |
|
10 |
<classpathentry kind="lib" path="/_fwAndami/lib/org.gvsig.tools.swing.api-3.0.0-SNAPSHOT.jar"/> |
|
11 |
<classpathentry kind="lib" path="/_fwAndami/lib/slf4j-api-1.5.5.jar"/> |
|
12 |
<classpathentry kind="lib" path="/_fwAndami/lib/org.gvsig.tools.lib-3.0.0-SNAPSHOT.jar"/> |
|
13 |
<classpathentry kind="output" path="target/classes"/> |
|
14 |
</classpath> |
|
0 | 15 |
Also available in: Unified diff