KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > nightlabs > rcp > config > RecentFileConfig


1 /**
2  * <p> Project: com.nightlabs.base </p>
3  * <p> Copyright: Copyright (c) 2005 </p>
4  * <p> Company: NightLabs GmbH (Germany) </p>
5  * <p> Creation Date: 20.06.2005 </p>
6  * <p> Author: Daniel Mazurek </p>
7 **/

8 package com.nightlabs.rcp.config;
9
10 import java.util.ArrayList JavaDoc;
11 import java.util.List JavaDoc;
12
13 import com.nightlabs.config.ConfigModule;
14 import com.nightlabs.config.InitException;
15
16 public class RecentFileConfig
17 extends ConfigModule
18 {
19     protected List JavaDoc recentFileNames = null;
20     public List JavaDoc getRecentFileNames() {
21         return recentFileNames;
22     }
23     public void setRecentFileNames(List JavaDoc recentFileNames) {
24         this.recentFileNames = recentFileNames;
25     }
26     
27     protected int maxHistoryLength = 5;
28     public int getMaxHistoryLength() {
29         return maxHistoryLength;
30     }
31     public void setMaxHistoryLength(int maxHistoryLength) {
32         this.maxHistoryLength = maxHistoryLength;
33     }
34     
35     public void init()
36     throws InitException
37     {
38         if (recentFileNames == null)
39             recentFileNames = new ArrayList JavaDoc();
40     }
41         
42 }
43
Popular Tags