public class SyncConfig extends java.lang.Object implements java.lang.Comparable<SyncConfig>
| Constructor and Description |
|---|
SyncConfig(java.lang.String name)
Create a new sync configuration.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(SyncConfig config) |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getConnectionName() |
java.lang.String[] |
getKeys()
Get the keys for all properties set for this configuration.
|
java.lang.String |
getLocation()
Get the raw remote location unresolved
|
java.lang.String |
getLocation(org.eclipse.core.resources.IProject project)
Get location (directory), resolved in terms of the passed project
TODO: Legacy code.
|
java.lang.String |
getName()
Get the configuration name
|
org.eclipse.core.resources.IProject |
getProject()
Get the synchronized project
|
java.lang.String |
getProperty(java.lang.String key)
Get an arbitrary property for the configuration
|
IRemoteConnection |
getRemoteConnection()
Get remote connection.
|
RemoteLocation |
getRemoteLocation()
Get remote location
|
java.lang.String |
getRemoteServicesId()
Get the remote services ID
|
java.lang.String |
getSyncProviderId()
Get sync provider ID
|
int |
hashCode() |
boolean |
isSyncOnPostBuild()
Check if syncs should occur on post-build
|
boolean |
isSyncOnPreBuild()
Check if syncs should occur on pre-build
|
boolean |
isSyncOnSave()
Check if syncs should occur on saves
|
void |
setConfigName(java.lang.String configName)
Set the configuration name
|
void |
setConnection(IRemoteConnection connection)
Set the remote connection
|
void |
setConnectionName(java.lang.String connectionName)
Set the connection name
|
void |
setLocation(java.lang.String location)
Set the sync location
|
void |
setProject(org.eclipse.core.resources.IProject project)
Set the synchronized project
|
void |
setProperty(java.lang.String key,
java.lang.String value)
Set an arbitrary property for the configuration
|
void |
setRemoteServicesId(java.lang.String remoteServicesId)
Set the remote services ID
|
void |
setSyncOnPostBuild(boolean syncOnPostBuild)
Set the sync on post-build flag
|
void |
setSyncOnPreBuild(boolean syncOnPreBuild)
Set the sync on pre-build flag
|
void |
setSyncOnSave(boolean syncOnSave)
Set the sync on save flag
|
void |
setSyncProviderId(java.lang.String syncProviderId)
Set the sync provider ID
|
public SyncConfig(java.lang.String name)
SyncConfigManager.newConfig(String, String, IRemoteConnection, String) instead.name - Name of this configuration. Must be unique per project.public int compareTo(SyncConfig config)
compareTo in interface java.lang.Comparable<SyncConfig>public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String getConnectionName()
public java.lang.String[] getKeys()
public java.lang.String getLocation()
public java.lang.String getLocation(org.eclipse.core.resources.IProject project)
project - public java.lang.String getName()
public org.eclipse.core.resources.IProject getProject()
public java.lang.String getProperty(java.lang.String key)
key - public IRemoteConnection getRemoteConnection()
throws MissingConnectionException
MissingConnectionException - if no connection with the stored name exist. This can happen for various reasons:
1) The connection was renamed
2) The connection was deleted
3) The connection never existed, such as when a project is imported to a different workspacepublic RemoteLocation getRemoteLocation()
public java.lang.String getRemoteServicesId()
public java.lang.String getSyncProviderId()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean isSyncOnPostBuild()
public boolean isSyncOnPreBuild()
public boolean isSyncOnSave()
public void setConfigName(java.lang.String configName)
configName - public void setConnection(IRemoteConnection connection)
connection - public void setConnectionName(java.lang.String connectionName)
connectionName - public void setLocation(java.lang.String location)
location - public void setProject(org.eclipse.core.resources.IProject project)
project - public void setProperty(java.lang.String key,
java.lang.String value)
key - value - public void setRemoteServicesId(java.lang.String remoteServicesId)
remoteServicesId - public void setSyncOnPostBuild(boolean syncOnPostBuild)
syncOnPostBuild - public void setSyncOnPreBuild(boolean syncOnPreBuild)
syncOnPreBuild - public void setSyncOnSave(boolean syncOnSave)
syncOnSave - public void setSyncProviderId(java.lang.String syncProviderId)
syncProvider - Copyright (c) 2011 IBM Corporation and others. All Rights Reserved.