1 11 package org.eclipse.ui.internal; 12 13 import org.eclipse.core.runtime.Assert; 14 import org.eclipse.ui.IViewLayout; 15 16 22 public class ViewLayout implements IViewLayout { 23 private ViewLayoutRec rec; 24 25 public ViewLayout(PageLayout pageLayout, ViewLayoutRec rec) { 26 Assert.isNotNull(pageLayout); 27 Assert.isNotNull(rec); 28 this.rec = rec; 29 } 30 31 34 public boolean getShowTitle() { 35 return rec.showTitle; 36 } 37 38 41 public boolean isCloseable() { 42 return rec.isCloseable; 43 } 44 45 48 public boolean isMoveable() { 49 return rec.isMoveable; 50 } 51 52 55 public boolean isStandalone() { 56 return rec.isStandalone; 57 } 58 59 62 public void setCloseable(boolean closeable) { 63 rec.isCloseable = closeable; 64 } 65 66 69 public void setMoveable(boolean moveable) { 70 rec.isMoveable = moveable; 71 } 72 73 } 74 | Popular Tags |