Skip to content

Commit

Permalink
ntforms behaves as a library so, it should not contain either UI or i…
Browse files Browse the repository at this point in the history
…18n resources inside it.

If we place i18n resource in the library, in order to retrieve them using gvSIG conventions and tools (for example: PluginServices.getText() ) we should deploy ntforms as a extension within gvSIG workspace. In order to avoid this and make ntforms behaves as a library, the UI and i18n resources are dropped and they should live in other places (navtable, the extension inheriting from ntforms, etc).
  • Loading branch information
oandregal committed Feb 27, 2012
1 parent 1bcb8ea commit 1d4231b
Show file tree
Hide file tree
Showing 18 changed files with 14 additions and 8 deletions.
2 changes: 0 additions & 2 deletions build.xml
Expand Up @@ -43,8 +43,6 @@

<target name="copy-data-files">
<copy file="config/config.xml" todir="${dist}" />
<copy file="config/text_es.properties" todir="${dist}" />
<copy file="config/text_en.properties" todir="${dist}" />

<copy todir="${dist}/lib">
<fileset dir="lib" includes="*"/>
Expand Down
1 change: 0 additions & 1 deletion config/text_en.properties

This file was deleted.

1 change: 0 additions & 1 deletion config/text_es.properties

This file was deleted.

Binary file removed images/Select.png
Binary file not shown.
Binary file removed images/Unselect.png
Binary file not shown.
Binary file removed images/copy-selected.png
Binary file not shown.
Binary file removed images/copy.png
Binary file not shown.
Binary file removed images/delete.png
Binary file not shown.
Binary file removed images/filter.png
Binary file not shown.
Binary file removed images/go-first.png
Binary file not shown.
Binary file removed images/go-last.png
Binary file not shown.
Binary file removed images/go-next.png
Binary file not shown.
Binary file removed images/go-previous.png
Binary file not shown.
Binary file removed images/nofilter.png
Binary file not shown.
Binary file removed images/save.png
Binary file not shown.
Binary file removed images/zoom.png
Binary file not shown.
Expand Up @@ -65,8 +65,7 @@ public void mouseClicked(MouseEvent e) {
JPopupMenu popup = new JPopupMenu();

JMenuItem menuOpenANT = new JMenuItem(
PluginServices.getText(this, "open_table")
+ " " + params.getAlphanumericNavTableTitle());
params.getMenuOpenText());
menuOpenANT.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
openANT();
Expand Down
15 changes: 13 additions & 2 deletions src/es/icarto/gvsig/navtableforms/launcher/LauncherParams.java
Expand Up @@ -22,13 +22,20 @@ public class LauncherParams {
private ILauncherForm form;
private String tableName;
private String antTitle;
private String menuOpenText;

public LauncherParams(ILauncherForm form, String tableName, String antTitle) {
public LauncherParams(ILauncherForm form,
String tableName,
String antTitle,
String menuOpenText) {

this.form = form;
this.tableName = tableName;
this.antTitle = antTitle;
this.form = form;
this.menuOpenText = menuOpenText;
}


public String getTableName() {
return this.tableName;
}
Expand All @@ -37,6 +44,10 @@ public String getAlphanumericNavTableTitle() {
return this.antTitle;
}

public String getMenuOpenText() {
return this.menuOpenText;
}

/**
* Get SQLQuery from form. This way, dinamic values as the ones from widgets
* could be retrieved in real time. The ID used to get the sql query is the
Expand Down

0 comments on commit 1d4231b

Please sign in to comment.