-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#9 WIP, the start of dict:to_list support in erlyberly, i.e. showing …
…a dicts internal representation as something readble.
- Loading branch information
andytill
committed
Oct 31, 2015
1 parent
9e7a313
commit 0628968
Showing
4 changed files
with
127 additions
and
62 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package erlyberly; | ||
|
||
import com.ericsson.otp.erlang.OtpErlangObject; | ||
|
||
/** | ||
* A wrapper class around a {@link TermTreeView} tree item, with a erlang term | ||
* and the string which gets shown in the tree. The string is not necessarily | ||
* derivable from the term, and depends on its position in the tree so much be | ||
* separated. | ||
*/ | ||
class TermTreeItem { | ||
private final String toString; | ||
private final OtpErlangObject object; | ||
public TermTreeItem(OtpErlangObject object, String toString) { | ||
this.object = object; | ||
this.toString = toString; | ||
} | ||
public String getToString() { | ||
return toString; | ||
} | ||
public OtpErlangObject getObject() { | ||
return object; | ||
} | ||
@Override | ||
public String toString() { | ||
return toString; | ||
} | ||
} |
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