com.intellij.ide
Class GeneralSettings

java.lang.Object
  extended by com.intellij.ide.GeneralSettings
All Implemented Interfaces:
ApplicationComponent, BaseComponent, JDOMExternalizable, NamedJDOMExternalizable

public class GeneralSettings
extends java.lang.Object
implements NamedJDOMExternalizable, ApplicationComponent


Field Summary
static java.lang.String PROP_INACTIVE_TIMEOUT
           
 
Constructor Summary
GeneralSettings()
          Invoked by reflection
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
           
 void disposeComponent()
          Component should dispose system resources or perform another cleanup in this method.
 java.lang.String getBrowserPath()
           
 java.lang.String getCharsetName()
           
 java.lang.String getComponentName()
          Unique name of this component.
 int getCyclicBufferSize()
           
 java.lang.String getExternalFileName()
           
 int getInactiveTimeout()
           
static GeneralSettings getInstance()
           
 java.lang.String getLastProjectLocation()
           
 int getLastTip()
           
 void initComponent()
          Component should do initialization and communication with another components in this method.
 boolean isAutoSaveIfInactive()
           
 boolean isConfirmExit()
           
 boolean isReopenLastProject()
           
 boolean isSaveOnFrameDeactivation()
           
 boolean isShowOccupiedMemory()
           
 boolean isSyncOnFrameActivation()
           
 boolean isUseCyclicBuffer()
           
 boolean isUseDefaultBrowser()
           
 boolean isUseUTFGuessing()
           
 void readExternal(org.jdom.Element parentNode)
           
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
           
 void setAutoSaveIfInactive(boolean autoSaveIfInactive)
           
 void setBrowserPath(java.lang.String browserPath)
           
 void setCharsetName(java.lang.String charsetName)
           
 void setConfirmExit(boolean confirmExit)
           
 void setCyclicBufferSize(int cyclicBufferSize)
           
 void setInactiveTimeout(int inactiveTimeout)
           
 void setLastProjectLocation(java.lang.String lastProjectLocation)
           
 void setLastTip(int i)
           
 void setReopenLastProject(boolean reopenLastProject)
           
 void setSaveOnFrameDeactivation(boolean saveOnFrameDeactivation)
           
 void setShowTipsOnStartup(boolean b)
           
 void setSyncOnFrameActivation(boolean syncOnFrameActivation)
           
 void setUseCyclicBuffer(boolean useCyclicBuffer)
           
 void setUseDefaultBrowser(boolean value)
           
 void setUseUTFGuessing(boolean useUTFGuessing)
           
 boolean showTipsOnStartup()
           
 void writeExternal(org.jdom.Element parentNode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_INACTIVE_TIMEOUT

public static final java.lang.String PROP_INACTIVE_TIMEOUT
See Also:
Constant Field Values
Constructor Detail

GeneralSettings

public GeneralSettings()
Invoked by reflection

Method Detail

getInstance

public static GeneralSettings getInstance()

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)

initComponent

public void initComponent()
Description copied from interface: BaseComponent
Component should do initialization and communication with another components in this method.

Specified by:
initComponent in interface BaseComponent

disposeComponent

public void disposeComponent()
Description copied from interface: BaseComponent
Component should dispose system resources or perform another cleanup in this method.

Specified by:
disposeComponent in interface BaseComponent

getBrowserPath

public java.lang.String getBrowserPath()

getLastProjectLocation

public java.lang.String getLastProjectLocation()
Returns:
a path pointing to a directory where the last project was created or null if not available

setLastProjectLocation

public void setLastProjectLocation(java.lang.String lastProjectLocation)

setBrowserPath

public void setBrowserPath(java.lang.String browserPath)

showTipsOnStartup

public boolean showTipsOnStartup()

setShowTipsOnStartup

public void setShowTipsOnStartup(boolean b)

getLastTip

public int getLastTip()

setLastTip

public void setLastTip(int i)

isShowOccupiedMemory

public boolean isShowOccupiedMemory()

isReopenLastProject

public boolean isReopenLastProject()

setReopenLastProject

public void setReopenLastProject(boolean reopenLastProject)

isSyncOnFrameActivation

public boolean isSyncOnFrameActivation()

setSyncOnFrameActivation

public void setSyncOnFrameActivation(boolean syncOnFrameActivation)

isSaveOnFrameDeactivation

public boolean isSaveOnFrameDeactivation()

setSaveOnFrameDeactivation

public void setSaveOnFrameDeactivation(boolean saveOnFrameDeactivation)

isAutoSaveIfInactive

public boolean isAutoSaveIfInactive()
Returns:
true if IDEA saves all files after "idle" timeout.

setAutoSaveIfInactive

public void setAutoSaveIfInactive(boolean autoSaveIfInactive)

getInactiveTimeout

public int getInactiveTimeout()
Returns:
timeout in seconds after which IDEA saves all files if there was no user activity. The method always return non positive (more then zero) value.

setInactiveTimeout

public void setInactiveTimeout(int inactiveTimeout)

isUseUTFGuessing

public boolean isUseUTFGuessing()

setUseUTFGuessing

public void setUseUTFGuessing(boolean useUTFGuessing)

getCharsetName

public java.lang.String getCharsetName()

setCharsetName

public void setCharsetName(java.lang.String charsetName)

readExternal

public void readExternal(org.jdom.Element parentNode)
Specified by:
readExternal in interface JDOMExternalizable

writeExternal

public void writeExternal(org.jdom.Element parentNode)
Specified by:
writeExternal in interface JDOMExternalizable

getExternalFileName

public java.lang.String getExternalFileName()
Specified by:
getExternalFileName in interface NamedJDOMExternalizable

getComponentName

public java.lang.String getComponentName()
Description copied from interface: BaseComponent
Unique name of this component. If there is another component with the same name or name is null internal assertion will occur.

Specified by:
getComponentName in interface BaseComponent
Returns:
the name of this component

isUseDefaultBrowser

public boolean isUseDefaultBrowser()

setUseDefaultBrowser

public void setUseDefaultBrowser(boolean value)

isUseCyclicBuffer

public boolean isUseCyclicBuffer()

setUseCyclicBuffer

public void setUseCyclicBuffer(boolean useCyclicBuffer)

isConfirmExit

public boolean isConfirmExit()

setConfirmExit

public void setConfirmExit(boolean confirmExit)

getCyclicBufferSize

public int getCyclicBufferSize()

setCyclicBufferSize

public void setCyclicBufferSize(int cyclicBufferSize)