|
PTP Release 7.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ptp.rdt.sync.core.SyncConfig
public class SyncConfig
Class to encapsulate information about syncing a project
| Constructor Summary | |
|---|---|
SyncConfig(java.lang.String name)
Create a new sync configuration. |
|
| Method Summary | |
|---|---|
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 remote fLocation |
java.lang.String |
getLocation(org.eclipse.core.resources.IProject project)
Get fLocation (directory), resolved in terms of the passed project |
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. |
java.lang.String |
getRemoteServicesId()
Get the remote services ID |
java.lang.String |
getSyncProviderId()
Get sync provider ID |
ISynchronizeService |
getSyncService()
Get the synchronize service |
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 |
static java.lang.String |
resolveString(org.eclipse.core.resources.IProject project,
java.lang.String path)
Utility function to resolve a string based on path variables for a certain project. |
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SyncConfig(java.lang.String name)
SyncConfigManager.newConfig(String, String, IRemoteConnection, String) instead.
name - Name of this configuration. Must be unique per project.| Method Detail |
|---|
public static java.lang.String resolveString(org.eclipse.core.resources.IProject project,
java.lang.String path)
project - path -
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 java.lang.String getRemoteServicesId()
public java.lang.String getSyncProviderId()
public ISynchronizeService getSyncService()
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 -
|
PTP Release 7.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||