Package com._1c.g5.v8.dt.bsl.ui.event
Class AnnotationButtonComposite
java.lang.Object
com._1c.g5.v8.dt.bsl.ui.event.AnnotationButtonComposite
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
ConstructorsConstructorDescriptionAnnotationButtonComposite(boolean isRussian, Version version) ConstructorAnnotationButtonComposite(boolean isRussian, Version version, boolean callForFunction, boolean beforeAlreadyExist, boolean aroundAlreadyExist, boolean afterAlreadyExist, boolean changeAndValidateAlreadyExist) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateRadioButtonGroup(org.eclipse.swt.widgets.Composite composite) Creates buttons on compositeorg.eclipse.swt.widgets.ButtonGets "After" annotation without context directive radio buttonorg.eclipse.swt.widgets.ButtonGets "Around" annotation directive radio buttonorg.eclipse.swt.widgets.ButtonGets "Before" annotation directive radio buttonorg.eclipse.swt.widgets.ButtonGets "ChangeAndValidate" annotation directive radio buttonGets procedure annotation for chosen event
-
Constructor Details
-
AnnotationButtonComposite
Constructor- Parameters:
isRussian-trueif actual script variant is Russian,falseotherwiseversion- actualVersionof module'sIV8Projectwhere dialog call, cannot benull
-
AnnotationButtonComposite
public AnnotationButtonComposite(boolean isRussian, Version version, boolean callForFunction, boolean beforeAlreadyExist, boolean aroundAlreadyExist, boolean afterAlreadyExist, boolean changeAndValidateAlreadyExist) Constructor- Parameters:
isRussian-trueif actual script variant is Russian,falseotherwiseversion- actualVersionof module'sIV8Projectwhere dialog call, cannot benullcallForFunction-trueif annotation choosing forFunction,falseotherwisebeforeAlreadyExist-trueif method with annotation call type "Before" already was created,falseotherwisearoundAlreadyExist-trueif method with annotation call type "Around" already was created,falseotherwiseafterAlreadyExist-trueif method with annotation call type "After" already was created,falseotherwisechangeAndValidateAlreadyExist-trueif method with annotation call type "ChangeAndValidate" already was created,falseotherwise
-
-
Method Details
-
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
nullif 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
nullif 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
nullif 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
nullif methodcreateRadioButtonGroup(Composite)wasn't call or actualVersionfor project of module where dialog call less thanVersion.V8_3_14
-