Class PrintWizard

  • All Implemented Interfaces:
    org.eclipse.core.runtime.IAdaptable, org.eclipse.jface.window.IShellProvider, org.eclipse.jface.wizard.IWizard

    public class PrintWizard
    extends org.eclipse.jface.wizard.Wizard
    implements org.eclipse.core.runtime.IAdaptable
    Print wizard form
    • Constructor Detail

      • PrintWizard

        public PrintWizard​(org.eclipse.emf.ecore.EObject parent)
        Parameters:
        parent - - parent md object
    • Method Detail

      • getWindowTitle

        public String getWindowTitle()
        Specified by:
        getWindowTitle in interface org.eclipse.jface.wizard.IWizard
        Overrides:
        getWindowTitle in class org.eclipse.jface.wizard.Wizard
      • addPages

        public void addPages()
        Specified by:
        addPages in interface org.eclipse.jface.wizard.IWizard
        Overrides:
        addPages in class org.eclipse.jface.wizard.Wizard
      • getNextPage

        public org.eclipse.jface.wizard.IWizardPage getNextPage​(org.eclipse.jface.wizard.IWizardPage page)
        Specified by:
        getNextPage in interface org.eclipse.jface.wizard.IWizard
        Overrides:
        getNextPage in class org.eclipse.jface.wizard.Wizard
      • getAdapter

        public Object getAdapter​(Class adapter)
        Specified by:
        getAdapter in interface org.eclipse.core.runtime.IAdaptable
      • dispose

        public void dispose()
        Specified by:
        dispose in interface org.eclipse.jface.wizard.IWizard
        Overrides:
        dispose in class org.eclipse.jface.wizard.Wizard
      • performFinish

        public boolean performFinish()
        Specified by:
        performFinish in interface org.eclipse.jface.wizard.IWizard
        Specified by:
        performFinish in class org.eclipse.jface.wizard.Wizard
      • getCommandModuleText

        public String getCommandModuleText()
        Get command module text after perform finish
        Returns:
        command module text
      • getCommandModuleProcedureText

        public String getCommandModuleProcedureText()
        Get command module procedure text after perform finish
        Returns:
        command module procedure text
      • getManagerModuleText

        public String getManagerModuleText()
        Get manager module text after perform finish
        Returns:
        manager module text
      • getCommandName

        public String getCommandName()
        Get command name
        Returns:
        command name
      • getTemplateName

        public String getTemplateName()
        Get template name
        Returns:
        command name
      • getQueryText

        public String getQueryText()
        Get query text
        Returns:
        query text
      • getScryptVariant

        public ScriptVariant getScryptVariant()
        Get script variant
        Returns:
        script variant
      • getProject

        public org.eclipse.core.resources.IProject getProject()
        Get project
        Returns:
        project
      • getParentObject

        public org.eclipse.emf.ecore.EObject getParentObject()
        Get parent object
        Returns:
        parent object
      • isWithoutPreview

        public boolean isWithoutPreview()
        Is without preview
        Returns:
        true if without preview
      • isOnlyTablePreview

        public boolean isOnlyTablePreview()
        Is only table preview
        Returns:
        true if only table preview
      • isTableProtection

        public boolean isTableProtection()
        Is table protection
        Returns:
        true if table protection
      • isSaveParameters

        public boolean isSaveParameters()
        Is save parameters
        Returns:
        true if save parameters
      • setWithoutPreview

        public void setWithoutPreview​(boolean isWithoutPreview)
        Set without preview
        Parameters:
        isWithoutPreview - - true if without preview
      • setOnlyTablePreview

        public void setOnlyTablePreview​(boolean isOnlyTablePreview)
        Set only table preview
        Parameters:
        isOnlyTablePreview - - true if only table preview
      • setTableProtection

        public void setTableProtection​(boolean isTableProtection)
        Set table protection
        Parameters:
        isTableProtection - - true if table protection
      • setSaveParameters

        public void setSaveParameters​(boolean isSaveParameters)
        Set save parameters
        Parameters:
        isSaveParameters - - true if save parameters
      • validateCommandName

        public String validateCommandName​(String name)
        Validate command name
        Parameters:
        name - - command name
        Returns:
        if name is wrong return error message otherwise null
      • getCommandGroup

        public CommandGroup getCommandGroup()
        Get command group
        Returns:
        command group
      • setCommandGroup

        public void setCommandGroup​(CommandGroup groupCommand)
        Set command group
        Parameters:
        command - group
      • setAvailableFieldsIsDirty

        public void setAvailableFieldsIsDirty​(boolean isDirty)
        Is available fields is dirty
        Parameters:
        isDirty - - is dirty
      • getLanguagesCodes

        public List<Language> getLanguagesCodes()
        Get languages codes
        Returns:
        languages codes
      • getLanguageCode

        public String getLanguageCode()
        Get current language code
        Returns:
        language code
      • setCustomQueryText

        public void setCustomQueryText​(String query)
        Set custom query text
        Parameters:
        query - - query text
      • getRefType

        public TypeDescription getRefType()
        Get reference type
        Returns:
        reference type
      • getSelectedParseResult

        public PrintWizardParser.ParseResult getSelectedParseResult()
        If selected for edit exist command return parse result for this command
        Returns:
        parse result or null
      • resetQuery

        public void resetQuery()
        Reset query by default
      • getDefaultQuery

        public String getDefaultQuery()
        Get default query
        Returns:
        default query
      • getCurrentQuery

        public String getCurrentQuery()
        Get current query
        Returns:
        get current query
      • getDefaultQuerySchema

        public QuerySchema getDefaultQuerySchema()
        Get default query
        Returns:
        default QuerySchema