Class FormWysiwygViewer
java.lang.Object
org.eclipse.jface.viewers.Viewer
com._1c.g5.v8.dt.form.presentation.wysiwyg.FormWysiwygViewer
- All Implemented Interfaces:
IInputProvider
,IInputSelectionProvider
,ISelectionProvider
- Direct Known Subclasses:
FormPresentationViewer
Viewer for WYSIWYG form representation.
-
Field Summary
Fields inherited from class org.eclipse.jface.viewers.Viewer
WIDGET_DATA_KEY
-
Constructor Summary
ConstructorsConstructorDescriptionFormWysiwygViewer
(org.eclipse.swt.widgets.Composite parent, MappingController controller, IBmModel bmModel, TransformatorServiceProvider transformatorServiceProvider, ChartImageServiceProvider chartImageServiceProvider, IChartProvider chartProvider, IRuntimeVersionSupport versionSupport, CompatibilityMode compatibilityMode, List<IDropDelegate> dropDelegates) Creates new WYSIWYG viewer. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Must be called on closing of WYSIWYG editor.org.eclipse.swt.widgets.Control
getInput()
Returns currently selected objects on WYSIWYG.int
Returns current target height which the WYSIWYG is built for.int
Returns current target width which the WYSIWYG is built for.boolean
Tells whether compact view is used.void
refresh()
void
setCompactView
(boolean isCompact) Sets WYSIWYG's compact or usual view.void
Sets new form to represent by WYSIWYG.void
setLanguageCode
(String languageCode) Sets new language.void
setSelection
(ISelection selection, boolean reveal) void
setTargetResolution
(int width, int height) Sets WYSIWYG's target resolution to be built for.Methods inherited from class org.eclipse.jface.viewers.Viewer
addHelpListener, addSelectionChangedListener, fireHelpRequested, fireSelectionChanged, getData, handleHelpRequest, inputChanged, removeHelpListener, removeSelectionChangedListener, scrollDown, scrollUp, setData, setSelection
-
Constructor Details
-
FormWysiwygViewer
public FormWysiwygViewer(org.eclipse.swt.widgets.Composite parent, MappingController controller, IBmModel bmModel, TransformatorServiceProvider transformatorServiceProvider, ChartImageServiceProvider chartImageServiceProvider, IChartProvider chartProvider, IRuntimeVersionSupport versionSupport, CompatibilityMode compatibilityMode, List<IDropDelegate> dropDelegates) Creates new WYSIWYG viewer.- Parameters:
parent
- the parent composite, cannot benull
controller
- the mapping controller, cannot benull
chartImageServiceProvider
- the provider of the service for chart images obtaining, cannot benull
chartProvider
- the provider of the charts, cannot benull
versionSupport
- , the runtime version service, cannot benull
bmModel
- the BM model, cannot benull
transformatorServiceProvider
- the provider for the transformation service, cannot benull
compatibilityMode
- the project compatibility mode, cannot benull
dropDelegates
- , list of drop delegates for DnD support
-
-
Method Details
-
close
public void close()Must be called on closing of WYSIWYG editor. -
getTargetWidth
public int getTargetWidth()Returns current target width which the WYSIWYG is built for.- Returns:
- the target width
-
getTargetHeight
public int getTargetHeight()Returns current target height which the WYSIWYG is built for.- Returns:
- the target width
-
setTargetResolution
public void setTargetResolution(int width, int height) Sets WYSIWYG's target resolution to be built for.- Parameters:
width
- the widthheight
- the height
-
setCompactView
public void setCompactView(boolean isCompact) Sets WYSIWYG's compact or usual view.- Parameters:
isCompact
- the view type, compact or usual
-
isCompactView
public boolean isCompactView()Tells whether compact view is used.- Returns:
true
if compact view,false
otherwise
-
setLanguageCode
Sets new language.- Parameters:
languageCode
- the language
-
getControl
public org.eclipse.swt.widgets.Control getControl()- Specified by:
getControl
in classViewer
-
getInput
- Specified by:
getInput
in interfaceIInputProvider
- Specified by:
getInput
in classViewer
-
setInput
Sets new form to represent by WYSIWYG. -
getSelection
- Specified by:
getSelection
in interfaceISelectionProvider
- Specified by:
getSelection
in classViewer
-
getStructuredSelection
Returns currently selected objects on WYSIWYG.- Returns:
- the selection
-
setSelection
- Specified by:
setSelection
in classViewer
-
refresh
public void refresh()
-