|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
org.eclipse.gmf.runtime.common.ui.dialogs.ShowRelatedElementsPredefinedComposite
The common Show Related Elements Predefined Queries Composite. It contains a list of queries you may select from.
| Field Summary | |
protected static java.lang.String |
DEFAULT_STRING
Default string |
protected Button |
delete
Delete button |
protected Button |
details
Details button |
protected static java.lang.String |
DIALOG_SETTINGS_KEY
Dialog settings key |
protected IDialogSettings |
dialogSettings
Dialog settings for storing presets. |
protected boolean |
isDetails
If the Details is displayed |
protected java.util.List |
predefined
Data for the predefined queries |
protected List |
predefinedBox
Predefined list |
protected java.util.List |
queries
Data for the hardcoded queries |
protected SelectableElement |
rootElement
Root SelectableElement |
protected Button |
saveAs
Save As button |
protected InputDialog |
saveAsDialog
Save as dialog. |
protected IShowRelatedElementsWithDetails |
showDetails
Show Details button |
protected static java.lang.String |
SPECIAL_CLOSING
Closing a hardcoded query's display name |
protected static java.lang.String |
SPECIAL_OPENING
Opening a hardcoded query's display name |
static int |
VIEWER_HEIGHT
Tree viewer control's height for the hint |
protected int |
viewerWidth
Viewer width hint for the listbox viewer |
| Fields inherited from class org.eclipse.swt.widgets.Composite |
embeddedHandle |
| Fields inherited from class org.eclipse.swt.widgets.Widget |
handle |
| Constructor Summary | |
ShowRelatedElementsPredefinedComposite(Composite parent,
IShowRelatedElementsWithDetails sreWithDetails,
SelectableElement root,
java.util.List queriesList,
int width,
boolean detailsShown)
Constructor |
|
| Method Summary | |
protected boolean |
containsSpecialCharacter(java.lang.String text)
Returns if the text string contains a special character. |
protected void |
contributeComposite(Composite parent)
Contribute a composite to the expansion group |
protected void |
contributeToList()
Contribute to the predefined queries List. |
protected java.lang.String[] |
convertPresetsToString(java.util.List presets)
Convert the presets to a string array used for serializing |
protected void |
createContents()
Creates content for this composite. |
protected void |
delete()
Handle a delete button press to delete the predefined setting. |
protected void |
detailsChanged()
Details were changed, so update the predefined box to select the first item. |
protected void |
handlePredefinedBoxSelection()
Handle when the user clicks on something in the predefined queries List. |
protected void |
makePredefinedSettingsButtons(Composite buttons)
Make the buttons for the predefined settings list. |
protected java.util.List |
readPresets(java.lang.String nameToIgnore)
Return a list of ShowRelatedElementsPreset objects. |
protected void |
saveAs()
Handle a save as for a predefined setting. |
| Methods inherited from class org.eclipse.swt.widgets.Composite |
changed, checkSubclass, computeSize, getBackgroundMode, getChildren, getClientArea, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList |
| Methods inherited from class org.eclipse.swt.widgets.Scrollable |
computeTrim, getBorderWidth, getHorizontalBar, getVerticalBar |
| Methods inherited from class org.eclipse.swt.widgets.Widget |
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, setData, setData, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected Button saveAs
protected Button delete
protected Button details
protected IShowRelatedElementsWithDetails showDetails
protected SelectableElement rootElement
protected boolean isDetails
protected List predefinedBox
protected java.util.List predefined
protected java.util.List queries
protected final IDialogSettings dialogSettings
public static int VIEWER_HEIGHT
protected int viewerWidth
protected InputDialog saveAsDialog
protected static final java.lang.String SPECIAL_OPENING
protected static final java.lang.String SPECIAL_CLOSING
protected static final java.lang.String DIALOG_SETTINGS_KEY
protected static final java.lang.String DEFAULT_STRING
| Constructor Detail |
public ShowRelatedElementsPredefinedComposite(Composite parent,
IShowRelatedElementsWithDetails sreWithDetails,
SelectableElement root,
java.util.List queriesList,
int width,
boolean detailsShown)
parent - the parent Composite that we will add our composite intosreWithDetails - for sending updated eventsroot - SelectableElement rootqueriesList - list of hardcoded querieswidth - int Width of composite to showdetailsShown - boolean true if details are shown, false if not shown| Method Detail |
protected void createContents()
protected void handlePredefinedBoxSelection()
protected void contributeToList()
protected boolean containsSpecialCharacter(java.lang.String text)
text - string to check for special characters
protected java.util.List readPresets(java.lang.String nameToIgnore)
nameToIgnore - ignore this name when reading in the presets. Can be null if
you do not want to ignore anything and read everything in.
protected java.lang.String[] convertPresetsToString(java.util.List presets)
presets - List of ShowRelatedElementsPresets objects
protected void saveAs()
protected void makePredefinedSettingsButtons(Composite buttons)
buttons - composite I will be adding the buttons to.protected void delete()
protected void contributeComposite(Composite parent)
parent - the parent expansion group composite that we are going to
contribute to.protected void detailsChanged()
|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.