如果安装 Windows Builder 后内容辅助不起作用,我该怎么办?

问题描述

起初,在我安装 Windows 构建器之前,内容辅助工作得很好。安装后一直提示

Api 工具 javadoc Proposals 的提案计算机来自 'org.eclipse.pde.api.tools.ui' 插件没有正常完成。这 扩展程序引发了运行时异常。 要避免此消息,请禁用“org.eclipse.pde.api.tools.ui”插件或 禁用内容上的“API 工具建议”类别 协助偏好页面

我已经取消选中内容辅助中包含的一些建议类型并重新安装我的 Eclipse。

我还注意到,当我尝试卸载 Windows Builder 时,内容辅助将再次起作用。当我尝试再次安装 Windows Builder 时,错误将继续显示。但是,我需要使用 Windows 构建器,而且我发现没有内容帮助很难。我是这个环境的新手,所以请帮我解决这个问题。非常感谢你。 顺便说一句,我有最新版本的 eclipse,2020。

package windowsbuilder;

import org.eclipse.swt.widgets.display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.SWT;

public class AddingCalc {

    protected Shell shell;

    public static void main(String[] args) {
        try {
            AddingCalc window = new AddingCalc();
            window.open();
        } catch (Exception e) {
            e.printstacktrace();
        } 
    }
 

    public void open() {
        display display = display.getDefault();
        createContents();
        shell.open();
        shell.layout();
        while (!shell.isdisposed()) {
            if (!display.readAnddispatch()) {
                display.sleep();
            }
        }
    }

    protected void createContents() {
        shell = new Shell();
        shell.setSize(629,464);
        shell.setText("SWT Application");
        shell.setLayout(new GridLayout(2,false));
        new Label(shell,SWT.NONE);
        
        Label Input_Label = new Label(shell,SWT.NONE);
        Input_Label.setText("Input 1: ");
        new Label(shell,SWT.NONE);
        new Label(shell,SWT.NONE);
        
        Label Input_Label_2 = new Label(shell,SWT.NONE);
        Input_Label_2.setText("Input 2: ");

    }

}

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)