05 2017 档案
摘要:http://blog.csdn.net/neven7/article/details/52741534
阅读全文
摘要:打开一个virtualfile VirtualFile file;Project project;OpenFileDescriptior descriptor = new OpenFileDescriptior(file);.navigate()FileEditorManager.getInstan
阅读全文
摘要:public class SimpleLineMarkerProvider extends RelatedItemLineMarkerProvider { @Override protected void collectNavigationMarkers(@NotNull PsiElement element, ...
阅读全文
摘要:public class IconUtils { private static ImageIcon methodIcon = new ImageIcon(IconUtils.class.getClassLoader().getResource("icon/mybatis.png")); private static ImageIcon xmlIcon = new ImageIc...
阅读全文
摘要:当你看到这一章节时,你估计会骂我鸡婆。IoC,这个还要你来告诉我,我用SpringFramework已经很久啦。但我还是要说一下。IDEA整个组件结构是基于PicoContainer(http://www.picocontainer.org)的,PicoContainer是一个高效的嵌入式的DI容器
阅读全文
摘要:明确需求 开发一款插件最先要考虑的当然是它要实现什么功能了。比如我想做的是varname-go-die主要功能就是让开发者有时候遇到起变量名但是不知道英文怎么拼时,不需要切换到翻译软件去查找再copy过来,只需要在编辑器中输入中文就可以实现联网翻译,并且可以通过一个列表选择自己设置的常用变量格式。
阅读全文
摘要:Virtual Files A virtual file com.intellij.openapi.vfs.VirtualFile is the IntelliJ Platform’s representation of a file in a file system (VFS). Most com
阅读全文
摘要:1. Working with text The following set of steps will show how to access a text selection and change it. 1.1. Pre-requirements 1.1.1 Creating a new act
阅读全文
摘要:DialogWrapper The DialogWrapper is the base class which is supposed to be used for all modal dialogs (and some non-modal dialogs) shown in IntelliJ Pl
阅读全文
摘要:Persisting the state of components The state of every component will be automatically saved and loaded if the component’s class implements theJDOMExte
阅读全文
摘要:VFS简介 虚拟文件系统(VFS)是一个Intellij Platform组件,它封装了大部分对活动文件的处理操作,为了达成以下目的:– 提供一个处理文件的通用API,而不关心文件的具体位置(无论文件位于磁盘上、归档文件中还是HTTP服务器上)– 追踪文件变化,并且在检测到文件内容发生更改时能提供新
阅读全文