forked from JetBrains/la-clojure
-
Notifications
You must be signed in to change notification settings - Fork 0
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
d291fa9
commit f871e78
Showing
7 changed files
with
106 additions
and
49 deletions.
There are no files selected for viewing
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
src/org/jetbrains/plugins/clojure/parameterInfo/ClojureParameterInfoHandler.scala
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,13 @@ | ||
package org.jetbrains.plugins.clojure.parameterInfo | ||
|
||
import com.intellij.lang.parameterInfo.ParameterInfoHandlerWithTabActionSupport | ||
import org.jetbrains.plugins.clojure.psi.api.ClList | ||
import org.jetbrains.plugins.clojure.psi.api.symbols.ClSymbol | ||
|
||
/** | ||
* @author ilyas | ||
*/ | ||
|
||
abstract class ClojureParameterInfoHandler extends ParameterInfoHandlerWithTabActionSupport[ClList, Any, ClSymbol] { | ||
|
||
} |
41 changes: 0 additions & 41 deletions
41
src/org/jetbrains/plugins/clojure/psi/impl/symbols/SymbolUtils.java
This file was deleted.
Oops, something went wrong.
37 changes: 37 additions & 0 deletions
37
src/org/jetbrains/plugins/clojure/psi/impl/symbols/SymbolUtils.scala
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,37 @@ | ||
package org.jetbrains.plugins.clojure.psi.impl.symbols | ||
|
||
/** | ||
* @author ilyas | ||
*/ | ||
|
||
import com.intellij.psi.util.PsiTreeUtil | ||
import org.jetbrains.plugins.clojure.ClojureIcons | ||
import org.jetbrains.plugins.clojure.psi.api.ClList | ||
import org.jetbrains.plugins.clojure.psi.api.symbols.ClSymbol | ||
import org.jetbrains.plugins.clojure.psi.impl.list.ListDeclarations | ||
|
||
import javax.swing._ | ||
|
||
/** | ||
* @author ilyas | ||
*/ | ||
|
||
object SymbolUtils { | ||
|
||
def getIcon(symbol: ClSymbol, flags: Int): Icon = | ||
PsiTreeUtil.getParentOfType(symbol, classOf[ClList]) match { | ||
case list: ClList if symbol == list.getSecondNonLeafElement() => | ||
list.getFirstNonLeafElement() match { | ||
case lstSym: ClSymbol => { | ||
lstSym.getNameString() match { | ||
case ListDeclarations.FN => ClojureIcons.FUNCTION | ||
case ListDeclarations.DEFN | ListDeclarations.DEFN_ => ClojureIcons.FUNCTION | ||
case _ => null | ||
} | ||
} | ||
case _ => null | ||
} | ||
case _ => null | ||
} | ||
|
||
} |