Revision 29636
branches/v2_0_0_prep/extensions/extIconThemeBase/pom.xml | ||
---|---|---|
6 | 6 |
|
7 | 7 |
<modelVersion>4.0.0</modelVersion> |
8 | 8 |
<groupId>org.gvsig</groupId> |
9 |
<artifactId>org.gvsig.iconThemeBase</artifactId>
|
|
9 |
<artifactId>org.gvsig.theme.baseicons</artifactId>
|
|
10 | 10 |
<packaging>jar</packaging> |
11 | 11 |
<version>2.0-SNAPSHOT</version> |
12 | 12 |
<name>extIconThemeBase</name> |
13 | 13 |
<url>http://maven.apache.org</url> |
14 | 14 |
<parent> |
15 | 15 |
<groupId>org.gvsig</groupId> |
16 |
<artifactId>gvsig-extension-base-pom
|
|
16 |
<artifactId>gvsig-base-extension-pom
|
|
17 | 17 |
</artifactId> |
18 | 18 |
<version>2.0-SNAPSHOT</version> |
19 | 19 |
</parent> |
branches/v2_0_0_prep/extensions/extIconThemeBase/distribution/distribution.xml | ||
---|---|---|
35 | 35 |
<outputDirectory>${extension-distribution}/${library-dir} |
36 | 36 |
</outputDirectory> |
37 | 37 |
<includes> |
38 |
<include>org.gvsig:org.gvsig.iconThemeBase</include>
|
|
38 |
<include>org.gvsig:org.gvsig.theme.baseicons</include>
|
|
39 | 39 |
</includes> |
40 | 40 |
</dependencySet> |
41 | 41 |
</dependencySets> |
branches/v2_0_0_prep/extensions/extIconThemeBase/.classpath | ||
---|---|---|
1 | 1 |
<classpath> |
2 |
<classpathentry kind="src" path="src"/> |
|
2 |
<classpathentry kind="src" path="src" including="**/*.java"/>
|
|
3 | 3 |
<classpathentry kind="output" path="target/classes"/> |
4 |
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> |
|
5 | 4 |
<classpathentry kind="var" path="M2_REPO/org/gvsig/legacy/castor/gvsig/castor-gvsig.jar"/> |
6 |
<classpathentry kind="var" path="M2_REPO/org/gvsig/com.iver.utiles/2.0-SNAPSHOT/com.iver.utiles-2.0-SNAPSHOT.jar" sourcepath="M2_REPO/org/gvsig/com.iver.utiles/2.0-SNAPSHOT/com.iver.utiles-2.0-SNAPSHOT-sources.jar"> |
|
7 |
<attributes> |
|
8 |
<attribute value="jar:file:/home/cordin/.m2/repository/org/gvsig/com.iver.utiles/2.0-SNAPSHOT/com.iver.utiles-2.0-SNAPSHOT-javadoc.jar!/" name="javadoc_location"/> |
|
9 |
</attributes> |
|
10 |
</classpathentry> |
|
11 | 5 |
<classpathentry kind="var" path="M2_REPO/org/gvsig/legacy/javaws/gvsig/javaws-gvsig.jar"/> |
12 | 6 |
<classpathentry kind="var" path="M2_REPO/org/gvsig/legacy/jcalendar/gvsig/jcalendar-gvsig.jar"/> |
13 | 7 |
<classpathentry kind="var" path="M2_REPO/org/gvsig/legacy/jcommon/gvsig/jcommon-gvsig.jar"/> |
... | ... | |
19 | 13 |
<classpathentry kind="var" path="M2_REPO/org/gvsig/legacy/kxml2/gvsig/kxml2-gvsig.jar"/> |
20 | 14 |
<classpathentry kind="var" path="M2_REPO/log4j/log4j/1.2.14/log4j-1.2.14.jar" sourcepath="M2_REPO/log4j/log4j/1.2.14/log4j-1.2.14-sources.jar"/> |
21 | 15 |
<classpathentry kind="var" path="M2_REPO/org/gvsig/legacy/looks/gvsig/looks-gvsig.jar"/> |
22 |
<classpathentry kind="var" path="M2_REPO/org/gvsig/org.gvsig.andami/2.0-SNAPSHOT/org.gvsig.andami-2.0-SNAPSHOT.jar" sourcepath="M2_REPO/org/gvsig/org.gvsig.andami/2.0-SNAPSHOT/org.gvsig.andami-2.0-SNAPSHOT-sources.jar"> |
|
23 |
<attributes> |
|
24 |
<attribute value="jar:file:/home/cordin/.m2/repository/org/gvsig/org.gvsig.andami/2.0-SNAPSHOT/org.gvsig.andami-2.0-SNAPSHOT-javadoc.jar!/" name="javadoc_location"/> |
|
25 |
</attributes> |
|
26 |
</classpathentry> |
|
27 |
<classpathentry kind="var" path="M2_REPO/org/gvsig/org.gvsig.i18n/2.0-SNAPSHOT/org.gvsig.i18n-2.0-SNAPSHOT.jar" sourcepath="M2_REPO/org/gvsig/org.gvsig.i18n/2.0-SNAPSHOT/org.gvsig.i18n-2.0-SNAPSHOT-sources.jar"> |
|
28 |
<attributes> |
|
29 |
<attribute value="jar:file:/home/cordin/.m2/repository/org/gvsig/org.gvsig.i18n/2.0-SNAPSHOT/org.gvsig.i18n-2.0-SNAPSHOT-javadoc.jar!/" name="javadoc_location"/> |
|
30 |
</attributes> |
|
31 |
</classpathentry> |
|
32 |
<classpathentry kind="var" path="M2_REPO/org/gvsig/org.gvsig.tools/2.0-SNAPSHOT/org.gvsig.tools-2.0-SNAPSHOT.jar" sourcepath="M2_REPO/org/gvsig/org.gvsig.tools/2.0-SNAPSHOT/org.gvsig.tools-2.0-SNAPSHOT-sources.jar"> |
|
33 |
<attributes> |
|
34 |
<attribute value="jar:file:/home/cordin/.m2/repository/org/gvsig/org.gvsig.tools/2.0-SNAPSHOT/org.gvsig.tools-2.0-SNAPSHOT-javadoc.jar!/" name="javadoc_location"/> |
|
35 |
</attributes> |
|
36 |
</classpathentry> |
|
37 |
<classpathentry kind="var" path="M2_REPO/org/gvsig/org.gvsig.ui/2.0-SNAPSHOT/org.gvsig.ui-2.0-SNAPSHOT.jar" sourcepath="M2_REPO/org/gvsig/org.gvsig.ui/2.0-SNAPSHOT/org.gvsig.ui-2.0-SNAPSHOT-sources.jar"> |
|
38 |
<attributes> |
|
39 |
<attribute value="jar:file:/home/cordin/.m2/repository/org/gvsig/org.gvsig.ui/2.0-SNAPSHOT/org.gvsig.ui-2.0-SNAPSHOT-javadoc.jar!/" name="javadoc_location"/> |
|
40 |
</attributes> |
|
41 |
</classpathentry> |
|
16 |
<classpathentry kind="src" path="/_fwAndami"/> |
|
17 |
<classpathentry kind="src" path="/libInternationalization"/> |
|
18 |
<classpathentry kind="src" path="/libTools"/> |
|
19 |
<classpathentry kind="src" path="/libUIComponent"/> |
|
20 |
<classpathentry kind="src" path="/libIverUtiles"/> |
|
42 | 21 |
<classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-api/1.5.5/slf4j-api-1.5.5.jar" sourcepath="M2_REPO/org/slf4j/slf4j-api/1.5.5/slf4j-api-1.5.5-sources.jar"/> |
43 | 22 |
<classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-log4j12/1.5.5/slf4j-log4j12-1.5.5.jar" sourcepath="M2_REPO/org/slf4j/slf4j-log4j12/1.5.5/slf4j-log4j12-1.5.5-sources.jar"/> |
44 | 23 |
<classpathentry kind="var" path="M2_REPO/org/gvsig/legacy/tempFileManager/gvsig/tempFileManager-gvsig.jar"/> |
45 | 24 |
<classpathentry kind="var" path="M2_REPO/org/gvsig/legacy/xerces/gvsig/xerces-gvsig.jar"/> |
46 | 25 |
<classpathentry kind="var" path="M2_REPO/org/gvsig/legacy/xml-apis/gvsig/xml-apis-gvsig.jar"/> |
47 | 26 |
<classpathentry kind="var" path="M2_REPO/org/gvsig/legacy/xmlrpc/gvsig/xmlrpc-gvsig.jar"/> |
27 |
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> |
|
48 | 28 |
</classpath> |
branches/v2_0_0_prep/extensions/extIconThemeBase/.project | ||
---|---|---|
2 | 2 |
<name>extIconThemeBase</name> |
3 | 3 |
<comment>Base POM for all GvSIG extension projects. This pom knows |
4 | 4 |
how to build and made an extension for GvSIG. The property |
5 |
"gvsig-path" must be set up correctly.</comment> |
|
6 |
<projects/> |
|
5 |
"build-dir" must be set up correctly.</comment> |
|
6 |
<projects> |
|
7 |
<project>_fwAndami</project> |
|
8 |
<project>libInternationalization</project> |
|
9 |
<project>libTools</project> |
|
10 |
<project>libUIComponent</project> |
|
11 |
<project>libIverUtiles</project> |
|
12 |
</projects> |
|
7 | 13 |
<buildSpec> |
8 | 14 |
<buildCommand> |
9 | 15 |
<name>org.eclipse.jdt.core.javabuilder</name> |
branches/v2_0_0_prep/extensions/extIconThemeBase/config/config.xml | ||
---|---|---|
1 | 1 |
<?xml version="1.0" encoding="ISO-8859-1"?> |
2 | 2 |
<plugin-config> |
3 |
<depends plugin-name="com.iver.cit.gvsig" />
|
|
3 |
<depends plugin-name="org.gvsig.app" />
|
|
4 | 4 |
<libraries library-dir="lib"/> |
5 | 5 |
<resourceBundle name="text"/> |
6 | 6 |
<extensions> |
7 |
<extension class-name="org.gvsig.iconThemeBase.ExtensionIcon16Theme"
|
|
7 |
<extension class-name="org.gvsig.theme.baseicons.ExtensionIcon16Theme"
|
|
8 | 8 |
description="Extensi?n encargada de cargar iconos de 16x16." |
9 | 9 |
active="true" |
10 | 10 |
priority="50"> |
11 | 11 |
</extension> |
12 |
<extension class-name="org.gvsig.iconThemeBase.ExtensionIcon22Theme"
|
|
12 |
<extension class-name="org.gvsig.theme.baseicons.ExtensionIcon22Theme"
|
|
13 | 13 |
description="Extensi?n encargada de cargar iconos de 22x22." |
14 | 14 |
active="false" |
15 | 15 |
priority="50"> |
branches/v2_0_0_prep/extensions/extIconThemeBase/src/org/gvsig/theme/baseicons/ExtensionIcon16Theme.java | ||
---|---|---|
1 |
package org.gvsig.theme.baseicons; |
|
2 |
|
|
3 |
import java.io.File; |
|
4 |
|
|
5 |
import org.gvsig.andami.PluginServices; |
|
6 |
import org.gvsig.andami.iconthemes.AbstractIconTheme; |
|
7 |
import org.gvsig.andami.iconthemes.IconThemeDir; |
|
8 |
import org.gvsig.andami.iconthemes.IconThemeManager; |
|
9 |
import org.gvsig.andami.plugins.Extension; |
|
10 |
|
|
11 |
|
|
12 |
public class ExtensionIcon16Theme extends Extension { |
|
13 |
|
|
14 |
|
|
15 |
public void execute(String actionCommand) { |
|
16 |
// TODO Auto-generated method stub |
|
17 |
|
|
18 |
} |
|
19 |
|
|
20 |
public void initialize() { |
|
21 |
// TODO Auto-generated method stub |
|
22 |
|
|
23 |
AbstractIconTheme iconTheme = new IconThemeDir(PluginServices.getIconThemeManager().getDefault()); |
|
24 |
iconTheme.setName("IconsTheme16"); |
|
25 |
iconTheme.setResource( new File (ExtensionIcon16Theme.getExtensionPath()+File.separator+ "images" +File.separator+"16x16")); |
|
26 |
PluginServices.getIconThemeManager().register(iconTheme); |
|
27 |
PluginServices.getIconThemeManager().setCurrent(iconTheme); |
|
28 |
iconTheme.load(); |
|
29 |
|
|
30 |
|
|
31 |
} |
|
32 |
|
|
33 |
public static String getExtensionPath() { |
|
34 |
String pluginName = "org.gvsig.theme.baseicons"; |
|
35 |
PluginServices ps = PluginServices.getPluginServices(pluginName); |
|
36 |
return ps.getPluginDirectory().getAbsolutePath(); |
|
37 |
} |
|
38 |
|
|
39 |
public boolean isEnabled() { |
|
40 |
// TODO Auto-generated method stub |
|
41 |
return false; |
|
42 |
} |
|
43 |
|
|
44 |
public boolean isVisible() { |
|
45 |
// TODO Auto-generated method stub |
|
46 |
return false; |
|
47 |
} |
|
48 |
|
|
49 |
|
|
50 |
|
|
51 |
} |
branches/v2_0_0_prep/extensions/extIconThemeBase/src/org/gvsig/theme/baseicons/ExtensionIcon22Theme.java | ||
---|---|---|
1 |
package org.gvsig.theme.baseicons; |
|
2 |
|
|
3 |
import java.io.File; |
|
4 |
|
|
5 |
import org.gvsig.andami.PluginServices; |
|
6 |
import org.gvsig.andami.iconthemes.AbstractIconTheme; |
|
7 |
import org.gvsig.andami.iconthemes.IconThemeDir; |
|
8 |
import org.gvsig.andami.iconthemes.IconThemeManager; |
|
9 |
import org.gvsig.andami.plugins.Extension; |
|
10 |
|
|
11 |
|
|
12 |
public class ExtensionIcon22Theme extends Extension { |
|
13 |
|
|
14 |
|
|
15 |
public void execute(String actionCommand) { |
|
16 |
// TODO Auto-generated method stub |
|
17 |
|
|
18 |
} |
|
19 |
|
|
20 |
public void initialize() { |
|
21 |
// TODO Auto-generated method stub |
|
22 |
|
|
23 |
AbstractIconTheme iconTheme = new IconThemeDir(PluginServices.getIconThemeManager().getDefault()); |
|
24 |
|
|
25 |
iconTheme.setName("IconsTheme22"); |
|
26 |
iconTheme.setResource(new File (ExtensionIcon22Theme.getExtensionPath()+File.separator+ "images"+File.separator+"22x22")); |
|
27 |
PluginServices.getIconThemeManager().register(iconTheme); |
|
28 |
PluginServices.getIconThemeManager().setCurrent(iconTheme); |
|
29 |
iconTheme.load(); |
|
30 |
|
|
31 |
|
|
32 |
} |
|
33 |
|
|
34 |
public static String getExtensionPath() { |
|
35 |
String pluginName = "org.gvsig.iconThemeBase"; |
|
36 |
PluginServices ps = PluginServices.getPluginServices(pluginName); |
|
37 |
return ps.getPluginDirectory().getAbsolutePath(); |
|
38 |
} |
|
39 |
|
|
40 |
public boolean isEnabled() { |
|
41 |
// TODO Auto-generated method stub |
|
42 |
return false; |
|
43 |
} |
|
44 |
|
|
45 |
public boolean isVisible() { |
|
46 |
// TODO Auto-generated method stub |
|
47 |
return false; |
|
48 |
} |
|
49 |
|
|
50 |
} |
Also available in: Unified diff