mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 06:50:54 +07:00
[collab] rename class
GitOrigin-RevId: f92a7a2f7fdef55f17800241ab32f354131aca1e
This commit is contained in:
committed by
intellij-monorepo-bot
parent
4cfa440db5
commit
f400d30ba8
@@ -4,7 +4,7 @@ package com.intellij.collaboration.ui.codereview
|
||||
import com.intellij.collaboration.ui.CollaborationToolsUIUtil.wrapWithLimitedSize
|
||||
import com.intellij.collaboration.ui.JPanelWithBackground
|
||||
import com.intellij.collaboration.ui.VerticalListPanel
|
||||
import com.intellij.collaboration.ui.codereview.comment.ReviewUIUtil
|
||||
import com.intellij.collaboration.ui.codereview.comment.CodeReviewCommentUIUtil
|
||||
import com.intellij.ui.ColorUtil
|
||||
import com.intellij.ui.JBColor
|
||||
import com.intellij.ui.hover.HoverStateListener
|
||||
@@ -65,8 +65,8 @@ object CodeReviewChatItemUIUtil {
|
||||
COMPACT {
|
||||
override val iconSize: Int = 20
|
||||
override val iconGap: Int = 10
|
||||
override val paddingInsets: Insets = Insets(4, ReviewUIUtil.INLAY_PADDING, 4, ReviewUIUtil.INLAY_PADDING)
|
||||
override val inputPaddingInsets: Insets = Insets(6, ReviewUIUtil.INLAY_PADDING, 6, ReviewUIUtil.INLAY_PADDING)
|
||||
override val paddingInsets: Insets = Insets(4, CodeReviewCommentUIUtil.INLAY_PADDING, 4, CodeReviewCommentUIUtil.INLAY_PADDING)
|
||||
override val inputPaddingInsets: Insets = Insets(6, CodeReviewCommentUIUtil.INLAY_PADDING, 6, CodeReviewCommentUIUtil.INLAY_PADDING)
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -12,7 +12,7 @@ import java.awt.event.ComponentEvent
|
||||
import javax.swing.JComponent
|
||||
import javax.swing.JPanel
|
||||
|
||||
object ReviewUIUtil {
|
||||
object CodeReviewCommentUIUtil {
|
||||
|
||||
const val INLAY_PADDING = 10
|
||||
private const val EDITOR_INLAY_PANEL_ARC = 10
|
||||
@@ -4,7 +4,7 @@ package org.jetbrains.plugins.github.pullrequest.comment.ui
|
||||
import com.intellij.CommonBundle
|
||||
import com.intellij.collaboration.async.CompletableFutureUtil.successOnEdt
|
||||
import com.intellij.collaboration.ui.codereview.comment.CommentInputActionsComponentFactory
|
||||
import com.intellij.collaboration.ui.codereview.comment.ReviewUIUtil
|
||||
import com.intellij.collaboration.ui.codereview.comment.CodeReviewCommentUIUtil
|
||||
import com.intellij.collaboration.ui.codereview.timeline.comment.CommentInputComponentFactory
|
||||
import com.intellij.collaboration.ui.util.swingAction
|
||||
import com.intellij.diff.util.Side
|
||||
@@ -40,11 +40,11 @@ internal constructor(private val project: Project,
|
||||
GHPRReviewThreadComponent.createForInlay(project, thread, reviewDataProvider,
|
||||
avatarIconsProvider, suggestedChangeHelper,
|
||||
ghostUser, currentUser).apply {
|
||||
border = JBUI.Borders.empty(ReviewUIUtil.INLAY_PADDING - GHPRReviewThreadComponent.INLAY_COMPONENT_TYPE.paddingInsets.top,
|
||||
border = JBUI.Borders.empty(CodeReviewCommentUIUtil.INLAY_PADDING - GHPRReviewThreadComponent.INLAY_COMPONENT_TYPE.paddingInsets.top,
|
||||
0,
|
||||
ReviewUIUtil.INLAY_PADDING - GHPRReviewThreadComponent.INLAY_COMPONENT_TYPE.paddingInsets.bottom,
|
||||
CodeReviewCommentUIUtil.INLAY_PADDING - GHPRReviewThreadComponent.INLAY_COMPONENT_TYPE.paddingInsets.bottom,
|
||||
0)
|
||||
}.let { ReviewUIUtil.createEditorInlayPanel(it) }
|
||||
}.let { CodeReviewCommentUIUtil.createEditorInlayPanel(it) }
|
||||
|
||||
override fun createSingleCommentComponent(side: Side, line: Int, startLine: Int, hideCallback: () -> Unit): JComponent {
|
||||
val textFieldModel = GHCommentTextFieldModel(project) {
|
||||
@@ -145,6 +145,6 @@ internal constructor(private val project: Project,
|
||||
GHCommentTextFieldFactory.AvatarConfig(avatarIconsProvider, currentUser)
|
||||
).apply {
|
||||
border = JBUI.Borders.empty(8)
|
||||
}.let { ReviewUIUtil.createEditorInlayPanel(it) }
|
||||
}.let { CodeReviewCommentUIUtil.createEditorInlayPanel(it) }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user