Class 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 Detail

      • AnnotationButtonComposite

        public AnnotationButtonComposite​(boolean isRussian,
                                         Version version)
        Constructor
        Parameters:
        isRussian - true if actual script variant is Russian, false otherwise
        version - actual Version of module's IV8Project where dialog call, cannot be null
      • 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 otherwise
        version - actual Version of module's IV8Project where dialog call, cannot be null
        callForFunction - true if annotation choosing for Function, false otherwise
        beforeAlreadyExist - true if method with annotation call type "Before" already was created, false otherwise
        aroundAlreadyExist - true if method with annotation call type "Around" already was created, false otherwise
        afterAlreadyExist - true if method with annotation call type "After" already was created, false otherwise
        changeAndValidateAlreadyExist - 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 - parent Composite, can't be null
      • getBeforeAnnotationButton

        public org.eclipse.swt.widgets.Button getBeforeAnnotationButton()
        Gets "Before" annotation directive radio button
        Returns:
        "Before" annotation directive radio button, or null if method createRadioButtonGroup(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 method createRadioButtonGroup(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 method createRadioButtonGroup(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 method createRadioButtonGroup(Composite) wasn't call or actual Version for project of module where dialog call less than Version.V8_3_14