Package editor
Class GotoTypePopup
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- javax.swing.JPopupMenu
-
- editor.AbstractGotoPopup<java.lang.String>
-
- editor.GotoTypePopup
-
- All Implemented Interfaces:
java.awt.image.ImageObserver,java.awt.MenuContainer,java.io.Serializable,javax.accessibility.Accessible,javax.swing.MenuElement
- Direct Known Subclasses:
GotoExceptionTypePopup,GotoProgramTypePopup
public class GotoTypePopup extends AbstractGotoPopup<java.lang.String>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classGotoTypePopup.TypeModel-
Nested classes/interfaces inherited from class editor.AbstractGotoPopup
AbstractGotoPopup.AbstractPopupListModel<T>, AbstractGotoPopup.EditorKeyListener, AbstractGotoPopup.GenerifiedJList
-
Nested classes/interfaces inherited from class javax.swing.JPopupMenu
javax.swing.JPopupMenu.AccessibleJPopupMenu, javax.swing.JPopupMenu.Separator
-
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
-
-
Field Summary
Fields Modifier and Type Field Description private static intDEFAULT_WAIT_TIMEprivate static intROW_COUNT-
Fields inherited from class editor.AbstractGotoPopup
_list, _nameField
-
Fields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
-
-
Constructor Summary
Constructors Modifier Constructor Description GotoTypePopup(java.lang.String strPrefix)protectedGotoTypePopup(java.lang.String title, java.lang.String strPrefix)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static java.util.Set<java.lang.String>_filterStrings(java.util.Collection<? extends java.lang.CharSequence> collection, java.lang.String filter, boolean forceLower)private static java.lang.StringcamelCasePrefix(java.lang.String strPrefix)protected TypeCellRendererconstructCellRenderer()static voiddisplay()static voiddisplay(javax.swing.text.JTextComponent host, java.util.function.Consumer<java.lang.String> consumer)static voiddoGoTo(java.lang.String strQualifedType)private java.lang.Stringescape(java.lang.String text)private java.util.Set<java.lang.String>filterGosuClassFromExperimentsInResources(java.util.Set<java.lang.String> allGosuTypes, Experiment experiment)static java.util.List<java.lang.String>filterStrings(java.util.Collection<? extends java.lang.CharSequence> collection, java.lang.String filter)protected java.util.Set<java.lang.String>filterTypes(java.util.Set<java.lang.String> allGosuTypes, Experiment experiment)private static java.lang.StringgetRelativeTypeName(java.lang.String strType)protected voidhandleEdit()protected java.util.List<java.lang.String>initializeData()protected AbstractGotoPopup.AbstractPopupListModel<java.lang.String>reconstructModel(java.lang.String strPrefix)-
Methods inherited from class editor.AbstractGotoPopup
addNodeChangeListener, filterDisplay, getInitializedAllData, getList, getNameField, getPopupSuggestions, isExternalTypes, removeNodeChangeListener, setSelection, setVisible, show
-
Methods inherited from class javax.swing.JPopupMenu
add, add, add, addMenuKeyListener, addPopupMenuListener, addSeparator, createActionChangeListener, createActionComponent, firePopupMenuCanceled, firePopupMenuWillBecomeInvisible, firePopupMenuWillBecomeVisible, getAccessibleContext, getComponent, getComponentAtIndex, getComponentIndex, getDefaultLightWeightPopupEnabled, getInvoker, getLabel, getMargin, getMenuKeyListeners, getPopupMenuListeners, getSelectionModel, getSubElements, getUI, getUIClassID, insert, insert, isBorderPainted, isLightWeightPopupEnabled, isPopupTrigger, isVisible, menuSelectionChanged, pack, paintBorder, paramString, processFocusEvent, processKeyEvent, processKeyEvent, processMouseEvent, remove, removeMenuKeyListener, removePopupMenuListener, setBorderPainted, setDefaultLightWeightPopupEnabled, setInvoker, setLabel, setLightWeightPopupEnabled, setLocation, setPopupSize, setPopupSize, setSelected, setSelectionModel, setUI, updateUI
-
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update
-
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
-
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
-
-
-
Field Detail
-
DEFAULT_WAIT_TIME
private static final int DEFAULT_WAIT_TIME
- See Also:
- Constant Field Values
-
ROW_COUNT
private static final int ROW_COUNT
- See Also:
- Constant Field Values
-
-
Method Detail
-
display
public static void display()
-
display
public static void display(javax.swing.text.JTextComponent host, java.util.function.Consumer<java.lang.String> consumer)
-
doGoTo
public static void doGoTo(java.lang.String strQualifedType)
-
initializeData
protected java.util.List<java.lang.String> initializeData()
- Specified by:
initializeDatain classAbstractGotoPopup<java.lang.String>
-
filterTypes
protected java.util.Set<java.lang.String> filterTypes(java.util.Set<java.lang.String> allGosuTypes, Experiment experiment)
-
filterGosuClassFromExperimentsInResources
private java.util.Set<java.lang.String> filterGosuClassFromExperimentsInResources(java.util.Set<java.lang.String> allGosuTypes, Experiment experiment)
-
reconstructModel
protected AbstractGotoPopup.AbstractPopupListModel<java.lang.String> reconstructModel(java.lang.String strPrefix)
- Specified by:
reconstructModelin classAbstractGotoPopup<java.lang.String>
-
getRelativeTypeName
private static java.lang.String getRelativeTypeName(java.lang.String strType)
-
constructCellRenderer
protected TypeCellRenderer constructCellRenderer()
- Specified by:
constructCellRendererin classAbstractGotoPopup<java.lang.String>
-
handleEdit
protected void handleEdit()
- Specified by:
handleEditin classAbstractGotoPopup<java.lang.String>
-
escape
private java.lang.String escape(java.lang.String text)
-
filterStrings
public static java.util.List<java.lang.String> filterStrings(java.util.Collection<? extends java.lang.CharSequence> collection, java.lang.String filter)
-
_filterStrings
private static java.util.Set<java.lang.String> _filterStrings(java.util.Collection<? extends java.lang.CharSequence> collection, java.lang.String filter, boolean forceLower)
-
camelCasePrefix
private static java.lang.String camelCasePrefix(java.lang.String strPrefix)
-
-