public void testGetShowWeaveMessagesOptionViaWorkbenchPreferences() throws Exception { assertFalse( "default setting is not to show weave info", //$NON-NLS-1$ AspectJPreferences.getShowWeaveMessagesOption(project)); // know that when "show weave messages" is selected in the preference // page, then set this store value to true because use the // getSelection() call on the button to see whether it // is selected (weave messages on) or not (weave messages off) AspectJPreferences.setShowWeaveMessagesOption(project, true); assertTrue( "have chosen to show weave info", //$NON-NLS-1$ AspectJPreferences.getShowWeaveMessagesOption(project)); AspectJPreferences.setShowWeaveMessagesOption(project, false); assertFalse( "have chosen not to show weave info", //$NON-NLS-1$ AspectJPreferences.getShowWeaveMessagesOption(project)); }
public void testGetShowWeaveMessagesOptionViaProjectPreferences() throws Exception { AspectJPreferences.setUsingProjectSettings(project, true, true); assertFalse( "default setting is not to show weave info", //$NON-NLS-1$ AspectJPreferences.getShowWeaveMessagesOption(project)); // know that when "show weave messages" is selected in the preference // page, then set this project node value to true because use the // following : // String stringValue = curr.getSelection() ? "true" : "false"; // to see whether it is selected (weave messages on) or not (weave messages off) AspectJPreferences.setShowWeaveMessagesOption(project, true); assertTrue( "have chosen to show weave info", //$NON-NLS-1$ AspectJPreferences.getShowWeaveMessagesOption(project)); AspectJPreferences.setShowWeaveMessagesOption(project, false); assertFalse( "have chosen not to show weave info", //$NON-NLS-1$ AspectJPreferences.getShowWeaveMessagesOption(project)); }