Package org.eclipse.lemminx.settings
Class XMLSymbolSettings
- java.lang.Object
-
- org.eclipse.lemminx.settings.XMLSymbolSettings
-
public class XMLSymbolSettings extends Object
XMLSymbolPreferences for Document Symbols
-
-
Constructor Summary
Constructors Constructor Description XMLSymbolSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]getExcluded()XMLExcludedSymbolFile[]getExcludedFiles()XMLSymbolFiltergetFilterFor(String uri)XMLSymbolFilter[]getFilters()intgetMaxItemsComputed()booleanisEnabled()booleanisExcluded(String uri)Given a file URI, this will check if it matches any of the given file patterns.voidmerge(XMLSymbolSettings newSettings)voidsetEnabled(boolean enabled)voidsetExcluded(String[] excluded)Will use the excluded pattern strings to create a list ofXMLExcludedSymbolFileobjects within this object.voidsetFilters(XMLSymbolFilter[] filters)voidsetMaxItemsComputed(int maxItemsComputed)
-
-
-
Method Detail
-
getExcludedFiles
public XMLExcludedSymbolFile[] getExcludedFiles()
-
setFilters
public void setFilters(XMLSymbolFilter[] filters)
-
getFilters
public XMLSymbolFilter[] getFilters()
-
isEnabled
public boolean isEnabled()
-
setEnabled
public void setEnabled(boolean enabled)
-
getExcluded
public String[] getExcluded()
-
setExcluded
public void setExcluded(String[] excluded)
Will use the excluded pattern strings to create a list ofXMLExcludedSymbolFileobjects within this object.- Parameters:
excluded-
-
isExcluded
public boolean isExcluded(String uri)
Given a file URI, this will check if it matches any of the given file patterns. A uri is 'excluded' if it matches any of the given patterns. **Important:** Set the excluded file patterns before calling this using 'setExcluded()'.- Parameters:
uri-- Returns:
-
getMaxItemsComputed
public int getMaxItemsComputed()
-
setMaxItemsComputed
public void setMaxItemsComputed(int maxItemsComputed)
-
merge
public void merge(XMLSymbolSettings newSettings)
-
getFilterFor
public XMLSymbolFilter getFilterFor(String uri)
-
-