1 11 package org.eclipse.ui.internal; 12 13 25 public class TrimLayoutData { 26 27 34 public static final int GROWABLE = 0x1; 35 36 40 public static final int SHRINKABLE = 0x2; 41 42 47 public static final int GRAB_EXCESS_MINOR = 0x4; 48 49 public String trimId; 51 52 public String areaId; 53 54 public int flags; 55 56 public ITrimAreaChangeListener listener; 57 58 public int shrinkableSize; 59 60 public TrimLayoutData(String trimId, String areaId, int flags, 61 ITrimAreaChangeListener listener) { 62 this.trimId = trimId; 63 this.areaId = areaId; 64 this.flags = flags; 65 this.listener = listener; 66 } 67 68 public TrimLayoutData(String trimId, String areaId, int flags) { 69 this(trimId, areaId, flags, null); 70 } 71 72 public TrimLayoutData(String trimId, String areaId) { 73 this(trimId, areaId, 0); 74 } 75 76 public void setAreaId(String newAreaId) { 77 if (listener != null) { 78 listener.areaChanged(WorkbenchLayout.getOrientation(areaId), 79 WorkbenchLayout.getOrientation(newAreaId)); 80 } 81 82 areaId = newAreaId; 83 } 84 } 85 | Popular Tags |