Revision 212 trunk/org.gvsig.scripting/org.gvsig.scripting.swing/org.gvsig.scripting.swing.impl/src/main/java/org/gvsig/scripting/swing/impl/composer/JImportHelp.java
JImportHelp.java | ||
---|---|---|
31 | 31 |
* |
32 | 32 |
*/ |
33 | 33 |
private static final long serialVersionUID = 8870253601718801072L; |
34 |
private ScriptingUIManager uimanager; |
|
35 |
private ScriptingManager manager; |
|
34 |
private final ScriptingUIManager uimanager;
|
|
35 |
private final ScriptingManager manager;
|
|
36 | 36 |
|
37 | 37 |
JTextField from = null; |
38 | 38 |
JTextField name =null; |
... | ... | |
94 | 94 |
|
95 | 95 |
} |
96 | 96 |
|
97 |
public void actionAccept() { |
|
97 |
@Override |
|
98 |
public void actionAccept() { |
|
98 | 99 |
//Comprobar que está rellenos los campos 'import' y 'name' |
99 | 100 |
if(from.getText().length()==0){ |
100 | 101 |
JOptionPane.showMessageDialog(null, "Please, insert the JavaDoc to include", "Error", JOptionPane.ERROR_MESSAGE); |
... | ... | |
113 | 114 |
File file = new File(from.getText()); |
114 | 115 |
URL url= null; |
115 | 116 |
try { |
116 |
url = file.toURL();
|
|
117 |
url = file.toURI().toURL();
|
|
117 | 118 |
} catch (MalformedURLException e) { |
118 | 119 |
// TODO Auto-generated catch block |
119 | 120 |
e.printStackTrace(); |
... | ... | |
132 | 133 |
} |
133 | 134 |
} |
134 | 135 |
|
135 |
public void actionApply() { |
|
136 |
@Override |
|
137 |
public void actionApply() { |
|
136 | 138 |
} |
137 | 139 |
|
138 |
public void actionCancel() { |
|
140 |
@Override |
|
141 |
public void actionCancel() { |
|
139 | 142 |
setVisible(false); |
140 | 143 |
} |
141 | 144 |
|
142 |
public boolean isVisibleAccept() { |
|
145 |
@Override |
|
146 |
public boolean isVisibleAccept() { |
|
143 | 147 |
return true; |
144 | 148 |
} |
145 | 149 |
|
146 |
public boolean isVisibleApply() { |
|
150 |
@Override |
|
151 |
public boolean isVisibleApply() { |
|
147 | 152 |
return false; |
148 | 153 |
} |
149 | 154 |
|
150 |
public boolean isVisibleCancel() { |
|
155 |
@Override |
|
156 |
public boolean isVisibleCancel() { |
|
151 | 157 |
return true; |
152 | 158 |
} |
153 | 159 |
|
Also available in: Unified diff