public class CdmViewerChooser
extends org.eclipse.jface.dialogs.PopupDialog
implements org.eclipse.jface.viewers.ISelectionChangedListener, org.eclipse.jface.viewers.ILabelProvider
Constructor and Description |
---|
CdmViewerChooser(org.eclipse.swt.widgets.Shell parentShell) |
CdmViewerChooser(org.eclipse.swt.widgets.Shell parent,
int shellStyle,
boolean takeFocusOnOpen,
boolean persistSize,
boolean persistLocation,
boolean showDialogMenu,
boolean showPersistActions,
java.lang.String titleText,
java.lang.String infoText) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(org.eclipse.jface.viewers.ILabelProviderListener listener) |
void |
chooseViewer(java.lang.Object input)
Opens a popup dialog with all possible viewers for the given input.
|
protected org.eclipse.swt.widgets.Control |
createDialogArea(org.eclipse.swt.widgets.Composite parent) |
void |
dispose() |
org.eclipse.swt.graphics.Image |
getImage(java.lang.Object element) |
java.lang.String |
getText(java.lang.Object element) |
boolean |
isLabelProperty(java.lang.Object element,
java.lang.String property) |
void |
removeListener(org.eclipse.jface.viewers.ILabelProviderListener listener) |
void |
selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event) |
adjustBounds, applyBackgroundColor, applyForegroundColor, close, configureShell, createContents, createInfoTextArea, createTitleControl, createTitleMenuArea, fillDialogMenu, getBackground, getBackgroundColorExclusions, getDefaultLocation, getDefaultSize, getDialogSettings, getFocusControl, getForeground, getForegroundColorExclusions, getInitialLocation, getInitialSize, getPersistBounds, getPersistLocation, getPersistSize, hasInfoArea, hasTitleArea, open, saveDialogBounds, setInfoText, setTabOrder, setTitleText, showDialogMenu
canHandleShellCloseEvent, constrainShellSize, create, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getLayout, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, initializeBounds, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
public CdmViewerChooser(org.eclipse.swt.widgets.Shell parentShell)
public CdmViewerChooser(org.eclipse.swt.widgets.Shell parent, int shellStyle, boolean takeFocusOnOpen, boolean persistSize, boolean persistLocation, boolean showDialogMenu, boolean showPersistActions, java.lang.String titleText, java.lang.String infoText)
public void chooseViewer(java.lang.Object input)
input
- the input for which the viewers are listedprotected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
createDialogArea
in class org.eclipse.jface.dialogs.PopupDialog
public void selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event)
selectionChanged
in interface org.eclipse.jface.viewers.ISelectionChangedListener
public java.lang.String getText(java.lang.Object element)
getText
in interface org.eclipse.jface.viewers.ILabelProvider
public void addListener(org.eclipse.jface.viewers.ILabelProviderListener listener)
addListener
in interface org.eclipse.jface.viewers.IBaseLabelProvider
public void dispose()
dispose
in interface org.eclipse.jface.viewers.IBaseLabelProvider
public boolean isLabelProperty(java.lang.Object element, java.lang.String property)
isLabelProperty
in interface org.eclipse.jface.viewers.IBaseLabelProvider
public void removeListener(org.eclipse.jface.viewers.ILabelProviderListener listener)
removeListener
in interface org.eclipse.jface.viewers.IBaseLabelProvider
public org.eclipse.swt.graphics.Image getImage(java.lang.Object element)
getImage
in interface org.eclipse.jface.viewers.ILabelProvider
Copyright © 2007-2018. All Rights Reserved.