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
18fc82ee
Commit
18fc82ee
authored
6 years ago
by
Vassiliy.Kudryashov
Browse files
Options
Download
Email Patches
Plain Diff
Add "nullable" annotations
parent
06dcc83c
Branches unavailable
Tags unavailable
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
platform/platform-api/src/com/intellij/ui/ToolbarDecorator.java
+7
-1
...rm/platform-api/src/com/intellij/ui/ToolbarDecorator.java
with
7 additions
and
1 deletion
+7
-1
platform/platform-api/src/com/intellij/ui/ToolbarDecorator.java
+
7
-
1
View file @
18fc82ee
...
...
@@ -470,27 +470,33 @@ public abstract class ToolbarDecorator implements CommonActionsPanel.ListenerFac
}
};
}
@Nullable
public
static
AnActionButton
findAddButton
(
@NotNull
JComponent
container
)
{
return
findButton
(
container
,
CommonActionsPanel
.
Buttons
.
ADD
);
}
@Nullable
public
static
AnActionButton
findEditButton
(
@NotNull
JComponent
container
)
{
return
findButton
(
container
,
CommonActionsPanel
.
Buttons
.
EDIT
);
}
@Nullable
public
static
AnActionButton
findRemoveButton
(
@NotNull
JComponent
container
)
{
return
findButton
(
container
,
CommonActionsPanel
.
Buttons
.
REMOVE
);
}
@Nullable
public
static
AnActionButton
findUpButton
(
@NotNull
JComponent
container
)
{
return
findButton
(
container
,
CommonActionsPanel
.
Buttons
.
UP
);
}
@Nullable
public
static
AnActionButton
findDownButton
(
@NotNull
JComponent
container
)
{
return
findButton
(
container
,
CommonActionsPanel
.
Buttons
.
DOWN
);
}
@Nullable
private
static
AnActionButton
findButton
(
JComponent
comp
,
CommonActionsPanel
.
Buttons
type
)
{
final
CommonActionsPanel
panel
=
UIUtil
.
findComponentOfType
(
comp
,
CommonActionsPanel
.
class
);
if
(
panel
!=
null
)
{
...
...
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