Available Methods
- invokeLaterIfNeeded ( )
- isUnderDarcula ( )
- invokeAndWaitIfNeeded ( )
- drawLine ( )
- createImage ( )
- getLabelFont ( )
- isUnderNimbusLookAndFeel ( )
- setLineStyleAngled ( )
- getParentOfType ( )
- isUnderAquaLookAndFeel ( )
- isUnderGTKLookAndFeel ( )
- getClientProperty ( )
- dispatchAllInvocationEvents ( )
- drawDottedRectangle ( )
- findComponentOfType ( )
- getWindow ( )
- isRetina ( )
- isUnderIntelliJLaF ( )
- isFullRowSelectionLAF ( )
- getPanelBackground ( )
- getListForeground ( )
- putClientProperty ( )
- getTreeSelectionBackground ( )
- isUnderAquaBasedLookAndFeel ( )
- drawImage ( )
- getListSelectionBackground ( )
- HTML_MIME
- drawBoldDottedLine ( )
- setEnabled ( )
- getTreeSelectionForeground ( )
- isClientPropertyTrue ( )
- ComponentStyle ( )
- getListBackground ( )
- getInactiveTextColor ( )
- DEFAULT_VGAP
- isControlKeyDown ( )
- isFocusAncestor ( )
- findComponentsOfType ( )
- isJreHiDPI ( )
- getWarningIcon ( )
- drawSearchMatch ( )
- getTableBackground ( )
- changeBackGround ( )
- mergeComponentsWithAnchor ( )
- MNEMONIC
- getLabelBackground ( )
- findUltimateParent ( )
- getLabelForeground ( )
- isMurrineBasedTheme ( )
- uiTraverser ( )
- isReallyTypedEvent ( )
- isJreHiDPIEnabled ( )
- removeMnemonic ( )
- getInformationIcon ( )
- getBorderColor ( )
- TRANSPARENT_COLOR
Related Classes
- java.awt.image.BufferedImage
- javax.annotation.Nullable
- java.awt.event.ActionEvent
- java.awt.event.ActionListener
- javax.annotation.Nonnull
- java.awt.event.MouseEvent
- org.jetbrains.annotations.NotNull
- java.awt.event.KeyEvent
- java.awt.event.MouseAdapter
- org.jetbrains.annotations.Nullable
- javax.swing.border.EmptyBorder
- java.awt.event.KeyAdapter
- javax.swing.border.Border
- javax.swing.tree.TreePath
- com.intellij.openapi.project.Project
- com.intellij.openapi.vfs.VirtualFile
- com.intellij.openapi.actionSystem.AnAction
- com.intellij.openapi.application.ApplicationManager
- com.intellij.openapi.editor.Editor
- com.intellij.openapi.editor.Document
- com.intellij.openapi.util.text.StringUtil
- com.intellij.openapi.ui.Messages
- com.intellij.openapi.progress.ProgressIndicator
- com.intellij.icons.AllIcons
- com.intellij.openapi.util.Pair
Java Code Examples for com.intellij.util.ui.UIUtil#MNEMONIC
The following examples show how to use
com.intellij.util.ui.UIUtil#MNEMONIC .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MnemonicWrapper.java From consulo with Apache License 2.0 | 5 votes |
private boolean updateText() { String text = getText(); if (text != null) { int code = KeyEvent.VK_UNDEFINED; int index = -1; int length = text.length(); StringBuilder sb = new StringBuilder(length); for (int i = 0; i < length; i++) { char ch = text.charAt(i); if (ch != UIUtil.MNEMONIC) { sb.append(ch); } else if (i + 1 < length) { code = KeyEvent.getExtendedKeyCodeForChar(text.charAt(i + 1)); index = sb.length(); } } if (code != KeyEvent.VK_UNDEFINED) { try { myEvent = true; setText(sb.toString()); } finally { myEvent = false; } myCode = code; myIndex = index; return true; } } return false; }
Example 2
Source File: SurroundWithHandler.java From consulo with Apache License 2.0 | 5 votes |
public InvokeSurrounderAction(Surrounder surrounder, Project project, Editor editor, PsiElement[] elements, char mnemonic) { super(UIUtil.MNEMONIC + String.valueOf(mnemonic) + ". " + surrounder.getTemplateDescription()); mySurrounder = surrounder; myProject = project; myEditor = editor; myElements = elements; }
Example 3
Source File: InvokeTemplateAction.java From consulo with Apache License 2.0 | 5 votes |
public static String extractMnemonic(String caption, Set<Character> usedMnemonics) { if (StringUtil.isEmpty(caption)) return ""; for (int i = 0; i < caption.length(); i++) { char c = caption.charAt(i); if (usedMnemonics.add(Character.toUpperCase(c))) { return caption.substring(0, i) + UIUtil.MNEMONIC + caption.substring(i); } } return caption + " "; }
Example 4
Source File: GuiUtils.java From consulo with Apache License 2.0 | 4 votes |
@Override public boolean accept(char ch) { return ch != '&' && ch != UIUtil.MNEMONIC; }