public class SyncConfig extends Object implements Comparable<SyncConfig>
Constructor and Description |
---|
SyncConfig(String name)
Create a new sync configuration.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(SyncConfig config) |
boolean |
equals(Object obj) |
String |
getConnectionName() |
String[] |
getKeys()
Get the keys for all properties set for this configuration.
|
String |
getLocation()
Get the remote fLocation
|
String |
getLocation(IProject project)
Get fLocation (directory), resolved in terms of the passed project
|
String |
getName()
Get the configuration name
|
IProject |
getProject()
Get the synchronized project
|
String |
getProperty(String key)
Get an arbitrary property for the configuration
|
IRemoteConnection |
getRemoteConnection()
Get remote connection.
|
String |
getRemoteServicesId()
Get the remote services ID
|
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 String |
resolveString(IProject project,
String path)
Utility function to resolve a string based on path variables for a certain project.
|
void |
setConfigName(String configName)
Set the configuration name
|
void |
setConnection(IRemoteConnection connection)
Set the remote connection
|
void |
setConnectionName(String connectionName)
Set the connection name
|
void |
setLocation(String location)
Set the sync location
|
void |
setProject(IProject project)
Set the synchronized project
|
void |
setProperty(String key,
String value)
Set an arbitrary property for the configuration
|
void |
setRemoteServicesId(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(String syncProviderId)
Set the sync provider ID
|
public SyncConfig(String name)
SyncConfigManager.newConfig(String, String, IRemoteConnection, String)
instead.name
- Name of this configuration. Must be unique per project.public static String resolveString(IProject project, String path)
project
- path
- public int compareTo(SyncConfig config)
compareTo
in interface Comparable<SyncConfig>
public String getConnectionName()
public String[] getKeys()
public String getLocation()
public String getLocation(IProject project)
project
- public String getName()
public IProject getProject()
public String getProperty(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 String getRemoteServicesId()
public String getSyncProviderId()
public ISynchronizeService getSyncService()
public boolean isSyncOnPostBuild()
public boolean isSyncOnPreBuild()
public boolean isSyncOnSave()
public void setConfigName(String configName)
configName
- public void setConnection(IRemoteConnection connection)
connection
- public void setConnectionName(String connectionName)
connectionName
- public void setLocation(String location)
location
- public void setProject(IProject project)
project
- public void setProperty(String key, String value)
key
- value
- public void setRemoteServicesId(String remoteServicesId)
remoteServicesId
- public void setSyncOnPostBuild(boolean syncOnPostBuild)
syncOnPostBuild
- public void setSyncOnPreBuild(boolean syncOnPreBuild)
syncOnPreBuild
- public void setSyncOnSave(boolean syncOnSave)
syncOnSave
- public void setSyncProviderId(String syncProviderId)
syncProvider
- Copyright (c) 2011 IBM Corporation and others. All Rights Reserved.