Trim the dart extension from the name in the direct edit

Bug-Url: https://github.com/dartdesigner/Dart-Designer/issues/36
Change-Id: Iefe1e33e3e9fd7776bcd7868810bc6dee6417937