kawigi.properties
Class PrefFactory

java.lang.Object
  extended by kawigi.properties.PrefFactory

public class PrefFactory
extends java.lang.Object

This is one of those classes that sits in between standalone mode and plugin mode.


Constructor Summary
PrefFactory()
           
 
Method Summary
static PrefProxy getPrefs()
          Returns the global PrefProxy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrefFactory

public PrefFactory()
Method Detail

getPrefs

public static PrefProxy getPrefs()
Returns the global PrefProxy. If the PrefProxy hasn't been created yet, it gets created here. If we are in standalone mode, this will return a StandAlonePrefs which uses Java's properties. If we are in plugin mode, this will return a TCPrefs object which proxies TopCoder's LocalPreferences class. This allows the rest of KawigiEdit to assume it can get the values of preference settings without needing to know about TopCoder's LocalPreferences class.