List of usage examples for org.aspectj.ajde.core IBuildMessageHandler ignore
void ignore(IMessage.Kind kind);
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); } }