public class RemoteLocation
extends java.lang.Object
| Constructor and Description |
|---|
RemoteLocation()
Create new RemoteLocation object with all values set to null.
|
RemoteLocation(RemoteLocation rl)
Copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
IRemoteConnection |
getConnection()
Get remote connection.
|
java.lang.String |
getConnectionName()
Get name of connection to remote
|
java.lang.String |
getConnectionTypeId()
Get the connection type ID
|
java.lang.String |
getDirectory()
Get the raw remote location unresolved
|
java.lang.String |
getDirectory(org.eclipse.core.resources.IProject project)
Get location (directory), resolved in terms of the passed project
|
int |
hashCode() |
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 |
setConnection(IRemoteConnection connection)
Set the remote connection
|
void |
setConnectionName(java.lang.String connectionName)
Set the connection name
|
void |
setConnectionTypeId(java.lang.String connectionTypeId)
Set the connection type ID
|
void |
setLocation(java.lang.String location)
Set the sync location
|
public RemoteLocation()
public RemoteLocation(RemoteLocation rl)
rl - remote location to copy - cannot be nullpublic static java.lang.String resolveString(org.eclipse.core.resources.IProject project,
java.lang.String path)
project - path - public java.lang.String getConnectionName()
public java.lang.String getDirectory()
public java.lang.String getDirectory(org.eclipse.core.resources.IProject project)
project - public IRemoteConnection getConnection()
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 getConnectionTypeId()
public void setConnection(IRemoteConnection connection)
connection - public void setConnectionName(java.lang.String connectionName)
connectionName - public void setLocation(java.lang.String location)
location - public void setConnectionTypeId(java.lang.String connectionTypeId)
connectionTypeId - public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright (c) 2011 IBM Corporation and others. All Rights Reserved.