コンポジットテーブルの列を作成しようとするとエラーが表示されますか?JFace + SWTコンポジットテーブルビューア
エラーは次のとおりです。
私はコンポジット取るときに、アプリケーションが起動しない:
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は、SWT + JFaceだけでなくRCPにある可能性のあるEclipseプラグインを意味します。 –