1 11 package org.eclipse.ui.views.properties.tabbed; 12 13 import org.eclipse.jface.viewers.ISelection; 14 import org.eclipse.swt.SWT; 15 import org.eclipse.swt.widgets.Composite; 16 import org.eclipse.ui.IWorkbenchPart; 17 18 24 public abstract class AbstractPropertySection 25 implements ISection { 26 27 31 public static final int STANDARD_LABEL_WIDTH = 85; 32 33 36 private TabbedPropertySheetPage tabbedPropertySheetPage; 37 38 41 private ISelection selection; 42 43 46 private IWorkbenchPart part; 47 48 53 public TabbedPropertySheetWidgetFactory getWidgetFactory() { 54 return tabbedPropertySheetPage.getWidgetFactory(); 55 } 56 57 62 public ISelection getSelection() { 63 return selection; 64 } 65 66 69 public IWorkbenchPart getPart() { 70 return part; 71 } 72 73 77 public void createControls(Composite parent, 78 TabbedPropertySheetPage aTabbedPropertySheetPage) { 79 this.tabbedPropertySheetPage = aTabbedPropertySheetPage; 80 } 81 82 86 public void setInput(IWorkbenchPart part, ISelection selection) { 87 this.selection = selection; 88 this.part = part; 89 } 90 91 94 public void aboutToBeShown() { 95 96 } 97 98 101 public void aboutToBeHidden() { 102 103 } 104 105 108 public void dispose() { 109 110 } 111 112 115 public int getMinimumHeight() { 116 return SWT.DEFAULT; 117 } 118 119 122 public boolean shouldUseExtraSpace() { 123 return false; 124 } 125 126 129 public void refresh() { 130 131 } 132 } 133 | Popular Tags |