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.IAdaptablePrint wizard form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPrintWizard.SelectedFieldsAreaSelected fields area
-
Field Summary
Fields Modifier and Type Field Description static StringCOMMANDS_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 voidaddPages()voiddispose()ObjectgetAdapter(Class adapter)List<PrintWizardParser.ParseResult>getAvailableCommands()Get available commandsCommandGroupgetCommandGroup()Get command groupStringgetCommandModuleProcedureText()Get command module procedure text after perform finishStringgetCommandModuleText()Get command module text after perform finishStringgetCommandName()Get command nameStringgetCurrentQuery()Get current queryStringgetDefaultQuery()Get default queryQuerySchemagetDefaultQuerySchema()Get default queryDerivedTypeComputerForDbViewQuerygetDerivedTypeComputer()Get derived type computerPrintWizard.SelectedFieldsAreagetFooterFields()Get footer area fieldsPrintWizard.SelectedFieldsAreagetHeaderFields()Get header area fieldsStringgetLanguageCode()Get current language codeList<Language>getLanguagesCodes()Get languages codesStringgetManagerModuleText()Get manager module text after perform finishList<PrintWizard.SelectedFieldsArea>getNestedTablesFields()Get nested tables fieldsorg.eclipse.jface.wizard.IWizardPagegetNextPage(org.eclipse.jface.wizard.IWizardPage page)org.eclipse.emf.ecore.EObjectgetParentObject()Get parent objectorg.eclipse.core.resources.IProjectgetProject()Get projectStringgetQueryText()Get query textTypeDescriptiongetRefType()Get reference typeScriptVariantgetScryptVariant()Get script variantPrintWizardParser.ParseResultgetSelectedParseResult()If selected for edit exist command return parse result for this commandStringgetTemplateName()Get template nameStringgetWindowTitle()booleanisOnlyTablePreview()Is only table previewbooleanisSaveParameters()Is save parametersbooleanisTableProtection()Is table protectionbooleanisWithoutPreview()Is without previewbooleanperformFinish()voidresetQuery()Reset query by defaultvoidsetAvailableFieldsIsDirty(boolean isDirty)Is available fields is dirtyvoidsetCommandGroup(CommandGroup groupCommand)Set command groupvoidsetCustomQueryText(String query)Set custom query textvoidsetOnlyTablePreview(boolean isOnlyTablePreview)Set only table previewvoidsetSaveParameters(boolean isSaveParameters)Set save parametersvoidsetSelectedFields(List<PrintWizardParser.TablesSelectFields> selectFields)Set selected fieldsvoidsetTableProtection(boolean isTableProtection)Set table protectionvoidsetWithoutPreview(boolean isWithoutPreview)Set without previewStringvalidateCommandName(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:
getWindowTitlein interfaceorg.eclipse.jface.wizard.IWizard- Overrides:
getWindowTitlein classorg.eclipse.jface.wizard.Wizard
-
addPages
public void addPages()
- Specified by:
addPagesin interfaceorg.eclipse.jface.wizard.IWizard- Overrides:
addPagesin classorg.eclipse.jface.wizard.Wizard
-
getNextPage
public org.eclipse.jface.wizard.IWizardPage getNextPage(org.eclipse.jface.wizard.IWizardPage page)
- Specified by:
getNextPagein interfaceorg.eclipse.jface.wizard.IWizard- Overrides:
getNextPagein classorg.eclipse.jface.wizard.Wizard
-
getAdapter
public Object getAdapter(Class adapter)
- Specified by:
getAdapterin interfaceorg.eclipse.core.runtime.IAdaptable
-
dispose
public void dispose()
- Specified by:
disposein interfaceorg.eclipse.jface.wizard.IWizard- Overrides:
disposein classorg.eclipse.jface.wizard.Wizard
-
performFinish
public boolean performFinish()
- Specified by:
performFinishin interfaceorg.eclipse.jface.wizard.IWizard- Specified by:
performFinishin 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
-
-