Class ContextProjectInfo


  • public final class ContextProjectInfo
    extends java.lang.Object
    • Field Detail

      • CONTEXT_PROJECT_ATTR

        public static final java.lang.String CONTEXT_PROJECT_ATTR
        See Also:
        Constant Field Values
      • COLLAPSED_PATH_PREFIX

        public static final java.lang.String COLLAPSED_PATH_PREFIX
        See Also:
        Constant Field Values
    • 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 java.util.List<SProject> getCollapsedPath()
      • getVisiblePath

        public java.util.List<SProject> getVisiblePath()
      • getLastCollapsed

        @Nullable
        public SProject getLastCollapsed()
      • getVisiblePathAsText

        public java.lang.String getVisiblePathAsText()
      • getDependentBuildTypeName

        public static java.lang.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 java.lang.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 java.lang.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)