本文整理汇总了Java中com.intellij.debugger.ui.impl.watch.StackFrameDescriptorImpl.getMethod方法的典型用法代码示例。如果您正苦于以下问题:Java StackFrameDescriptorImpl.getMethod方法的具体用法?Java StackFrameDescriptorImpl.getMethod怎么用?Java StackFrameDescriptorImpl.getMethod使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.debugger.ui.impl.watch.StackFrameDescriptorImpl
的用法示例。
在下文中一共展示了StackFrameDescriptorImpl.getMethod方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: isOccurrenceOfSelectedFrame
import com.intellij.debugger.ui.impl.watch.StackFrameDescriptorImpl; //导入方法依赖的package包/类
private static boolean isOccurrenceOfSelectedFrame(final StackFrameDescriptorImpl selectedDescriptor, StackFrameDescriptorImpl descriptor)
{
final Method currentMethod = descriptor.getMethod();
if(currentMethod != null)
{
if(selectedDescriptor != null)
{
final Method selectedMethod = selectedDescriptor.getMethod();
if(selectedMethod != null)
{
if(Comparing.equal(selectedMethod, currentMethod))
{
return true;
}
}
}
}
return false;
}
示例2: isOccurrenceOfSelectedFrame
import com.intellij.debugger.ui.impl.watch.StackFrameDescriptorImpl; //导入方法依赖的package包/类
private static boolean isOccurrenceOfSelectedFrame(final StackFrameDescriptorImpl selectedDescriptor, StackFrameDescriptorImpl descriptor) {
final Method currentMethod = descriptor.getMethod();
if (currentMethod != null) {
if (selectedDescriptor != null) {
final Method selectedMethod = selectedDescriptor.getMethod();
if (selectedMethod != null) {
if (Comparing.equal(selectedMethod, currentMethod)) {
return true;
}
}
}
}
return false;
}
示例3: onFrameChanged
import com.intellij.debugger.ui.impl.watch.StackFrameDescriptorImpl; //导入方法依赖的package包/类
protected void onFrameChanged(final Object selectedValue) {
final StackFrameDescriptorImpl descriptor = selectedValue instanceof StackFrameDescriptorImpl? (StackFrameDescriptorImpl)selectedValue : null;
final Method newMethod = descriptor != null? descriptor.getMethod() : null;
if (!Comparing.equal(mySelectedMethod, newMethod)) {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
repaint();
}
});
}
mySelectedMethod = newMethod;
}