Search in sources :

Example 6 with WolfTheProblemSolver

use of com.intellij.problems.WolfTheProblemSolver in project intellij-community by JetBrains.

the class AntBuildMessageView method outputException.

public void outputException(String exception) {
    updateErrorAndWarningCounters(PRIORITY_ERR);
    AntMessage message = createErrorMessage(PRIORITY_ERR, exception);
    addCommand(new AddExceptionCommand(message));
    WolfTheProblemSolver wolf = WolfTheProblemSolver.getInstance(myProject);
    wolf.queue(message.getFile());
}
Also used : WolfTheProblemSolver(com.intellij.problems.WolfTheProblemSolver)

Example 7 with WolfTheProblemSolver

use of com.intellij.problems.WolfTheProblemSolver in project intellij-community by JetBrains.

the class AntBuildMessageView method outputJavacMessage.

public void outputJavacMessage(MessageType type, String[] text, VirtualFile file, String url, int line, int column) {
    int priority = type == MessageType.ERROR ? PRIORITY_ERR : PRIORITY_VERBOSE;
    updateErrorAndWarningCounters(priority);
    final AntMessage message = new AntMessage(type, priority, text, file, line, column);
    addCommand(new AddJavacMessageCommand(message, url));
    if (type == MessageType.ERROR) {
        WolfTheProblemSolver wolf = WolfTheProblemSolver.getInstance(myProject);
        wolf.queue(file);
    }
}
Also used : WolfTheProblemSolver(com.intellij.problems.WolfTheProblemSolver)

Aggregations

WolfTheProblemSolver (com.intellij.problems.WolfTheProblemSolver)7 VirtualFile (com.intellij.openapi.vfs.VirtualFile)3 Project (com.intellij.openapi.project.Project)2 Problem (com.intellij.problems.Problem)2 SdkConstants (com.android.SdkConstants)1 VisibleForTesting (com.android.annotations.VisibleForTesting)1 LayoutLog (com.android.ide.common.rendering.api.LayoutLog)1 TAG_RESOURCES_PREFIX (com.android.ide.common.rendering.api.LayoutLog.TAG_RESOURCES_PREFIX)1 TAG_RESOURCES_RESOLVE_THEME_ATTR (com.android.ide.common.rendering.api.LayoutLog.TAG_RESOURCES_RESOLVE_THEME_ATTR)1 ResourceResolver (com.android.ide.common.resources.ResourceResolver)1 RenderSessionImpl (com.android.layoutlib.bridge.impl.RenderSessionImpl)1 Density (com.android.resources.Density)1 IAndroidTarget (com.android.sdklib.IAndroidTarget)1 AndroidModuleInfo (com.android.tools.idea.model.AndroidModuleInfo)1 TAG_STILL_BUILDING (com.android.tools.idea.rendering.RenderLogger.TAG_STILL_BUILDING)1 RenderErrorModel (com.android.tools.idea.rendering.errors.ui.RenderErrorModel)1 RenderErrorPanel (com.android.tools.idea.rendering.errors.ui.RenderErrorPanel)1 ResourceHelper.isViewPackageNeeded (com.android.tools.idea.res.ResourceHelper.isViewPackageNeeded)1 AndroidSdks (com.android.tools.idea.sdk.AndroidSdks)1 EditorDesignSurface (com.android.tools.idea.ui.designer.EditorDesignSurface)1