public abstract class RunAnalyseHandler
extends org.eclipse.core.commands.AbstractHandler
| Modifier and Type | Field and Description |
|---|---|
protected org.eclipse.jface.viewers.IStructuredSelection |
selection
the current selection is cached here
|
| Constructor and Description |
|---|
RunAnalyseHandler()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
countFiles(org.eclipse.core.resources.IResource res)
Count the number of files in this resource (file or container).
|
protected int |
countFiles(org.eclipse.core.resources.IResource res,
java.lang.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(java.lang.String[] exts) |
org.eclipse.jface.viewers.IStructuredSelection |
getSelection(org.eclipse.core.commands.ExecutionEvent event)
Get the current selection from the handler event.
|
addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled, setEnabledaddListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectprotected org.eclipse.jface.viewers.IStructuredSelection selection
public org.eclipse.jface.viewers.IStructuredSelection getSelection(org.eclipse.core.commands.ExecutionEvent event)
event - protected int countFilesSelected()
protected int countFiles(org.eclipse.core.resources.IResource res)
res - protected int countFilesSelected(java.lang.String[] exts)
protected int countFiles(org.eclipse.core.resources.IResource res,
java.lang.String[] exts)
res - exts - array of extensions e.g. ".h", ".hpp" etcCopyright (c) 2011 IBM Corporation and others. All Rights Reserved.