Class ContextProjectInfo


  • public final class ContextProjectInfo
    extends Object
    • Constructor Detail

      • ContextProjectInfo

        public ContextProjectInfo​(@NotNull
                                  SProject project,
                                  @Nullable
                                  SProject contextProject)
    • Method Detail

      • isCollapsed

        public boolean isCollapsed()
        At least one project in the path is collapsed
        Returns:
        true if at least one project in the path is collapsed
      • isFullyCollapsed

        public boolean isFullyCollapsed()
        All projects in the path are collapsed
        Returns:
        true if all projects in the path are collapsed
      • getCollapsedPath

        public List<SProject> getCollapsedPath()
      • getLastCollapsed

        @Nullable
        public SProject getLastCollapsed()
      • getVisiblePathAsText

        public String getVisiblePathAsText()
      • getDependentBuildTypeName

        public static String getDependentBuildTypeName​(@Nullable
                                                       SBuild currentBuild,
                                                       @NotNull
                                                       SBuildType dependentBuildType)
        Returns shortened path to the depended build. Common project path will be considered as a collapsible part
        Parameters:
        currentBuild - - build context, when null - dependentBuildType full name will be returned without considering any current context
        dependentBuildType - - build type which path we want to shorten based on actual build context
        Returns:
        shortened path to the depended build
      • getDependentBuildTypeName

        public static String getDependentBuildTypeName​(@NotNull
                                                       SBuildType currentBuildType,
                                                       @NotNull
                                                       SBuildType dependentBuildType)
        Returns shortened path to the depended build type. Common project path will be considered as a collapsible part
        Parameters:
        currentBuildType - - build type to which tha build belongs to; when null - dependentBuildType full name will be returned without considering any current context
        dependentBuildType - - build type which path we want to shorten based on actual build context
        Returns:
        see above
      • getDependentBuildTypeName

        public static String getDependentBuildTypeName​(@NotNull
                                                       SBuildType dependentBuildType,
                                                       @Nullable
                                                       SProject contextProject)
        Returns shortened path to the depended build type. Common project path will be considered as a collapsible part
        Parameters:
        dependentBuildType - - build type which path we want to shorten based on actual project context
        contextProject - - context project
        Returns:
        see above
      • getBuildType

        @Nullable
        public static SBuildType getBuildType​(@NotNull
                                              SBuild build)