java - how to disable the maximise button in eclipse plugin development project -
i developing plugin project. want disable maximize button in title bar of wizard page. please me
if using org.eclipse.jface.wizard.wizarddialog
open wizard create subclass set different shell style in constructor:
public class wizarddialognomax extends wizarddialog { public wizarddialognomax(shell parentshell, iwizard wizard) { super(parentshell, wizard); setshellstyle(swt.close | swt.title | swt.border | swt.application_modal | swt.resize | getdefaultorientation()); } }
the above leaving out swt.max style. on mac osx necessary leave out swt.resize (which means dialog cannot resized).
if adding wizard eclipse new, import or export wizard extension points don't think can change maximize button.
Comments
Post a Comment