org.eclipse.jface.viewers.CellEditor.LayoutData Java Examples
The following examples show how to use
org.eclipse.jface.viewers.CellEditor.LayoutData.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: GridViewerEditor.java From nebula with Eclipse Public License 2.0 | 6 votes |
/** * FIXME * {@inheritDoc} */ @Override protected void setLayoutData(LayoutData layoutData) { gridEditor.grabHorizontal = layoutData.grabHorizontal; gridEditor.horizontalAlignment = layoutData.horizontalAlignment; gridEditor.minimumWidth = layoutData.minimumWidth; gridEditor.verticalAlignment = layoutData.verticalAlignment; if (layoutData.minimumHeight != SWT.DEFAULT) { gridEditor.minimumHeight = layoutData.minimumHeight; } else { gridEditor.minimumHeight = SWT.DEFAULT; } }
Example #2
Source File: CTreeViewer.java From nebula with Eclipse Public License 2.0 | 5 votes |
protected AbstractViewerEditor createViewerEditor() { return new AbstractViewerEditor(this) { protected StructuredSelection createSelection(Object element) { if (element instanceof TreePath) { return new TreeSelection((TreePath) element, getComparer()); } return new StructuredSelection(element); } protected Item[] getSelection() { return ctree.getSelection(); } protected void setEditor(Control w, Item item, int fColumnNumber) { ctreeEditor.setEditor(w, (CTreeItem) item, fColumnNumber); } protected void setLayoutData(LayoutData layoutData) { ctreeEditor.grabHorizontal = layoutData.grabHorizontal; ctreeEditor.horizontalAlignment = layoutData.horizontalAlignment; ctreeEditor.minimumWidth = layoutData.minimumWidth; } protected void showSelection() { ctree.showSelection(); } }; }
Example #3
Source File: GridViewer.java From nebula with Eclipse Public License 2.0 | 5 votes |
protected AbstractViewerEditor createViewerEditor() { return new AbstractViewerEditor(this) { protected StructuredSelection createSelection(Object element) { return new StructuredSelection(element); } protected Item[] getSelection() { return getGrid().getSelection(); } protected void setEditor(Control w, Item item, int fColumnNumber) { gridEditor.setEditor(w, (GridItem) item, fColumnNumber); } protected void setLayoutData(LayoutData layoutData) { gridEditor.grabHorizontal = layoutData.grabHorizontal; gridEditor.horizontalAlignment = layoutData.horizontalAlignment; gridEditor.minimumWidth = layoutData.minimumWidth; } protected void showSelection() { getGrid().showSelection(); } }; }
Example #4
Source File: GridViewerEditor.java From translationstudio8 with GNU General Public License v2.0 | 5 votes |
/** * FIXME * {@inheritDoc} */ protected void setLayoutData(LayoutData layoutData) { gridEditor.grabHorizontal = layoutData.grabHorizontal; gridEditor.horizontalAlignment = layoutData.horizontalAlignment; gridEditor.minimumWidth = layoutData.minimumWidth; gridEditor.verticalAlignment = layoutData.verticalAlignment; if (layoutData.minimumHeight != SWT.DEFAULT) { gridEditor.minimumHeight = layoutData.minimumHeight; } else { gridEditor.minimumHeight = SWT.DEFAULT; } }
Example #5
Source File: GridViewerEditor.java From tmxeditor8 with GNU General Public License v2.0 | 5 votes |
/** * FIXME * {@inheritDoc} */ protected void setLayoutData(LayoutData layoutData) { gridEditor.grabHorizontal = layoutData.grabHorizontal; gridEditor.horizontalAlignment = layoutData.horizontalAlignment; gridEditor.minimumWidth = layoutData.minimumWidth; gridEditor.verticalAlignment = layoutData.verticalAlignment; if (layoutData.minimumHeight != SWT.DEFAULT) { gridEditor.minimumHeight = layoutData.minimumHeight; } else { gridEditor.minimumHeight = SWT.DEFAULT; } }
Example #6
Source File: GridViewerEditor.java From nebula with Eclipse Public License 2.0 | 4 votes |
protected void setLayoutData(LayoutData layoutData) { gridEditor.grabHorizontal = layoutData.grabHorizontal; gridEditor.horizontalAlignment = layoutData.horizontalAlignment; gridEditor.minimumWidth = layoutData.minimumWidth; }