Adobe Dreamweaver API Reference CS5 Manual do Utilizador Página 201

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 533
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 200
196
DREAMWEAVER API REFERENCE
Workspace
Last updated 8/27/2013
DWFilenameFilter reference
The objects of type DWFilenameFilter are new to Dreamweaver CS5 and are used to restrict the files displayed in the
Related Files bar. To manipulate the related Files bar filter, extension developers can create a new DWFilenameFilter
object and change the behavior of the filter using the functions described in the following sections.
For example,
var filter = new DWFilenameFilter;
filter.setExpression('*.js');
dw.setRelatedFilesFilter(filter);
Extension developers can also manipulate the current filter applied to the Related Files bar by invoking the
dreamweaver.getRelatedFilesFilter() function (see “dreamweaver.getRelatedFilesFilter()” on page 190 )and
then changing the behavior of the filter using the other functions.
For instance,
var filter = dw.getRelatedFilesFilter();
filter.addExtensionToExclusionExpression('.js');
dw.setRelatedFilesFilter(filter);
DWFilenameFilter.isValidFilterExpression()
Availability
Dreamweaver CS5.
Description
This function is used to determine if an expression is a valid filter expression.
Arguments
expression - A string that represents a filter expression.
Returns
A Boolean: true if the expression is valid.
DWFilenameFilter.isEmpty()
Availability
Dreamweaver CS5.
Description
This function is used to determine if a filter object is empty.
Arguments
None.
Returns
A Boolean: true if the filter object is empty.
Vista de página 200
1 2 ... 196 197 198 199 200 201 202 203 204 205 206 ... 532 533

Comentários a estes Manuais

Sem comentários