java - How to remove "restore defaults" and "apply" button in custom RCP Preference Page -


आरसीपी में वरीयता पेज बनाते समय, उदा। जैसे कुछ:

  सार्वजनिक वर्ग MyPreferencePage विस्तारित org.eclipse.jface.preference.PreferencePage लागू करता है IWorkbenchPreferencePage  

मैं "पुनर्स्थापना डिफ़ॉल्ट मान" कैसे निकाल सकता हूँ और "लागू करें" बटन जो डिफ़ॉल्ट रूप से जोड़े जाते हैं

  का उपयोग करना यह .get डीफॉल्टबटन ()। सेटव्यूबल (गलत); । This.getApplyButton () setVisible (गलत);  

परिणाम एक त्रुटि में होता है।

कॉल पसंदपेज .noDefaultAndApplyButton () इससे पहले कि आपके नियंत्रण बनाया जाता है।


Comments

Popular posts from this blog

iphone - How do I make a UIPickerView in a UIActionSheet -

java - Is there an object like a "Set" that can contain only unique string values, but also contain a count on the number of occurrences of the string value? -