comparison dwtx/jface/preference/PreferencePage.d @ 43:ea8ff534f622

Fix override and super aliases
author Frank Benoit <benoit@tionex.de>
date Fri, 11 Apr 2008 01:24:25 +0200
parents b3c8e32d406f
children 46a6e0e6ccd4
comparison
equal deleted inserted replaced
42:4567a6f54939 43:ea8ff534f622
63 * the standard Apply and Defaults buttons. 63 * the standard Apply and Defaults buttons.
64 * </p> 64 * </p>
65 */ 65 */
66 public abstract class PreferencePage : DialogPage, 66 public abstract class PreferencePage : DialogPage,
67 IPreferencePage { 67 IPreferencePage {
68 alias DialogPage.setMessage setMessage;
68 69
69 /** 70 /**
70 * Preference store, or <code>null</code>. 71 * Preference store, or <code>null</code>.
71 */ 72 */
72 private IPreferenceStore preferenceStore; 73 private IPreferenceStore preferenceStore;
507 /** 508 /**
508 * The <code>PreferencePage</code> implementation of this <code>IDialogPage</code> 509 * The <code>PreferencePage</code> implementation of this <code>IDialogPage</code>
509 * method extends the <code>DialogPage</code> implementation to update 510 * method extends the <code>DialogPage</code> implementation to update
510 * the preference page container title. Subclasses may extend. 511 * the preference page container title. Subclasses may extend.
511 */ 512 */
512 public void setTitle(String title) { 513 public override void setTitle(String title) {
513 super.setTitle(title); 514 super.setTitle(title);
514 if (getContainer() !is null) { 515 if (getContainer() !is null) {
515 getContainer().updateTitle(); 516 getContainer().updateTitle();
516 } 517 }
517 } 518 }
539 } 540 }
540 541
541 /** 542 /**
542 * Returns a string suitable for debugging purpose only. 543 * Returns a string suitable for debugging purpose only.
543 */ 544 */
544 public String toString() { 545 public override String toString() {
545 return getTitle(); 546 return getTitle();
546 } 547 }
547 548
548 /** 549 /**
549 * Updates the enabled state of the Apply button to reflect whether 550 * Updates the enabled state of the Apply button to reflect whether
624 } 625 }
625 626
626 /* (non-Javadoc) 627 /* (non-Javadoc)
627 * @see dwtx.jface.dialogs.IDialogPage#performHelp() 628 * @see dwtx.jface.dialogs.IDialogPage#performHelp()
628 */ 629 */
629 public void performHelp() { 630 public override void performHelp() {
630 getControl().notifyListeners(DWT.Help, new Event()); 631 getControl().notifyListeners(DWT.Help, new Event());
631 } 632 }
632 633
633 /** 634 /**
634 * Apply the data to the receiver. By default do nothing. 635 * Apply the data to the receiver. By default do nothing.
640 } 641 }
641 642
642 /* (non-Javadoc) 643 /* (non-Javadoc)
643 * @see dwtx.jface.dialogs.DialogPage#setErrorMessage(java.lang.String) 644 * @see dwtx.jface.dialogs.DialogPage#setErrorMessage(java.lang.String)
644 */ 645 */
645 public void setErrorMessage(String newMessage) { 646 public override void setErrorMessage(String newMessage) {
646 super.setErrorMessage(newMessage); 647 super.setErrorMessage(newMessage);
647 if (getContainer() !is null) { 648 if (getContainer() !is null) {
648 getContainer().updateMessage(); 649 getContainer().updateMessage();
649 } 650 }
650 } 651 }
651 652
652 /* (non-Javadoc) 653 /* (non-Javadoc)
653 * @see dwtx.jface.dialogs.DialogPage#setMessage(java.lang.String, int) 654 * @see dwtx.jface.dialogs.DialogPage#setMessage(java.lang.String, int)
654 */ 655 */
655 public void setMessage(String newMessage, int newType) { 656 public override void setMessage(String newMessage, int newType) {
656 super.setMessage(newMessage, newType); 657 super.setMessage(newMessage, newType);
657 if (getContainer() !is null) { 658 if (getContainer() !is null) {
658 getContainer().updateMessage(); 659 getContainer().updateMessage();
659 } 660 }
660 } 661 }