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 Details

  • Method Details

    • getLocation

      public String getLocation()
    • getRepresentationString

      @OpenApi public String getRepresentationString()
      Constructs human representation of the project.
      Returns:
      project's representation as String.
      Throws:
      IllegalStateException - if project isn't specified or loaded.
    • save

      public static boolean save(AbstractRemoteProjectDescriptor descriptor, boolean silent)
      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

      public static void loadRemote(AbstractRemoteProjectDescriptor descriptor, ProgressStatus status)
      Load project from given remote descriptor
      Parameters:
      descriptor - remote project descriptor
      status - progress status
    • isRemote

      public boolean isRemote()
      Returns:
      true if descriptor points to remote project location.
    • getURI

      public URI 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

      @CheckForNull public Project getProject()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • updateOptions

      protected abstract void updateOptions(String host, String login, String pass, int port, @CheckForNull String token)
    • getTeamworkService

      public com.nomagic.magicdraw.teamwork2.ITeamworkServiceInternal getTeamworkService()
    • getSeparator

      public abstract String getSeparator()