public class ParticipantPageDialog extends SaveablePartDialog
ISynchronizeManager
when the dialog is closed. This can be useful for showing changes for a participant modally and allowing the
user to decide if the participant shown should be made available non-modally.SaveablePartAdapter,
ISynchronizeParticipantWindow.IExceptionHandlerblockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, dialogArea, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS| Constructor and Description |
|---|
ParticipantPageDialog(Shell shell,
SaveablePartAdapter input,
ISynchronizeParticipant participant)
Creates a dialog with the given participant and input.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
buttonPressed(int buttonId)
Notifies that this dialog's button with the given id has been pressed.
|
protected Control |
createDialogArea(Composite parent2)
Creates and returns the contents of the upper part of this dialog (above
the button bar).
|
protected ISynchronizeParticipant |
getParticipant()
Returns the participant showing in this dialog.
|
protected boolean |
isOfferToRememberParticipant()
Return whether the ability to remember the participant in the synchronize
view should be presented to the user.
|
close, createButtonsForButtonBar, getInputconfigureShell, getInitialLocation, getInitialSize, setHelpContextIdapplyDialogFont, cancelPressed, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonBar, createContents, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getOKButton, initializeBounds, initializeDialogUnits, okPressed, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenTextcanHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getLayout, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManagerpublic ParticipantPageDialog(Shell shell, SaveablePartAdapter input, ISynchronizeParticipant participant)
shell - the parent shell or null to create a top level shell.input - the compare input to show in the dialogparticipant - the given participantprotected Control createDialogArea(Composite parent2)
Dialog
The Dialog implementation of this framework method creates
and returns a new Composite with standard margins and
spacing.
The returned control's layout data must be an instance of
GridData. This method must not modify the parent's
layout.
Subclasses must override this method but may call super as
in the following example:
Composite composite = (Composite) super.createDialogArea(parent); //add controls to composite as necessary return composite;
createDialogArea in class SaveablePartDialogparent2 - the parent composite to contain the dialog areaprotected void buttonPressed(int buttonId)
Dialog
The Dialog implementation of this framework method calls
okPressed if the ok button is the pressed, and
cancelPressed if the cancel button is the pressed. All
other button presses are ignored. Subclasses may override to handle other
buttons, but should call super.buttonPressed if the
default handling of the ok and cancel buttons is desired.
buttonPressed in class DialogbuttonId - the id of the button that was pressed (see
IDialogConstants.*_ID constants)protected ISynchronizeParticipant getParticipant()
protected boolean isOfferToRememberParticipant()
true is
returned. Subclasses may override.Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.