Package org.eclipse.team.ui.synchronize
Class ParticipantPageDialog
java.lang.Object
org.eclipse.jface.window.Window
org.eclipse.jface.dialogs.Dialog
org.eclipse.jface.dialogs.TrayDialog
org.eclipse.team.ui.SaveablePartDialog
org.eclipse.team.ui.synchronize.ParticipantPageDialog
- All Implemented Interfaces:
IShellProvider
Deprecated.
A dialog that displays the option of adding the participant to the
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.- Since:
- 3.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window
Window.IExceptionHandler -
Field Summary
Fields inherited from class org.eclipse.jface.dialogs.Dialog
blockedHandler, 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, ELLIPSISFields inherited from class org.eclipse.jface.window.Window
CANCEL, OK, resizeHasOccurred -
Constructor Summary
ConstructorsConstructorDescriptionParticipantPageDialog(Shell shell, SaveablePartAdapter input, ISynchronizeParticipant participant) Deprecated.Creates a dialog with the given participant and input. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbuttonPressed(int buttonId) Deprecated.Notifies that this dialog's button with the given id has been pressed.protected ControlcreateDialogArea(Composite parent2) Deprecated.Creates and returns the contents of the upper part of this dialog (above the button bar).protected ISynchronizeParticipantDeprecated.Returns the participant showing in this dialog.protected booleanDeprecated.Return whether the ability to remember the participant in the synchronize view should be presented to the user.Methods inherited from class org.eclipse.team.ui.SaveablePartDialog
close, configureShell, createButtonsForButtonBar, getDialogBoundsSettings, getInitialSize, getInput, setHelpContextIdMethods inherited from class org.eclipse.jface.dialogs.TrayDialog
closeTray, createButtonBar, createHelpControl, getLayout, getTray, handleShellCloseEvent, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailableMethods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, cancelPressed, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createContents, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsStrategy, getImage, getInitialLocation, getOKButton, initializeBounds, initializeDialogUnits, isResizable, okPressed, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenTextMethods inherited from class org.eclipse.jface.window.Window
canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
-
Constructor Details
-
ParticipantPageDialog
public ParticipantPageDialog(Shell shell, SaveablePartAdapter input, ISynchronizeParticipant participant) Deprecated.Creates a dialog with the given participant and input. The input is not created until the dialog is opened.- Parameters:
shell- the parent shell ornullto create a top level shell.input- the compare input to show in the dialogparticipant- the given participant
-
-
Method Details
-
createDialogArea
Deprecated.Description copied from class:DialogCreates and returns the contents of the upper part of this dialog (above the button bar).The
Dialogimplementation of this framework method creates and returns a newCompositewith 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
superas in the following example:Composite composite = (Composite) super.createDialogArea(parent); //add controls to composite as necessary return composite;
- Overrides:
createDialogAreain classSaveablePartDialog- Parameters:
parent2- the parent composite to contain the dialog area- Returns:
- the dialog area control
-
buttonPressed
protected void buttonPressed(int buttonId) Deprecated.Description copied from class:DialogNotifies that this dialog's button with the given id has been pressed.The
Dialogimplementation of this framework method callsokPressedif the ok button is the pressed, andcancelPressedif the cancel button is the pressed. All other button presses are ignored. Subclasses may override to handle other buttons, but should callsuper.buttonPressedif the default handling of the ok and cancel buttons is desired.- Overrides:
buttonPressedin classDialog- Parameters:
buttonId- the id of the button that was pressed (seeIDialogConstants.*_IDconstants)
-
getParticipant
Deprecated.Returns the participant showing in this dialog.- Returns:
- the participant showing in this dialog.
-
isOfferToRememberParticipant
protected boolean isOfferToRememberParticipant()Deprecated.Return whether the ability to remember the participant in the synchronize view should be presented to the user. By default,trueis returned. Subclasses may override.- Returns:
- whether the ability to remember the participant in the synchronize view should be presented to the user
- Since:
- 3.2
-
ParticipantPageCompareEditorInputandCompareUI.openCompareDialog(org.eclipse.compare.CompareEditorInput)