-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adaptation plugin for work under Android Studio(remove use Kotlin, sa…
…ve boolean value as String)
- Loading branch information
Serhiy Kyrylyuk
committed
Oct 16, 2015
1 parent
016ec71
commit a491e85
Showing
4 changed files
with
26 additions
and
92 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.dd; | ||
|
||
import com.intellij.ide.projectView.PresentationData; | ||
import com.intellij.ide.projectView.ViewSettings; | ||
import com.intellij.ide.projectView.impl.nodes.PsiFileNode; | ||
import com.intellij.openapi.project.Project; | ||
import com.intellij.psi.PsiFile; | ||
|
||
class FoldingNode extends PsiFileNode { | ||
private String mName; | ||
|
||
public FoldingNode(Project project, PsiFile value, ViewSettings viewSettings, String shortName) { | ||
super(project, value, viewSettings); | ||
mName = shortName; | ||
} | ||
|
||
@Override | ||
protected void updateImpl(PresentationData presentationData) { | ||
super.updateImpl(presentationData); | ||
|
||
presentationData.setPresentableText(mName); | ||
} | ||
} |
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