I'm not sure there is a way to get the effect you want. As a workaround, you can either always have both 'Activate' and 'Deactivate' menu entries (with no indication of which will actually change something) or you can use a configuration dialog to make the changes and spawn that dialog from the plugin action menu item. -Etan