Rule Execution Server API

ilog.rules.studio.res.ui.generator.impl.wizard.page
Class IlrTraceFilterWizardPage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.wizard.WizardPage
          extended by ilog.rules.studio.res.ui.generator.impl.wizard.page.IlrFileGeneratorWizardPage
              extended by ilog.rules.studio.res.ui.generator.impl.wizard.page.IlrTraceFilterWizardPage
All Implemented Interfaces:
org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.wizard.IWizardPage

public class IlrTraceFilterWizardPage
extends IlrFileGeneratorWizardPage

Extends the IlrFileGeneratorWizardPage class to request the values of the trace filters.

Since:
JRules 6.5

Field Summary
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
IlrTraceFilterWizardPage(String name)
          Creates a new wizard page with the given name, and with no title or image.
 
Method Summary
 void addContent(org.eclipse.swt.widgets.Composite parent)
          The IlrTraceFilter implementation of this IlrFileGeneratorWizardPage method.
protected  String getDefaultFilterMessage()
          Gets the message to display.
protected  String getRedefineFilterMessage()
          Gets the message to display.
protected  boolean isRedefinitionAllowed()
          Returns true if the radio button must be visible in the page.
 void saveProperties(IlrFileGenerator filegenerator)
          Stores the values of the parameter properties in the file generator.
 
Methods inherited from class ilog.rules.studio.res.ui.generator.impl.wizard.page.IlrFileGeneratorWizardPage
createControl, dispose, getHelpContextId, isPageCompleteAtCreation, isValidatedPageAtCreation, setVisible
 
Methods inherited from class org.eclipse.jface.wizard.WizardPage
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isCurrentPage, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toString
 
Methods inherited from class org.eclipse.jface.dialogs.DialogPage
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage
getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp
 

Constructor Detail

IlrTraceFilterWizardPage

public IlrTraceFilterWizardPage(String name)
Creates a new wizard page with the given name, and with no title or image.

Parameters:
name - The name of the page
Method Detail

saveProperties

public void saveProperties(IlrFileGenerator filegenerator)
Stores the values of the parameter properties in the file generator. The type of the file generator must be a derived type of the IlrTraceFileGenerator class.

Parameters:
filegenerator - The file generator to complete.

isRedefinitionAllowed

protected boolean isRedefinitionAllowed()
Returns true if the radio button must be visible in the page. If false is returned, only the properties will be visible in the page.

Returns:
True if the radio buttons must be visible.

getDefaultFilterMessage

protected String getDefaultFilterMessage()
Gets the message to display. Selecting the first radio button will not (re)generate the trace filter properties file.

If the isRedefinitionAllowed() method returns false, this method will not be called.

Returns:
The message to display.

getRedefineFilterMessage

protected String getRedefineFilterMessage()
Gets the message to display. Selecting the second radio button will (re)generate the trace filter properties file.

If the isRedefinitionAllowed() method returns false, this method will not be called.

Returns:
The message to display.

addContent

public void addContent(org.eclipse.swt.widgets.Composite parent)
The IlrTraceFilter implementation of this IlrFileGeneratorWizardPage method. Creates two radio buttons and the check list for all trace properties.

Specified by:
addContent in class IlrFileGeneratorWizardPage
Parameters:
parent - The composite created in the createControl method.
See Also:
IlrFileGeneratorWizardPage.addContent(org.eclipse.swt.widgets.Composite)

Rule Execution Server API

© Copyright IBM Corp. 1987, 2013