public class NewErrorTreeViewPanel extends javax.swing.JPanel implements DataProvider, OccurenceNavigator, MutableErrorTreeView, CopyProvider, Disposable
Modifier and Type | Class and Description |
---|---|
static interface |
NewErrorTreeViewPanel.ProcessController |
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
java.awt.Container.AccessibleAWTContainer
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
OccurenceNavigator.OccurenceInfo
Disposable.Parent
Modifier and Type | Field and Description |
---|---|
protected static Logger |
LOG |
protected Project |
myProject |
protected Tree |
myTree |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
EMPTY
CURRENT_EXCEPTION_DATA_KEY
Constructor and Description |
---|
NewErrorTreeViewPanel(Project project,
java.lang.String helpId) |
NewErrorTreeViewPanel(Project project,
java.lang.String helpId,
boolean createExitAction) |
NewErrorTreeViewPanel(Project project,
java.lang.String helpId,
boolean createExitAction,
boolean createToolbar) |
NewErrorTreeViewPanel(Project project,
java.lang.String helpId,
boolean createExitAction,
boolean createToolbar,
java.lang.Runnable rerunAction) |
Modifier and Type | Method and Description |
---|---|
protected void |
addExtraPopupMenuActions(DefaultActionGroup group) |
void |
addFixedHotfixGroup(java.lang.String text,
java.util.List<? extends SimpleErrorData> children) |
void |
addHotfixGroup(HotfixData hotfixData,
java.util.List<? extends SimpleErrorData> children) |
void |
addMessage(int type,
java.lang.String [] text,
java.lang.String groupName,
Navigatable navigatable,
java.lang.String exportTextPrefix,
java.lang.String rendererTextPrefix,
java.lang.Object data)
add message, allowing navigation via custom Navigatable object
|
void |
addMessage(int type,
java.lang.String [] text,
VirtualFile file,
int line,
int column,
java.lang.Object data)
If file is not null, allows to navigate to this file, line, column
|
void |
addMessage(int type,
java.lang.String [] text,
VirtualFile underFileGroup,
VirtualFile file,
int line,
int column,
java.lang.Object data)
Allows adding messages related to other files under 'underFileGroup'
|
boolean |
canControlProcess() |
protected boolean |
canHideWarnings() |
void |
clearProgressData() |
void |
close() |
void |
collapseAll() |
protected ErrorViewStructure |
createErrorViewStructure(Project project,
boolean canHideWarnings) |
static java.lang.String |
createExportPrefix(int line) |
static java.lang.String |
createRendererPrefix(int line,
int column) |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
void |
expandAll() |
protected void |
fillRightToolbarGroup(DefaultActionGroup group) |
javax.swing.JComponent |
getComponent() |
java.lang.Object |
getData(java.lang.String dataId)
Returns the object corresponding to the specified data identifier.
|
StatusText |
getEmptyText() |
ErrorViewStructure |
getErrorViewStructure() |
java.util.List<java.lang.Object> |
getGroupChildrenData(java.lang.String groupName) |
NavigatableMessageElement [] |
getNavigatableMessages(java.lang.String groupName) |
java.lang.String |
getNextOccurenceActionName() |
java.lang.String |
getPreviousOccurenceActionName() |
static java.lang.String |
getQualifiedName(VirtualFile file) |
ErrorTreeElement |
getSelectedErrorTreeElement() |
ErrorTreeNodeDescriptor |
getSelectedNodeDescriptor() |
OccurenceNavigator.OccurenceInfo |
goNextOccurence() |
OccurenceNavigator.OccurenceInfo |
goPreviousOccurence() |
boolean |
hasNextOccurence() |
boolean |
hasPreviousOccurence() |
boolean |
isCopyEnabled(DataContext dataContext) |
boolean |
isCopyVisible(DataContext dataContext) |
boolean |
isHideInfos() |
boolean |
isHideWarnings() |
boolean |
isProcessStopped() |
protected void |
makeVisible(ErrorTreeElement element) |
void |
performCopy(DataContext dataContext) |
void |
reload() |
void |
removeAllInGroup(java.lang.String name) |
void |
removeGroup(java.lang.String name) |
boolean |
removeMessage(int type,
java.lang.String groupName,
Navigatable navigatable) |
void |
selectFirstMessage() |
void |
setFraction(float fraction) |
void |
setProcessController(NewErrorTreeViewPanel.ProcessController controller) |
void |
setProgress(java.lang.String s,
float fraction) |
void |
setProgressText(java.lang.String s) |
protected boolean |
shouldShowFirstErrorInEditor() |
void |
stopProcess() |
protected void |
updateAddedElement(ErrorTreeElement element) |
void |
updateTree() |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
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, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, 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, setVisible, unregisterKeyboardAction, update
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, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
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, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, 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, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
protected static final Logger LOG
protected Project myProject
protected Tree myTree
public NewErrorTreeViewPanel(Project project, java.lang.String helpId)
public NewErrorTreeViewPanel(Project project, java.lang.String helpId, boolean createExitAction)
public NewErrorTreeViewPanel(Project project, java.lang.String helpId, boolean createExitAction, boolean createToolbar)
public NewErrorTreeViewPanel(Project project, java.lang.String helpId, boolean createExitAction, boolean createToolbar, java.lang.Runnable rerunAction)
protected ErrorViewStructure createErrorViewStructure(Project project, boolean canHideWarnings)
public void dispose()
Disposable
dispose
in interface Disposable
public void performCopy(DataContext dataContext)
performCopy
in interface CopyProvider
public boolean isCopyEnabled(DataContext dataContext)
isCopyEnabled
in interface CopyProvider
public boolean isCopyVisible(DataContext dataContext)
isCopyVisible
in interface CopyProvider
public StatusText getEmptyText()
public java.lang.Object getData(java.lang.String dataId)
DataProvider
PlatformDataKeys
class.getData
in interface DataProvider
dataId
- the data identifier for which the value is requested.public void selectFirstMessage()
protected boolean shouldShowFirstErrorInEditor()
public void updateTree()
public void addMessage(int type, java.lang.String [] text, VirtualFile file, int line, int column, java.lang.Object data)
ErrorTreeView
addMessage
in interface ErrorTreeView
public void addMessage(int type, java.lang.String [] text, VirtualFile underFileGroup, VirtualFile file, int line, int column, java.lang.Object data)
ErrorTreeView
addMessage
in interface ErrorTreeView
protected void updateAddedElement(ErrorTreeElement element)
protected void makeVisible(ErrorTreeElement element)
public void addMessage(int type, java.lang.String [] text, java.lang.String groupName, Navigatable navigatable, java.lang.String exportTextPrefix, java.lang.String rendererTextPrefix, java.lang.Object data)
ErrorTreeView
addMessage
in interface ErrorTreeView
public boolean removeMessage(int type, java.lang.String groupName, Navigatable navigatable)
public void removeAllInGroup(java.lang.String name)
public NavigatableMessageElement [] getNavigatableMessages(java.lang.String groupName)
public ErrorViewStructure getErrorViewStructure()
public static java.lang.String createExportPrefix(int line)
public static java.lang.String createRendererPrefix(int line, int column)
public javax.swing.JComponent getComponent()
getComponent
in interface ErrorTreeView
public ErrorTreeElement getSelectedErrorTreeElement()
public ErrorTreeNodeDescriptor getSelectedNodeDescriptor()
public static java.lang.String getQualifiedName(VirtualFile file)
protected void addExtraPopupMenuActions(DefaultActionGroup group)
public void setProcessController(NewErrorTreeViewPanel.ProcessController controller)
public void stopProcess()
public boolean canControlProcess()
public boolean isProcessStopped()
public void close()
public void setProgress(java.lang.String s, float fraction)
public void setProgressText(java.lang.String s)
public void setFraction(float fraction)
public void clearProgressData()
public void collapseAll()
public void expandAll()
protected void fillRightToolbarGroup(DefaultActionGroup group)
public OccurenceNavigator.OccurenceInfo goNextOccurence()
goNextOccurence
in interface OccurenceNavigator
public OccurenceNavigator.OccurenceInfo goPreviousOccurence()
goPreviousOccurence
in interface OccurenceNavigator
public boolean hasNextOccurence()
hasNextOccurence
in interface OccurenceNavigator
public boolean hasPreviousOccurence()
hasPreviousOccurence
in interface OccurenceNavigator
public java.lang.String getNextOccurenceActionName()
getNextOccurenceActionName
in interface OccurenceNavigator
public java.lang.String getPreviousOccurenceActionName()
getPreviousOccurenceActionName
in interface OccurenceNavigator
protected boolean canHideWarnings()
public boolean isHideWarnings()
public boolean isHideInfos()
public java.util.List<java.lang.Object> getGroupChildrenData(java.lang.String groupName)
getGroupChildrenData
in interface MutableErrorTreeView
public void removeGroup(java.lang.String name)
removeGroup
in interface MutableErrorTreeView
public void addFixedHotfixGroup(java.lang.String text, java.util.List<? extends SimpleErrorData> children)
addFixedHotfixGroup
in interface MutableErrorTreeView
public void addHotfixGroup(HotfixData hotfixData, java.util.List<? extends SimpleErrorData> children)
addHotfixGroup
in interface MutableErrorTreeView
public void reload()
reload
in interface MutableErrorTreeView