Changeset 74 for trunk/src


Ignore:
Timestamp:
May 23, 2008, 6:24:35 PM (17 years ago)
Author:
lpino
Message:
  • (Control.java) Added setMenu method and completed setPresBackground method
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/plugins/org.eclipse.swt/Eclipse SWT/pm/org/eclipse/swt/widgets/Control.java

    r64 r74  
    23212321 */
    23222322//@@TODO(dmik)
    2323 //public void setMenu (Menu menu) {
    2324 //    checkWidget ();
    2325 //    if (menu != null) {
    2326 //        if (menu.isDisposed()) SWT.error(SWT.ERROR_INVALID_ARGUMENT);
    2327 //        if ((menu.style & SWT.POP_UP) == 0) {
    2328 //            error (SWT.ERROR_MENU_NOT_POP_UP);
    2329 //        }
    2330 //        if (menu.parent != menuShell ()) {
    2331 //            error (SWT.ERROR_INVALID_PARENT);
    2332 //        }
    2333 //    }
    2334 //    this.menu = menu;
    2335 //}
     2323public void setMenu (Menu menu) {
     2324    checkWidget ();
     2325    if (menu != null) {
     2326        if (menu.isDisposed()) SWT.error(SWT.ERROR_INVALID_ARGUMENT);
     2327        if ((menu.style & SWT.POP_UP) == 0) {
     2328            error (SWT.ERROR_MENU_NOT_POP_UP);
     2329        }
     2330        if (menu.parent != menuShell ()) {
     2331            error (SWT.ERROR_INVALID_PARENT);
     2332        }
     2333    }
     2334    this.menu = menu;
     2335}
    23362336
    23372337void setPresBackground () {
Note: See TracChangeset for help on using the changeset viewer.