Skip to content

Commit

Permalink
报错问题
Browse files Browse the repository at this point in the history
  • Loading branch information
liuzhihang committed May 17, 2022
1 parent ae048e2 commit 393c928
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

group 'com.liuzhihang'
version '1.2.7'
version '1.2.8'

JavaVersion.VERSION_11

Expand Down
8 changes: 4 additions & 4 deletions parts/changeNotes.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@

<h4>English introduction</h4>
<ul>
<li>1.2.7
<li>1.2.8
<ol>
<li>fix: Upload all yapi-only issues</li>
<li>fix: Error reporting problem</li>
</ol>
</li>
<li><a href="https://github.com/liuzhihang/doc-view/blob/master/doc/ChangeNotes.md">More records</a></li>
</ul>
<h4>中文介绍</h4>
<ul>
<li>1.2.7
<li>1.2.8
<ol>
<li>fix: 上传全部仅支持 yapi 的问题</li>
<li>fix: 报错问题</li>
</ol>
</li>
<li><a href="https://github.com/liuzhihang/doc-view/blob/master/doc/ChangeNotes.md">更多记录</a></li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiTypeParameterListOwner;
import com.intellij.psi.search.GlobalSearchScope;
import com.intellij.psi.search.searches.DefinitionsScopedSearch;
import com.intellij.psi.xml.XmlElement;
import com.intellij.util.Processor;
import com.intellij.util.xml.DomElement;
Expand All @@ -22,14 +23,17 @@
* @author liuzhihang
* @date 2022-04-12 00:05:11
*/
public class MapperDefinitionSearch extends QueryExecutorBase<XmlElement, PsiElement> {
public class DubboDefinitionSearch extends QueryExecutorBase<XmlElement, DefinitionsScopedSearch.SearchParameters> {

public MapperDefinitionSearch() {
public DubboDefinitionSearch() {
super(true);
}

@Override
public void processQuery(@NotNull PsiElement element, @NotNull Processor<? super XmlElement> consumer) {
public void processQuery(@NotNull DefinitionsScopedSearch.SearchParameters parameters,
@NotNull Processor<? super XmlElement> consumer) {

PsiElement element = parameters.getElement();

if (element instanceof PsiTypeParameterListOwner) {
Processor<DomElement> processor = domElement -> consumer.process(domElement.getXmlElement());
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
<!-- xml 解析的扩展, 解析 SpringBeans-->
<dom.fileMetaData implementation="com.liuzhihang.doc.view.dom.BeansDescription"/>
<!-- 范围搜索 -->
<definitionsScopedSearch implementation="com.liuzhihang.doc.view.dom.MapperDefinitionSearch"/>
<definitionsScopedSearch implementation="com.liuzhihang.doc.view.dom.DubboDefinitionSearch"/>

<!-- 浮动按钮 -->
<!--<editorFloatingToolbarProvider-->
Expand Down

0 comments on commit 393c928

Please sign in to comment.