Revision 37585
branches/v2_0_0_prep/extensions/org.gvsig.installer/org.gvsig.installer.swing/org.gvsig.installer.swing.impl/src/main/java/org/gvsig/installer/swing/impl/execution/panel/model/PackagesTableModel.java | ||
---|---|---|
44 | 44 |
import org.gvsig.installer.lib.api.creation.MakePluginPackageServiceException; |
45 | 45 |
import org.gvsig.installer.lib.api.execution.InstallPackageService; |
46 | 46 |
import org.gvsig.installer.swing.api.SwingInstallerManager; |
47 |
import org.gvsig.installer.swing.impl.execution.panel.filters.NameAndDescriptionFilter;
|
|
47 |
import org.gvsig.installer.swing.impl.execution.panel.filters.NameDescriptionOrCodeFilter;
|
|
48 | 48 |
import org.gvsig.installer.swing.impl.execution.panel.filters.PackageFilter; |
49 | 49 |
|
50 | 50 |
public class PackagesTableModel extends AbstractTableModel { |
... | ... | |
73 | 73 |
|
74 | 74 |
boolean isOfficial; |
75 | 75 |
private File pluginsFolder; |
76 |
private NameAndDescriptionFilter packageFastFilter = null;
|
|
76 |
private NameDescriptionOrCodeFilter packageFastFilter = null;
|
|
77 | 77 |
private PackageFilter packageFilter = null; |
78 | 78 |
|
79 | 79 |
public PackagesTableModel(SwingInstallerManager swingInstallerManager, |
... | ... | |
91 | 91 |
|
92 | 92 |
columnNames = new String[] { |
93 | 93 |
"", // Check column |
94 |
"", "", swingInstallerManager.getText("name"), |
|
95 |
swingInstallerManager.getText("version"), |
|
96 |
swingInstallerManager.getText("type") }; |
|
94 |
"", "", swingInstallerManager.getText("_name"),
|
|
95 |
swingInstallerManager.getText("_version"),
|
|
96 |
swingInstallerManager.getText("_type") };
|
|
97 | 97 |
|
98 | 98 |
} |
99 | 99 |
|
... | ... | |
318 | 318 |
return installerInfo.getVersion(); |
319 | 319 |
case 5: |
320 | 320 |
return installerInfo.getType(); |
321 |
// case 5: |
|
322 |
// if (installerInfo.getOperatingSystem().equals( |
|
323 |
// installerInfo.getArchitecture())) { |
|
324 |
// return "all"; |
|
325 |
// } else { |
|
326 |
// return installerInfo.getOperatingSystem() + " " |
|
327 |
// + installerInfo.getArchitecture(); |
|
328 |
// } |
|
329 | 321 |
default: |
330 | 322 |
return ""; |
331 | 323 |
|
... | ... | |
541 | 533 |
this.packageFilter = filter; |
542 | 534 |
} |
543 | 535 |
|
544 |
public void setFilter(NameAndDescriptionFilter filter) {
|
|
536 |
public void setFilter(NameDescriptionOrCodeFilter filter) {
|
|
545 | 537 |
this.packageFastFilter = filter; |
546 | 538 |
} |
547 | 539 |
|
branches/v2_0_0_prep/extensions/org.gvsig.installer/org.gvsig.installer.swing/org.gvsig.installer.swing.impl/src/main/java/org/gvsig/installer/swing/impl/execution/panel/model/IPackageSelectionListener.java | ||
---|---|---|
32 | 32 |
*/ |
33 | 33 |
public interface IPackageSelectionListener { |
34 | 34 |
|
35 |
public void packageSelectionChanged(Object value, int row, int column);
|
|
35 |
public void packageSelectionChanged(Object value, int row, int column);
|
|
36 | 36 |
} |
branches/v2_0_0_prep/extensions/org.gvsig.installer/org.gvsig.installer.swing/org.gvsig.installer.swing.impl/src/main/java/org/gvsig/installer/swing/impl/execution/panel/FastFilterButtonsPanel.java | ||
---|---|---|
34 | 34 |
|
35 | 35 |
import org.gvsig.installer.swing.api.SwingInstallerLocator; |
36 | 36 |
import org.gvsig.installer.swing.api.SwingInstallerManager; |
37 |
import org.gvsig.installer.swing.impl.DefaultSwingInstallerManager; |
|
38 |
import org.gvsig.installer.swing.impl.execution.panel.filters.NameAndDescriptionFilter; |
|
37 |
import org.gvsig.installer.swing.impl.execution.panel.filters.NameDescriptionOrCodeFilter; |
|
39 | 38 |
|
40 | 39 |
/** |
41 | 40 |
* @author gvSIG Team |
... | ... | |
52 | 51 |
private JButton searchButton; |
53 | 52 |
private JButton resetButton; |
54 | 53 |
private JTextField textField; |
55 |
private NameAndDescriptionFilter filter = null;
|
|
54 |
private NameDescriptionOrCodeFilter filter = null;
|
|
56 | 55 |
|
57 | 56 |
public FastFilterButtonsPanel(PackagesTablePanel panel) { |
58 | 57 |
this.panel = panel; |
... | ... | |
63 | 62 |
|
64 | 63 |
private void initComponents() { |
65 | 64 |
|
66 |
filter = new NameAndDescriptionFilter("");
|
|
65 |
filter = new NameDescriptionOrCodeFilter("");
|
|
67 | 66 |
|
68 | 67 |
JLabel fastFilterLabel = new JLabel(swingInstallerManager |
69 | 68 |
.getText("_fast_filter")); |
branches/v2_0_0_prep/extensions/org.gvsig.installer/org.gvsig.installer.swing/org.gvsig.installer.swing.impl/src/main/java/org/gvsig/installer/swing/impl/execution/panel/PackagesTablePanel.java | ||
---|---|---|
49 | 49 |
import org.gvsig.installer.lib.api.PackageInfo; |
50 | 50 |
import org.gvsig.installer.swing.api.SwingInstallerLocator; |
51 | 51 |
import org.gvsig.installer.swing.api.SwingInstallerManager; |
52 |
import org.gvsig.installer.swing.impl.execution.panel.filters.NameAndDescriptionFilter;
|
|
52 |
import org.gvsig.installer.swing.impl.execution.panel.filters.NameDescriptionOrCodeFilter;
|
|
53 | 53 |
import org.gvsig.installer.swing.impl.execution.panel.filters.PackageFilter; |
54 | 54 |
import org.gvsig.installer.swing.impl.execution.panel.model.PackagesTableModel; |
55 | 55 |
import org.gvsig.installer.swing.impl.execution.panel.model.PackagesTableModel.PackageOfficialRecommended; |
... | ... | |
290 | 290 |
selectPackagesPanel.updatePanel(); |
291 | 291 |
} |
292 | 292 |
|
293 |
public void setFilter(NameAndDescriptionFilter filter) {
|
|
293 |
public void setFilter(NameDescriptionOrCodeFilter filter) {
|
|
294 | 294 |
PackagesTableModel pluginsTableModel = (PackagesTableModel) pluginsTable |
295 | 295 |
.getModel(); |
296 | 296 |
pluginsTableModel.setFilter(filter); |
branches/v2_0_0_prep/extensions/org.gvsig.installer/org.gvsig.installer.swing/org.gvsig.installer.swing.impl/src/main/java/org/gvsig/installer/swing/impl/execution/panel/filters/NameAndDescriptionFilter.java | ||
---|---|---|
1 |
/* gvSIG. Geographic Information System of the Valencian Government |
|
2 |
* |
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department |
|
4 |
* of the Valencian Government (CIT) |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 2 |
|
9 |
* of the License, or (at your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program; if not, write to the Free Software |
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
19 |
* MA 02110-1301, USA. |
|
20 |
* |
|
21 |
*/ |
|
22 |
package org.gvsig.installer.swing.impl.execution.panel.filters; |
|
23 |
|
|
24 |
import org.gvsig.installer.lib.api.PackageInfo; |
|
25 |
|
|
26 |
/** |
|
27 |
* @author gvSIG Team |
|
28 |
* @version $Id$ |
|
29 |
* |
|
30 |
*/ |
|
31 |
public class NameAndDescriptionFilter implements PackageFilter { |
|
32 |
|
|
33 |
private String filterString; |
|
34 |
|
|
35 |
public NameAndDescriptionFilter(String filterString) { |
|
36 |
this.filterString = filterString; |
|
37 |
} |
|
38 |
|
|
39 |
public void setFilter(String filter) { |
|
40 |
this.filterString = filter; |
|
41 |
} |
|
42 |
|
|
43 |
public String getFilter() { |
|
44 |
return this.filterString; |
|
45 |
} |
|
46 |
|
|
47 |
public boolean match(PackageInfo pkg) { |
|
48 |
Boolean matchesName; |
|
49 |
Boolean matchesDescription; |
|
50 |
String regularExpressionString = "(?i).*" + filterString + ".*"; |
|
51 |
String packageString; |
|
52 |
|
|
53 |
packageString = pkg.getName(); |
|
54 |
matchesName = packageString.matches(regularExpressionString); |
|
55 |
packageString = pkg.getDescription(); |
|
56 |
matchesDescription = packageString.matches(regularExpressionString); |
|
57 |
|
|
58 |
return matchesName || matchesDescription; |
|
59 |
} |
|
60 |
|
|
61 |
} |
branches/v2_0_0_prep/extensions/org.gvsig.installer/org.gvsig.installer.swing/org.gvsig.installer.swing.impl/src/main/java/org/gvsig/installer/swing/impl/execution/panel/filters/NameDescriptionOrCodeFilter.java | ||
---|---|---|
1 |
/* gvSIG. Geographic Information System of the Valencian Government |
|
2 |
* |
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department |
|
4 |
* of the Valencian Government (CIT) |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 2 |
|
9 |
* of the License, or (at your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program; if not, write to the Free Software |
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
19 |
* MA 02110-1301, USA. |
|
20 |
* |
|
21 |
*/ |
|
22 |
package org.gvsig.installer.swing.impl.execution.panel.filters; |
|
23 |
|
|
24 |
import org.gvsig.installer.lib.api.PackageInfo; |
|
25 |
|
|
26 |
/** |
|
27 |
* @author gvSIG Team |
|
28 |
* @version $Id$ |
|
29 |
* |
|
30 |
*/ |
|
31 |
public class NameDescriptionOrCodeFilter implements PackageFilter { |
|
32 |
|
|
33 |
private String filterString; |
|
34 |
|
|
35 |
public NameDescriptionOrCodeFilter(String filterString) { |
|
36 |
this.filterString = filterString; |
|
37 |
} |
|
38 |
|
|
39 |
public void setFilter(String filter) { |
|
40 |
this.filterString = filter; |
|
41 |
} |
|
42 |
|
|
43 |
public String getFilter() { |
|
44 |
return this.filterString; |
|
45 |
} |
|
46 |
|
|
47 |
public boolean match(PackageInfo pkg) { |
|
48 |
Boolean matchesName; |
|
49 |
Boolean matchesDescription; |
|
50 |
Boolean matchesCode; |
|
51 |
String regularExpressionString = "(?i).*" + filterString + ".*"; |
|
52 |
String packageString; |
|
53 |
|
|
54 |
packageString = pkg.getName(); |
|
55 |
matchesName = packageString.matches(regularExpressionString); |
|
56 |
packageString = pkg.getDescription(); |
|
57 |
matchesDescription = packageString.matches(regularExpressionString); |
|
58 |
packageString = pkg.getCode(); |
|
59 |
matchesCode = packageString.matches(regularExpressionString); |
|
60 |
|
|
61 |
return matchesName || matchesDescription || matchesCode; |
|
62 |
} |
|
63 |
|
|
64 |
} |
|
0 | 65 |
branches/v2_0_0_prep/extensions/org.gvsig.installer/org.gvsig.installer.swing/org.gvsig.installer.swing.impl/src/main/java/org/gvsig/installer/swing/impl/execution/panel/renderers/OfficialRecommendedCellRenderer.java | ||
---|---|---|
30 | 30 |
import javax.swing.JTable; |
31 | 31 |
import javax.swing.table.DefaultTableCellRenderer; |
32 | 32 |
|
33 |
import org.gvsig.installer.swing.api.SwingInstallerLocator; |
|
34 |
import org.gvsig.installer.swing.impl.DefaultSwingInstallerManager; |
|
33 | 35 |
import org.gvsig.installer.swing.impl.execution.panel.model.PackagesTableModel.PackageOfficialRecommended; |
34 | 36 |
|
35 | 37 |
/** |
... | ... | |
41 | 43 |
|
42 | 44 |
private static final long serialVersionUID = 1195015856704835320L; |
43 | 45 |
|
46 |
private DefaultSwingInstallerManager swingInstallerManager; |
|
47 |
|
|
44 | 48 |
public OfficialRecommendedCellRenderer() { |
49 |
swingInstallerManager = (DefaultSwingInstallerManager) SwingInstallerLocator |
|
50 |
.getSwingInstallerManager(); |
|
45 | 51 |
} |
46 | 52 |
|
47 | 53 |
@Override |
... | ... | |
59 | 65 |
resource = this.getClass().getResource( |
60 | 66 |
"/images/officialRecommended.png"); |
61 | 67 |
icon = new ImageIcon(resource); |
62 |
check.setToolTipText("_official_recommended"); |
|
68 |
check.setToolTipText(swingInstallerManager |
|
69 |
.getText("_official_recommended")); |
|
63 | 70 |
check.setIcon(icon); |
64 | 71 |
|
65 | 72 |
return check; |
... | ... | |
68 | 75 |
resource = this.getClass().getResource( |
69 | 76 |
"/images/officialNotRecommended.png"); |
70 | 77 |
icon = new ImageIcon(resource); |
71 |
check.setToolTipText("_official");
|
|
78 |
check.setToolTipText(swingInstallerManager.getText("_official"));
|
|
72 | 79 |
check.setIcon(icon); |
73 | 80 |
|
74 | 81 |
return check; |
... | ... | |
78 | 85 |
"/images/notOfficialRecommended.png"); |
79 | 86 |
icon = new ImageIcon(resource); |
80 | 87 |
check.setIcon(icon); |
81 |
check.setToolTipText("_not_official_recommended"); |
|
88 |
check.setToolTipText(swingInstallerManager |
|
89 |
.getText("_not_official_recommended")); |
|
82 | 90 |
return check; |
83 | 91 |
|
84 | 92 |
case NOT_OFFICIAL_NOT_RECOMMENDED: |
85 | 93 |
resource = this.getClass().getResource("/images/notOfficial.png"); |
86 | 94 |
icon = new ImageIcon(resource); |
87 | 95 |
check.setIcon(icon); |
88 |
check.setToolTipText("_not_official"); |
|
96 |
check |
|
97 |
.setToolTipText(swingInstallerManager |
|
98 |
.getText("_not_official")); |
|
89 | 99 |
return check; |
90 | 100 |
|
91 | 101 |
default: |
branches/v2_0_0_prep/extensions/org.gvsig.installer/org.gvsig.installer.swing/org.gvsig.installer.swing.impl/src/main/java/org/gvsig/installer/swing/impl/execution/panel/renderers/OsAndArchitectureCellRenderer.java | ||
---|---|---|
59 | 59 |
resource = this.getClass().getResource("/images/linux_x86.png"); |
60 | 60 |
icon = new ImageIcon(resource); |
61 | 61 |
check.setIcon(icon); |
62 |
check.setToolTipText("_linux_x86");
|
|
62 |
check.setToolTipText("Linux x86");
|
|
63 | 63 |
return check; |
64 | 64 |
|
65 | 65 |
case LINUX_64: |
66 | 66 |
resource = this.getClass().getResource("/images/linux_AMD64.png"); |
67 | 67 |
icon = new ImageIcon(resource); |
68 | 68 |
check.setIcon(icon); |
69 |
check.setToolTipText("_linux_AMD64");
|
|
69 |
check.setToolTipText("Linux AMD64");
|
|
70 | 70 |
return check; |
71 | 71 |
|
72 | 72 |
case WINDOLS_32: |
73 | 73 |
resource = this.getClass().getResource("/images/windows_x86.png"); |
74 | 74 |
icon = new ImageIcon(resource); |
75 | 75 |
check.setIcon(icon); |
76 |
check.setToolTipText("_windows_x86");
|
|
76 |
check.setToolTipText("Windows x86");
|
|
77 | 77 |
return check; |
78 | 78 |
|
79 | 79 |
case WINDOLS_64: |
80 | 80 |
resource = this.getClass().getResource("/images/windows_AMD64.png"); |
81 | 81 |
icon = new ImageIcon(resource); |
82 | 82 |
check.setIcon(icon); |
83 |
check.setToolTipText("_windows_AMD64");
|
|
83 |
check.setToolTipText("Windows AMD64");
|
|
84 | 84 |
return check; |
85 | 85 |
|
86 | 86 |
default: |
branches/v2_0_0_prep/extensions/org.gvsig.installer/org.gvsig.installer.swing/org.gvsig.installer.swing.impl/src/main/java/org/gvsig/installer/swing/impl/execution/panel/renderers/InstallStatusCellRenderer.java | ||
---|---|---|
30 | 30 |
import javax.swing.JTable; |
31 | 31 |
import javax.swing.table.DefaultTableCellRenderer; |
32 | 32 |
|
33 |
import org.gvsig.installer.swing.api.SwingInstallerLocator; |
|
34 |
import org.gvsig.installer.swing.impl.DefaultSwingInstallerManager; |
|
33 | 35 |
import org.gvsig.installer.swing.impl.execution.panel.model.PackagesTableModel.PackageStatus; |
34 | 36 |
|
35 | 37 |
/** |
... | ... | |
41 | 43 |
|
42 | 44 |
private static final long serialVersionUID = 1195015856704835320L; |
43 | 45 |
|
46 |
private DefaultSwingInstallerManager swingInstallerManager; |
|
47 |
|
|
44 | 48 |
public InstallStatusCellRenderer() { |
49 |
swingInstallerManager = (DefaultSwingInstallerManager) SwingInstallerLocator |
|
50 |
.getSwingInstallerManager(); |
|
45 | 51 |
} |
46 | 52 |
|
47 | 53 |
@Override |
... | ... | |
59 | 65 |
resource = this.getClass().getResource("/images/installed.png"); |
60 | 66 |
icon = new ImageIcon(resource); |
61 | 67 |
check.setIcon(icon); |
62 |
check.setToolTipText("_already_installed. _check_to_reinstall"); |
|
68 |
check.setToolTipText(swingInstallerManager |
|
69 |
.getText("_already_installed,_check_to_reinstall")); |
|
63 | 70 |
return check; |
64 | 71 |
|
65 | 72 |
case TO_REINSTALL: |
66 | 73 |
resource = this.getClass().getResource("/images/toReinstall.png"); |
67 | 74 |
icon = new ImageIcon(resource); |
68 | 75 |
check.setIcon(icon); |
69 |
check.setToolTipText("_checked_to_reinstall"); |
|
76 |
check.setToolTipText(swingInstallerManager |
|
77 |
.getText("_checked_to_reinstall")); |
|
70 | 78 |
return check; |
71 | 79 |
|
72 | 80 |
case NOT_INSTALLED: |
73 | 81 |
resource = this.getClass().getResource("/images/notInstalled.png"); |
74 | 82 |
icon = new ImageIcon(resource); |
75 | 83 |
check.setIcon(icon); |
76 |
check.setToolTipText("_not_installed. _check_to_install"); |
|
84 |
check.setToolTipText(swingInstallerManager |
|
85 |
.getText("_not_installed,_check_to_install")); |
|
77 | 86 |
return check; |
78 | 87 |
|
79 | 88 |
case TO_INSTALL: |
80 | 89 |
resource = this.getClass().getResource("/images/toInstall.png"); |
81 | 90 |
icon = new ImageIcon(resource); |
82 | 91 |
check.setIcon(icon); |
83 |
check.setToolTipText("_checked_to_install"); |
|
92 |
check.setToolTipText(swingInstallerManager |
|
93 |
.getText("_checked_to_install")); |
|
84 | 94 |
return check; |
85 | 95 |
|
86 | 96 |
case INSTALLED_NOT_INSTALLABLE: |
... | ... | |
88 | 98 |
"/images/installedNotInstallable.png"); |
89 | 99 |
icon = new ImageIcon(resource); |
90 | 100 |
check.setIcon(icon); |
91 |
check.setToolTipText("_already_installed. _not_installable"); |
|
101 |
check.setToolTipText(swingInstallerManager |
|
102 |
.getText("_already_installed_but_not_installable")); |
|
92 | 103 |
return check; |
93 | 104 |
|
94 | 105 |
default: |
... | ... | |
96 | 107 |
} |
97 | 108 |
|
98 | 109 |
} |
99 |
|
|
100 | 110 |
} |
branches/v2_0_0_prep/extensions/org.gvsig.installer/org.gvsig.installer.swing/org.gvsig.installer.swing.impl/src/main/java/org/gvsig/installer/swing/impl/execution/panel/SelectBundlesPanel.java | ||
---|---|---|
153 | 153 |
northPanel.setLayout(new GridBagLayout()); |
154 | 154 |
|
155 | 155 |
standardRadioButton.setText(swingInstallerManager |
156 |
.getText("standard_installation")); |
|
156 |
.getText("_standard_installation"));
|
|
157 | 157 |
gridBagConstraints = new GridBagConstraints(); |
158 | 158 |
gridBagConstraints.anchor = GridBagConstraints.WEST; |
159 | 159 |
gridBagConstraints.insets = new Insets(2, 2, 2, 2); |
160 | 160 |
northPanel.add(standardRadioButton, gridBagConstraints); |
161 | 161 |
|
162 | 162 |
fileRadioButton.setText(swingInstallerManager |
163 |
.getText("installation_from_file")); |
|
163 |
.getText("_installation_from_file"));
|
|
164 | 164 |
gridBagConstraints = new GridBagConstraints(); |
165 | 165 |
gridBagConstraints.gridx = 0; |
166 | 166 |
gridBagConstraints.gridy = 1; |
... | ... | |
176 | 176 |
northPanel.add(selectFileText, gridBagConstraints); |
177 | 177 |
|
178 | 178 |
urlRadioButton.setText(swingInstallerManager |
179 |
.getText("installation_from_url")); |
|
179 |
.getText("_installation_from_url"));
|
|
180 | 180 |
gridBagConstraints = new GridBagConstraints(); |
181 | 181 |
gridBagConstraints.gridx = 0; |
182 | 182 |
gridBagConstraints.gridy = 3; |
branches/v2_0_0_prep/extensions/org.gvsig.installer/org.gvsig.installer.swing/org.gvsig.installer.swing.impl/src/main/java/org/gvsig/installer/swing/impl/execution/panel/TypicalOrAdvancedPanel.java | ||
---|---|---|
45 | 45 |
public class TypicalOrAdvancedPanel extends JPanel implements ItemListener, |
46 | 46 |
DocumentListener { |
47 | 47 |
|
48 |
/** |
|
49 |
* |
|
50 |
*/ |
|
51 | 48 |
private static final long serialVersionUID = 8488517767926838568L; |
52 | 49 |
|
53 | 50 |
protected DefaultSwingInstallerManager swingInstallerManager = null; |
... | ... | |
58 | 55 |
private ButtonGroup buttonGroup; |
59 | 56 |
|
60 | 57 |
public TypicalOrAdvancedPanel() { |
61 |
|
|
62 | 58 |
swingInstallerManager = |
63 | 59 |
(DefaultSwingInstallerManager) SwingInstallerLocator |
64 | 60 |
.getSwingInstallerManager(); |
65 |
|
|
66 | 61 |
initComponents(); |
67 | 62 |
initListeners(); |
68 | 63 |
typicalModeRadioButton.setSelected(true); |
69 | 64 |
|
70 | 65 |
} |
71 | 66 |
|
72 |
/** |
|
73 |
* |
|
74 |
*/ |
|
75 | 67 |
private void initListeners() { |
76 | 68 |
typicalModeRadioButton.addItemListener(this); |
77 | 69 |
advancedModeRadioButton.addItemListener(this); |
78 | 70 |
} |
79 | 71 |
|
80 |
/** |
|
81 |
* |
|
82 |
*/ |
|
83 | 72 |
private void initComponents() { |
84 | 73 |
java.awt.GridBagConstraints gridBagConstraints; |
85 | 74 |
|
... | ... | |
97 | 86 |
northPanel.setLayout(new GridBagLayout()); |
98 | 87 |
|
99 | 88 |
typicalModeRadioButton.setText(swingInstallerManager |
100 |
.getText("typical_installation")); |
|
89 |
.getText("_typical_installation"));
|
|
101 | 90 |
gridBagConstraints = new GridBagConstraints(); |
102 | 91 |
gridBagConstraints.gridx = 0; |
103 | 92 |
gridBagConstraints.gridy = 1; |
... | ... | |
106 | 95 |
northPanel.add(typicalModeRadioButton, gridBagConstraints); |
107 | 96 |
|
108 | 97 |
advancedModeRadioButton.setText(swingInstallerManager |
109 |
.getText("advanced_installation")); |
|
98 |
.getText("_advanced_installation"));
|
|
110 | 99 |
gridBagConstraints = new GridBagConstraints(); |
111 | 100 |
gridBagConstraints.gridx = 0; |
112 | 101 |
gridBagConstraints.gridy = 2; |
... | ... | |
135 | 124 |
} |
136 | 125 |
|
137 | 126 |
public void itemStateChanged(ItemEvent arg0) { |
138 |
// TODO Auto-generated method stub |
|
139 | 127 |
} |
140 | 128 |
|
141 | 129 |
public void changedUpdate(DocumentEvent arg0) { |
142 |
// TODO Auto-generated method stub |
|
143 | 130 |
} |
144 | 131 |
|
145 | 132 |
public void insertUpdate(DocumentEvent arg0) { |
146 |
// TODO Auto-generated method stub |
|
147 | 133 |
} |
148 | 134 |
|
149 | 135 |
public void removeUpdate(DocumentEvent arg0) { |
150 |
// TODO Auto-generated method stub |
|
151 | 136 |
} |
152 | 137 |
|
153 | 138 |
} |
branches/v2_0_0_prep/extensions/org.gvsig.installer/org.gvsig.installer.swing/org.gvsig.installer.swing.impl/src/main/java/org/gvsig/installer/swing/impl/execution/panel/PackagePropertiesFilterPanel.java | ||
---|---|---|
83 | 83 |
// filterScrollPane.addMouseListener(mouseListener); |
84 | 84 |
jList.addMouseListener(mouseListener); |
85 | 85 |
|
86 |
JButton categoriesButton = new JButton(manager.getText("_Categories"));
|
|
86 |
JButton categoriesButton = new JButton(manager.getText("_categories"));
|
|
87 | 87 |
categoriesButton.setActionCommand("categories"); |
88 | 88 |
categoriesButton.addActionListener(this); |
89 | 89 |
|
90 |
JButton typesButton = new JButton(manager.getText("_Types"));
|
|
90 |
JButton typesButton = new JButton(manager.getText("_types"));
|
|
91 | 91 |
typesButton.setActionCommand("types"); |
92 | 92 |
typesButton.addActionListener(this); |
93 | 93 |
|
branches/v2_0_0_prep/extensions/org.gvsig.installer/org.gvsig.installer.swing/org.gvsig.installer.swing.impl/src/main/resources/org/gvsig/symbology/app/symbolinstaller/text.properties | ||
---|---|---|
12 | 12 |
_create_package=Creaci?n del paquete |
13 | 13 |
_select_symbol_folder=Selecciona carpeta de s?mbolos |
14 | 14 |
_Symbols_wizard=Instalador de s?mbolos |
15 |
_fast_filter=Filtro r?pido |
|
15 |
_typical_installation=Instalaci?n t?pica |
|
16 |
_advanced_installation=Instalaci?n avanzada |
|
17 |
_fast_filter=Filtro r?pido |
|
18 |
_search=Buscar |
|
19 |
_reset_filters=Restaurar filtros |
|
20 |
_categories=Categor?as |
|
21 |
_types=Tipos |
|
22 |
_standard_installation=Instalaci?n est?ndar |
|
23 |
_installation_from_file=Instalaci?n desde archivo |
|
24 |
_installation_from_url=Instalaci?n desde URL |
|
25 |
_name=Nombre |
|
26 |
_version=Versi?n |
|
27 |
_type=Tipo |
|
28 |
_already_installed,_check_to_reinstall=Ya instalado, marca para reinstalar. |
|
29 |
_checked_to_reinstall=Marcado para reinstalar. |
|
30 |
_not_installed,_check_to_install=No instalado, marca para instalar. |
|
31 |
_checked_to_install=Marcado para instalar. |
|
32 |
_already_installed_but_not_installable=Ya instalado pero no instalable. |
|
33 |
_official_recommended=Official y recomendado |
|
34 |
_official=Oficial |
|
35 |
_not_official_recommended=No oficial, recomendado |
|
36 |
_not_official=No oficial |
branches/v2_0_0_prep/extensions/org.gvsig.installer/org.gvsig.installer.swing/org.gvsig.installer.swing.impl/src/main/resources/org/gvsig/symbology/app/symbolinstaller/text_en.properties | ||
---|---|---|
12 | 12 |
_create_package=Create package |
13 | 13 |
_select_symbol_folder=Select symbol folder |
14 | 14 |
_Symbols_wizard=Symbols_wizard |
15 |
_fast_filter=Fast filter |
|
15 |
_typical_installation=Typical installation |
|
16 |
_advanced_installation=Advanced installation |
|
17 |
_fast_filter=Fast filter |
|
18 |
_search=Search |
|
19 |
_reset_filters=Reset filters |
|
20 |
_categories=Categories |
|
21 |
_types=Types |
|
22 |
_standard_installation=Standard installation |
|
23 |
_installation_from_file=Installation from file |
|
24 |
_installation_from_url=Installation from URL |
|
25 |
_name=Name |
|
26 |
_version=Version |
|
27 |
_type=Type |
|
28 |
_already_installed,_check_to_reinstall=Already installed, check to reinstall |
|
29 |
_checked_to_reinstall=Checked to reinstall |
|
30 |
_not_installed,_check_to_install=Not installed, check to reinstall |
|
31 |
_checked_to_install=Checked to install |
|
32 |
_already_installed_but_not_installable=Already installed but not installable |
|
33 |
_official_recommended=Official and recommended |
|
34 |
_official=Official |
|
35 |
_not_official_recommended=Not official, recommended |
|
36 |
_not_official=Not official |
Also available in: Unified diff