Skip to content

Commit

Permalink
Fixed GitHub issue dcaoyuan#36 (dcaoyuan#136) : refactor display issue
Browse files Browse the repository at this point in the history
  • Loading branch information
akochnev committed May 22, 2015
1 parent 22830c7 commit 6bd3755
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ import org.openide.filesystems.FileObject
* @author Jan Becicka
* @author Tor Norbye
*/
class ElementGrip(name: String, val fileObject: FileObject, icon: Icon) {
class ElementGrip(val name: String, val fileObject: FileObject, icon: Icon) {
override def toString = {
super.toString
s"Element Grip [name=$name, fileObject=${fileObject.getName}]"
}

def getParent: ElementGrip = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class ElementGripTreeElement(element: ElementGrip) extends TreeElement {
}

override def getText(isLogical: Boolean) = {
RetoucheUtils.htmlize(element.toString)
RetoucheUtils.htmlize(element.name)
}

override def getUserObject: Object = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class RefactoringTreeElement(element: RefactoringElement) extends TreeElement {

override def getText(isLogical: Boolean): String = {
if (isLogical) {
RetoucheUtils.htmlize(thisFeature.toString()) + " ... " + element.getDisplayText
RetoucheUtils.htmlize(thisFeature.name) + " ... " + element.getDisplayText
} else {
element.getDisplayText
}
Expand Down

0 comments on commit 6bd3755

Please sign in to comment.