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

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

Introduction

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

Prototype

void ignore(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  ava 2s .co  m*/
        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);
    }
}