-
Notifications
You must be signed in to change notification settings - Fork 254
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f2bbcf5
commit b64b230
Showing
23 changed files
with
185 additions
and
747 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,7 @@ hs_err_pid* | |
|
||
# IntelliJ project files | ||
.idea | ||
.github | ||
*.iml | ||
out | ||
gen | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
21 changes: 21 additions & 0 deletions
21
src/main/java/com/plugins/mybaitslog/MyBatisLogInputFilterProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.plugins.mybaitslog; | ||
|
||
import com.intellij.execution.filters.ConsoleDependentInputFilterProvider; | ||
import com.intellij.execution.filters.InputFilter; | ||
import com.intellij.execution.ui.ConsoleView; | ||
import com.intellij.openapi.project.Project; | ||
import com.intellij.psi.search.GlobalSearchScope; | ||
import com.plugins.mybaitslog.filter.MyBatisLogInputFilter; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
import java.util.List; | ||
|
||
public class MyBatisLogInputFilterProvider extends ConsoleDependentInputFilterProvider { | ||
|
||
@Override | ||
public @NotNull List<InputFilter> getDefaultFilters(@NotNull ConsoleView consoleView, @NotNull Project project, @NotNull GlobalSearchScope globalSearchScope) { | ||
return List.of(new MyBatisLogInputFilter(project)); | ||
} | ||
|
||
|
||
} |
18 changes: 9 additions & 9 deletions
18
src/main/java/com/plugins/mybaitslog/MyBatisLogProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
package com.plugins.mybaitslog; | ||
|
||
import com.intellij.execution.filters.ConsoleFilterProvider; | ||
import com.intellij.execution.filters.ConsoleDependentFilterProvider; | ||
import com.intellij.execution.filters.Filter; | ||
import com.intellij.execution.ui.ConsoleView; | ||
import com.intellij.openapi.project.Project; | ||
import com.intellij.psi.search.GlobalSearchScope; | ||
import com.plugins.mybaitslog.filter.MyBatisLogFilter; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
|
||
import com.intellij.openapi.project.Project; | ||
|
||
/** | ||
* Console 输出监控 | ||
* | ||
* @author lk | ||
* @version 1.0 | ||
* @date 2020/4/10 21:46 | ||
*/ | ||
public class MyBatisLogProvider implements ConsoleFilterProvider { | ||
@NotNull | ||
public class MyBatisLogProvider extends ConsoleDependentFilterProvider { | ||
@Override | ||
public Filter[] getDefaultFilters(@NotNull Project project) { | ||
Filter filter = new MyBatisLogFilter(project); | ||
return new Filter[]{filter}; | ||
public Filter @NotNull [] getDefaultFilters(@NotNull ConsoleView consoleView, @NotNull Project project, @NotNull GlobalSearchScope globalSearchScope) { | ||
return new Filter[]{new MyBatisLogFilter(consoleView, project)}; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
117 changes: 0 additions & 117 deletions
117
src/main/java/com/plugins/mybaitslog/action/RestoreSqlForSelection.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.