Home » Archived » Visual Editor (VE) » VE crashes when loading Table
VE crashes when loading Table [message #607807] |
Thu, 19 May 2005 07:31 |
Eclipse User |
|
|
|
This is a multi-part message in MIME format.
--------------000902030506060000010700
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
Hello,
unfortunately my visual editor crashes (always !) when I try to load the
JavaTest.java (see attached file). There are no problems when loading
other files. The problem only appears when I try to load a table with
tableitems. When there are no tables on the shell, then there are no
errors with my files.
I'm using Eclipse 3.0.1 and VE 1.0.2.1 on a windows xp pro machine.
Eclipse hangs up on 75% when loading/ building the shell while
"initializing the model" (progress window). Then I can only restart
Eclipse, but I cannot load the Table on the shell.
Could anybody help me?? Please try loading the attached file and please
tell my what happens!
thx
Flik
--------------000902030506060000010700
Content-Type: text/plain;
name="JavaTest.java"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="JavaTest.java"
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.TabFolder;
import org.eclipse.swt.widgets.TabItem;
import org.eclipse.swt.widgets.Table;
import org.eclipse.swt.widgets.TableColumn;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.widgets.TableItem;
public class JavaTest {
private Shell scrSgridframe = null;
private TabFolder tabFolderscrSgridframe = null;
private TabItem tabItemVisiblescrSgridframe = null;
private Composite CSvisiblescrSgridframe = null;
private TabItem tabItemHiddenscrSgridframe = null;
private Composite CShiddenscrSgridframe = null;
TableItem tabitem;
private TableColumn F1 = null;
private TableColumn F2 = null;
private TableColumn gridList = null;
private TableColumn F4 = null;
private TableColumn F5 = null;
private Composite B1cs = null;
private Table B1 = null;
private void createscrSgridframe() {
scrSgridframe = new Shell (); // @jve:decl-index=0:visual-constraint="10,10"
scrSgridframe.setSize(new org.eclipse.swt.graphics.Point((int) (6*137.00) + 10, (int) (14*37.64) + 35));
createtabFolderscrSgridframe();
}
private void createtabFolderscrSgridframe() {
tabFolderscrSgridframe = new TabFolder(scrSgridframe,SWT.BOTTOM);
tabFolderscrSgridframe.setBounds(new org.eclipse.swt.graphics.Rectangle(0,0,(int) (6*137.00) + 10, (int) (14*37.64) + 35 ));
TabItem tabItemVisiblescrSgridframe = new TabItem (tabFolderscrSgridframe,SWT.NONE);
TabItem tabItemHiddenscrSgridframe = new TabItem (tabFolderscrSgridframe,SWT.NONE);
createCSvisiblescrSgridframe();
createCShiddenscrSgridframe();
tabItemVisiblescrSgridframe.setText("workplace");
tabItemHiddenscrSgridframe.setText("hidden-always");
tabItemVisiblescrSgridframe.setControl(CSvisiblescrSgridfram e);
tabItemHiddenscrSgridframe.setControl(CShiddenscrSgridframe) ;
}
private void createCShiddenscrSgridframe() {
CShiddenscrSgridframe = new Composite(tabFolderscrSgridframe,SWT.NONE);
CShiddenscrSgridframe.setBounds(tabFolderscrSgridframe.getBo unds().x,tabFolderscrSgridframe.getBounds().y,tabFolderscrSg ridframe.getBounds().width,tabFolderscrSgridframe.getBounds( ).height);
}
private void createCSvisiblescrSgridframe() {
CSvisiblescrSgridframe = new Composite(tabFolderscrSgridframe,SWT.NONE);
CSvisiblescrSgridframe.setBounds(tabFolderscrSgridframe.getB ounds().x,tabFolderscrSgridframe.getBounds().y,tabFolderscrS gridframe.getBounds().width,tabFolderscrSgridframe.getBounds ().height);
// END of TabDecks
// END of TabCards
String[][] gridContentB1 = new String[5][16];
B1cs = new Composite (CSvisiblescrSgridframe,SWT.NONE);
B1cs.setBounds(new org.eclipse.swt.graphics.Rectangle(18, 18,(int) (6*117.00), (int) (14*23.71)));
B1 = new Table (B1cs,SWT.SINGLE | SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL | SWT.FULL_SELECTION | SWT.HIDE_SELECTION);
B1.setBounds(new org.eclipse.swt.graphics.Rectangle(0, 0,(int) (6*117.00), (int) (14*23.71)));
B1.setLinesVisible(true);
B1.setHeaderVisible(true);
// END of GridFrames
F1 = new TableColumn (B1,SWT.LEFT);
F1.setText("1");
F1.setWidth((int)((6*9.17) -(0.0)));
F2 = new TableColumn (B1,SWT.LEFT);
F2.setText("2");
gridContentB1[1][1-1] = "output";
gridContentB1[1][2-1] = "output";
gridContentB1[1][4-1] = "output";
F2.setWidth((int)((6*19.83) -(55.019999999999996)));
gridList = new TableColumn (B1,SWT.LEFT);
gridList.setText("3");
gridContentB1[2][1-1] = "listbox";
gridContentB1[2][7-1] = "listbox";
gridContentB1[2][8-1] = "listbox";
gridContentB1[2][9-1] = "listbox";
gridContentB1[2][10-1] = "f";
gridContentB1[2][11-1] = "g";
gridContentB1[2][12-1] = "h";
gridContentB1[2][13-1] = "j";
gridList.setWidth((int)((6*41.83) -(174.0)));
F4 = new TableColumn (B1,SWT.LEFT);
F4.setText("4");
F4.setWidth((int)((6*63.83) -(424.98)));
F5 = new TableColumn (B1,SWT.LEFT);
F5.setText("5");
gridContentB1[4][1-1] = "output";
gridContentB1[4][2-1] = "output";
F5.setWidth((int)((6*75.83) -(807.96)));
tabitem = new TableItem(B1,SWT.NULL,0);
tabitem.setText(new String[]{gridContentB1[0][0],gridContentB1[1][0],gridContent B1[2][0],gridContentB1[3][0],gridContentB1[4][0]});
tabitem = new TableItem(B1,SWT.NULL,1);
tabitem.setText(new String[]{gridContentB1[0][1],gridContentB1[1][1],gridContent B1[2][1],gridContentB1[3][1],gridContentB1[4][1]});
tabitem = new TableItem(B1,SWT.NULL,2);
tabitem.setText(new String[]{gridContentB1[0][2],gridContentB1[1][2],gridContent B1[2][2],gridContentB1[3][2],gridContentB1[4][2]});
tabitem = new TableItem(B1,SWT.NULL,3);
tabitem.setText(new String[]{gridContentB1[0][3],gridContentB1[1][3],gridContent B1[2][3],gridContentB1[3][3],gridContentB1[4][3]});
tabitem = new TableItem(B1,SWT.NULL,4);
tabitem.setText(new String[]{gridContentB1[0][4],gridContentB1[1][4],gridContent B1[2][4],gridContentB1[3][4],gridContentB1[4][4]});
tabitem = new TableItem(B1,SWT.NULL,5);
tabitem.setText(new String[]{gridContentB1[0][5],gridContentB1[1][5],gridContent B1[2][5],gridContentB1[3][5],gridContentB1[4][5]});
tabitem = new TableItem(B1,SWT.NULL,6);
tabitem.setText(new String[]{gridContentB1[0][6],gridContentB1[1][6],gridContent B1[2][6],gridContentB1[3][6],gridContentB1[4][6]});
tabitem = new TableItem(B1,SWT.NULL,7);
tabitem.setText(new String[]{gridContentB1[0][7],gridContentB1[1][7],gridContent B1[2][7],gridContentB1[3][7],gridContentB1[4][7]});
tabitem = new TableItem(B1,SWT.NULL,8);
tabitem.setText(new String[]{gridContentB1[0][8],gridContentB1[1][8],gridContent B1[2][8],gridContentB1[3][8],gridContentB1[4][8]});
tabitem = new TableItem(B1,SWT.NULL,9);
tabitem.setText(new String[]{gridContentB1[0][9],gridContentB1[1][9],gridContent B1[2][9],gridContentB1[3][9],gridContentB1[4][9]});
tabitem = new TableItem(B1,SWT.NULL,10);
tabitem.setText(new String[]{gridContentB1[0][10],gridContentB1[1][10],gridConte ntB1[2][10],gridContentB1[3][10],gridContentB1[4][10]});
tabitem = new TableItem(B1,SWT.NULL,11);
tabitem.setText(new String[]{gridContentB1[0][11],gridContentB1[1][11],gridConte ntB1[2][11],gridContentB1[3][11],gridContentB1[4][11]});
tabitem = new TableItem(B1,SWT.NULL,12);
tabitem.setText(new String[]{gridContentB1[0][12],gridContentB1[1][12],gridConte ntB1[2][12],gridContentB1[3][12],gridContentB1[4][12]});
tabitem = new TableItem(B1,SWT.NULL,13);
tabitem.setText(new String[]{gridContentB1[0][13],gridContentB1[1][13],gridConte ntB1[2][13],gridContentB1[3][13],gridContentB1[4][13]});
tabitem = new TableItem(B1,SWT.NULL,14);
tabitem.setText(new String[]{gridContentB1[0][14],gridContentB1[1][14],gridConte ntB1[2][14],gridContentB1[3][14],gridContentB1[4][14]});
tabitem = new TableItem(B1,SWT.NULL,15);
tabitem.setText(new String[]{gridContentB1[0][15],gridContentB1[1][15],gridConte ntB1[2][15],gridContentB1[3][15],gridContentB1[4][15]});
}
public static void main(String[] args) {
org.eclipse.swt.widgets.Display display = org.eclipse.swt.widgets.Display.getDefault();
JavaTest test = new JavaTest();
test.createscrSgridframe();
test.scrSgridframe.open();
while (!test.scrSgridframe.isDisposed()) {
if (!display.readAndDispatch ()) display.sleep();
}
display.dispose ();
}
}
--------------000902030506060000010700--
|
|
|
Goto Forum:
Current Time: Wed Jun 18 12:08:15 EDT 2025
Powered by FUDForum. Page generated in 0.04008 seconds
|