Saros
Distributed Collaborative Editing and Distributed Party Programming
de.fu_berlin.inf.dpp.preferences.Preferences Class Reference
Inheritance diagram for de.fu_berlin.inf.dpp.preferences.Preferences:
de.fu_berlin.inf.dpp.intellij.preferences.IntelliJPreferences de.fu_berlin.inf.dpp.preferences.EclipsePreferences

List of all members.

Public Member Functions

 Preferences (IPreferenceStore store)
boolean isDebugEnabled ()
String getSarosXMPPServer ()
String getDefaultServer ()
boolean isAutoConnecting ()
boolean isAutoPortmappingEnabled ()
List< String > getSocks5Candidates ()
boolean useExternalGatewayAddress ()
String getAutoPortmappingGatewayID ()
int getAutoPortmappingLastPort ()
String getSkypeUserName ()
int getFileTransferPort ()
boolean forceIBBTransport ()
boolean isConcurrentUndoActivated ()
boolean useVersionControl ()
void setUseVersionControl (boolean value)
boolean isLocalSOCKS5ProxyEnabled ()
String getStunIP ()
int getStunPort ()
int getFavoriteColorID ()
String getSessionNickname ()

Protected Attributes

final IPreferenceStore store

Detailed Description

Preferences provide methods to get and set preferences on an IDE-specific level (i.e. they are shared for all Saros instances of one IDE).

These Preferences are stored using an IPreferenceStore.


Constructor & Destructor Documentation

de.fu_berlin.inf.dpp.preferences.Preferences.Preferences ( IPreferenceStore  store)

Member Function Documentation

boolean de.fu_berlin.inf.dpp.preferences.Preferences.forceIBBTransport ( )

Returns whether force In-Band Bytestreams (IBB) transport is enabled or not.

Returns:
true if force In-Band Bytestreams (IBB) transport is enabled.
String de.fu_berlin.inf.dpp.preferences.Preferences.getAutoPortmappingGatewayID ( )

Returns the device ID of the gateway to perform port mapping on.

Returns:
Device ID of the gateway or empty String if disabled.
int de.fu_berlin.inf.dpp.preferences.Preferences.getAutoPortmappingLastPort ( )
Returns:
the last port of the auto port mapping.
String de.fu_berlin.inf.dpp.preferences.Preferences.getDefaultServer ( )
Returns:
the default server.
Is never empty or null.
int de.fu_berlin.inf.dpp.preferences.Preferences.getFavoriteColorID ( )

Returns the favorite color ID that should be used during a session.

Returns:
the favorite color ID or { UserColorID.UNKNOWN} if no favorite color ID is available
int de.fu_berlin.inf.dpp.preferences.Preferences.getFileTransferPort ( )

Returns the port for SOCKS5 file transfer. If PreferenceConstants#USE_NEXT_PORTS_FOR_FILE_TRANSFER is set, a negative number is returned (smacks will try next free ports above this number)

Returns:
port for smacks configuration (negative if to try out ports above)
String de.fu_berlin.inf.dpp.preferences.Preferences.getSarosXMPPServer ( )
Returns:
Saros's XMPP server DNS address.
String de.fu_berlin.inf.dpp.preferences.Preferences.getSessionNickname ( )

Returns the nickname that should be used in a session.

Returns:
the nickname which may be empty if no nickname is available
String de.fu_berlin.inf.dpp.preferences.Preferences.getSkypeUserName ( )

Returns the Skype user name or an empty string if none was specified.

Returns:
the user name.for Skype or an empty string
List<String> de.fu_berlin.inf.dpp.preferences.Preferences.getSocks5Candidates ( )
Returns:
the Socks5 candidates for the Socks5 proxy
String de.fu_berlin.inf.dpp.preferences.Preferences.getStunIP ( )
Returns:
Stun IP address.
int de.fu_berlin.inf.dpp.preferences.Preferences.getStunPort ( )
Returns:
Stun Port.
boolean de.fu_berlin.inf.dpp.preferences.Preferences.isAutoConnecting ( )

Returns whether auto-connect is enabled or not.

Returns:
true if auto-connect is enabled.
boolean de.fu_berlin.inf.dpp.preferences.Preferences.isAutoPortmappingEnabled ( )

Returns whether port mapping is enabled or not by evaluating the stored deviceID to be empty or not.

Returns:
true if port mapping is enabled, false otherwise
boolean de.fu_berlin.inf.dpp.preferences.Preferences.isConcurrentUndoActivated ( )

Returns whether concurrent undo is enabled or not.

Returns:
true if concurrent undo is enabled.
boolean de.fu_berlin.inf.dpp.preferences.Preferences.isDebugEnabled ( )

Returns whether debug is enabled or not.

Returns:
true if debug is enabled.
boolean de.fu_berlin.inf.dpp.preferences.Preferences.isLocalSOCKS5ProxyEnabled ( )

Returns whether local SOCKS5 proxy is enabled or not.

Returns:
true if local SOCKS5 proxy is enabled.
void de.fu_berlin.inf.dpp.preferences.Preferences.setUseVersionControl ( boolean  value)

Sets the value of useVersionControl

Parameters:
value
boolean de.fu_berlin.inf.dpp.preferences.Preferences.useExternalGatewayAddress ( )

Returns whether the external address of the gateway should be used as a Socks5 candidate or not.

Returns:
true if external address of the gateway should be used as a Socks5 candidate, false otherwise
boolean de.fu_berlin.inf.dpp.preferences.Preferences.useVersionControl ( )

Returns whether version control is enabled or not.

Returns:
true if version control is enabled.

Member Data Documentation

 All Classes Namespaces Files Functions Variables Enumerations