Package org.eclipse.compare.internal
Class CompareContentViewerSwitchingPane
java.lang.Object
org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
org.eclipse.swt.custom.ViewForm
org.eclipse.compare.CompareViewerPane
org.eclipse.compare.CompareViewerSwitchingPane
org.eclipse.compare.internal.CompareContentViewerSwitchingPane
- All Implemented Interfaces:
- IAdaptable,- IDoubleClickListener,- IOpenListener,- ISelectionChangedListener,- ISelectionProvider,- Drawable
- 
Field SummaryFieldsFields inherited from class org.eclipse.swt.custom.ViewFormborderInsideRGB, borderMiddleRGB, borderOutsideRGB, horizontalSpacing, marginHeight, marginWidth, verticalSpacingFields inherited from class org.eclipse.swt.widgets.WidgetnativeZoom
- 
Constructor SummaryConstructorsConstructorDescriptionCompareContentViewerSwitchingPane(Splitter parent, int style, CompareEditorInput editorInput) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddMouseListener(MouseListener listener) Adds the listener to the collection of listeners who will be notified when mouse buttons are pressed and released, by sending it one of the messages defined in theMouseListenerinterface.protected Controlprotected ViewerReturns a viewer which is able to display the given input.protected booleaninputChanged(Object input) voidSet the pane's title Image.voidSets the input object of this pane.voidSet the pane's title text.Methods inherited from class org.eclipse.compare.CompareViewerSwitchingPanegetAdapter, getSelection, getTitleArgument, getViewer, isEmpty, setFocus, setSelection, setTitleArgumentMethods inherited from class org.eclipse.compare.CompareViewerPaneaddDoubleClickListener, addOpenListener, addSelectionChangedListener, clearToolBar, doubleClick, getInput, getToolBarManager, open, removeDoubleClickListener, removeOpenListener, removeSelectionChangedListener, selectionChangedMethods inherited from class org.eclipse.swt.custom.ViewFormcomputeTrim, getClientArea, getContent, getTopCenter, getTopLeft, getTopRight, setBorderVisible, setContent, setLayout, setTopCenter, setTopCenterSeparate, setTopLeft, setTopRightMethods inherited from class org.eclipse.swt.widgets.Compositechanged, checkSubclass, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setLayoutDeferred, setTabList, toStringMethods inherited from class org.eclipse.swt.widgets.ScrollablegetHorizontalBar, getScrollbarsMode, getVerticalBar, setScrollbarsModeMethods inherited from class org.eclipse.swt.widgets.ControladdControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getTextDirection, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, requestLayout, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, updateMethods inherited from class org.eclipse.swt.widgets.WidgetaddDisposeListener, addListener, addTypedListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, getTypedListeners, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, removeListener, removeTypedListener, reskin, setData, setDataMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.swt.graphics.DrawableisAutoScalable
- 
Field Details- 
OPTIMIZED_ALGORITHM_USED- See Also:
 
- 
DISABLE_CAPPING_TEMPORARILY- See Also:
 
 
- 
- 
Constructor Details- 
CompareContentViewerSwitchingPanepublic CompareContentViewerSwitchingPane(Splitter parent, int style, CompareEditorInput editorInput) 
 
- 
- 
Method Details- 
getViewerDescription copied from class:CompareViewerSwitchingPaneReturns a viewer which is able to display the given input. If no viewer can be found,nullis returned. The additional argument oldViewer represents the viewer currently installed in the pane (ornullif no viewer is installed). It can be returned from this method if the current viewer can deal with the input (and no new viewer must be created).- Specified by:
- getViewerin class- CompareViewerSwitchingPane
- Parameters:
- oldViewer- the currently installed viewer or- null
- input- the input object for which a viewer must be determined or- null
- Returns:
- a viewer for the given input, or nullif no viewer can be determined
 
- 
createTopLeft- Overrides:
- createTopLeftin class- CompareViewerPane
- Parameters:
- p- a widget which will be the parent of the control (cannot be null)
- Returns:
- the control to be placed in the top left corner of the pane
 
- 
inputChanged- Overrides:
- inputChangedin class- CompareViewerSwitchingPane
- Parameters:
- input- the input
- Returns:
- true, if the input is considered as changed
 
- 
setInputDescription copied from class:CompareViewerSwitchingPaneSets the input object of this pane. For this input object a suitable viewer is determined by calling the abstract methodgetViewer(Viewer, Object). If the returned viewer differs from the current one, the old viewer is disposed and the new one installed. Then the input object is fed into the newly installed viewer by calling itssetInput(Object)method. If new and old viewer don't differ no new viewer is installed but justsetInput(Object)is called. If the input isnullthe pane is cleared, that is the current viewer is disposed.- Overrides:
- setInputin class- CompareViewerSwitchingPane
- Parameters:
- input- the new input object or- null
 
- 
setTextDescription copied from class:CompareViewerPaneSet the pane's title text. The valuenullclears it.- Overrides:
- setTextin class- CompareViewerPane
- Parameters:
- text- the text to be displayed in the pane or null
 
- 
setImageDescription copied from class:CompareViewerPaneSet the pane's title Image. The valuenullclears it.- Overrides:
- setImagein class- CompareViewerPane
- Parameters:
- image- the image to be displayed in the pane or null
 
- 
addMouseListenerDescription copied from class:ControlAdds the listener to the collection of listeners who will be notified when mouse buttons are pressed and released, by sending it one of the messages defined in theMouseListenerinterface.- Overrides:
- addMouseListenerin class- Control
- Parameters:
- listener- the listener which should be notified
- See Also:
 
 
-