Example usage for org.aspectj.ajde.core IBuildMessageHandler dontIgnore

List of usage examples for org.aspectj.ajde.core IBuildMessageHandler dontIgnore

Introduction

In this page you can find the example usage for org.aspectj.ajde.core IBuildMessageHandler dontIgnore.

Prototype

void dontIgnore(IMessage.Kind kind);

Source Link

Document

Allow fine grained configuration after initialization.

Usage

From source file:org.eclipse.ajdt.internal.ui.preferences.AspectJPreferences.java

License:Open Source License

public static void setShowWeaveMessagesOption(IProject project, boolean showWeaveMessages) {
    String value = ""; //$NON-NLS-1$
    IBuildMessageHandler handler = AspectJPlugin.getDefault().getCompilerFactory()
            .getCompilerForProject(project).getMessageHandler();
    if (showWeaveMessages) {
        value = VALUE_TRUE;//from   ww w .j  a  va  2 s .  com
        handler.dontIgnore(IMessage.WEAVEINFO);
    } else {
        value = VALUE_FALSE;
        handler.ignore(IMessage.WEAVEINFO);
    }
    if (isUsingProjectSettings(project)) {
        IScopeContext projectScope = new ProjectScope(project);
        IEclipsePreferences projectNode = projectScope.getNode(AspectJPlugin.PLUGIN_ID);
        projectNode.put(OPTION_WeaveMessages, value);
    } else {
        IPreferenceStore store = AspectJUIPlugin.getDefault().getPreferenceStore();
        store.setValue(OPTION_WeaveMessages, value);
    }
}