Class AbstractRemoteProjectDescriptor
java.lang.Object
com.nomagic.magicdraw.core.project.AProjectDescriptor
com.nomagic.magicdraw.core.project.AbstractRemoteProjectDescriptor
- All Implemented Interfaces:
ProjectDescriptor
@OpenApi
public abstract class AbstractRemoteProjectDescriptor
extends com.nomagic.magicdraw.core.project.AProjectDescriptor
This class represents location of the remote project.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractRemoteProjectDescriptor
(String scheme, String teamworkServiceID, Project project, URI uri) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Constructs human representation of the project.abstract String
com.nomagic.magicdraw.teamwork2.ITeamworkServiceInternal
getURI()
Returns project location URI.int
hashCode()
boolean
isRemote()
static void
loadRemote
(AbstractRemoteProjectDescriptor descriptor, ProgressStatus status) Load project from given remote descriptorstatic boolean
save
(AbstractRemoteProjectDescriptor descriptor, boolean silent) WARNING status is not working properly, for this commit dialog should be refactored.protected abstract void
updateOptions
(String host, String login, String pass, int port, String token) Methods inherited from class com.nomagic.magicdraw.core.project.AProjectDescriptor
load, save
-
Constructor Details
-
AbstractRemoteProjectDescriptor
protected AbstractRemoteProjectDescriptor(String scheme, String teamworkServiceID, @CheckForNull Project project, @CheckForNull URI uri) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
-
Method Details
-
getLocation
-
getRepresentationString
Constructs human representation of the project.- Returns:
- project's representation as String.
- Throws:
IllegalStateException
- if project isn't specified or loaded.
-
save
WARNING status is not working properly, for this commit dialog should be refactored. WARNING on not silent mode result is always true.- Parameters:
silent
-
-
loadRemote
Load project from given remote descriptor- Parameters:
descriptor
- remote project descriptorstatus
- progress status
-
isRemote
public boolean isRemote()- Returns:
- true if descriptor points to remote project location.
-
getURI
Description copied from interface:ProjectDescriptor
Returns project location URI. Used only for persistence, not for human representation. This location can be used for new descriptors creating in ProjectDescriptorsFactory.- Returns:
- project URI.
-
getProject
-
hashCode
public int hashCode() -
equals
-
updateOptions
-
getTeamworkService
public com.nomagic.magicdraw.teamwork2.ITeamworkServiceInternal getTeamworkService() -
getSeparator
-