Revision 1699
org.gvsig.scripting/tags/org.gvsig.scripting-2.3.183/org.gvsig.scripting.app/org.gvsig.scripting.app.mainplugin/buildNumber.properties | ||
---|---|---|
1 |
#Tue Jul 19 08:31:47 CEST 2022 |
|
2 |
buildNumber=264 |
org.gvsig.scripting/tags/org.gvsig.scripting-2.3.183/org.gvsig.scripting.app/org.gvsig.scripting.app.mainplugin/src/main/assembly/gvsig-plugin-package.xml | ||
---|---|---|
1 |
<assembly> |
|
2 |
<id>gvsig-plugin-package</id> |
|
3 |
<formats> |
|
4 |
<format>zip</format> |
|
5 |
</formats> |
|
6 |
<baseDirectory>${project.artifactId}</baseDirectory> |
|
7 |
<includeBaseDirectory>true</includeBaseDirectory> |
|
8 |
<files> |
|
9 |
<file> |
|
10 |
<source>target/${project.artifactId}-${project.version}.jar</source> |
|
11 |
<outputDirectory>lib</outputDirectory> |
|
12 |
</file> |
|
13 |
<file> |
|
14 |
<source>target/package.info</source> |
|
15 |
</file> |
|
16 |
</files> |
|
17 |
|
|
18 |
<fileSets> |
|
19 |
<fileSet> |
|
20 |
<directory>src/main/resources-plugin</directory> |
|
21 |
<outputDirectory>.</outputDirectory> |
|
22 |
</fileSet> |
|
23 |
<fileSet> |
|
24 |
<directory>target/abeille</directory> |
|
25 |
<outputDirectory>.</outputDirectory> |
|
26 |
</fileSet> |
|
27 |
</fileSets> |
|
28 |
|
|
29 |
<dependencySets> |
|
30 |
|
|
31 |
<dependencySet> |
|
32 |
<useProjectArtifact>false</useProjectArtifact> |
|
33 |
<useTransitiveDependencies>false</useTransitiveDependencies> |
|
34 |
<outputDirectory>lib</outputDirectory> |
|
35 |
<includes> |
|
36 |
<!-- |
|
37 |
Plugin libraries |
|
38 |
--> |
|
39 |
<include>org.ini4j:ini4j</include> |
|
40 |
<include>net.sourceforge.thinlet:thinlet</include> |
|
41 |
<include>org.gvsig:org.gvsig.scripting.thing</include> |
|
42 |
<include>org.gvsig:org.gvsig.scripting.lib.api</include> |
|
43 |
<include>org.gvsig:org.gvsig.scripting.swing.api</include> |
|
44 |
<include>org.gvsig:org.gvsig.scripting.lib.impl</include> |
|
45 |
<include>org.gvsig:org.gvsig.scripting.swing.impl</include> |
|
46 |
<include>org.apache.tika:tika-core</include> |
|
47 |
|
|
48 |
<!-- |
|
49 |
Utility libraries |
|
50 |
--> |
|
51 |
<!-- JOpenDocument --> |
|
52 |
<include>org.jopendocument:jOpenDocument</include> |
|
53 |
|
|
54 |
<!-- CSSBox webbrowser --> |
|
55 |
<include>net.sf.cssbox:cssbox</include> |
|
56 |
<include>net.sf.cssbox:swingbox</include> |
|
57 |
<include>net.sf.cssbox:jstyleparser</include> |
|
58 |
<include>net.sourceforge.nekohtml:nekohtml</include> |
|
59 |
<include>org.antlr:antlr-runtime</include> |
|
60 |
|
|
61 |
<!-- |
|
62 |
Script engines libraries |
|
63 |
--> |
|
64 |
|
|
65 |
<include>org.codehaus.groovy:groovy-all</include> |
|
66 |
|
|
67 |
<!-- |
|
68 |
<include>org.renjin:renjin-script-engine:jar:jar-with-dependencies</include> |
|
69 |
--> |
|
70 |
|
|
71 |
<include>org.python:${jython.artifactId}</include> |
|
72 |
<include>com.github.tbekolay.jnumeric:jnumeric</include> |
|
73 |
|
|
74 |
</includes> |
|
75 |
</dependencySet> |
|
76 |
|
|
77 |
<dependencySet> |
|
78 |
<useProjectArtifact>false</useProjectArtifact> |
|
79 |
<useTransitiveDependencies>true</useTransitiveDependencies> |
|
80 |
<outputDirectory>lib</outputDirectory> |
|
81 |
<includes> |
|
82 |
<!-- |
|
83 |
JGit support runtime libraries |
|
84 |
--> |
|
85 |
<include>org.eclipse.jgit:org.eclipse.jgit</include> |
|
86 |
<include>com.jcraft:jsch</include> |
|
87 |
<include>com.googlecode.javaewah:JavaEWAH</include> |
|
88 |
<include>org.apache.httpcomponents:httpclient</include> |
|
89 |
<include>org.apache.httpcomponents:httpcore</include> |
|
90 |
</includes> |
|
91 |
</dependencySet> |
|
92 |
|
|
93 |
<dependencySet> |
|
94 |
<useProjectArtifact>false</useProjectArtifact> |
|
95 |
<useTransitiveDependencies>true</useTransitiveDependencies> |
|
96 |
<outputDirectory>lib</outputDirectory> |
|
97 |
<includes> |
|
98 |
<!-- |
|
99 |
ICEPDF support runtime libraries |
|
100 |
--> |
|
101 |
<include>org.icepdf.os:icepdf-viewer</include> |
|
102 |
<include>org.icepdf.os:icepdf-core</include> |
|
103 |
</includes> |
|
104 |
</dependencySet> |
|
105 |
|
|
106 |
<dependencySet> |
|
107 |
<useProjectArtifact>false</useProjectArtifact> |
|
108 |
<useTransitiveDependencies>true</useTransitiveDependencies> |
|
109 |
<outputDirectory>lib</outputDirectory> |
|
110 |
<includes> |
|
111 |
<!-- |
|
112 |
java-diff-utils libraries |
|
113 |
https://github.com/java-diff-utils/java-diff-utils |
|
114 |
--> |
|
115 |
<include>com.sksamuel.diff:diff</include> |
|
116 |
|
|
117 |
</includes> |
|
118 |
</dependencySet> |
|
119 |
|
|
120 |
<dependencySet> |
|
121 |
<useProjectArtifact>false</useProjectArtifact> |
|
122 |
<useTransitiveDependencies>true</useTransitiveDependencies> |
|
123 |
<outputDirectory>lib</outputDirectory> |
|
124 |
<includes> |
|
125 |
<!-- |
|
126 |
flexmark-java, Markdown support libraries |
|
127 |
--> |
|
128 |
<include>com.vladsch.flexmark:flexmark-all</include> |
|
129 |
<include>com.vladsch.flexmark:flexmark</include> |
|
130 |
<include>com.vladsch.flexmark:flexmark-ext-abbreviation</include> |
|
131 |
<include>com.vladsch.flexmark:flexmark-util</include> |
|
132 |
<include>com.vladsch.flexmark:flexmark-ext-admonition</include> |
|
133 |
<include>com.vladsch.flexmark:flexmark-ext-anchorlink</include> |
|
134 |
<include>com.vladsch.flexmark:flexmark-ext-aside</include> |
|
135 |
<include>com.vladsch.flexmark:flexmark-ext-attributes</include> |
|
136 |
<include>com.vladsch.flexmark:flexmark-ext-autolink</include> |
|
137 |
<include>org.nibor.autolink:autolink</include> |
|
138 |
<include>com.vladsch.flexmark:flexmark-ext-definition</include> |
|
139 |
<include>com.vladsch.flexmark:flexmark-ext-emoji</include> |
|
140 |
<include>com.vladsch.flexmark:flexmark-ext-enumerated-reference</include> |
|
141 |
<include>com.vladsch.flexmark:flexmark-ext-escaped-character</include> |
|
142 |
<include>com.vladsch.flexmark:flexmark-ext-footnotes</include> |
|
143 |
<include>com.vladsch.flexmark:flexmark-ext-gfm-issues</include> |
|
144 |
<include>com.vladsch.flexmark:flexmark-ext-gfm-strikethrough</include> |
|
145 |
<include>com.vladsch.flexmark:flexmark-ext-gfm-tasklist</include> |
|
146 |
<include>com.vladsch.flexmark:flexmark-ext-gfm-users</include> |
|
147 |
<include>com.vladsch.flexmark:flexmark-ext-gitlab</include> |
|
148 |
<include>com.vladsch.flexmark:flexmark-ext-jekyll-front-matter</include> |
|
149 |
<include>com.vladsch.flexmark:flexmark-ext-jekyll-tag</include> |
|
150 |
<include>com.vladsch.flexmark:flexmark-ext-media-tags</include> |
|
151 |
<include>com.vladsch.flexmark:flexmark-ext-macros</include> |
|
152 |
<include>com.vladsch.flexmark:flexmark-ext-ins</include> |
|
153 |
<include>com.vladsch.flexmark:flexmark-ext-xwiki-macros</include> |
|
154 |
<include>com.vladsch.flexmark:flexmark-ext-superscript</include> |
|
155 |
<include>com.vladsch.flexmark:flexmark-ext-tables</include> |
|
156 |
<include>com.vladsch.flexmark:flexmark-ext-toc</include> |
|
157 |
<include>com.vladsch.flexmark:flexmark-ext-typographic</include> |
|
158 |
<include>com.vladsch.flexmark:flexmark-ext-wikilink</include> |
|
159 |
<include>com.vladsch.flexmark:flexmark-ext-yaml-front-matter</include> |
|
160 |
<include>com.vladsch.flexmark:flexmark-ext-youtube-embedded</include> |
|
161 |
<include>com.vladsch.flexmark:flexmark-html2md-converter</include> |
|
162 |
<include>org.jsoup:jsoup</include> |
|
163 |
<include>com.vladsch.flexmark:flexmark-jira-converter</include> |
|
164 |
<include>com.vladsch.flexmark:flexmark-pdf-converter</include> |
|
165 |
<include>com.openhtmltopdf:openhtmltopdf-core</include> |
|
166 |
<include>com.openhtmltopdf:openhtmltopdf-pdfbox</include> |
|
167 |
<include>org.apache.pdfbox:xmpbox</include> |
|
168 |
<include>de.rototor.pdfbox:graphics2d</include> |
|
169 |
<include>com.openhtmltopdf:openhtmltopdf-rtl-support</include> |
|
170 |
<include>com.ibm.icu:icu4j</include> |
|
171 |
<include>com.openhtmltopdf:openhtmltopdf-jsoup-dom-converter</include> |
|
172 |
<include>com.vladsch.flexmark:flexmark-profile-pegdown</include> |
|
173 |
<include>com.vladsch.flexmark:flexmark-util-ast</include> |
|
174 |
<include>org.jetbrains:annotations</include> |
|
175 |
<include>com.vladsch.flexmark:flexmark-util-builder</include> |
|
176 |
<include>com.vladsch.flexmark:flexmark-util-collection</include> |
|
177 |
<include>com.vladsch.flexmark:flexmark-util-data</include> |
|
178 |
<include>com.vladsch.flexmark:flexmark-util-dependency</include> |
|
179 |
<include>com.vladsch.flexmark:flexmark-util-format</include> |
|
180 |
<include>com.vladsch.flexmark:flexmark-util-html</include> |
|
181 |
<include>com.vladsch.flexmark:flexmark-util-misc</include> |
|
182 |
<include>com.vladsch.flexmark:flexmark-util-options</include> |
|
183 |
<include>com.vladsch.flexmark:flexmark-util-sequence</include> |
|
184 |
<include>com.vladsch.flexmark:flexmark-util-visitor</include> |
|
185 |
<include>com.vladsch.flexmark:flexmark-youtrack-converter</include> |
|
186 |
<include>org.apache.pdfbox:pdfbox</include> |
|
187 |
<include>org.apache.pdfbox:fontbox</include> |
|
188 |
<include>commons-logging:commons-logging</include> |
|
189 |
</includes> |
|
190 |
</dependencySet> |
|
191 |
|
|
192 |
</dependencySets> |
|
193 |
|
|
194 |
</assembly> |
org.gvsig.scripting/tags/org.gvsig.scripting-2.3.183/org.gvsig.scripting.app/org.gvsig.scripting.app.mainplugin/src/main/java/org/gvsig/scripting/app/extension/ScriptingMain.java | ||
---|---|---|
1 |
package org.gvsig.scripting.app.extension; |
|
2 |
|
|
3 |
import java.io.File; |
|
4 |
import java.net.URL; |
|
5 |
import java.util.ArrayList; |
|
6 |
import java.util.HashMap; |
|
7 |
import java.util.List; |
|
8 |
import java.util.Map; |
|
9 |
import javax.swing.UIManager; |
|
10 |
import org.apache.commons.cli.CommandLine; |
|
11 |
import org.apache.commons.cli.CommandLineParser; |
|
12 |
import org.apache.commons.cli.Options; |
|
13 |
import org.apache.commons.cli.PosixParser; |
|
14 |
import org.apache.commons.io.FileUtils; |
|
15 |
import org.gvsig.about.AboutLocator; |
|
16 |
import org.gvsig.about.AboutManager; |
|
17 |
import org.gvsig.scripting.ScriptingManager; |
|
18 |
import org.gvsig.scripting.swing.api.ScriptingSwingLocator; |
|
19 |
import org.gvsig.scripting.swing.api.ScriptingUIManager; |
|
20 |
import org.gvsig.tools.ToolsLocator; |
|
21 |
import org.gvsig.tools.exception.BaseException; |
|
22 |
import org.gvsig.tools.library.impl.DefaultLibrariesInitializer; |
|
23 |
import org.gvsig.tools.packageutils.PackageInfo; |
|
24 |
import org.gvsig.tools.packageutils.PackageManager; |
|
25 |
import org.gvsig.tools.packageutils.Version; |
|
26 |
|
|
27 |
/** |
|
28 |
* |
|
29 |
* @author jjdelcerro |
|
30 |
*/ |
|
31 |
public class ScriptingMain { |
|
32 |
|
|
33 |
private File applicationFolder = null; |
|
34 |
private Version applicacionVersion = null; |
|
35 |
private List<File> pluginsFolder = null; |
|
36 |
private File applicationHomeFolder; |
|
37 |
private File installFolder; |
|
38 |
private int applicacionBuildNumber; |
|
39 |
|
|
40 |
private ScriptingUtils utils; |
|
41 |
|
|
42 |
public static void main(String args[]) throws Exception { |
|
43 |
ScriptingMain main = new ScriptingMain(); |
|
44 |
main.doMain(args); |
|
45 |
} |
|
46 |
|
|
47 |
public File getApplicationFolder() { |
|
48 |
if (applicationFolder == null) { |
|
49 |
applicationFolder = new File(System.getProperty("user.dir")); |
|
50 |
} |
|
51 |
return applicationFolder; |
|
52 |
} |
|
53 |
|
|
54 |
public File getApplicationHomeFolder() { |
|
55 |
if (applicationHomeFolder == null) { |
|
56 |
applicationHomeFolder = new File(System.getProperty("user.home")); |
|
57 |
} |
|
58 |
return applicationHomeFolder; |
|
59 |
} |
|
60 |
|
|
61 |
public File getInstallFolder() { |
|
62 |
if (installFolder == null) { |
|
63 |
installFolder = FileUtils.getFile(getApplicationFolder(), "install"); |
|
64 |
} |
|
65 |
return this.installFolder; |
|
66 |
} |
|
67 |
|
|
68 |
public Version getApplicationVersion() throws BaseException { |
|
69 |
if (applicacionVersion == null) { |
|
70 |
PackageManager packageManager = ToolsLocator.getPackageManager(); |
|
71 |
PackageInfo packageInfo = packageManager.createPackageInfo( |
|
72 |
new File(this.applicationFolder, "package.info") |
|
73 |
); |
|
74 |
applicacionVersion = (Version) packageInfo.getVersion(); |
|
75 |
} |
|
76 |
return applicacionVersion; |
|
77 |
} |
|
78 |
|
|
79 |
public int getApplicationBuildNumber() throws BaseException { |
|
80 |
if (applicacionBuildNumber == 0) { |
|
81 |
applicacionBuildNumber = getApplicationVersion().getBuild(); |
|
82 |
} |
|
83 |
return this.applicacionBuildNumber; |
|
84 |
} |
|
85 |
|
|
86 |
public List<File> getPluginsFolder() { |
|
87 |
List<File> folders = new ArrayList<>(); |
|
88 |
folders.add(FileUtils.getFile(this.getApplicationFolder(), "gvSIG", "extensiones")); |
|
89 |
folders.add(FileUtils.getFile(this.getApplicationHomeFolder(), "gvSIG", "installation", "gvSIG", "extensiones")); |
|
90 |
return folders; |
|
91 |
} |
|
92 |
|
|
93 |
public File getPluginHomeFolder() { |
|
94 |
File f = this.getApplicationHomeFolder(); |
|
95 |
f = FileUtils.getFile(f, "gvSIG", "plugins", "org.gvsig.scripting.app.mainplugin"); |
|
96 |
return f; |
|
97 |
} |
|
98 |
|
|
99 |
private void initializeAbout() throws Exception { |
|
100 |
AboutManager aboutManager = AboutLocator.getManager(); |
|
101 |
|
|
102 |
String build = String.valueOf(this.getApplicationBuildNumber()); |
|
103 |
String version = this.getApplicationVersion().toString(); |
|
104 |
|
|
105 |
Map<String, String> gvsig_vars = new HashMap<>(); |
|
106 |
gvsig_vars.put("version", version); |
|
107 |
gvsig_vars.put("build", build); |
|
108 |
aboutManager.setProject( |
|
109 |
"gvSIG Desktop", |
|
110 |
getResource("gvsig.html"), |
|
111 |
null, |
|
112 |
gvsig_vars); |
|
113 |
aboutManager.getProject().set("build", build); |
|
114 |
|
|
115 |
aboutManager.addSponsor( |
|
116 |
"Generalitat Valenciana", |
|
117 |
getResource("gva.html"), |
|
118 |
1); |
|
119 |
|
|
120 |
aboutManager.addDeveloper( |
|
121 |
"gvSIG Asocicion", |
|
122 |
getResource("gvSIG-asociacion.html"), |
|
123 |
2); |
|
124 |
|
|
125 |
} |
|
126 |
|
|
127 |
public void doMain(String args[]) throws Exception { |
|
128 |
|
|
129 |
String lookAndFeel = "com.jgoodies.looks.plastic.PlasticXPLookAndFeel"; |
|
130 |
try { |
|
131 |
UIManager.setLookAndFeel(lookAndFeel); |
|
132 |
} catch(Throwable th) { |
|
133 |
|
|
134 |
} |
|
135 |
|
|
136 |
new DefaultLibrariesInitializer().fullInitialize(); |
|
137 |
|
|
138 |
initializeAbout(); |
|
139 |
|
|
140 |
this.utils = new ScriptingUtils(); |
|
141 |
this.utils.initializaPaths( |
|
142 |
this.getPluginsFolder(), |
|
143 |
this.getInstallFolder(), |
|
144 |
this.getPluginHomeFolder(), |
|
145 |
this.getApplicationVersion().format("%M.%m.%r") |
|
146 |
); |
|
147 |
|
|
148 |
ScriptingUIManager uimanager = ScriptingSwingLocator.getUIManager(); |
|
149 |
ScriptingManager manager = uimanager.getManager(); |
|
150 |
|
|
151 |
Options options = new Options(); |
|
152 |
options.addOption("d", |
|
153 |
"debug", |
|
154 |
false, |
|
155 |
""); |
|
156 |
options.addOption("p", |
|
157 |
"pause", |
|
158 |
false, |
|
159 |
""); |
|
160 |
options.addOption("l", |
|
161 |
"launcher", |
|
162 |
false, |
|
163 |
"Show the launcher window"); |
|
164 |
options.addOption("c", |
|
165 |
"composer", |
|
166 |
false, |
|
167 |
"Show the composer window"); |
|
168 |
options.addOption("r", |
|
169 |
"run", |
|
170 |
true, |
|
171 |
"Run the specified script"); |
|
172 |
options.addOption("h", |
|
173 |
"home", |
|
174 |
true, |
|
175 |
"Specify for the home of the script framework"); |
|
176 |
CommandLineParser parser = new PosixParser(); |
|
177 |
CommandLine line = null; |
|
178 |
boolean runLauncherAtEnd = true; |
|
179 |
|
|
180 |
line = parser.parse(options, args); |
|
181 |
if (line.hasOption("home")) { |
|
182 |
manager.setHomeFolder(new File(line.getOptionValue("home"))); |
|
183 |
} |
|
184 |
if (line.hasOption("composer")) { |
|
185 |
runLauncherAtEnd = false; |
|
186 |
utils.runComposer(); |
|
187 |
} |
|
188 |
if (line.hasOption("run")) { |
|
189 |
runLauncherAtEnd = false; |
|
190 |
utils.runScript(line.getOptionValue("run"), line.getArgs()); |
|
191 |
} |
|
192 |
if( runLauncherAtEnd ) { |
|
193 |
utils.runLauncher(); |
|
194 |
} |
|
195 |
} |
|
196 |
|
|
197 |
private URL getResource(String name) { |
|
198 |
URL resource = this.getClass().getResource(name); |
|
199 |
return resource; |
|
200 |
} |
|
201 |
|
|
202 |
} |
org.gvsig.scripting/tags/org.gvsig.scripting-2.3.183/org.gvsig.scripting.app/org.gvsig.scripting.app.mainplugin/src/main/java/org/gvsig/scripting/app/extension/DataFoldersRecoverPanelView.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
|
|
3 |
<object classname="com.jeta.forms.store.memento.FormPackage"> |
|
4 |
<at name="fileversion"> |
|
5 |
<object classname="com.jeta.forms.store.memento.FormsVersion2"> |
|
6 |
<at name="major">2</at> |
|
7 |
<at name="minor">0</at> |
|
8 |
<at name="sub">0</at> |
|
9 |
</object> |
|
10 |
</at> |
|
11 |
<at name="form"> |
|
12 |
<object classname="com.jeta.forms.store.memento.FormMemento"> |
|
13 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
14 |
<at name="cellconstraints"> |
|
15 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
16 |
<at name="column">1</at> |
|
17 |
<at name="row">1</at> |
|
18 |
<at name="colspan">1</at> |
|
19 |
<at name="rowspan">1</at> |
|
20 |
<at name="halign">default</at> |
|
21 |
<at name="valign">default</at> |
|
22 |
<at name="insets" object="insets">0,0,0,0</at> |
|
23 |
</object> |
|
24 |
</at> |
|
25 |
<at name="componentclass">com.jeta.forms.gui.form.FormComponent</at> |
|
26 |
</super> |
|
27 |
<at name="id">/home/jjdelcerro/datos/devel/org.gvsig.scripting/org.gvsig.scripting.app/org.gvsig.scripting.app.mainplugin/src/main/java/org/gvsig/scripting/app/extension/DataFoldersRecoverPanelView.xml</at> |
|
28 |
<at name="rowspecs">CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE</at> |
|
29 |
<at name="colspecs">FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE</at> |
|
30 |
<at name="components"> |
|
31 |
<object classname="java.util.LinkedList"> |
|
32 |
<item > |
|
33 |
<at name="value"> |
|
34 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
35 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
36 |
<at name="cellconstraints"> |
|
37 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
38 |
<at name="column">2</at> |
|
39 |
<at name="row">2</at> |
|
40 |
<at name="colspan">1</at> |
|
41 |
<at name="rowspan">1</at> |
|
42 |
<at name="halign">default</at> |
|
43 |
<at name="valign">default</at> |
|
44 |
<at name="insets" object="insets">0,0,0,0</at> |
|
45 |
</object> |
|
46 |
</at> |
|
47 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
48 |
</super> |
|
49 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
50 |
<at name="beanclass">com.jeta.forms.components.label.JETALabel</at> |
|
51 |
<at name="beanproperties"> |
|
52 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
53 |
<at name="classname">com.jeta.forms.components.label.JETALabel</at> |
|
54 |
<at name="properties"> |
|
55 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
56 |
<at name="border"> |
|
57 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
58 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
59 |
<at name="name">border</at> |
|
60 |
</super> |
|
61 |
<at name="borders"> |
|
62 |
<object classname="java.util.LinkedList"> |
|
63 |
<item > |
|
64 |
<at name="value"> |
|
65 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
66 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
67 |
<at name="name">border</at> |
|
68 |
</super> |
|
69 |
</object> |
|
70 |
</at> |
|
71 |
</item> |
|
72 |
</object> |
|
73 |
</at> |
|
74 |
</object> |
|
75 |
</at> |
|
76 |
<at name="name">lblMsg1</at> |
|
77 |
<at name="width">583</at> |
|
78 |
<at name="text"><html>Han sido encontradas preferencias de versiones anteriores para algunos complementos.</html></at> |
|
79 |
<at name="fill"> |
|
80 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
81 |
<at name="name">fill</at> |
|
82 |
</object> |
|
83 |
</at> |
|
84 |
<at name="height">14</at> |
|
85 |
</object> |
|
86 |
</at> |
|
87 |
</object> |
|
88 |
</at> |
|
89 |
</object> |
|
90 |
</at> |
|
91 |
</item> |
|
92 |
<item > |
|
93 |
<at name="value"> |
|
94 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
95 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
96 |
<at name="cellconstraints"> |
|
97 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
98 |
<at name="column">2</at> |
|
99 |
<at name="row">4</at> |
|
100 |
<at name="colspan">1</at> |
|
101 |
<at name="rowspan">1</at> |
|
102 |
<at name="halign">default</at> |
|
103 |
<at name="valign">default</at> |
|
104 |
<at name="insets" object="insets">0,0,0,0</at> |
|
105 |
</object> |
|
106 |
</at> |
|
107 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
108 |
</super> |
|
109 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
110 |
<at name="beanclass">com.jeta.forms.components.label.JETALabel</at> |
|
111 |
<at name="beanproperties"> |
|
112 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
113 |
<at name="classname">com.jeta.forms.components.label.JETALabel</at> |
|
114 |
<at name="properties"> |
|
115 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
116 |
<at name="border"> |
|
117 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
118 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
119 |
<at name="name">border</at> |
|
120 |
</super> |
|
121 |
<at name="borders"> |
|
122 |
<object classname="java.util.LinkedList"> |
|
123 |
<item > |
|
124 |
<at name="value"> |
|
125 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
126 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
127 |
<at name="name">border</at> |
|
128 |
</super> |
|
129 |
</object> |
|
130 |
</at> |
|
131 |
</item> |
|
132 |
</object> |
|
133 |
</at> |
|
134 |
</object> |
|
135 |
</at> |
|
136 |
<at name="name">lblMsg2</at> |
|
137 |
<at name="width">583</at> |
|
138 |
<at name="text"><html>Seleccione los complementos para los que desea recuperar las preferencias de versiones anteriores</html></at> |
|
139 |
<at name="fill"> |
|
140 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
141 |
<at name="name">fill</at> |
|
142 |
</object> |
|
143 |
</at> |
|
144 |
<at name="height">14</at> |
|
145 |
</object> |
|
146 |
</at> |
|
147 |
</object> |
|
148 |
</at> |
|
149 |
</object> |
|
150 |
</at> |
|
151 |
</item> |
|
152 |
<item > |
|
153 |
<at name="value"> |
|
154 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
155 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
156 |
<at name="cellconstraints"> |
|
157 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
158 |
<at name="column">2</at> |
|
159 |
<at name="row">6</at> |
|
160 |
<at name="colspan">1</at> |
|
161 |
<at name="rowspan">1</at> |
|
162 |
<at name="halign">default</at> |
|
163 |
<at name="valign">default</at> |
|
164 |
<at name="insets" object="insets">0,0,0,0</at> |
|
165 |
</object> |
|
166 |
</at> |
|
167 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
168 |
</super> |
|
169 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
170 |
<at name="beanclass">javax.swing.JList</at> |
|
171 |
<at name="beanproperties"> |
|
172 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
173 |
<at name="classname">javax.swing.JList</at> |
|
174 |
<at name="properties"> |
|
175 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
176 |
<at name="border"> |
|
177 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
178 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
179 |
<at name="name">border</at> |
|
180 |
</super> |
|
181 |
<at name="borders"> |
|
182 |
<object classname="java.util.LinkedList"> |
|
183 |
<item > |
|
184 |
<at name="value"> |
|
185 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
186 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
187 |
<at name="name">border</at> |
|
188 |
</super> |
|
189 |
</object> |
|
190 |
</at> |
|
191 |
</item> |
|
192 |
</object> |
|
193 |
</at> |
|
194 |
</object> |
|
195 |
</at> |
|
196 |
<at name="scrollableTracksViewportHeight">true</at> |
|
197 |
<at name="scrollableTracksViewportWidth">true</at> |
|
198 |
<at name="name">lstDataFolders</at> |
|
199 |
<at name="width">581</at> |
|
200 |
<at name="items"> |
|
201 |
<object classname="com.jeta.forms.store.properties.ItemsProperty"> |
|
202 |
<at name="name">items</at> |
|
203 |
</object> |
|
204 |
</at> |
|
205 |
<at name="scollBars"> |
|
206 |
<object classname="com.jeta.forms.store.properties.ScrollBarsProperty"> |
|
207 |
<at name="name">scollBars</at> |
|
208 |
<at name="verticalpolicy">20</at> |
|
209 |
<at name="horizontalpolicy">30</at> |
|
210 |
<at name="border"> |
|
211 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
212 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
213 |
<at name="name">border</at> |
|
214 |
</super> |
|
215 |
<at name="borders"> |
|
216 |
<object classname="java.util.LinkedList"> |
|
217 |
<item > |
|
218 |
<at name="value"> |
|
219 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
220 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
221 |
<at name="name">border</at> |
|
222 |
</super> |
|
223 |
</object> |
|
224 |
</at> |
|
225 |
</item> |
|
226 |
</object> |
|
227 |
</at> |
|
228 |
</object> |
|
229 |
</at> |
|
230 |
</object> |
|
231 |
</at> |
|
232 |
<at name="height">289</at> |
|
233 |
</object> |
|
234 |
</at> |
|
235 |
</object> |
|
236 |
</at> |
|
237 |
</object> |
|
238 |
</at> |
|
239 |
</item> |
|
240 |
<item > |
|
241 |
<at name="value"> |
|
242 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
243 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
244 |
<at name="cellconstraints"> |
|
245 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
246 |
<at name="column">2</at> |
|
247 |
<at name="row">22</at> |
|
248 |
<at name="colspan">1</at> |
|
249 |
<at name="rowspan">1</at> |
|
250 |
<at name="halign">default</at> |
|
251 |
<at name="valign">default</at> |
|
252 |
<at name="insets" object="insets">0,0,0,0</at> |
|
253 |
</object> |
|
254 |
</at> |
|
255 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
256 |
</super> |
|
257 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
258 |
<at name="beanclass">javax.swing.JTextField</at> |
|
259 |
<at name="beanproperties"> |
|
260 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
261 |
<at name="classname">javax.swing.JTextField</at> |
|
262 |
<at name="properties"> |
|
263 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
264 |
<at name="border"> |
|
265 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
266 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
267 |
<at name="name">border</at> |
|
268 |
</super> |
|
269 |
<at name="borders"> |
|
270 |
<object classname="java.util.LinkedList"> |
|
271 |
<item > |
|
272 |
<at name="value"> |
|
273 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
274 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
275 |
<at name="name">border</at> |
|
276 |
</super> |
|
277 |
</object> |
|
278 |
</at> |
|
279 |
</item> |
|
280 |
</object> |
|
281 |
</at> |
|
282 |
</object> |
|
283 |
</at> |
|
284 |
<at name="name">txtOldFolder</at> |
|
285 |
<at name="width">583</at> |
|
286 |
<at name="enabled">false</at> |
|
287 |
<at name="height">20</at> |
|
288 |
</object> |
|
289 |
</at> |
|
290 |
</object> |
|
291 |
</at> |
|
292 |
</object> |
|
293 |
</at> |
|
294 |
</item> |
|
295 |
<item > |
|
296 |
<at name="value"> |
|
297 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
298 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
299 |
<at name="cellconstraints"> |
|
300 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
301 |
<at name="column">2</at> |
|
302 |
<at name="row">20</at> |
|
303 |
<at name="colspan">1</at> |
|
304 |
<at name="rowspan">1</at> |
|
305 |
<at name="halign">default</at> |
|
306 |
<at name="valign">default</at> |
|
307 |
<at name="insets" object="insets">0,0,0,0</at> |
|
308 |
</object> |
|
309 |
</at> |
|
310 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
311 |
</super> |
|
312 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
313 |
<at name="beanclass">com.jeta.forms.components.label.JETALabel</at> |
|
314 |
<at name="beanproperties"> |
|
315 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
316 |
<at name="classname">com.jeta.forms.components.label.JETALabel</at> |
|
317 |
<at name="properties"> |
|
318 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
319 |
<at name="border"> |
|
320 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
321 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
322 |
<at name="name">border</at> |
|
323 |
</super> |
|
324 |
<at name="borders"> |
|
325 |
<object classname="java.util.LinkedList"> |
|
326 |
<item > |
|
327 |
<at name="value"> |
|
328 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
329 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
330 |
<at name="name">border</at> |
|
331 |
</super> |
|
332 |
</object> |
|
333 |
</at> |
|
334 |
</item> |
|
335 |
</object> |
|
336 |
</at> |
|
337 |
</object> |
|
338 |
</at> |
|
339 |
<at name="name">lblRestoreFromFolder</at> |
|
340 |
<at name="width">583</at> |
|
341 |
<at name="text">Recuperar desde la carpeta</at> |
|
342 |
<at name="fill"> |
|
343 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
344 |
<at name="name">fill</at> |
|
345 |
</object> |
|
346 |
</at> |
|
347 |
<at name="height">14</at> |
|
348 |
</object> |
|
349 |
</at> |
|
350 |
</object> |
|
351 |
</at> |
|
352 |
</object> |
|
353 |
</at> |
|
354 |
</item> |
|
355 |
<item > |
|
356 |
<at name="value"> |
|
357 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
358 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
359 |
<at name="cellconstraints"> |
|
360 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
361 |
<at name="column">2</at> |
|
362 |
<at name="row">8</at> |
|
363 |
<at name="colspan">1</at> |
|
364 |
<at name="rowspan">1</at> |
|
365 |
<at name="halign">default</at> |
|
366 |
<at name="valign">default</at> |
|
367 |
<at name="insets" object="insets">0,0,0,0</at> |
|
368 |
</object> |
|
369 |
</at> |
|
370 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
371 |
</super> |
|
372 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
373 |
<at name="beanclass">com.jeta.forms.components.label.JETALabel</at> |
|
374 |
<at name="beanproperties"> |
|
375 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
376 |
<at name="classname">com.jeta.forms.components.label.JETALabel</at> |
|
377 |
<at name="properties"> |
|
378 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
379 |
<at name="border"> |
|
380 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
381 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
382 |
<at name="name">border</at> |
|
383 |
</super> |
|
384 |
<at name="borders"> |
|
385 |
<object classname="java.util.LinkedList"> |
|
386 |
<item > |
|
387 |
<at name="value"> |
|
388 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
389 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
390 |
<at name="name">border</at> |
|
391 |
</super> |
|
392 |
</object> |
|
393 |
</at> |
|
394 |
</item> |
|
395 |
</object> |
|
396 |
</at> |
|
397 |
</object> |
|
398 |
</at> |
|
399 |
<at name="name">lblApplication</at> |
|
400 |
<at name="width">583</at> |
|
401 |
<at name="text">Applicacion</at> |
|
402 |
<at name="fill"> |
|
403 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
404 |
<at name="name">fill</at> |
|
405 |
</object> |
|
406 |
</at> |
|
407 |
<at name="height">14</at> |
|
408 |
</object> |
|
409 |
</at> |
|
410 |
</object> |
|
411 |
</at> |
|
412 |
</object> |
|
413 |
</at> |
|
414 |
</item> |
|
415 |
<item > |
|
416 |
<at name="value"> |
|
417 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
418 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
419 |
<at name="cellconstraints"> |
|
420 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
421 |
<at name="column">2</at> |
|
422 |
<at name="row">10</at> |
|
423 |
<at name="colspan">1</at> |
|
424 |
<at name="rowspan">1</at> |
|
425 |
<at name="halign">default</at> |
|
426 |
<at name="valign">default</at> |
|
427 |
<at name="insets" object="insets">0,0,0,0</at> |
|
428 |
</object> |
|
429 |
</at> |
|
430 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
431 |
</super> |
|
432 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
433 |
<at name="beanclass">javax.swing.JTextField</at> |
|
434 |
<at name="beanproperties"> |
|
435 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
436 |
<at name="classname">javax.swing.JTextField</at> |
|
437 |
<at name="properties"> |
|
438 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
439 |
<at name="border"> |
|
440 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
441 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
442 |
<at name="name">border</at> |
|
443 |
</super> |
|
444 |
<at name="borders"> |
|
445 |
<object classname="java.util.LinkedList"> |
|
446 |
<item > |
|
447 |
<at name="value"> |
|
448 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
449 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
450 |
<at name="name">border</at> |
|
451 |
</super> |
|
452 |
</object> |
|
453 |
</at> |
|
454 |
</item> |
|
455 |
</object> |
|
456 |
</at> |
|
457 |
</object> |
|
458 |
</at> |
|
459 |
<at name="name">txtApplication</at> |
|
460 |
<at name="width">583</at> |
|
461 |
<at name="enabled">false</at> |
|
462 |
<at name="height">20</at> |
|
463 |
</object> |
|
464 |
</at> |
|
465 |
</object> |
|
466 |
</at> |
|
467 |
</object> |
|
468 |
</at> |
|
469 |
</item> |
|
470 |
<item > |
|
471 |
<at name="value"> |
|
472 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
473 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
474 |
<at name="cellconstraints"> |
|
475 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
476 |
<at name="column">2</at> |
|
477 |
<at name="row">18</at> |
|
478 |
<at name="colspan">1</at> |
|
479 |
<at name="rowspan">1</at> |
|
480 |
<at name="halign">default</at> |
|
481 |
<at name="valign">default</at> |
|
482 |
<at name="insets" object="insets">0,0,0,0</at> |
|
483 |
</object> |
|
484 |
</at> |
|
485 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
486 |
</super> |
|
487 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
488 |
<at name="beanclass">javax.swing.JTextField</at> |
|
489 |
<at name="beanproperties"> |
|
490 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
491 |
<at name="classname">javax.swing.JTextField</at> |
|
492 |
<at name="properties"> |
|
493 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
494 |
<at name="border"> |
|
495 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
496 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
497 |
<at name="name">border</at> |
|
498 |
</super> |
|
499 |
<at name="borders"> |
|
500 |
<object classname="java.util.LinkedList"> |
|
501 |
<item > |
|
502 |
<at name="value"> |
|
503 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
504 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
505 |
<at name="name">border</at> |
|
506 |
</super> |
|
507 |
</object> |
|
508 |
</at> |
|
509 |
</item> |
|
510 |
</object> |
|
511 |
</at> |
|
512 |
</object> |
|
513 |
</at> |
|
514 |
<at name="name">txtPath</at> |
|
515 |
<at name="width">583</at> |
|
516 |
<at name="enabled">false</at> |
|
517 |
<at name="height">20</at> |
|
518 |
</object> |
|
519 |
</at> |
|
520 |
</object> |
|
521 |
</at> |
|
522 |
</object> |
|
523 |
</at> |
|
524 |
</item> |
|
525 |
<item > |
|
526 |
<at name="value"> |
|
527 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
528 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
529 |
<at name="cellconstraints"> |
|
530 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
531 |
<at name="column">2</at> |
|
532 |
<at name="row">16</at> |
|
533 |
<at name="colspan">1</at> |
|
534 |
<at name="rowspan">1</at> |
|
535 |
<at name="halign">default</at> |
|
536 |
<at name="valign">default</at> |
|
537 |
<at name="insets" object="insets">0,0,0,0</at> |
|
538 |
</object> |
|
539 |
</at> |
|
540 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
541 |
</super> |
|
542 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
543 |
<at name="beanclass">com.jeta.forms.components.label.JETALabel</at> |
|
544 |
<at name="beanproperties"> |
|
545 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
546 |
<at name="classname">com.jeta.forms.components.label.JETALabel</at> |
|
547 |
<at name="properties"> |
|
548 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
549 |
<at name="border"> |
|
550 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
551 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
552 |
<at name="name">border</at> |
|
553 |
</super> |
|
554 |
<at name="borders"> |
|
555 |
<object classname="java.util.LinkedList"> |
|
556 |
<item > |
|
557 |
<at name="value"> |
|
558 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
559 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
560 |
<at name="name">border</at> |
|
561 |
</super> |
|
562 |
</object> |
|
563 |
</at> |
|
564 |
</item> |
|
565 |
</object> |
|
566 |
</at> |
|
567 |
</object> |
|
568 |
</at> |
|
569 |
<at name="name">lblPath</at> |
|
570 |
<at name="width">583</at> |
|
571 |
<at name="text">Ruta</at> |
|
572 |
<at name="fill"> |
|
573 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
574 |
<at name="name">fill</at> |
|
575 |
</object> |
|
576 |
</at> |
|
577 |
<at name="height">14</at> |
|
578 |
</object> |
|
579 |
</at> |
|
580 |
</object> |
|
581 |
</at> |
|
582 |
</object> |
|
583 |
</at> |
|
584 |
</item> |
|
585 |
<item > |
|
586 |
<at name="value"> |
|
587 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
588 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
589 |
<at name="cellconstraints"> |
|
590 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
591 |
<at name="column">2</at> |
|
592 |
<at name="row">12</at> |
|
593 |
<at name="colspan">1</at> |
|
594 |
<at name="rowspan">1</at> |
|
595 |
<at name="halign">default</at> |
|
596 |
<at name="valign">default</at> |
|
597 |
<at name="insets" object="insets">0,0,0,0</at> |
|
598 |
</object> |
|
599 |
</at> |
|
600 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
601 |
</super> |
|
602 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
603 |
<at name="beanclass">com.jeta.forms.components.label.JETALabel</at> |
|
604 |
<at name="beanproperties"> |
|
605 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
606 |
<at name="classname">com.jeta.forms.components.label.JETALabel</at> |
|
607 |
<at name="properties"> |
|
608 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
609 |
<at name="border"> |
|
610 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
611 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
612 |
<at name="name">border</at> |
|
613 |
</super> |
|
614 |
<at name="borders"> |
|
615 |
<object classname="java.util.LinkedList"> |
|
616 |
<item > |
|
617 |
<at name="value"> |
|
618 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
619 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
620 |
<at name="name">border</at> |
|
621 |
</super> |
|
622 |
</object> |
|
623 |
</at> |
|
624 |
</item> |
|
625 |
</object> |
|
626 |
</at> |
|
627 |
</object> |
|
628 |
</at> |
|
629 |
<at name="name">lblPath</at> |
|
630 |
<at name="width">583</at> |
|
631 |
<at name="text">Preferencias</at> |
|
632 |
<at name="fill"> |
|
633 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
634 |
<at name="name">fill</at> |
|
635 |
</object> |
|
636 |
</at> |
|
637 |
<at name="height">14</at> |
|
638 |
</object> |
|
639 |
</at> |
|
640 |
</object> |
|
641 |
</at> |
|
642 |
</object> |
|
643 |
</at> |
|
644 |
</item> |
|
645 |
<item > |
|
646 |
<at name="value"> |
|
647 |
<object classname="com.jeta.forms.store.memento.BeanMemento"> |
|
648 |
<super classname="com.jeta.forms.store.memento.ComponentMemento"> |
|
649 |
<at name="cellconstraints"> |
|
650 |
<object classname="com.jeta.forms.store.memento.CellConstraintsMemento"> |
|
651 |
<at name="column">2</at> |
|
652 |
<at name="row">14</at> |
|
653 |
<at name="colspan">1</at> |
|
654 |
<at name="rowspan">1</at> |
|
655 |
<at name="halign">default</at> |
|
656 |
<at name="valign">default</at> |
|
657 |
<at name="insets" object="insets">0,0,0,0</at> |
|
658 |
</object> |
|
659 |
</at> |
|
660 |
<at name="componentclass">com.jeta.forms.gui.form.StandardComponent</at> |
|
661 |
</super> |
|
662 |
<at name="jetabeanclass">com.jeta.forms.gui.beans.JETABean</at> |
|
663 |
<at name="beanclass">javax.swing.JTextField</at> |
|
664 |
<at name="beanproperties"> |
|
665 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
666 |
<at name="classname">javax.swing.JTextField</at> |
|
667 |
<at name="properties"> |
|
668 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
669 |
<at name="border"> |
|
670 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
671 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
672 |
<at name="name">border</at> |
|
673 |
</super> |
|
674 |
<at name="borders"> |
|
675 |
<object classname="java.util.LinkedList"> |
|
676 |
<item > |
|
677 |
<at name="value"> |
|
678 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
679 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
680 |
<at name="name">border</at> |
|
681 |
</super> |
|
682 |
</object> |
|
683 |
</at> |
|
684 |
</item> |
|
685 |
</object> |
|
686 |
</at> |
|
687 |
</object> |
|
688 |
</at> |
|
689 |
<at name="name">txtPreferencias</at> |
|
690 |
<at name="width">583</at> |
|
691 |
<at name="enabled">false</at> |
|
692 |
<at name="height">20</at> |
|
693 |
</object> |
|
694 |
</at> |
|
695 |
</object> |
|
696 |
</at> |
|
697 |
</object> |
|
698 |
</at> |
|
699 |
</item> |
|
700 |
</object> |
|
701 |
</at> |
|
702 |
<at name="properties"> |
|
703 |
<object classname="com.jeta.forms.store.memento.PropertiesMemento"> |
|
704 |
<at name="classname">com.jeta.forms.gui.form.GridView</at> |
|
705 |
<at name="properties"> |
|
706 |
<object classname="com.jeta.forms.store.support.PropertyMap"> |
|
707 |
<at name="border"> |
|
708 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
709 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
710 |
<at name="name">border</at> |
|
711 |
</super> |
|
712 |
<at name="borders"> |
|
713 |
<object classname="java.util.LinkedList"/> |
|
714 |
</at> |
|
715 |
</object> |
|
716 |
</at> |
|
717 |
<at name="name"></at> |
|
718 |
<at name="fill"> |
|
719 |
<object classname="com.jeta.forms.store.properties.effects.PaintProperty"> |
|
720 |
<at name="name">fill</at> |
|
721 |
</object> |
|
722 |
</at> |
|
723 |
<at name="scollBars"> |
|
724 |
<object classname="com.jeta.forms.store.properties.ScrollBarsProperty"> |
|
725 |
<at name="name">scollBars</at> |
|
726 |
<at name="verticalpolicy">21</at> |
|
727 |
<at name="horizontalpolicy">31</at> |
|
728 |
<at name="border"> |
|
729 |
<object classname="com.jeta.forms.store.properties.CompoundBorderProperty"> |
|
730 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
731 |
<at name="name">border</at> |
|
732 |
</super> |
|
733 |
<at name="borders"> |
|
734 |
<object classname="java.util.LinkedList"> |
|
735 |
<item > |
|
736 |
<at name="value"> |
|
737 |
<object classname="com.jeta.forms.store.properties.DefaultBorderProperty"> |
|
738 |
<super classname="com.jeta.forms.store.properties.BorderProperty"> |
|
739 |
<at name="name">border</at> |
|
740 |
</super> |
|
741 |
</object> |
|
742 |
</at> |
|
743 |
</item> |
|
744 |
</object> |
|
745 |
</at> |
|
746 |
</object> |
|
747 |
</at> |
|
748 |
</object> |
|
749 |
</at> |
|
750 |
</object> |
|
751 |
</at> |
|
752 |
</object> |
|
753 |
</at> |
|
754 |
<at name="cellpainters"> |
|
755 |
<object classname="com.jeta.forms.store.support.Matrix"> |
|
756 |
<at name="rows"> |
|
757 |
<object classname="[Ljava.lang.Object;" size="23"> |
|
758 |
<at name="item" index="0"> |
|
759 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
760 |
</at> |
|
761 |
<at name="item" index="1"> |
|
762 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
763 |
</at> |
|
764 |
<at name="item" index="2"> |
|
765 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
766 |
</at> |
|
767 |
<at name="item" index="3"> |
|
768 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
769 |
</at> |
|
770 |
<at name="item" index="4"> |
|
771 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
772 |
</at> |
|
773 |
<at name="item" index="5"> |
|
774 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
775 |
</at> |
|
776 |
<at name="item" index="6"> |
|
777 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
778 |
</at> |
|
779 |
<at name="item" index="7"> |
|
780 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
781 |
</at> |
|
782 |
<at name="item" index="8"> |
|
783 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
784 |
</at> |
|
785 |
<at name="item" index="9"> |
|
786 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
787 |
</at> |
|
788 |
<at name="item" index="10"> |
|
789 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
790 |
</at> |
|
791 |
<at name="item" index="11"> |
|
792 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
793 |
</at> |
|
794 |
<at name="item" index="12"> |
|
795 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
796 |
</at> |
|
797 |
<at name="item" index="13"> |
|
798 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
799 |
</at> |
|
800 |
<at name="item" index="14"> |
|
801 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
802 |
</at> |
|
803 |
<at name="item" index="15"> |
|
804 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
805 |
</at> |
|
806 |
<at name="item" index="16"> |
|
807 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
808 |
</at> |
|
809 |
<at name="item" index="17"> |
|
810 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
811 |
</at> |
|
812 |
<at name="item" index="18"> |
|
813 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
814 |
</at> |
|
815 |
<at name="item" index="19"> |
|
816 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
817 |
</at> |
|
818 |
<at name="item" index="20"> |
|
819 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
820 |
</at> |
|
821 |
<at name="item" index="21"> |
|
822 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
823 |
</at> |
|
824 |
<at name="item" index="22"> |
|
825 |
<object classname="[Ljava.lang.Object;" size="3"/> |
|
826 |
</at> |
|
827 |
</object> |
|
828 |
</at> |
|
829 |
</object> |
|
830 |
</at> |
|
831 |
<at name="rowgroups"> |
|
832 |
<object classname="com.jeta.forms.store.memento.FormGroupSet"> |
|
833 |
<at name="groups"> |
|
834 |
<object classname="java.util.HashMap"/> |
|
835 |
</at> |
|
836 |
</object> |
|
837 |
</at> |
|
838 |
<at name="colgroups"> |
|
839 |
<object classname="com.jeta.forms.store.memento.FormGroupSet"> |
|
840 |
<at name="groups"> |
|
841 |
<object classname="java.util.HashMap"/> |
|
842 |
</at> |
|
843 |
</object> |
|
844 |
</at> |
|
845 |
</object> |
|
846 |
</at> |
|
847 |
</object> |
org.gvsig.scripting/tags/org.gvsig.scripting-2.3.183/org.gvsig.scripting.app/org.gvsig.scripting.app.mainplugin/src/main/java/org/gvsig/scripting/app/extension/DataFoldersRecoverPanelView.java | ||
---|---|---|
1 |
package org.gvsig.scripting.app.extension; |
|
2 |
|
|
3 |
import com.jeta.open.i18n.I18NUtils; |
|
4 |
import com.jgoodies.forms.layout.CellConstraints; |
|
5 |
import com.jgoodies.forms.layout.FormLayout; |
|
6 |
import java.awt.BorderLayout; |
|
7 |
import java.awt.ComponentOrientation; |
|
8 |
import java.awt.Container; |
|
9 |
import java.awt.Dimension; |
|
10 |
import javax.swing.Box; |
|
11 |
import javax.swing.ImageIcon; |
|
12 |
import javax.swing.JFrame; |
|
13 |
import javax.swing.JLabel; |
|
14 |
import javax.swing.JList; |
|
15 |
import javax.swing.JPanel; |
|
16 |
import javax.swing.JScrollPane; |
|
17 |
import javax.swing.JTextField; |
|
18 |
|
|
19 |
|
|
20 |
public class DataFoldersRecoverPanelView extends JPanel |
|
21 |
{ |
|
22 |
JLabel lblMsg1 = new JLabel(); |
|
23 |
JLabel lblMsg2 = new JLabel(); |
|
24 |
JList lstDataFolders = new JList(); |
|
25 |
JTextField txtOldFolder = new JTextField(); |
|
26 |
JLabel lblRestoreFromFolder = new JLabel(); |
|
27 |
JLabel lblApplication = new JLabel(); |
|
28 |
JTextField txtApplication = new JTextField(); |
|
29 |
JTextField txtPath = new JTextField(); |
|
30 |
JLabel lblPath = new JLabel(); |
|
31 |
JLabel lblPath1 = new JLabel(); |
|
32 |
JTextField txtPreferencias = new JTextField(); |
|
33 |
|
|
34 |
/** |
|
35 |
* Default constructor |
|
36 |
*/ |
|
37 |
public DataFoldersRecoverPanelView() |
|
38 |
{ |
|
39 |
initializePanel(); |
|
40 |
} |
|
41 |
|
|
42 |
/** |
|
43 |
* Adds fill components to empty cells in the first row and first column of the grid. |
|
44 |
* This ensures that the grid spacing will be the same as shown in the designer. |
|
45 |
* @param cols an array of column indices in the first row where fill components should be added. |
|
46 |
* @param rows an array of row indices in the first column where fill components should be added. |
|
47 |
*/ |
|
48 |
void addFillComponents( Container panel, int[] cols, int[] rows ) |
|
49 |
{ |
|
50 |
Dimension filler = new Dimension(10,10); |
|
51 |
|
|
52 |
boolean filled_cell_11 = false; |
|
53 |
CellConstraints cc = new CellConstraints(); |
|
54 |
if ( cols.length > 0 && rows.length > 0 ) |
|
55 |
{ |
|
56 |
if ( cols[0] == 1 && rows[0] == 1 ) |
|
57 |
{ |
|
58 |
/** add a rigid area */ |
|
59 |
panel.add( Box.createRigidArea( filler ), cc.xy(1,1) ); |
|
60 |
filled_cell_11 = true; |
|
61 |
} |
|
62 |
} |
|
63 |
|
|
64 |
for( int index = 0; index < cols.length; index++ ) |
|
65 |
{ |
|
66 |
if ( cols[index] == 1 && filled_cell_11 ) |
|
67 |
{ |
|
68 |
continue; |
|
69 |
} |
|
70 |
panel.add( Box.createRigidArea( filler ), cc.xy(cols[index],1) ); |
|
71 |
} |
|
72 |
|
|
73 |
for( int index = 0; index < rows.length; index++ ) |
|
74 |
{ |
|
75 |
if ( rows[index] == 1 && filled_cell_11 ) |
|
76 |
{ |
|
77 |
continue; |
|
78 |
} |
|
79 |
panel.add( Box.createRigidArea( filler ), cc.xy(1,rows[index]) ); |
|
80 |
} |
|
81 |
|
|
82 |
} |
|
83 |
|
|
84 |
/** |
|
85 |
* Helper method to load an image file from the CLASSPATH |
|
86 |
* @param imageName the package and name of the file to load relative to the CLASSPATH |
|
87 |
* @return an ImageIcon instance with the specified image file |
|
88 |
* @throws IllegalArgumentException if the image resource cannot be loaded. |
|
89 |
*/ |
|
90 |
public ImageIcon loadImage( String imageName ) |
|
91 |
{ |
|
92 |
try |
|
93 |
{ |
|
94 |
ClassLoader classloader = getClass().getClassLoader(); |
|
95 |
java.net.URL url = classloader.getResource( imageName ); |
|
96 |
if ( url != null ) |
|
97 |
{ |
|
98 |
ImageIcon icon = new ImageIcon( url ); |
|
99 |
return icon; |
|
100 |
} |
|
101 |
} |
|
102 |
catch( Exception e ) |
|
103 |
{ |
|
104 |
e.printStackTrace(); |
|
105 |
} |
|
106 |
throw new IllegalArgumentException( "Unable to load image: " + imageName ); |
|
107 |
} |
|
108 |
|
|
109 |
/** |
|
110 |
* Method for recalculating the component orientation for |
|
111 |
* right-to-left Locales. |
|
112 |
* @param orientation the component orientation to be applied |
|
113 |
*/ |
|
114 |
public void applyComponentOrientation( ComponentOrientation orientation ) |
|
115 |
{ |
|
116 |
// Not yet implemented... |
|
117 |
// I18NUtils.applyComponentOrientation(this, orientation); |
|
118 |
super.applyComponentOrientation(orientation); |
|
119 |
} |
|
120 |
|
|
121 |
public JPanel createPanel() |
|
122 |
{ |
|
123 |
JPanel jpanel1 = new JPanel(); |
|
124 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE","CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE"); |
|
125 |
CellConstraints cc = new CellConstraints(); |
|
126 |
jpanel1.setLayout(formlayout1); |
|
127 |
|
|
128 |
lblMsg1.setName("lblMsg1"); |
|
129 |
lblMsg1.setText("<html>Han sido encontradas preferencias de versiones anteriores para algunos complementos.</html>"); |
|
130 |
jpanel1.add(lblMsg1,cc.xy(2,2)); |
|
131 |
|
|
132 |
lblMsg2.setName("lblMsg2"); |
|
133 |
lblMsg2.setText("<html>Seleccione los complementos para los que desea recuperar las preferencias de versiones anteriores</html>"); |
|
134 |
jpanel1.add(lblMsg2,cc.xy(2,4)); |
|
135 |
|
|
136 |
lstDataFolders.setName("lstDataFolders"); |
|
137 |
JScrollPane jscrollpane1 = new JScrollPane(); |
|
138 |
jscrollpane1.setViewportView(lstDataFolders); |
|
139 |
jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); |
|
140 |
jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); |
|
141 |
jpanel1.add(jscrollpane1,cc.xy(2,6)); |
|
142 |
|
|
143 |
txtOldFolder.setEnabled(false); |
|
144 |
txtOldFolder.setName("txtOldFolder"); |
|
145 |
jpanel1.add(txtOldFolder,cc.xy(2,22)); |
|
146 |
|
|
147 |
lblRestoreFromFolder.setName("lblRestoreFromFolder"); |
|
148 |
lblRestoreFromFolder.setText("Recuperar desde la carpeta"); |
|
149 |
jpanel1.add(lblRestoreFromFolder,cc.xy(2,20)); |
|
150 |
|
|
151 |
lblApplication.setName("lblApplication"); |
|
152 |
lblApplication.setText("Applicacion"); |
|
153 |
jpanel1.add(lblApplication,cc.xy(2,8)); |
|
154 |
|
|
155 |
txtApplication.setEnabled(false); |
|
156 |
txtApplication.setName("txtApplication"); |
|
157 |
jpanel1.add(txtApplication,cc.xy(2,10)); |
|
158 |
|
|
159 |
txtPath.setEnabled(false); |
|
160 |
txtPath.setName("txtPath"); |
|
161 |
jpanel1.add(txtPath,cc.xy(2,18)); |
|
162 |
|
|
163 |
lblPath.setName("lblPath"); |
|
164 |
lblPath.setText("Ruta"); |
|
165 |
jpanel1.add(lblPath,cc.xy(2,16)); |
|
166 |
|
|
167 |
lblPath1.setName("lblPath"); |
|
168 |
lblPath1.setText("Preferencias"); |
|
169 |
jpanel1.add(lblPath1,cc.xy(2,12)); |
|
170 |
|
|
171 |
txtPreferencias.setEnabled(false); |
|
172 |
txtPreferencias.setName("txtPreferencias"); |
|
173 |
jpanel1.add(txtPreferencias,cc.xy(2,14)); |
|
174 |
|
|
175 |
addFillComponents(jpanel1,new int[]{ 1,2,3 },new int[]{ 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23 }); |
|
176 |
return jpanel1; |
|
177 |
} |
|
178 |
|
|
179 |
/** |
|
180 |
* Initializer |
|
181 |
*/ |
|
182 |
protected void initializePanel() |
|
183 |
{ |
|
184 |
setLayout(new BorderLayout()); |
|
185 |
add(createPanel(), BorderLayout.CENTER); |
|
186 |
} |
|
187 |
|
|
188 |
|
|
189 |
} |
org.gvsig.scripting/tags/org.gvsig.scripting-2.3.183/org.gvsig.scripting.app/org.gvsig.scripting.app.mainplugin/src/main/java/org/gvsig/scripting/app/extension/ScriptsInstallerInitializer.java | ||
---|---|---|
1 |
package org.gvsig.scripting.app.extension; |
|
2 |
|
|
3 |
import java.io.File; |
|
4 |
import org.apache.commons.io.FileUtils; |
|
5 |
import org.gvsig.andami.PluginServices; |
|
6 |
import org.gvsig.andami.PluginsLocator; |
|
7 |
import org.gvsig.andami.PluginsManager; |
|
8 |
import org.gvsig.installer.lib.api.InstallerLocator; |
|
9 |
import org.gvsig.installer.lib.api.InstallerManager; |
|
10 |
import org.gvsig.installer.lib.spi.InstallerProviderLocator; |
|
11 |
import org.gvsig.scripting.ScriptingLocator; |
|
12 |
import org.gvsig.scripting.ScriptingManager; |
|
13 |
import org.gvsig.tools.service.spi.ProviderFactory; |
|
14 |
import org.gvsig.tools.service.spi.ProviderManager; |
|
15 |
import org.gvsig.tools.util.Invocable; |
|
16 |
import org.slf4j.Logger; |
|
17 |
import org.slf4j.LoggerFactory; |
|
18 |
|
|
19 |
public class ScriptsInstallerInitializer implements Invocable { |
|
20 |
|
|
21 |
public static final String VERSION_FORMAT = "%M.%m.%r"; |
|
22 |
|
|
23 |
private static final Logger LOG = LoggerFactory.getLogger(ScriptsInstallerInitializer.class); |
|
24 |
|
|
25 |
@Override |
|
26 |
public Object call(Object... args) { |
|
27 |
// Cuando se hace la llamada a este metodo, aun no esta inicializado gvSIG. |
|
28 |
// Los servicios que ofrece el PluginsManager no son completos, solo algunos |
|
29 |
// de ellos estan disponibles. La lista de plugins aun no se ha cargado. |
|
30 |
try { |
|
31 |
String pluginName = (String) args[0]; |
|
32 |
|
|
33 |
ProviderManager providerManager = InstallerProviderLocator.getProviderManager(); |
|
34 |
PluginsManager pluginManager = PluginsLocator.getManager(); |
|
35 |
ScriptingManager manager = ScriptingLocator.getManager(); |
|
36 |
InstallerManager installerManager = InstallerLocator.getInstallerManager(); |
Also available in: Unified diff