本文整理匯總了Java中com.intellij.uiDesigner.ErrorAnalyzer類的典型用法代碼示例。如果您正苦於以下問題:Java ErrorAnalyzer類的具體用法?Java ErrorAnalyzer怎麽用?Java ErrorAnalyzer使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
ErrorAnalyzer類屬於com.intellij.uiDesigner包,在下文中一共展示了ErrorAnalyzer類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getToolTipText
import com.intellij.uiDesigner.ErrorAnalyzer; //導入依賴的package包/類
@Override
@Nullable
public String getToolTipText(final MouseEvent e)
{
final TreePath path = getPathForLocation(e.getX(), e.getY());
final RadComponent component = getComponentFromPath(path);
if(component != null)
{
final ErrorInfo errorInfo = ErrorAnalyzer.getErrorForComponent(component);
if(errorInfo != null)
{
return errorInfo.myDescription;
}
}
return null;
}
示例2: getErrorInfos
import com.intellij.uiDesigner.ErrorAnalyzer; //導入依賴的package包/類
@NotNull protected ErrorInfo[] getErrorInfos() {
final ArrayList<RadComponent> list = FormEditingUtil.getSelectedComponents(getEditor());
if (list.size() != 1) {
return ErrorInfo.EMPTY_ARRAY;
}
return ErrorAnalyzer.getAllErrorsForComponent(list.get(0));
}
示例3: getErrorInfos
import com.intellij.uiDesigner.ErrorAnalyzer; //導入依賴的package包/類
@NotNull
protected ErrorInfo[] getErrorInfos() {
final RadComponent component = myComponent.getSelectedComponent();
if(component == null){
return ErrorInfo.EMPTY_ARRAY;
}
return ErrorAnalyzer.getAllErrorsForComponent(component);
}
示例4: getErrorInfos
import com.intellij.uiDesigner.ErrorAnalyzer; //導入依賴的package包/類
@Override
@NotNull
protected ErrorInfo[] getErrorInfos()
{
final ArrayList<RadComponent> list = FormEditingUtil.getSelectedComponents(getEditor());
if(list.size() != 1)
{
return ErrorInfo.EMPTY_ARRAY;
}
return ErrorAnalyzer.getAllErrorsForComponent(list.get(0));
}