KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > icesoft > jsfmeta > eclipse > CMProperties


1 /*
2  * CM Model Properties
3  */

4
5 package com.icesoft.jsfmeta.eclipse;
6
7 import java.util.Collections JavaDoc;
8 import java.util.Enumeration JavaDoc;
9 import java.util.Properties JavaDoc;
10 import java.util.Vector JavaDoc;
11
12 public class CMProperties extends Properties JavaDoc{
13     
14     //work around for the order of properties keys
15
public Enumeration JavaDoc keys() {
16         Enumeration JavaDoc keys = super.keys();
17         Vector JavaDoc sortedVector = new Vector JavaDoc();
18         while(keys.hasMoreElements()){
19             sortedVector.add(keys.nextElement());
20         }
21         Collections.sort(sortedVector);
22         
23         return sortedVector.elements();
24     }
25     
26 }
27
Popular Tags