Package com._1c.g5.v8.dt.bsl.ui.event
Class AnnotationButtonComposite
- java.lang.Object
-
- com._1c.g5.v8.dt.bsl.ui.event.AnnotationButtonComposite
-
public class AnnotationButtonComposite extends Object
Special class for creating and processing buttons for different composites which defines annotation directives of the procedures for event handler in bsl module (not form module)
-
-
Constructor Summary
Constructors Constructor Description AnnotationButtonComposite(boolean isRussian, Version version)
ConstructorAnnotationButtonComposite(boolean isRussian, Version version, boolean callForFunction, boolean beforeAlreadyExist, boolean aroundAlreadyExist, boolean afterAlreadyExist, boolean changeAndValidateAlreadyExist)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createRadioButtonGroup(org.eclipse.swt.widgets.Composite composite)
Creates buttons on compositeorg.eclipse.swt.widgets.Button
getAfterAnnotationButton()
Gets "After" annotation without context directive radio buttonorg.eclipse.swt.widgets.Button
getArroundAnnotationButton()
Gets "Around" annotation directive radio buttonorg.eclipse.swt.widgets.Button
getBeforeAnnotationButton()
Gets "Before" annotation directive radio buttonorg.eclipse.swt.widgets.Button
getChangeAndValidateAnnotationButton()
Gets "ChangeAndValidate" annotation directive radio buttonString
getProcedureAnnotation()
Gets procedure annotation for chosen event
-
-
-
Constructor Detail
-
AnnotationButtonComposite
public AnnotationButtonComposite(boolean isRussian, Version version)
Constructor- Parameters:
isRussian
-true
if actual script variant is Russian,false
otherwiseversion
- actualVersion
of module'sIV8Project
where dialog call, cannot benull
-
AnnotationButtonComposite
public AnnotationButtonComposite(boolean isRussian, Version version, boolean callForFunction, boolean beforeAlreadyExist, boolean aroundAlreadyExist, boolean afterAlreadyExist, boolean changeAndValidateAlreadyExist)
Constructor- Parameters:
isRussian
-true
if actual script variant is Russian,false
otherwiseversion
- actualVersion
of module'sIV8Project
where dialog call, cannot benull
callForFunction
-true
if annotation choosing forFunction
,false
otherwisebeforeAlreadyExist
-true
if method with annotation call type "Before" already was created,false
otherwisearoundAlreadyExist
-true
if method with annotation call type "Around" already was created,false
otherwiseafterAlreadyExist
-true
if method with annotation call type "After" already was created,false
otherwisechangeAndValidateAlreadyExist
-true
if method with annotation call type "ChangeAndValidate" already was created,false
otherwise
-
-
Method Detail
-
getProcedureAnnotation
public String getProcedureAnnotation()
Gets procedure annotation for chosen event- Returns:
- procedure annotation for chosen event, or empty string if there is no procedure for chosen event
-
createRadioButtonGroup
public void createRadioButtonGroup(org.eclipse.swt.widgets.Composite composite)
Creates buttons on composite- Parameters:
composite
- parentComposite
, can't benull
-
getBeforeAnnotationButton
public org.eclipse.swt.widgets.Button getBeforeAnnotationButton()
Gets "Before" annotation directive radio button- Returns:
- "Before" annotation directive radio button, or
null
if methodcreateRadioButtonGroup(Composite)
wasn't call
-
getArroundAnnotationButton
public org.eclipse.swt.widgets.Button getArroundAnnotationButton()
Gets "Around" annotation directive radio button- Returns:
- "Around" annotation directive radio button, or
null
if methodcreateRadioButtonGroup(Composite)
wasn't call
-
getAfterAnnotationButton
public org.eclipse.swt.widgets.Button getAfterAnnotationButton()
Gets "After" annotation without context directive radio button- Returns:
- "After" annotation without context directive radio button, or
null
if methodcreateRadioButtonGroup(Composite)
wasn't call
-
getChangeAndValidateAnnotationButton
public org.eclipse.swt.widgets.Button getChangeAndValidateAnnotationButton()
Gets "ChangeAndValidate" annotation directive radio button- Returns:
- "ChangeAndValidate" annotation directive radio button, or
null
if methodcreateRadioButtonGroup(Composite)
wasn't call or actualVersion
for project of module where dialog call less thanVersion.V8_3_14
-
-