com.intellij.ide
Class GeneralSettings
java.lang.Object
com.intellij.ide.GeneralSettings
- All Implemented Interfaces:
- ApplicationComponent, BaseComponent, JDOMExternalizable, NamedJDOMExternalizable
public class GeneralSettings
- extends java.lang.Object
- implements NamedJDOMExternalizable, ApplicationComponent
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROP_INACTIVE_TIMEOUT
public static final java.lang.String PROP_INACTIVE_TIMEOUT
- See Also:
- Constant Field Values
GeneralSettings
public GeneralSettings()
- Invoked by reflection
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)