Revision 19520
tags/J2ME_compat_v1_2_Build_1209/frameworks/_fwAndami/.settings/org.eclipse.jdt.core.prefs | ||
---|---|---|
1 |
#Fri Mar 07 13:50:56 CET 2008 |
|
2 |
eclipse.preferences.version=1 |
|
3 |
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled |
|
4 |
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.2 |
|
5 |
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve |
|
6 |
org.eclipse.jdt.core.compiler.compliance=1.4 |
|
7 |
org.eclipse.jdt.core.compiler.debug.lineNumber=generate |
|
8 |
org.eclipse.jdt.core.compiler.debug.localVariable=generate |
|
9 |
org.eclipse.jdt.core.compiler.debug.sourceFile=generate |
|
10 |
org.eclipse.jdt.core.compiler.problem.assertIdentifier=warning |
|
11 |
org.eclipse.jdt.core.compiler.problem.enumIdentifier=warning |
|
12 |
org.eclipse.jdt.core.compiler.source=1.3 |
tags/J2ME_compat_v1_2_Build_1209/frameworks/_fwAndami/.settings/org.eclipse.jdt.ui.prefs | ||
---|---|---|
1 |
#Fri Mar 07 13:50:56 CET 2008 |
|
2 |
eclipse.preferences.version=1 |
|
3 |
internal.default.compliance=default |
tags/J2ME_compat_v1_2_Build_1209/frameworks/_fwAndami/src/com/iver/andami/preferences/GenericDlgPreferences.java | ||
---|---|---|
239 | 239 |
e.printStackTrace(); |
240 | 240 |
} |
241 | 241 |
} |
242 |
ArrayList<IPreference> prefList = new ArrayList<IPreference>(preferences.values());
|
|
242 |
ArrayList prefList = new ArrayList(preferences.values());
|
|
243 | 243 |
addPreferencePages(prefList); |
244 | 244 |
} |
245 | 245 |
// TODO este m?todo es un parche provisional mientras se hace un refactoring de |
... | ... | |
366 | 366 |
getJTreePlugins().setModel(treeModel); |
367 | 367 |
getJTreePlugins().repaint(); |
368 | 368 |
} |
369 |
private void addPreferencePages(ArrayList<IPreference> prefs){
|
|
369 |
private void addPreferencePages(ArrayList prefs){ |
|
370 | 370 |
while (prefs.size()>0){ |
371 |
IPreference pref=prefs.get(0); |
|
371 |
IPreference pref= (IPreference) prefs.get(0);
|
|
372 | 372 |
// System.err.println("IPreference a persistir= "+pref.getID()); |
373 | 373 |
if (pref.getParentID()!=null && preferences.get(pref.getParentID())==null){ |
374 | 374 |
prefs.remove(pref); |
tags/J2ME_compat_v1_2_Build_1209/frameworks/_fwAndami/src/com/iver/andami/ui/theme/Theme.java | ||
---|---|---|
49 | 49 |
private static final String FONTSIZE="fontsize"; |
50 | 50 |
private static final String FONTCOLOR="color"; |
51 | 51 |
|
52 |
private ArrayList<String> images = new ArrayList<String>(); |
|
52 |
// ArrayList<String> |
|
53 |
private ArrayList images = new ArrayList(); |
|
53 | 54 |
private String icon; |
54 |
private ArrayList<String> timers = new ArrayList<String>();
|
|
55 |
private ArrayList<String> versions = new ArrayList<String>();
|
|
56 |
private ArrayList<String> fontColors = new ArrayList<String>();
|
|
57 |
private ArrayList<String> fontSizes = new ArrayList<String>();
|
|
58 |
private ArrayList<String> fontpositionsX=new ArrayList<String>();
|
|
59 |
private ArrayList<String> fontpositionsY=new ArrayList<String>();
|
|
55 |
private ArrayList timers = new ArrayList();
|
|
56 |
private ArrayList versions = new ArrayList();
|
|
57 |
private ArrayList fontColors = new ArrayList();
|
|
58 |
private ArrayList fontSizes = new ArrayList();
|
|
59 |
private ArrayList fontpositionsX=new ArrayList();
|
|
60 |
private ArrayList fontpositionsY=new ArrayList();
|
|
60 | 61 |
|
61 | 62 |
private String name = null; |
62 | 63 |
private String backgroundimage; |
... | ... | |
219 | 220 |
ImageIcon[] imgs = new ImageIcon[images.size()]; |
220 | 221 |
|
221 | 222 |
for (int i = 0; i < images.size(); i++) { |
222 |
imgs[i] = new ImageIcon(images.get(i)); |
|
223 |
imgs[i] = new ImageIcon((String) images.get(i));
|
|
223 | 224 |
} |
224 | 225 |
|
225 | 226 |
return imgs; |
... | ... | |
269 | 270 |
long[] tms = new long[timers.size()]; |
270 | 271 |
|
271 | 272 |
for (int i = 0; i < tms.length; i++) { |
272 |
tms[i] = Long.parseLong(timers.get(i)); |
|
273 |
tms[i] = Long.parseLong((String) timers.get(i));
|
|
273 | 274 |
} |
274 | 275 |
|
275 | 276 |
return tms; |
... | ... | |
289 | 290 |
* @return String[] |
290 | 291 |
*/ |
291 | 292 |
public String[] getVersions() { |
292 |
return versions.toArray(new String[0]); |
|
293 |
return (String[]) versions.toArray(new String[0]);
|
|
293 | 294 |
} |
294 | 295 |
/** |
295 | 296 |
* Return the position of text to overwrite the images. |
... | ... | |
300 | 301 |
Point[] points=new Point[fontpositionsX.size()]; |
301 | 302 |
for (int i=0;i<points.length;i++) { |
302 | 303 |
try { |
303 |
points[i]=new Point(Integer.valueOf(fontpositionsX.get(i)),Integer.valueOf(fontpositionsY.get(i))); |
|
304 |
points[i]=new Point( |
|
305 |
Integer.parseInt((String) fontpositionsX.get(i)), |
|
306 |
Integer.parseInt((String) fontpositionsY.get(i))); |
|
304 | 307 |
}catch (NumberFormatException e) { |
305 | 308 |
NotificationManager.addInfo(PluginServices.getText(this,"incorrect_position"),e); |
306 | 309 |
} |
... | ... | |
316 | 319 |
int[] sizes=new int[fontSizes.size()]; |
317 | 320 |
for (int i=0;i<sizes.length;i++) { |
318 | 321 |
try { |
319 |
sizes[i]=Integer.valueOf(fontSizes.get(i));
|
|
322 |
sizes[i]=Integer.parseInt((String) fontSizes.get(i));
|
|
320 | 323 |
}catch (NumberFormatException e) { |
321 | 324 |
NotificationManager.addInfo(PluginServices.getText(this,"incorrect_size"),e); |
322 | 325 |
} |
... | ... | |
332 | 335 |
Color[] colors=new Color[fontColors.size()]; |
333 | 336 |
for (int i=0;i<colors.length;i++) { |
334 | 337 |
try { |
335 |
String s=fontColors.get(i);
|
|
338 |
String s = (String) fontColors.get(i);
|
|
336 | 339 |
String[] rgb=s.split(","); |
337 |
colors[i]=new Color(Integer.valueOf(rgb[0]),Integer.valueOf(rgb[1]),Integer.valueOf(rgb[2])); |
|
340 |
colors[i] = new Color( |
|
341 |
Integer.parseInt((String) rgb[0]), |
|
342 |
Integer.parseInt((String) rgb[1]), |
|
343 |
Integer.parseInt((String) rgb[2])); |
|
338 | 344 |
}catch (Exception e) { |
339 | 345 |
NotificationManager.addInfo(PluginServices.getText(this,"incorrect_color"),e); |
340 | 346 |
} |
tags/J2ME_compat_v1_2_Build_1209/frameworks/_fwAndami/src/com/iver/andami/iconthemes/AbstractIconTheme.java | ||
---|---|---|
70 | 70 |
* @author Cesar Martinez Izquierdo <cesar.martinez@iver.es> |
71 | 71 |
*/ |
72 | 72 |
public abstract class AbstractIconTheme implements IIconTheme { |
73 |
HashMap<String, Object> iconList = new HashMap<String, Object>();
|
|
73 |
HashMap iconList = new HashMap();
|
|
74 | 74 |
private String name=null; |
75 | 75 |
private String description=null; |
76 | 76 |
private String version="1.0"; |
tags/J2ME_compat_v1_2_Build_1209/frameworks/_fwAndami/src/com/iver/andami/iconthemes/IconThemeMemory.java | ||
---|---|---|
24 | 24 |
/** |
25 | 25 |
* Return null, don�t load the icon |
26 | 26 |
*/ |
27 |
@Override |
|
27 |
// @Override
|
|
28 | 28 |
protected ImageIcon loadIcon(String iconName,Object resource) { |
29 | 29 |
return null; |
30 | 30 |
} |
... | ... | |
32 | 32 |
/** |
33 | 33 |
* Don�t load any icon. They are already in memory |
34 | 34 |
*/ |
35 |
@Override |
|
35 |
// @Override
|
|
36 | 36 |
public void load() { |
37 | 37 |
|
38 | 38 |
|
tags/J2ME_compat_v1_2_Build_1209/frameworks/_fwAndami/src/com/iver/andami/iconthemes/IconThemeManager.java | ||
---|---|---|
33 | 33 |
private IIconTheme def; |
34 | 34 |
private IIconTheme current; |
35 | 35 |
private File themesDir = null; |
36 |
ArrayList<IIconTheme> themes=new ArrayList<IIconTheme>();
|
|
36 |
ArrayList themes=new ArrayList();
|
|
37 | 37 |
private final String themeDefinitionFile = "theme.xml"; |
38 | 38 |
private static IconThemeManager iconThemeManager = null; |
39 | 39 |
|
... | ... | |
108 | 108 |
*/ |
109 | 109 |
public IIconTheme getTheme(String themeName){ |
110 | 110 |
for(int i = 0; i<themes.size();i++){ |
111 |
if(themes.get(i).getName().equals(themeName)) return themes.get(i);
|
|
111 |
if( ((IIconTheme) themes.get(i)).getName().equals(themeName)) return (IIconTheme) themes.get(i);
|
|
112 | 112 |
} |
113 | 113 |
return null; |
114 | 114 |
} |
tags/J2ME_compat_v1_2_Build_1209/frameworks/_fwAndami/src/com/iver/andami/iconthemes/IconThemeDir.java | ||
---|---|---|
27 | 27 |
* Allows load a icon when this is inside in a directoyr. IconName is the name or |
28 | 28 |
* key of the icon and "resource" is the URL or the icon |
29 | 29 |
*/ |
30 |
@Override |
|
30 |
// @Override
|
|
31 | 31 |
protected ImageIcon loadIcon(String iconName,Object resource) { |
32 | 32 |
if (resource instanceof URL) { |
33 | 33 |
// ok, we got an imagePath, let's see if it's valid |
... | ... | |
51 | 51 |
/** |
52 | 52 |
* Allows to load all icons in the directory. |
53 | 53 |
*/ |
54 |
@Override |
|
54 |
// @Override
|
|
55 | 55 |
public void load() { |
56 | 56 |
if (getResource() instanceof File) { |
57 | 57 |
File basedir = (File) getResource(); |
tags/J2ME_compat_v1_2_Build_1209/frameworks/_fwAndami/src/com/iver/andami/iconthemes/IconThemeZip.java | ||
---|---|---|
29 | 29 |
* Allows load a icon when this is inside in a Zip file. IconName is the name or |
30 | 30 |
* key of the icon and "resource" |
31 | 31 |
*/ |
32 |
@Override |
|
32 |
// @Override
|
|
33 | 33 |
protected ImageIcon loadIcon(String iconName, Object resource) { |
34 | 34 |
if (resource instanceof ZipEntry && getResource() instanceof ZipFile) { |
35 | 35 |
ZipEntry entry = (ZipEntry) resource; |
... | ... | |
58 | 58 |
/** |
59 | 59 |
* Allows load all icons in the zip file. |
60 | 60 |
*/ |
61 |
@Override |
|
61 |
// @Override
|
|
62 | 62 |
public void load() { |
63 | 63 |
if (getResource() instanceof ZipFile) { |
64 | 64 |
ZipFile zipFile = (ZipFile) getResource(); |
Also available in: Unified diff