Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
aada1945
Commit
aada1945
authored
6 years ago
by
vadim.lomshakov
Browse files
Options
Download
Email Patches
Plain Diff
introduce RawSignatureItem to transfer html description via rd protocol
parent
5a4a9937
Branches unavailable
Tags unavailable
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
platform/lang-impl/src/com/intellij/codeInsight/hint/ParameterInfoComponent.java
+5
-0
...com/intellij/codeInsight/hint/ParameterInfoComponent.java
platform/lang-impl/src/com/intellij/codeInsight/hint/ParameterInfoController.java
+13
-2
...om/intellij/codeInsight/hint/ParameterInfoController.java
with
18 additions
and
2 deletions
+18
-2
platform/lang-impl/src/com/intellij/codeInsight/hint/ParameterInfoComponent.java
+
5
-
0
View file @
aada1945
...
...
@@ -246,6 +246,11 @@ public class ParameterInfoComponent extends JPanel {
@Override
public
void
setupRawUIComponentPresentation
(
String
htmlText
)
{
ParameterInfoController
.
RawSignatureItem
item
=
new
ParameterInfoController
.
RawSignatureItem
(
htmlText
);
result
.
current
=
getCurrentParameterIndex
();
result
.
signatures
.
add
(
item
);
myPanels
[
i
].
setup
(
htmlText
,
getDefaultParameterColor
());
myPanels
[
i
].
setBorder
(
isLastParameterOwner
()
||
isSingleParameterInfo
()
?
EMPTY_BORDER
:
BOTTOM_BORDER
);
}
...
...
This diff is collapsed.
Click to expand it.
platform/lang-impl/src/com/intellij/codeInsight/hint/ParameterInfoController.java
+
13
-
2
View file @
aada1945
...
...
@@ -715,7 +715,18 @@ public class ParameterInfoController extends UserDataHolderBase implements Visib
}
}
public
static
class
SignatureItem
{
public
interface
SignatureItemModel
{
}
public
static
class
RawSignatureItem
implements
SignatureItemModel
{
public
final
String
htmlText
;
RawSignatureItem
(
String
htmlText
)
{
this
.
htmlText
=
htmlText
;
}
}
public
static
class
SignatureItem
implements
SignatureItemModel
{
public
final
String
text
;
public
final
boolean
deprecated
;
public
final
boolean
disabled
;
...
...
@@ -736,7 +747,7 @@ public class ParameterInfoController extends UserDataHolderBase implements Visib
}
public
static
class
Model
{
public
final
List
<
SignatureItem
>
signatures
=
new
ArrayList
<>();
public
final
List
<
SignatureItem
Model
>
signatures
=
new
ArrayList
<>();
public
int
current
=
-
1
;
public
TextRange
range
;
public
Editor
editor
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help