Class PictureDialog
- java.lang.Object
-
- org.eclipse.jface.window.Window
-
- org.eclipse.jface.dialogs.Dialog
-
- org.eclipse.jface.dialogs.TrayDialog
-
- org.eclipse.jface.dialogs.TitleAreaDialog
-
- com._1c.g5.v8.dt.md.ui.dialogs.picture.PictureDialog
-
- All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider
public class PictureDialog extends org.eclipse.jface.dialogs.TitleAreaDialog
Dialog for choosing and editing picture values in Form, Command and Moxel Spreadsheet
-
-
Field Summary
Fields Modifier and Type Field Description static String
CANCELBUTTON_NAME
static String
CLEARBUTTON_NAME
static String
CLEARTRANSPARENCYBUT_NAME
static String
FROMCOLLECTION_TAB_TITLE
static String
FROMCONFIG_TAB_TITLE
static String
FROMFILE_TAB_TITLE
static String
FROMLIBRARY_TAB_TITLE
static String
MESSAGE_ERROR_OPEN_FILE
static String
MESSAGE_FAILED_FILE_SAVE
static String
MESSAGE_NOT_DISPLAY_FILE
static String
OKBUTTON_NAME
static String
OPENFILEBUT_NAME
static String
SAVEBUTTON_NAME
static String
SEARCHTEXT_MESSAGE
static String
SETTRANSPARENCYBUT_NAME
static String
STANDART_TAB_TITLE
static String
TRANSPARENCYBUT_NAME
static String
WARNING_FOR_COMMONPICTURE
static String
WARNING_FOR_FILELIST
static String
WINDOW_NAME
-
Fields inherited from class org.eclipse.jface.dialogs.TitleAreaDialog
DLG_IMG_TITLE_BANNER, DLG_IMG_TITLE_ERROR, INFO_MESSAGE, WARNING_MESSAGE
-
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, ELLIPSIS
-
-
Constructor Summary
Constructors Constructor Description PictureDialog(org.eclipse.swt.widgets.Shell parentShell, IV8Project v8project, Object currentPicture, boolean isFull, CellLabelProvider platformPictureLabelProvider, IContentProvider platformPictureContentProvider, boolean editable)
Creates a new instance without common picture tab.PictureDialog(org.eclipse.swt.widgets.Shell parentShell, IV8Project v8project, Object currentPicture, boolean isFull, CellLabelProvider commonPictureLabelProvider, IContentProvider commonPictureContentProvider, CellLabelProvider platformPictureLabelProvider, IContentProvider platformPictureContentProvider, boolean editable)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
buttonPressed(int buttonId)
boolean
close()
Saves state and closes the window.protected void
configureShell(org.eclipse.swt.widgets.Shell newShell)
protected void
createButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent)
Creates "Clear" button in button bar and invoke super-implementation.protected org.eclipse.swt.widgets.Control
createContents(org.eclipse.swt.widgets.Composite parent)
protected org.eclipse.swt.widgets.Control
createDialogArea(org.eclipse.swt.widgets.Composite parent)
protected org.eclipse.jface.dialogs.IDialogSettings
getDialogBoundsSettings()
ReturnsIDialogSettings
instances for saving dialog size.ISelection
getSelection()
Point
getTransparentPoint()
protected boolean
isResizable()
-
Methods inherited from class org.eclipse.jface.dialogs.TitleAreaDialog
getErrorMessage, getInitialSize, getMessage, getTitleArea, getTitleImageLabel, setErrorMessage, setMessage, setMessage, setTitle, setTitleAreaColor, setTitleImage
-
Methods inherited from class org.eclipse.jface.dialogs.TrayDialog
closeTray, createButtonBar, createHelpControl, getLayout, getTray, handleShellCloseEvent, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailable
-
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, cancelPressed, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsStrategy, getImage, getInitialLocation, getOKButton, initializeBounds, initializeDialogUnits, okPressed, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
-
Methods 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
-
-
-
-
Field Detail
-
WINDOW_NAME
public static final String WINDOW_NAME
-
FROMLIBRARY_TAB_TITLE
public static final String FROMLIBRARY_TAB_TITLE
-
FROMFILE_TAB_TITLE
public static final String FROMFILE_TAB_TITLE
-
FROMCOLLECTION_TAB_TITLE
public static final String FROMCOLLECTION_TAB_TITLE
-
FROMCONFIG_TAB_TITLE
public static final String FROMCONFIG_TAB_TITLE
-
STANDART_TAB_TITLE
public static final String STANDART_TAB_TITLE
-
CLEARBUTTON_NAME
public static final String CLEARBUTTON_NAME
-
SAVEBUTTON_NAME
public static final String SAVEBUTTON_NAME
-
OKBUTTON_NAME
public static final String OKBUTTON_NAME
-
CANCELBUTTON_NAME
public static final String CANCELBUTTON_NAME
-
SEARCHTEXT_MESSAGE
public static final String SEARCHTEXT_MESSAGE
-
OPENFILEBUT_NAME
public static final String OPENFILEBUT_NAME
-
TRANSPARENCYBUT_NAME
public static final String TRANSPARENCYBUT_NAME
-
SETTRANSPARENCYBUT_NAME
public static final String SETTRANSPARENCYBUT_NAME
-
CLEARTRANSPARENCYBUT_NAME
public static final String CLEARTRANSPARENCYBUT_NAME
-
WARNING_FOR_COMMONPICTURE
public static final String WARNING_FOR_COMMONPICTURE
-
WARNING_FOR_FILELIST
public static final String WARNING_FOR_FILELIST
-
MESSAGE_FAILED_FILE_SAVE
public static final String MESSAGE_FAILED_FILE_SAVE
-
MESSAGE_NOT_DISPLAY_FILE
public static final String MESSAGE_NOT_DISPLAY_FILE
-
MESSAGE_ERROR_OPEN_FILE
public static final String MESSAGE_ERROR_OPEN_FILE
-
-
Constructor Detail
-
PictureDialog
public PictureDialog(org.eclipse.swt.widgets.Shell parentShell, IV8Project v8project, Object currentPicture, boolean isFull, CellLabelProvider platformPictureLabelProvider, IContentProvider platformPictureContentProvider, boolean editable)
Creates a new instance without common picture tab.- Parameters:
parentShell
- the parent shell, cannot benull
v8project
- the V8 project, cannot benull
currentPicture
- the current picture, may benull
isFull
- determines whether to show "from file" tabplatformPictureLabelProvider
- the platform picture label provider, cannot benull
platformPictureContentProvider
- the platform picture content provider, cannot benull
editable
- the editable state,true
if this model is editable,false
otherwise
-
PictureDialog
public PictureDialog(org.eclipse.swt.widgets.Shell parentShell, IV8Project v8project, Object currentPicture, boolean isFull, CellLabelProvider commonPictureLabelProvider, IContentProvider commonPictureContentProvider, CellLabelProvider platformPictureLabelProvider, IContentProvider platformPictureContentProvider, boolean editable)
Creates a new instance.- Parameters:
parentShell
- the parent shell, cannot benull
v8project
- the V8 project, cannot benull
currentPicture
- the current picture, may benull
isFull
- determines whether to show "from file" tabcommonPictureLabelProvider
- the common picture label provider, cannot benull
commonPictureContentProvider
- the common picture content provider, cannot benull
platformPictureLabelProvider
- the platform picture label provider, cannot benull
platformPictureContentProvider
- the platform picture content provider, cannot benull
editable
- the editable state,true
if this model is editable,false
otherwise
-
-
Method Detail
-
getSelection
public ISelection getSelection()
- Returns:
- the
ISelection
-
getTransparentPoint
public Point getTransparentPoint()
- Returns:
- the
Point
that represent the selected transparent point
-
close
public boolean close()
Saves state and closes the window.- Overrides:
close
in classorg.eclipse.jface.dialogs.Dialog
-
isResizable
protected boolean isResizable()
- Overrides:
isResizable
in classorg.eclipse.jface.dialogs.Dialog
-
createButtonsForButtonBar
protected void createButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent)
Creates "Clear" button in button bar and invoke super-implementation.- Overrides:
createButtonsForButtonBar
in classorg.eclipse.jface.dialogs.Dialog
-
createContents
protected org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite parent)
- Overrides:
createContents
in classorg.eclipse.jface.dialogs.TitleAreaDialog
-
createDialogArea
protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
- Overrides:
createDialogArea
in classorg.eclipse.jface.dialogs.TitleAreaDialog
-
buttonPressed
protected void buttonPressed(int buttonId)
- Overrides:
buttonPressed
in classorg.eclipse.jface.dialogs.Dialog
-
getDialogBoundsSettings
protected org.eclipse.jface.dialogs.IDialogSettings getDialogBoundsSettings()
ReturnsIDialogSettings
instances for saving dialog size.- Overrides:
getDialogBoundsSettings
in classorg.eclipse.jface.dialogs.Dialog
-
configureShell
protected void configureShell(org.eclipse.swt.widgets.Shell newShell)
- Overrides:
configureShell
in classorg.eclipse.jface.window.Window
-
-