Package com._1c.g5.v8.dt.pw.ui
Class PrintWizard
- java.lang.Object
-
- org.eclipse.jface.wizard.Wizard
-
- com._1c.g5.v8.dt.pw.ui.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PrintWizard.SelectedFieldsArea
Selected fields area
-
Field Summary
Fields Modifier and Type Field Description static String
COMMANDS_FEATURE
-
Constructor Summary
Constructors Constructor Description PrintWizard(org.eclipse.emf.ecore.EObject parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPages()
void
dispose()
Object
getAdapter(Class adapter)
List<PrintWizardParser.ParseResult>
getAvailableCommands()
Get available commandsCommandGroup
getCommandGroup()
Get command groupString
getCommandModuleProcedureText()
Get command module procedure text after perform finishString
getCommandModuleText()
Get command module text after perform finishString
getCommandName()
Get command nameString
getCurrentQuery()
Get current queryString
getDefaultQuery()
Get default queryQuerySchema
getDefaultQuerySchema()
Get default queryDerivedTypeComputerForDbViewQuery
getDerivedTypeComputer()
Get derived type computerPrintWizard.SelectedFieldsArea
getFooterFields()
Get footer area fieldsPrintWizard.SelectedFieldsArea
getHeaderFields()
Get header area fieldsString
getLanguageCode()
Get current language codeList<Language>
getLanguagesCodes()
Get languages codesString
getManagerModuleText()
Get manager module text after perform finishList<PrintWizard.SelectedFieldsArea>
getNestedTablesFields()
Get nested tables fieldsorg.eclipse.jface.wizard.IWizardPage
getNextPage(org.eclipse.jface.wizard.IWizardPage page)
org.eclipse.emf.ecore.EObject
getParentObject()
Get parent objectorg.eclipse.core.resources.IProject
getProject()
Get projectString
getQueryText()
Get query textTypeDescription
getRefType()
Get reference typeScriptVariant
getScryptVariant()
Get script variantPrintWizardParser.ParseResult
getSelectedParseResult()
If selected for edit exist command return parse result for this commandString
getTemplateName()
Get template nameString
getWindowTitle()
boolean
isOnlyTablePreview()
Is only table previewboolean
isSaveParameters()
Is save parametersboolean
isTableProtection()
Is table protectionboolean
isWithoutPreview()
Is without previewboolean
performFinish()
void
resetQuery()
Reset query by defaultvoid
setAvailableFieldsIsDirty(boolean isDirty)
Is available fields is dirtyvoid
setCommandGroup(CommandGroup groupCommand)
Set command groupvoid
setCustomQueryText(String query)
Set custom query textvoid
setOnlyTablePreview(boolean isOnlyTablePreview)
Set only table previewvoid
setSaveParameters(boolean isSaveParameters)
Set save parametersvoid
setSelectedFields(List<PrintWizardParser.TablesSelectFields> selectFields)
Set selected fieldsvoid
setTableProtection(boolean isTableProtection)
Set table protectionvoid
setWithoutPreview(boolean isWithoutPreview)
Set without previewString
validateCommandName(String name)
Validate command name-
Methods inherited from class org.eclipse.jface.wizard.Wizard
addPage, canFinish, createPageControls, getContainer, getDefaultPageImage, getDialogSettings, getPage, getPageCount, getPages, getPreviousPage, getShell, getStartingPage, getTitleBarColor, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer, setDefaultPageImageDescriptor, setDialogSettings, setForcePreviousAndNextButtons, setHelpAvailable, setNeedsProgressMonitor, setTitleBarColor, setWindowTitle
-
-
-
-
Field Detail
-
COMMANDS_FEATURE
public static final String COMMANDS_FEATURE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getWindowTitle
public String getWindowTitle()
- Specified by:
getWindowTitle
in interfaceorg.eclipse.jface.wizard.IWizard
- Overrides:
getWindowTitle
in classorg.eclipse.jface.wizard.Wizard
-
addPages
public void addPages()
- Specified by:
addPages
in interfaceorg.eclipse.jface.wizard.IWizard
- Overrides:
addPages
in classorg.eclipse.jface.wizard.Wizard
-
getNextPage
public org.eclipse.jface.wizard.IWizardPage getNextPage(org.eclipse.jface.wizard.IWizardPage page)
- Specified by:
getNextPage
in interfaceorg.eclipse.jface.wizard.IWizard
- Overrides:
getNextPage
in classorg.eclipse.jface.wizard.Wizard
-
getAdapter
public Object getAdapter(Class adapter)
- Specified by:
getAdapter
in interfaceorg.eclipse.core.runtime.IAdaptable
-
dispose
public void dispose()
- Specified by:
dispose
in interfaceorg.eclipse.jface.wizard.IWizard
- Overrides:
dispose
in classorg.eclipse.jface.wizard.Wizard
-
performFinish
public boolean performFinish()
- Specified by:
performFinish
in interfaceorg.eclipse.jface.wizard.IWizard
- Specified by:
performFinish
in classorg.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
-
getHeaderFields
public PrintWizard.SelectedFieldsArea getHeaderFields()
Get header area fields- Returns:
- fields
-
getFooterFields
public PrintWizard.SelectedFieldsArea getFooterFields()
Get footer area fields- Returns:
- footer area fields
-
getNestedTablesFields
public List<PrintWizard.SelectedFieldsArea> getNestedTablesFields()
Get nested tables fields- Returns:
- nested tables with fields collection
-
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
-
setSelectedFields
public void setSelectedFields(List<PrintWizardParser.TablesSelectFields> selectFields)
Set selected fields- Parameters:
selectFields
- - selected fields collection
-
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
-
getDerivedTypeComputer
public DerivedTypeComputerForDbViewQuery getDerivedTypeComputer()
Get derived type computer- Returns:
- derived type computer
-
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
-
getAvailableCommands
public List<PrintWizardParser.ParseResult> getAvailableCommands()
Get available commands- Returns:
- available commands
-
-