1 8 package com.nightlabs.rcp.config; 9 10 import java.util.ArrayList ; 11 import java.util.List ; 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 recentFileNames = null; 20 public List getRecentFileNames() { 21 return recentFileNames; 22 } 23 public void setRecentFileNames(List 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 (); 40 } 41 42 } 43 | Popular Tags |