public abstract class RunAnalyseHandler
extends AbstractHandler
Modifier and Type | Field and Description |
---|---|
protected IStructuredSelection |
selection
the current selection is cached here
|
Constructor and Description |
---|
RunAnalyseHandler()
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected int |
countFiles(IResource res)
Count the number of files in this resource (file or container).
|
protected int |
countFiles(IResource res,
String[] exts)
count files ending in one of the given file extensions
|
protected int |
countFilesSelected()
Counts the number of files in the selection (leaf nodes only - Files -
not the directories/containers)
Note that this makes no distinction about what type of files. |
protected int |
countFilesSelected(String[] exts) |
IStructuredSelection |
getSelection(ExecutionEvent event)
Get the current selection from the handler event.
|
protected IStructuredSelection selection
public IStructuredSelection getSelection(ExecutionEvent event)
event
- protected int countFilesSelected()
protected int countFiles(IResource res)
res
- protected int countFilesSelected(String[] exts)
protected int countFiles(IResource res, String[] exts)
res
- exts
- array of extensions e.g. ".h", ".hpp" etcCopyright (c) 2011 IBM Corporation and others. All Rights Reserved.