How do I programmatically hide a preference page? For example I have the following in my plugins.xml file which creates a preference page which at times we want to hide. In my code how do I make it invisible? It would need to be invisible on startup depending on a specific situation and would remain invisible for that instance of the application.
<extension
point = "org.eclipse.ui.preferencePages">
<page id="CounterPath.Preferences.Accounts.AccountsPage"
class="CounterPath.Preferences.Accounts.AccountsPage"
name="Telephony Accounts">
</page>
The AccountsPage class indicated above extends PreferencePage and implements IWorkbenchPreferencePage.
I’ll need to hide the page regardless of whether our plugin is running under Notes or Sametime.