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
import Plugin.SuppressInspectionTillCommit.Companion.resetSuppressions | |
import com.intellij.codeInsight.daemon.DaemonCodeAnalyzer | |
import com.intellij.codeInspection.InspectionSuppressor | |
import com.intellij.codeInspection.ProblemDescriptor | |
import com.intellij.codeInspection.SuppressQuickFix | |
import com.intellij.lang.LanguageExtensionPoint | |
import com.intellij.openapi.extensions.DefaultPluginDescriptor | |
import com.intellij.openapi.extensions.PluginId | |
import com.intellij.openapi.project.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
import com.intellij.openapi.extensions.DefaultPluginDescriptor | |
import com.intellij.openapi.extensions.PluginId | |
import com.intellij.openapi.paths.WebReference | |
import com.intellij.openapi.util.TextRange | |
import com.intellij.patterns.PlatformPatterns | |
import com.intellij.psi.* | |
import com.intellij.psi.impl.source.resolve.reference.PsiReferenceContributorEP | |
import com.intellij.util.ProcessingContext | |
import org.jetbrains.kotlin.psi.KtStringTemplateExpression |
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
import com.intellij.internal.psiView.PsiViewerDialog | |
import com.intellij.openapi.project.Project | |
import com.intellij.psi.JavaRecursiveElementVisitor | |
import com.intellij.psi.PsiFileSystemItem | |
import com.intellij.psi.PsiJavaFile | |
import com.intellij.psi.PsiMethod | |
import com.intellij.psi.PsiMethodCallExpression | |
import static liveplugin.PluginUtil.* |
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
import com.intellij.application.subscribe | |
import com.intellij.ide.ui.LafManagerListener | |
import com.intellij.ui.Gray | |
import com.intellij.ui.JBColor | |
import com.intellij.util.ui.JBInsets | |
import javax.swing.UIManager | |
fun fixUI() { | |
// You can find more constants in: | |
// - https://github.com/JetBrains/intellij-community/blob/master/platform/util/ui/src/com/intellij/util/ui/JBUI.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
import com.intellij.codeInsight.completion.* | |
import com.intellij.codeInsight.lookup.LookupElementBuilder | |
import com.intellij.openapi.extensions.Extensions | |
import com.intellij.openapi.extensions.PluginDescriptor | |
import com.intellij.openapi.util.KeyedExtensionCollector | |
import com.intellij.patterns.ElementPattern | |
import com.intellij.patterns.PlatformPatterns | |
import com.intellij.util.ProcessingContext | |
import org.jetbrains.annotations.NotNull | |
import org.picocontainer.PicoContainer |
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
#!/usr/bin/ruby | |
require "open4" | |
def shell_exec(command) | |
puts("> " + command + "\n") | |
pid, stdin, stdout, stderr = Open4::popen4(command) | |
while Process::waitpid(pid, Process::WNOHANG).nil? do | |
stdout.each_line { |line| puts line } | |
stderr.each_line { |line| puts line } | |
sleep(1) |
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
(ns plugin.clj | |
(:use clojure.contrib.import-static) | |
(:import [liveplugin PluginUtil]) | |
(:import [groovy.lang Closure])) | |
(import-static liveplugin.PluginUtil show registerAction runDocumentWriteAction currentEditorIn) | |
; This action inserts new line above current line. | |
; It's a follow-up for these posts: | |
; http://martinfowler.com/bliki/InternalReprogrammability.html | |
; http://nealford.com/memeagora/2013/01/22/why_everyone_eventually_hates_maven.html |
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
import com.intellij.openapi.actionSystem.AnActionEvent | |
import com.intellij.psi.PsiClass | |
import com.intellij.psi.PsiElement | |
import com.intellij.psi.PsiModifier | |
import com.intellij.psi.util.PsiTreeUtil | |
import static liveplugin.PluginUtil.* | |
def findContextClass = { project -> | |
def editor = currentEditorIn(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
import com.intellij.diagnostic.MessagePool | |
// A mini-plugin to disable all internal IDE errors | |
MessagePool.getInstance().addListener { | |
MessagePool.getInstance().clearErrors() | |
} |
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
import com.intellij.ide.ui.LafManager | |
import com.intellij.ide.ui.LafManagerListener | |
import com.intellij.openapi.application.ApplicationManager | |
import com.intellij.ui.Gray | |
import com.intellij.ui.JBColor | |
import com.intellij.util.ui.JBInsets | |
import liveplugin.PluginUtil | |
import org.jetbrains.annotations.NotNull | |
import javax.swing.UIManager | |
import static liveplugin.PluginUtil.* |
NewerOlder