Home » Eclipse Projects » Remote Application Platform (RAP) » Nebula Grid plug-in(JAR) Download Address?
| |
Re: Nebula Grid plug-in Download Address? [message #896847 is a reply to message #896843] |
Fri, 20 July 2012 06:44 |
ocean xue Messages: 107 Registered: November 2011 |
Senior Member |
|
|
Hi, Ivan
org.eclipse.rap.nebula.widgets.grid add to the dependencies, run error?
rap runtime to 1.5 release.
snippet:
package com.yidatec.eoffice.om.project.form.dialogs;
import org.eclipse.nebula.widgets.grid.Grid;
import org.eclipse.nebula.widgets.grid.GridColumn;
import org.eclipse.nebula.widgets.grid.GridColumnGroup;
import org.eclipse.nebula.widgets.grid.GridItem;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
public class OP003Step04Dialog extends Composite {
/**
*
*/
private static final long serialVersionUID = 1L;
/**
* Create the composite.
*
* @param parent
* @param style
*/
public OP003Step04Dialog(Composite parent, int style) {
super(parent, style);
setLayout(new GridLayout(1, false));
Grid grid = new Grid(this, SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);
grid.setHeaderVisible(true);
GridColumn column = new GridColumn(grid, SWT.NONE);
column.setText("Column 1");
column.setWidth(100);
GridColumnGroup columnGroup = new GridColumnGroup(grid, SWT.NONE);
columnGroup.setText("Column Group");
GridColumn column2 = new GridColumn(columnGroup, SWT.NONE);
column2.setText("Column 2");
column2.setWidth(60);
GridColumn column3 = new GridColumn(columnGroup, SWT.NONE);
column3.setText("Column 3");
column3.setWidth(60);
GridItem item1 = new GridItem(grid, SWT.NONE);
item1.setText("First Item");
item1.setText(1, "abc");
GridItem item2 = new GridItem(grid, SWT.NONE);
item2.setText("Second Item");
item2.setText(2, "def");
GridItem item3 = new GridItem(grid, SWT.NONE);
item3.setText("Third Item");
item3.setText(1, "xyz");
}
@Override
protected void checkSubclass() {
// Disable the check that prevents subclassing of SWT components
}
}
error msg:
Could not process server response:
Error: Error: Operation "create" on target "w501" of type "null" failed:
No Adapter for type rwt.widgets.Grid
Properties:
parent = w296
style = FULL_SELECTION,BORDER
appearance = tree
indentionWidth = 16
markupEnabled = false
bounds = 5,5,232,134
children =
tabIndex = 85
itemCount = 3
itemHeight = 26
itemMetrics = 0,0,100,5,0,5,90,5,0,1,100,60,105,0,105,50,105,0,2,160,60,165,0,165,50,165,0
columnCount = 3
headerHeight = 44
headerVisible = true
linesVisible = true
.....
.....
[Updated on: Fri, 20 July 2012 06:49] Report message to a moderator
|
|
|
Re: Nebula Grid plug-in Download Address? [message #896850 is a reply to message #896847] |
Fri, 20 July 2012 07:00 |
Ivan Furnadjiev Messages: 2429 Registered: July 2009 Location: Sofia, Bulgaria |
Senior Member |
|
|
Hi,
Grid requires RAP from Git master (nightly build). Grid does not work
with RAP 1.5.
Best,
Ivan
On 7/20/2012 9:44 AM, ocean xue wrote:
> Hi, Ivan
>
> org.eclipse.rap.nebula.widgets.grid add to the dependencies, run error
>
> snippet:
>
> package com.yidatec.eoffice.om.project.form.dialogs;
>
> import org.eclipse.nebula.widgets.grid.Grid;
> import org.eclipse.nebula.widgets.grid.GridColumn;
> import org.eclipse.nebula.widgets.grid.GridColumnGroup;
> import org.eclipse.nebula.widgets.grid.GridItem;
> import org.eclipse.swt.SWT;
> import org.eclipse.swt.layout.GridLayout;
> import org.eclipse.swt.widgets.Composite;
>
> public class OP003Step04Dialog extends Composite {
>
> /**
> * */
> private static final long serialVersionUID = 1L;
>
> /**
> * Create the composite.
> * * @param parent
> * @param style
> */
> public OP003Step04Dialog(Composite parent, int style) {
> super(parent, style);
> setLayout(new GridLayout(1, false));
>
> Grid grid = new Grid(this, SWT.BORDER | SWT.V_SCROLL |
> SWT.H_SCROLL);
> grid.setHeaderVisible(true);
> GridColumn column = new GridColumn(grid, SWT.NONE);
> column.setText("Column 1");
> column.setWidth(100);
> GridColumnGroup columnGroup = new GridColumnGroup(grid,
> SWT.NONE);
> columnGroup.setText("Column Group");
> GridColumn column2 = new GridColumn(columnGroup, SWT.NONE);
> column2.setText("Column 2");
> column2.setWidth(60);
> GridColumn column3 = new GridColumn(columnGroup, SWT.NONE);
> column3.setText("Column 3");
> column3.setWidth(60);
> GridItem item1 = new GridItem(grid, SWT.NONE);
> item1.setText("First Item");
> item1.setText(1, "abc");
> GridItem item2 = new GridItem(grid, SWT.NONE);
> item2.setText("Second Item");
> item2.setText(2, "def");
> GridItem item3 = new GridItem(grid, SWT.NONE);
> item3.setText("Third Item");
> item3.setText(1, "xyz");
>
> }
>
> @Override
> protected void checkSubclass() {
> // Disable the check that prevents subclassing of SWT components
> }
>
> }
>
> error msg:
> Could not process server response:
> Error: Error: Operation "create" on target "w501" of type "null" failed:
> No Adapter for type rwt.widgets.Grid
> Properties: parent = w296
> style = FULL_SELECTION,BORDER
> appearance = tree
> indentionWidth = 16
> markupEnabled = false
> bounds = 5,5,232,134
> children = tabIndex = 85
> itemCount = 3
> itemHeight = 26
> itemMetrics =
> 0,0,100,5,0,5,90,5,0,1,100,60,105,0,105,50,105,0,2,160,60,165,0,165,50,165,0
> columnCount = 3
> headerHeight = 44
> headerVisible = true
> linesVisible = true
> ....
> ....
>
--
Ivan Furnadjiev
Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/
Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
|
|
| | | | |
Goto Forum:
Current Time: Sun Jan 19 04:23:59 GMT 2025
Powered by FUDForum. Page generated in 0.02700 seconds
|