|
PTP Release 7.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectAbstractHandler
org.eclipse.ptp.pldt.common.actions.RunAnalyseHandler
public abstract class RunAnalyseHandler
RunAnalyseHandler - keeps state information for the analysis handlers in the dropdown analysis menu. Common behavior is in (derived class) RunAnalyseHandlerBase. That is, the AnalysisDropdownHandler will repeat the action of the last RunAnalyseHandler that was executed - they are cached as one of these.
| Field Summary | |
|---|---|
protected IStructuredSelection |
selection
the current selection is cached here |
| Constructor Summary | |
|---|---|
RunAnalyseHandler()
Constructor |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected IStructuredSelection selection
| Constructor Detail |
|---|
public RunAnalyseHandler()
| Method Detail |
|---|
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" etc
|
PTP Release 7.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||