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
bee3653a
Commit
bee3653a
authored
7 years ago
by
Denis Fokin
Browse files
Options
Download
Email Patches
Plain Diff
TouchBar - Initial approach
parent
86592218
Branches unavailable
Tags unavailable
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
platform/platform-api/src/com/intellij/openapi/ui/DialogWrapper.java
+6
-0
...atform-api/src/com/intellij/openapi/ui/DialogWrapper.java
platform/platform-impl/src/com/intellij/openapi/ui/impl/DialogWrapperPeerImpl.java
+1
-0
...c/com/intellij/openapi/ui/impl/DialogWrapperPeerImpl.java
with
7 additions
and
0 deletions
+7
-0
platform/platform-api/src/com/intellij/openapi/ui/DialogWrapper.java
+
6
-
0
View file @
bee3653a
...
...
@@ -241,6 +241,12 @@ public abstract class DialogWrapper {
window
.
addComponentListener
(
myResizeListener
);
}
createDefaultActions
();
}
public
void
updateTouchBar
()
{
myButtonMap
.
values
().
stream
().
forEach
(
button
->
((
JDialog
)
getWindow
()).
addTouchBarItem
(
button
.
getText
(),
()
->
button
.
getAction
().
actionPerformed
(
null
)));
myOptionsButtons
.
forEach
(
button
->
((
JDialog
)
getWindow
()).
addTouchBarItem
(
button
.
getText
(),
()
->
button
.
getAction
().
actionPerformed
(
null
)));
}
/**
...
...
This diff is collapsed.
Click to expand it.
platform/platform-impl/src/com/intellij/openapi/ui/impl/DialogWrapperPeerImpl.java
+
1
-
0
View file @
bee3653a
...
...
@@ -900,6 +900,7 @@ public class DialogWrapperPeerImpl extends DialogWrapperPeer implements FocusTra
Foundation
.
invoke
(
_native
,
"setCollectionBehavior:"
,
1
<<
8
);
}
}
myDialogWrapper
.
get
().
updateTouchBar
();
}
SwingUtilities
.
invokeLater
(()
->
{
myOpened
=
true
;
...
...
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