0
我得到錯誤當我嘗試創建複合表格列?JFace + SWT複合表格查看器
錯誤是: 錯誤來束縛Arrayindexout:
應用程序不啓動,當我走複合式:
import org.eclipse.jface.layout.TableColumnLayout;
import org.eclipse.jface.viewers.TableViewer;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.IMemento;
import org.eclipse.ui.part.ViewPart;
public class Theartview extends ViewPart implements Serializable {
public void createPartControl(Composite parent) {
Composite tableComposite = new Composite(parent, SWT.NONE);
TableColumnLayout tableColumnLayout = new TableColumnLayout();
tableComposite.setLayout(tableColumnLayout);
tableComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true,
true));
}
}
ViewPart表示這是一個Eclipse插件,可能位於RCP中,不僅僅是SWT + JFace。 –