Changeset 57 for trunk/src


Ignore:
Timestamp:
Jan 9, 2008, 2:22:40 PM (18 years ago)
Author:
lpino
Message:
  • (Decorations.java) Added the findMenuItem method
File:
1 edited

Legend:

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

    r49 r57  
    457457//      return null;
    458458//}
    459 //
    460 //MenuItem findMenuItem (int id) {
    461 //      if (items == null) return null;
    462 //      id = id - ID_START;
    463 //      if (0 <= id && id < items.length) return items [id];
    464 //      return null;
    465 //}
     459
     460MenuItem findMenuItem (int id) {
     461        if (items == null) return null;
     462        id = id - ID_START;
     463        if (0 <= id && id < items.length) return items [id];
     464        return null;
     465}
    466466
    467467int getBounds (SWP swp) {
Note: See TracChangeset for help on using the changeset viewer.