Revision 36544

View differences:

tags/v_1_12_0_Build_1402/extHelp/.project
1
<?xml version="1.0" encoding="UTF-8"?>
2
<projectDescription>
3
	<name>extHelp</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>
tags/v_1_12_0_Build_1402/extHelp/config/text_el.properties
1
#Translations for language [el]
2
#Mon Sep 21 10:02:06 CEST 2009
3
Ayuda=\u0392\u03bf\u03ae\u03b8\u03b5\u03b9\u03b1
tags/v_1_12_0_Build_1402/extHelp/config/about.htm
1
<html>
2
  <head>
3
    <title>Extension 3D del programa GvSIG </title>
4
    <meta content="">
5
    <style></style>
6
  </head>
7
  <body>
8
<table width="60%" border="0">
9
  <tr>
10
    <td width="64%"><img src="images/logo_horiz_bicolor_gva.png" width="329" height="50"></td>
11
    <td width="36%"><div align="right"><img src="images/logoIver.png" width="87" height="50"></div></td>
12
  </tr>
13
  <tr>
14
    <td colspan="2"><font face="Arial, Helvetica, sans-serif">&copy; Copyright
15
      Generalitat Valenciana, IVER T.I and other contributors 2005.</font></td>
16
  </tr>
17
</table>
18
  <h3>Extesi&oacute;n de la Aplicaci&oacute;n para el tratamiento de top&oacute;nimos del Instituto Geogr&aacute;fico Nacional</h3>
19
  <p><br><br><b> Build Number: #build.number#</b></p>
20
  </body>
21
</html>
tags/v_1_12_0_Build_1402/extHelp/config/text_en.properties
1
#Translations for language [en]
2
#Mon Sep 21 10:02:05 CEST 2009
3
Ayuda=Help
0 4

  
tags/v_1_12_0_Build_1402/extHelp/config/text_gl.properties
1
#Translations for language [gl]
2
#Mon Sep 21 10:02:05 CEST 2009
3
Ayuda=Axuda
0 4

  
tags/v_1_12_0_Build_1402/extHelp/config/config.xml
1
<?xml version="1.0" encoding="ISO-8859-1"?>
2
<plugin-config>
3
	<depends plugin-name="com.iver.cit.gvsig" />
4
	<resourceBundle name="text"/>
5
	<libraries library-dir="."/>
6
	<extensions>
7
		<extension class-name="org.gvsig.help.HelpExtension"
8
			description=""
9
			active="true"
10
			priority="999999999">
11
			<menu text="Ayuda/Ayuda"
12
				position="99990"
13
				action-command="Help"/>
14
		</extension>
15
	</extensions>
16
</plugin-config>
tags/v_1_12_0_Build_1402/extHelp/config/text_cs.properties
1
#Translations for language [cs]
2
#Mon Sep 21 10:02:05 CEST 2009
3
Ayuda=N\u00e1pov\u011bda
0 4

  
tags/v_1_12_0_Build_1402/extHelp/config/text_pt_BR.properties
1
#Translations for language [pt_BR]
2
#Mon Sep 21 10:02:06 CEST 2009
3
Ayuda=Ajuda
tags/v_1_12_0_Build_1402/extHelp/config/text_fr.properties
1
#Translations for language [fr]
2
#Mon Sep 21 10:02:05 CEST 2009
3
Ayuda=Aide
0 4

  
tags/v_1_12_0_Build_1402/extHelp/config/text_eu.properties
1
#Translations for language [eu]
2
#Mon Sep 21 10:02:05 CEST 2009
3
Ayuda=Laguntza
0 4

  
tags/v_1_12_0_Build_1402/extHelp/config/text_nl.properties
1
#Translations for language [nl]
2
#Tue Aug 11 10:49:14 CEST 2009
3
Ayuda=
0 4

  
tags/v_1_12_0_Build_1402/extHelp/config/text_en_US.properties
1
#Translations for language [en_US]
2
#Mon Sep 21 10:02:05 CEST 2009
3
Ayuda=Help
tags/v_1_12_0_Build_1402/extHelp/config/text_pl.properties
1
#Translations for language [pl]
2
#Mon Sep 21 10:02:06 CEST 2009
3
Ayuda=
0 4

  
tags/v_1_12_0_Build_1402/extHelp/config/text_it.properties
1
#Translations for language [it]
2
#Mon Sep 21 10:02:05 CEST 2009
3
Ayuda=Aiuto
0 4

  
tags/v_1_12_0_Build_1402/extHelp/config/text.properties
1
#Translations for language [es]
2
#Mon Sep 21 10:02:05 CEST 2009
3
Ayuda=Ayuda
0 4

  
tags/v_1_12_0_Build_1402/extHelp/config/text_ro.properties
1
#Translations for language [ro]
2
#Mon Sep 21 10:02:06 CEST 2009
3
Ayuda=Ajutor
0 4

  
tags/v_1_12_0_Build_1402/extHelp/config/text_zh.properties
1
#Translations for language [zh]
2
#Mon Sep 21 10:02:06 CEST 2009
3
Ayuda=\u5e2e\u52a9
0 4

  
tags/v_1_12_0_Build_1402/extHelp/config/text_ca.properties
1
#Translations for language [ca]
2
#Mon Sep 21 10:02:05 CEST 2009
3
Ayuda=Ajuda
0 4

  
tags/v_1_12_0_Build_1402/extHelp/config/text_pt.properties
1
#Translations for language [pt]
2
#Mon Sep 21 10:02:05 CEST 2009
3
Ayuda=Ajuda
0 4

  
tags/v_1_12_0_Build_1402/extHelp/config/text_sr.properties
1
#Translations for language [sr]
2
#Mon Sep 21 10:02:06 CEST 2009
3
Ayuda=Pomo\u0107
0 4

  
tags/v_1_12_0_Build_1402/extHelp/config/text_tr.properties
1
#Translations for language [tr]
2
#Mon Sep 21 10:02:06 CEST 2009
3
Ayuda=Yard\u0131m
tags/v_1_12_0_Build_1402/extHelp/config/text_ru.properties
1
#Translations for language [ru]
2
#Mon Sep 21 10:02:06 CEST 2009
3
Ayuda=\u0421\u043f\u0440\u0430\u0432\u043a\u0430
tags/v_1_12_0_Build_1402/extHelp/config/text_de.properties
1
#Translations for language [de]
2
#Mon Sep 21 10:02:05 CEST 2009
3
Ayuda=Hilfe
0 4

  
tags/v_1_12_0_Build_1402/extHelp/config/text_sw.properties
1
#Translations for language [sw]
2
#Mon Sep 21 10:02:06 CEST 2009
3
Ayuda=Msaada
0 4

  
tags/v_1_12_0_Build_1402/extHelp/package.info
1

  
2
state=devel
3
name=org.gvsig.help
4
official=true
5
code=org.gvsig.help
6
operating-system=all
7
architecture=all
8
java-version=j1_5
9
gvSIG-version=1.12.0
10
version=1.12.0
11
type=plugin
12
description=gvSIG basic extensions
13
build=1402
14
buildNumber=1402
15
model-version=1.0.0
16
		
tags/v_1_12_0_Build_1402/extHelp/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/extHelp/src/org/gvsig/help/HelpExtension.java
1
package org.gvsig.help;
2

  
3
import java.io.File;
4

  
5
import org.apache.log4j.Logger;
6

  
7
import com.iver.andami.PluginServices;
8
import com.iver.andami.help.Help;
9
import com.iver.andami.plugins.Extension;
10

  
11
public class HelpExtension  extends Extension {
12

  
13

  
14
	private Logger log() {
15
		return Logger.getLogger("org.gvsig");
16
	}
17

  
18
	public void initialize() {
19
		// TODO Auto-generated method stub
20

  
21
	}
22

  
23
	public void execute(String actionCommand) {
24

  
25
		// If the option pressed is help control the help panel is created.
26
		if(actionCommand.equalsIgnoreCase("Help")){
27

  
28
			Help help = Help.getHelp();	//My constructor.
29
			help.show();//Launch help panel.
30

  
31
			return;
32
		}
33
	}
34

  
35
	public boolean isEnabled() {
36
		return true;
37
	}
38

  
39
	public boolean isVisible() {
40
		return true;
41
	}
42

  
43
	public static String getExtensionPath() {
44
		String pluginName = "org.gvsig.help";
45
		PluginServices ps = PluginServices.getPluginServices(pluginName);
46
		return ps.getPluginDirectory().getAbsolutePath();
47
	}
48

  
49
	@Override
50
	public void postInitialize() {
51
		super.postInitialize();
52
		Help help = Help.getHelp();	//My constructor.
53
		File folder = new File(HelpExtension.getExtensionPath()+File.separator+"manuals");
54
		String[] l = folder.list();
55
		for (int i = 0; i < l.length; i++) {
56
			File file = new File(folder,l[i]);
57
			String path = file.getAbsolutePath();
58
			String name = l[i];
59
			if (file.isDirectory()){
60
				path = folder.getAbsolutePath();
61
			} else {
62
				if ( !path.toLowerCase().endsWith(".zip") ){
63
					continue;
64
				}
65
			}
66
			if (name.endsWith(File.separator)){
67
				name = name.substring(0, name.length()-1);
68
			}
69
			if (name.toLowerCase().endsWith(".zip")){
70
				name = name.substring(0, name.length()-4);
71
			}
72
			help.addResource(path);
73
			help.addHelp(name);
74
		}
75
	}
76

  
77
}
tags/v_1_12_0_Build_1402/extHelp/build.xml
1
<project name="Generar extension en Andami" default="generate-without-source" basedir=".">
2
    <description>
3
        Instala el plugin de de Ayuda de gvSIG en Andami.
4
    </description>
5
  <!-- set global properties for this build -->
6
  <property name="src" location="src"/>
7
  <property name="build" location="bin"/>
8
  <property name="dist"  location="dist-temp"/>
9
  <property name="plugin" value="org.gvsig.help"/>
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}/manuals"/>
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}/${plugin}.jar" basedir="${build}"/>
50
	</target>
51

  
52
	<target name="copy-data-files" depends="make-package-info">
53
	    <copy todir="${dist}">
54
	    	<fileset dir="./config" includes="**/**"/>
55
	    </copy>
56
		<copy file="package.info" todir="${dist}"/>
57
	    <copy todir="${dist}/lib">
58
	    	<fileset dir="./lib" includes="**/**"/>
59
	    </copy>
60

  
61
	</target>
62

  
63

  
64
	<target name="move-to-andami">
65
		<move todir="${extension-dir}/${plugin}/">
66
			<fileset dir="${dist}" includes="**/**"/>
67
		</move>
68
	</target>
69

  
70
	<target name="clean">
71
		<delete dir="${dist}" failonerror="no"/>
72
		<delete dir="${build}" failonerror="no"/>
73
	</target>
74

  
75
</project>
76

  
77

  
78

  
tags/v_1_12_0_Build_1402/extHelp/.classpath
1
<?xml version="1.0" encoding="UTF-8"?>
2
<classpath>
3
	<classpathentry kind="src" path="src"/>
4
	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
5
	<classpathentry combineaccessrules="false" kind="src" path="/_fwAndami"/>
6
	<classpathentry kind="lib" path="/_fwAndami/lib/jh.jar"/>
7
	<classpathentry kind="lib" path="/_fwAndami/andami.jar"/>
8
	<classpathentry combineaccessrules="false" kind="src" path="/libCorePlugin"/>
9
	<classpathentry kind="lib" path="/_fwAndami/lib/log4j-1.2.14.jar"/>
10
	<classpathentry kind="output" path="bin"/>
11
</classpath>
0 12

  

Also available in: Unified diff