Skip to content

Commit

Permalink
indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jrudolph committed Jan 27, 2011
1 parent c05f3c5 commit 640b5ab
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions src/main/scala/net/virtualvoid/swt/TreeApp.scala
Expand Up @@ -8,23 +8,23 @@ import swt.layout.FillLayout
import swt.widgets.{ Shell, Tree }

trait TreeApp[T] {
def treeCreator: ItemCreator[T]
def startObject: T
def title: String = "Generic TreeApp"

def run {
val shell = new Shell
shell.setLayout(new FillLayout)
shell.setText(title)
val tree = new Tree(shell, SWT.NONE)
Trees.register(tree)
def treeCreator: ItemCreator[T]
def startObject: T
def title: String = "Generic TreeApp"

treeCreator.create(tree, startObject)
def run {
val shell = new Shell
shell.setLayout(new FillLayout)
shell.setText(title)
val tree = new Tree(shell, SWT.NONE)
Trees.register(tree)

shell.open
val display = shell.getDisplay
while (!shell.isDisposed) {
if (!display.readAndDispatch) display.sleep
}
}
treeCreator.create(tree, startObject)

shell.open
val display = shell.getDisplay
while (!shell.isDisposed) {
if (!display.readAndDispatch) display.sleep
}
}
}

0 comments on commit 640b5ab

Please sign in to comment.