1 20 21 package org.apache.directory.ldapstudio.browser.ui.editors.entry; 22 23 24 import org.apache.directory.ldapstudio.browser.common.BrowserCommonActivator; 25 import org.apache.directory.ldapstudio.browser.common.BrowserCommonConstants; 26 import org.eclipse.jface.action.Action; 27 28 29 35 public class ShowOperationalAttributesAction extends Action 36 { 37 38 41 public ShowOperationalAttributesAction() 42 { 43 super( "Show Operational Attributes", AS_CHECK_BOX ); 44 setToolTipText( getText() ); 45 setEnabled( true ); 46 setChecked( BrowserCommonActivator.getDefault().getPreferenceStore().getBoolean( 47 BrowserCommonConstants.PREFERENCE_ENTRYEDITOR_SHOW_OPERATIONAL_ATTRIBUTES ) ); 48 } 49 50 51 54 public void run() 55 { 56 BrowserCommonActivator.getDefault().getPreferenceStore().setValue( 57 BrowserCommonConstants.PREFERENCE_ENTRYEDITOR_SHOW_OPERATIONAL_ATTRIBUTES, super.isChecked() ); 58 } 59 60 } 61 | Popular Tags |