org.eclipse.cdt.internal.ui.filters
Class CustomFiltersDialog

java.lang.Object
  extended by org.eclipse.jface.window.Window
      extended by org.eclipse.jface.dialogs.Dialog
          extended by org.eclipse.jface.dialogs.TrayDialog
              extended by org.eclipse.ui.dialogs.SelectionDialog
                  extended by org.eclipse.cdt.internal.ui.filters.CustomFiltersDialog
All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider

public class CustomFiltersDialog
extends org.eclipse.ui.dialogs.SelectionDialog


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window
org.eclipse.jface.window.Window.IExceptionHandler
 
Field Summary
 
Fields inherited from class org.eclipse.jface.dialogs.Dialog
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS
 
Fields inherited from class org.eclipse.jface.window.Window
CANCEL, OK
 
Constructor Summary
CustomFiltersDialog(org.eclipse.swt.widgets.Shell shell, java.lang.String viewId, boolean enablePatterns, java.lang.String[] patterns, java.lang.String[] enabledFilterIds)
          Creates a dialog to customize Java element filters.
 
Method Summary
 boolean areUserDefinedPatternsEnabled()
           
static java.lang.String[] convertFromString(java.lang.String patterns, java.lang.String separator)
           
static java.lang.String convertToString(java.lang.String[] patterns, java.lang.String separator)
           
 java.lang.String[] getEnabledFilterIds()
           
 java.util.Stack getFilterDescriptorChangeHistory()
           
 java.lang.String[] getUserDefinedPatterns()
           
 
Methods inherited from class org.eclipse.ui.dialogs.SelectionDialog
getOkButton, getResult, setDialogBoundsSettings, setInitialElementSelections, setInitialSelections, setMessage, setTitle
 
Methods inherited from class org.eclipse.jface.dialogs.TrayDialog
close, closeTray, getTray, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailable
 
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, create, getBlockedHandler, getImage, setBlockedHandler, shortenText
 
Methods inherited from class org.eclipse.jface.window.Window
getDefaultImage, getDefaultImages, getDefaultOrientation, getReturnCode, getShell, getWindowManager, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setWindowManager
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomFiltersDialog

public CustomFiltersDialog(org.eclipse.swt.widgets.Shell shell,
                           java.lang.String viewId,
                           boolean enablePatterns,
                           java.lang.String[] patterns,
                           java.lang.String[] enabledFilterIds)
Creates a dialog to customize Java element filters.

Parameters:
shell - the parent shell
Method Detail

getUserDefinedPatterns

public java.lang.String[] getUserDefinedPatterns()
Returns:
the patterns which have been entered by the user

getEnabledFilterIds

public java.lang.String[] getEnabledFilterIds()
Returns:
the ids of the enabled built-in filters

areUserDefinedPatternsEnabled

public boolean areUserDefinedPatternsEnabled()
Returns:
true if the user-defined patterns are disabled

getFilterDescriptorChangeHistory

public java.util.Stack getFilterDescriptorChangeHistory()
Returns:
a stack with the filter descriptor check history
Since:
3.0

convertFromString

public static java.lang.String[] convertFromString(java.lang.String patterns,
                                                   java.lang.String separator)

convertToString

public static java.lang.String convertToString(java.lang.String[] patterns,
                                               java.lang.String separator)