Methods Summary |
---|
public void | dispose()
|
private MethodData | doMatchName(java.lang.String name, int startIndex)
// Check if the given "name" has any uppercase letters
boolean hasUpper = mUppercase.matcher(name).matches();
for (int ii = startIndex; ii < mRoots.length; ++ii) {
MethodData md = mRoots[ii];
String fullName = md.getName();
// If there were no upper case letters in the given name,
// then ignore case when matching.
if (!hasUpper)
fullName = fullName.toLowerCase();
if (fullName.indexOf(name) != -1) {
mPrevMatchIndex = ii;
return md;
}
}
mPrevMatchIndex = -1;
return null;
|
public MethodData | findMatchingName(java.lang.String name)
return doMatchName(name, 0);
|
public MethodData | findMatchingTreeItem(org.eclipse.swt.widgets.TreeItem item)
if (item == null)
return null;
String text = item.getText();
if (Character.isDigit(text.charAt(0)) == false)
return null;
int spaceIndex = text.indexOf(' ");
String numstr = text.substring(0, spaceIndex);
int rank = Integer.valueOf(numstr);
for (MethodData md : mRoots) {
if (md.getRank() == rank)
return md;
}
return null;
|
public MethodData | findNextMatchingName(java.lang.String name)
return doMatchName(name, mPrevMatchIndex + 1);
|
public java.lang.Object[] | getChildren(java.lang.Object element)
if (element instanceof MethodData) {
MethodData md = (MethodData) element;
return md.getProfileNodes();
}
if (element instanceof ProfileNode) {
ProfileNode pn = (ProfileNode) element;
return pn.getChildren();
}
return new Object[0];
|
public int[] | getColumnAlignments()
return mColumnAlignments;
|
public org.eclipse.swt.events.SelectionAdapter | getColumnListener()
if (mListener == null)
mListener = new ColumnListener();
return mListener;
|
public java.lang.String[] | getColumnNames()
return mColumnNames;
|
public int[] | getColumnWidths()
return mColumnWidths;
|
public java.lang.Object[] | getElements(java.lang.Object element)
return mRoots;
|
public org.eclipse.jface.viewers.LabelProvider | getLabelProvider()
return new ProfileLabelProvider();
|
public java.lang.Object | getParent(java.lang.Object element)
return null;
|
public java.lang.Object | getRoot()
return "root";
|
public boolean | hasChildren(java.lang.Object element)
if (element instanceof MethodData)
return true;
if (element instanceof ProfileNode)
return true;
return false;
|
public void | inputChanged(org.eclipse.jface.viewers.Viewer arg0, java.lang.Object arg1, java.lang.Object arg2)
|
public void | setTreeViewer(org.eclipse.jface.viewers.TreeViewer treeViewer)
mTreeViewer = treeViewer;
|