01: /*
02: * CM Model Properties
03: */
04:
05: package com.icesoft.jsfmeta.eclipse;
06:
07: import java.util.Collections;
08: import java.util.Enumeration;
09: import java.util.Properties;
10: import java.util.Vector;
11:
12: public class CMProperties extends Properties {
13:
14: //work around for the order of properties keys
15: public Enumeration keys() {
16: Enumeration keys = super .keys();
17: Vector sortedVector = new Vector();
18: while (keys.hasMoreElements()) {
19: sortedVector.add(keys.nextElement());
20: }
21: Collections.sort(sortedVector);
22:
23: return sortedVector.elements();
24: }
25:
26: }
|