public class SelectProfilesDialog
extends org.eclipse.jface.dialogs.TitleAreaDialog
implements org.eclipse.jface.action.IMenuListener
Modifier and Type | Class and Description |
---|---|
private class |
SelectProfilesDialog.ChangeProfileStateAction |
private class |
SelectProfilesDialog.ProfileLabelProvider |
Modifier and Type | Field and Description |
---|---|
(package private) org.eclipse.jface.action.Action |
activationAction |
(package private) org.eclipse.jface.action.Action |
deActivationAction |
(package private) IMavenProjectFacade |
facade |
(package private) java.util.Set<IMavenProjectFacade> |
facades |
private boolean |
forceUpdate |
private org.eclipse.swt.widgets.Button |
forceUpdateBtn |
private boolean |
offlineMode |
private org.eclipse.swt.widgets.Button |
offlineModeBtn |
private static int |
PROFILE_ID_COLUMN |
private org.eclipse.swt.widgets.Text |
profilesText |
private org.eclipse.jface.viewers.CheckboxTableViewer |
profileTableViewer |
(package private) java.util.List<ProfileSelection> |
sharedProfiles |
private static int |
SOURCE_COLUMN |
private org.eclipse.swt.widgets.Label |
warningImg |
private org.eclipse.swt.widgets.Label |
warningLabel |
DLG_IMG_TITLE_BANNER, DLG_IMG_TITLE_ERROR, INFO_MESSAGE, WARNING_MESSAGE
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, ELLIPSIS
Constructor and Description |
---|
SelectProfilesDialog(org.eclipse.swt.widgets.Shell parentShell,
java.util.Set<IMavenProjectFacade> facades,
java.util.List<ProfileSelection> sharedProfiles) |
Modifier and Type | Method and Description |
---|---|
private org.eclipse.swt.widgets.Button |
addActivationButton(org.eclipse.swt.widgets.Composite container,
java.lang.String label,
ProfileState state) |
private org.eclipse.swt.widgets.Button |
addCheckButton(org.eclipse.swt.widgets.Composite container,
java.lang.String label,
boolean selected) |
private org.eclipse.swt.widgets.Button |
addSelectionButton(org.eclipse.swt.widgets.Composite container,
java.lang.String label,
boolean ischecked) |
protected void |
configureShell(org.eclipse.swt.widgets.Shell shell) |
protected void |
createButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent) |
protected org.eclipse.swt.widgets.Control |
createDialogArea(org.eclipse.swt.widgets.Composite parent) |
private void |
createMenu() |
private void |
displayProfilesAsText(org.eclipse.swt.widgets.Composite container) |
private void |
displayProfilesTable(org.eclipse.swt.widgets.Composite container) |
private void |
displayWarning(org.eclipse.swt.widgets.Composite container) |
private java.lang.String |
getAvailableText(boolean hasProfiles) |
boolean |
isForceUpdate() |
boolean |
isOffline() |
void |
menuAboutToShow(org.eclipse.jface.action.IMenuManager manager) |
protected void |
okPressed() |
private void |
refresh() |
private void |
setActivationState(org.eclipse.jface.viewers.IStructuredSelection sel,
ProfileState state) |
private void |
updateProfilesAsText() |
createContents, getErrorMessage, getInitialSize, getMessage, getTitleArea, getTitleImageLabel, setErrorMessage, setMessage, setMessage, setTitle, setTitleAreaColor, setTitleImage
closeTray, createButtonBar, createHelpControl, getLayout, getTray, handleShellCloseEvent, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailable
applyDialogFont, buttonPressed, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getOKButton, initializeBounds, initializeDialogUnits, isResizable, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
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
private static int PROFILE_ID_COLUMN
private static int SOURCE_COLUMN
private org.eclipse.jface.viewers.CheckboxTableViewer profileTableViewer
private org.eclipse.swt.widgets.Button offlineModeBtn
private org.eclipse.swt.widgets.Button forceUpdateBtn
private org.eclipse.swt.widgets.Text profilesText
private boolean offlineMode
private boolean forceUpdate
java.util.List<ProfileSelection> sharedProfiles
java.util.Set<IMavenProjectFacade> facades
IMavenProjectFacade facade
final org.eclipse.jface.action.Action activationAction
final org.eclipse.jface.action.Action deActivationAction
private org.eclipse.swt.widgets.Label warningImg
private org.eclipse.swt.widgets.Label warningLabel
public SelectProfilesDialog(org.eclipse.swt.widgets.Shell parentShell, java.util.Set<IMavenProjectFacade> facades, java.util.List<ProfileSelection> sharedProfiles)
protected void configureShell(org.eclipse.swt.widgets.Shell shell)
configureShell
in class org.eclipse.jface.window.Window
protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
createDialogArea
in class org.eclipse.jface.dialogs.TitleAreaDialog
private void displayWarning(org.eclipse.swt.widgets.Composite container)
private java.lang.String getAvailableText(boolean hasProfiles)
private void displayProfilesTable(org.eclipse.swt.widgets.Composite container)
private void displayProfilesAsText(org.eclipse.swt.widgets.Composite container)
private void updateProfilesAsText()
private org.eclipse.swt.widgets.Button addCheckButton(org.eclipse.swt.widgets.Composite container, java.lang.String label, boolean selected)
private org.eclipse.swt.widgets.Button addSelectionButton(org.eclipse.swt.widgets.Composite container, java.lang.String label, boolean ischecked)
private org.eclipse.swt.widgets.Button addActivationButton(org.eclipse.swt.widgets.Composite container, java.lang.String label, ProfileState state)
protected void createButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent)
createButtonsForButtonBar
in class org.eclipse.jface.dialogs.Dialog
protected void okPressed()
okPressed
in class org.eclipse.jface.dialogs.Dialog
private void createMenu()
public void menuAboutToShow(org.eclipse.jface.action.IMenuManager manager)
menuAboutToShow
in interface org.eclipse.jface.action.IMenuListener
public boolean isOffline()
public boolean isForceUpdate()
private void setActivationState(org.eclipse.jface.viewers.IStructuredSelection sel, ProfileState state)
private void refresh()