【问题标题】:missing class "com.intellij.remoteServer.util.CloudBundle"缺少类“com.intellij.remoteServer.util.CloudBundle”
【发布时间】:2020-04-29 08:25:22
【问题描述】:

我正在尝试贡献一个过时的想法插件
然后代码缺少符号:

import com.intellij.remoteServer.util.CloudBundle;
                                     ^
public static final Icon MODULE = com.intellij.icons.AllIcons.Modules.ModulesNode; // 16x16
                                                                     ^

我是开发创意插件的新手,我必须遗漏一些东西
代码是
RestfulToolkitFeaturesProvider.java

...
import com.intellij.remoteServer.util.CloudBundle;

import java.util.Collections;

public class RestfulToolkitFeaturesProvider extends ProductivityFeaturesProvider {
    public static final String CLOUDS_GROUP_ID = "clouds";
    public static final String UPLOAD_SSH_KEY_FEATURE_ID = "upload.ssh.key";

    @Override
    public FeatureDescriptor[] getFeatureDescriptors() {
        return new FeatureDescriptor[]{new FeatureDescriptor(UPLOAD_SSH_KEY_FEATURE_ID,
                CLOUDS_GROUP_ID,
                "UploadSshKey.html",
                CloudBundle.getText("upload.ssh.key.display.name"),
                0,
                0,
                Collections.<String>emptySet(),
                0,
                this)};
    }

    @Override
    public GroupDescriptor[] getGroupDescriptors() {
        return new GroupDescriptor[]{
                new GroupDescriptor(CLOUDS_GROUP_ID, CloudBundle.getText("group.display.name"))
        };
    }

    ...
}

gradle 文件是
build.gradle

plugins {
    id 'org.jetbrains.intellij' version '0.4.18'
}

group 'com.zhaow'
version '2.0.6'

// See https://github.com/JetBrains/gradle-intellij-plugin/
intellij {
    version '2020.1'
    localPath 'D:\\sft\\ideaIC-2020.1.win'
    plugins = ['java', 'Kotlin', 'yaml', 'properties']
}
patchPluginXml {
    changeNotes """
      Add change notes here.<br>
      <em>most HTML tags may be used</em>"""
}
dependencies {
    'commons-codec:commons-codec:1.14'
    'org.apache.httpcomponents:httpclient:4.5.12'
}

【问题讨论】:

    标签: java intellij-idea plugins


    【解决方案1】:

    AllIcons.Modules.ModulesNode 在 IDEA 2020.1 版本中已弃用,请使用 AllIcons.Nodes.ModuleGroup。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-10-18
      • 2020-01-04
      • 2018-01-17
      相关资源
      最近更新 更多