root / org.gvsig.expressionfield / trunk / org.gvsig.expressionfield / src / main / java / org / gvsig / expressionfield / AboutExpressionFieldExtension.java @ 24
History | View | Annotate | Download (2.29 KB)
1 |
/*******************************************************************************
|
---|---|
2 |
*
|
3 |
* gvSIG. Desktop Geographic Information System.
|
4 |
*
|
5 |
* Copyright (C) 2007-2013 gvSIG Association.
|
6 |
*
|
7 |
* This program is free software; you can redistribute it and/or
|
8 |
* modify it under the terms of the GNU General Public License
|
9 |
* as published by the Free Software Foundation; either version 3
|
10 |
* of the License, or (at your option) any later version.
|
11 |
*
|
12 |
* This program is distributed in the hope that it will be useful,
|
13 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
15 |
* GNU General Public License for more details.
|
16 |
*
|
17 |
* You should have received a copy of the GNU General Public License
|
18 |
* along with this program; if not, write to the Free Software
|
19 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
20 |
* MA 02110-1301, USA.
|
21 |
*
|
22 |
* For any additional information, do not hesitate to contact us
|
23 |
* at info AT gvsig.com, or visit our website www.gvsig.com.
|
24 |
*
|
25 |
*******************************************************************************/
|
26 |
package org.gvsig.expressionfield; |
27 |
|
28 |
import org.gvsig.about.AboutManager; |
29 |
import org.gvsig.about.AboutParticipant; |
30 |
import org.gvsig.andami.plugins.Extension; |
31 |
import org.gvsig.app.ApplicationLocator; |
32 |
import org.gvsig.app.ApplicationManager; |
33 |
|
34 |
|
35 |
/**
|
36 |
* About extension.
|
37 |
*
|
38 |
* Add the about coments to the gvSIG About panel
|
39 |
*/
|
40 |
|
41 |
public class AboutExpressionFieldExtension extends Extension { |
42 |
|
43 |
public void initialize() { |
44 |
// TODO Auto-generated method stub
|
45 |
|
46 |
} |
47 |
|
48 |
public void postInitialize() { |
49 |
ApplicationManager application = ApplicationLocator.getManager(); |
50 |
|
51 |
AboutManager about = application.getAbout(); |
52 |
|
53 |
about.addDeveloper( |
54 |
"IVER",
|
55 |
this.getClass().getClassLoader().getResource("iver.html"), |
56 |
1
|
57 |
); |
58 |
|
59 |
AboutParticipant participant = about.getDeveloper("IVER");
|
60 |
participant.addContribution( |
61 |
"Expression field",
|
62 |
"Extesi?n para el c?lculo de una expresi?n sobre una columna de la tabla.",
|
63 |
2007,1,1, |
64 |
2007,12,31 |
65 |
); |
66 |
} |
67 |
|
68 |
public void execute(String actionCommand) { |
69 |
|
70 |
} |
71 |
|
72 |
public boolean isEnabled() { |
73 |
return false; |
74 |
} |
75 |
|
76 |
public boolean isVisible() { |
77 |
return false; |
78 |
} |
79 |
|
80 |
} |