Hi,大家好,我是编程小6,很荣幸遇见你,我把这些年在开发过程中遇到的问题或想法写出来,今天说一说idea插件开发教程_idea插件开发中文文档,希望能够帮助你!!!。
package com.yuanshuai.tool.idea;
import com.intellij.notification.*;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
public class HelloAction extends AnAction {
@Override
public void actionPerformed(AnActionEvent e) {
NotificationGroup notificationGroup = new NotificationGroup("hello", NotificationDisplayType.BALLOON, true);
Notification notification = notificationGroup.createNotification("hello", NotificationType.ERROR);
Notifications.Bus.notify(notification);
}
}