blob: 45a0a9672100db763357e196c53bbf013f814c1f [file] [log] [blame]
package org.eclipse.nebula.widgets.nattable.core.example.index.node
abstract class AbstractIndexNode implements IndexNode {
val protected String path
val protected String displayName
new(String path, String displayName) {
this.path = path
this.displayName = displayName
}
override getDisplayName() {
if (displayName != null)
displayName
else
path.substring(path.lastIndexOf('/') + 1)
}
}