|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.emfstore.internal.client.configuration.Behavior
public class Behavior
Configuration options that influence the behavior of the client.
Field Summary | |
---|---|
static String |
AUTO_SAVE_EXTENSION_POINT_ATTRIBUTE_NAME
Auto save option identifier. |
static String |
CHANGEPACKAGE_FRAGMENT_SIZE
Change package fragment size option identifier. |
static String |
CUT_OFF_INCOMING_CROSS_REFS_EXTENSION_POINT_ATTRIBUTE_NAME
'Cut off incoming references' option identifier. |
static String |
DENY_ADD_CUT_ELEMENTS_TO_MODELELEMENTS_FEATURE_EXTENSION_POINT_ATTRIBUTE_NAME
'Deny add cut elements to model elements feature' option identifier. |
static String |
FORCE_COMMANDS_EXTENSION_POINT_ATTRIBUTE_NAME
'Force commands' option identifier. |
static long |
NO_CHECKSUM
The checksum value that is used in case no checksum should be computed. |
static String |
OPERATION_MODIFIER
Operation modifier option identifier. |
static String |
RERECORD_LOCAL_CHANGES_EXTENSION_POINT_ATTRIBUTE_NAME
Re-record option identifier. |
static String |
RESOURCE_OPTIONS_EXTENSION_POINT_NAME
Base identifier for all change recording related options. |
static String |
USE_IN_MEMORY_CHANGE_PACKAGE
Use in-memory change packages option identifier. |
Constructor Summary | |
---|---|
Behavior()
|
Method Summary | |
---|---|
com.google.common.base.Optional<Integer> |
getChangePackageFragmentSize()
Returns the change package fragments size. |
ESChecksumErrorHandler |
getChecksumErrorHandler()
Returns the active ESChecksumErrorHandler . |
List<ServerInfo> |
getDefaultServerInfos()
Get the default server info. |
ESOperationModifier |
getOperationModifier()
Returns the operation modifier. |
boolean |
isAutoSaveEnabled()
Whether auto-save is enabled. |
boolean |
isChecksumCheckActive()
Whether the checksum check is active. |
Boolean |
isCutOffIncomingCrossReferencesActivated()
Whether incoming cross references should be cut off. |
Boolean |
isDenyAddCutElementsToModelElementsFeatureActived()
Whether cut elements are added automatically as regular model elements by default. |
Boolean |
isForceCommandsActived()
Whether the usage of commands is enforced. |
Boolean |
isRerecordingActivated()
Whether re-recording is enabled. |
void |
setAutoSave(boolean enabled)
Whether to enable the automatic saving of the workspace. |
void |
setChangePackageFragmentSize(com.google.common.base.Optional<Integer> fragmentSize)
Sets the fragment size to be used when splitting change packages. |
void |
setChecksumErrorHandler(ESChecksumErrorHandler errorHandler)
Set the active ESChecksumErrorHandler . |
boolean |
useInMemoryChangePackage()
Whether the in-memory change package should be used. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final long NO_CHECKSUM
public static final String RESOURCE_OPTIONS_EXTENSION_POINT_NAME
public static final String AUTO_SAVE_EXTENSION_POINT_ATTRIBUTE_NAME
public static final String RERECORD_LOCAL_CHANGES_EXTENSION_POINT_ATTRIBUTE_NAME
public static final String CUT_OFF_INCOMING_CROSS_REFS_EXTENSION_POINT_ATTRIBUTE_NAME
public static final String FORCE_COMMANDS_EXTENSION_POINT_ATTRIBUTE_NAME
public static final String DENY_ADD_CUT_ELEMENTS_TO_MODELELEMENTS_FEATURE_EXTENSION_POINT_ATTRIBUTE_NAME
public static final String USE_IN_MEMORY_CHANGE_PACKAGE
public static final String CHANGEPACKAGE_FRAGMENT_SIZE
public static final String OPERATION_MODIFIER
Constructor Detail |
---|
public Behavior()
Method Detail |
---|
public void setAutoSave(boolean enabled)
enabled
- whether to enable auto savepublic boolean isAutoSaveEnabled()
public Boolean isRerecordingActivated()
true
, if re-recording is enabled, false
otherwisepublic Boolean isCutOffIncomingCrossReferencesActivated()
Boolean.TRUE
, if incoming cross references are cut off, Boolean.FALSE
otherwisepublic Boolean isForceCommandsActived()
Boolean.FALSE
.
Boolean.TRUE
, if usage of commands is enforced, Boolean.FALSE
otherwisepublic Boolean isDenyAddCutElementsToModelElementsFeatureActived()
Boolean.TRUE
, if cut elements are added automatically as regular elements, Boolean.FALSE
otherwisepublic boolean isChecksumCheckActive()
ESChecksumErrorHandler
will be active.
public ESChecksumErrorHandler getChecksumErrorHandler()
ESChecksumErrorHandler
. The default is ChecksumErrorHandler.AUTOCORRECT
.
public void setChecksumErrorHandler(ESChecksumErrorHandler errorHandler)
ESChecksumErrorHandler
.
errorHandler
- the error handler to be setpublic boolean useInMemoryChangePackage()
true
, if the in-memory change package should be used, false
otherwisepublic com.google.common.base.Optional<Integer> getChangePackageFragmentSize()
public ESOperationModifier getOperationModifier()
public void setChangePackageFragmentSize(com.google.common.base.Optional<Integer> fragmentSize)
fragmentSize
- the fragment size (operation count)public List<ServerInfo> getDefaultServerInfos()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |