public final class GeneralSettings extends java.lang.Object implements PersistentStateComponent<GeneralSettings>
Modifier and Type | Class and Description |
---|---|
static class |
GeneralSettings.ProcessCloseConfirmation |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
IDE_GENERAL_XML |
static int |
OPEN_PROJECT_ASK |
static int |
OPEN_PROJECT_NEW_WINDOW |
static int |
OPEN_PROJECT_SAME_WINDOW |
static int |
OPEN_PROJECT_SAME_WINDOW_ATTACH |
static java.lang.String |
PROP_INACTIVE_TIMEOUT |
static java.lang.String |
PROP_SUPPORT_SCREEN_READERS |
static java.lang.String |
SUPPORT_SCREEN_READERS |
Constructor and Description |
---|
GeneralSettings() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeComponent, noStateLoaded
public static final java.lang.String IDE_GENERAL_XML
public static final int OPEN_PROJECT_ASK
public static final int OPEN_PROJECT_NEW_WINDOW
public static final int OPEN_PROJECT_SAME_WINDOW
public static final int OPEN_PROJECT_SAME_WINDOW_ATTACH
public static final java.lang.String PROP_INACTIVE_TIMEOUT
public static final java.lang.String PROP_SUPPORT_SCREEN_READERS
public static final java.lang.String SUPPORT_SCREEN_READERS
public static GeneralSettings getInstance()
public void addPropertyChangeListener(java.lang.String propertyName, Disposable parentDisposable, java.beans.PropertyChangeListener listener)
public java.lang.String getBrowserPath()
public void setBrowserPath(java.lang.String browserPath)
public boolean isShowTipsOnStartup()
public void setShowTipsOnStartup(boolean value)
public boolean isReopenLastProject()
public void setReopenLastProject(boolean reopenLastProject)
public static boolean isSupportScreenReadersOverridden()
public boolean isSupportScreenReaders()
public void setSupportScreenReaders(boolean enabled)
public GeneralSettings.ProcessCloseConfirmation getProcessCloseConfirmation()
public void setProcessCloseConfirmation(GeneralSettings.ProcessCloseConfirmation processCloseConfirmation)
public boolean isSyncOnFrameActivation()
public void setSyncOnFrameActivation(boolean syncOnFrameActivation)
public boolean isSaveOnFrameDeactivation()
public void setSaveOnFrameDeactivation(boolean saveOnFrameDeactivation)
public boolean isAutoSaveIfInactive()
true
if IDE saves all files after "idle" timeout.public void setAutoSaveIfInactive(boolean autoSaveIfInactive)
public int getInactiveTimeout()
public void setInactiveTimeout(int inactiveTimeoutSeconds)
public boolean isUseSafeWrite()
public void setUseSafeWrite(boolean value)
public GeneralSettings getState()
getState
in interface PersistentStateComponent<GeneralSettings>
null
value indicates
that the returned state won't be stored, as a result previously stored state will be used.XmlSerializer
public void loadState(GeneralSettings state)
PersistentStateComponent
State object should be used directly, defensive copying is not required.
loadState
in interface PersistentStateComponent<GeneralSettings>
state
- loaded component stateXmlSerializerUtil.copyBean(Object, Object)
public boolean isUseDefaultBrowser()
public void setUseDefaultBrowser(boolean value)
@Deprecated public boolean isConfirmExtractFiles()
@Deprecated public void setConfirmExtractFiles(boolean value)
public boolean isConfirmExit()
public void setConfirmExit(boolean confirmExit)
public boolean isShowWelcomeScreen()
public void setShowWelcomeScreen(boolean show)
public int getConfirmOpenNewProject()
OPEN_PROJECT_NEW_WINDOW
if new project should be opened in new window
OPEN_PROJECT_SAME_WINDOW
if new project should be opened in same window
OPEN_PROJECT_ASK
if a confirmation dialog should be shown
public void setConfirmOpenNewProject(int confirmOpenNewProject)
public boolean isSearchInBackground()
public void setSearchInBackground(boolean searchInBackground)
public @SystemDependent java.lang.String getDefaultProjectDirectory()
public void setDefaultProjectDirectory(@SystemDependent java.lang.String defaultProjectDirectory)