Browse Source

Fixed BOO-653: Creating a new class without a file extension does not put the build action to compile.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@1119 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Daniel Grunwald 20 years ago
parent
commit
ebee6a70d1
  1. 2
      src/AddIns/BackendBindings/Boo/BooBinding/Project/Templates/Form.xft
  2. 6
      src/Main/Base/Project/Src/Gui/Dialogs/NewFileDialog.cs

2
src/AddIns/BackendBindings/Boo/BooBinding/Project/Templates/Form.xft

@ -22,7 +22,7 @@ @@ -22,7 +22,7 @@
-->
<Files>
<!-- Designer file must come first, so the design tab is shown correctly -->
<File name="${Path}/${FileNameWithoutExtension}.Designer.boo" language="Boo"><![CDATA[namespace ${StandardNamespace}
<File name="${Path}/${FileNameWithoutExtension}.Designer.boo" dependentUpon="${FileName}" language="Boo"><![CDATA[namespace ${StandardNamespace}
partial class ${ClassName}(System.Windows.Forms.Form):
private components as System.ComponentModel.IContainer = null

6
src/Main/Base/Project/Src/Gui/Dialogs/NewFileDialog.cs

@ -426,7 +426,11 @@ namespace ICSharpCode.SharpDevelop.Gui @@ -426,7 +426,11 @@ namespace ICSharpCode.SharpDevelop.Gui
if (allowUntitledFiles) {
fileName = GenerateCurrentFileName();
} else {
fileName = Path.Combine(basePath, ControlDictionary["fileNameTextBox"].Text);
fileName = ControlDictionary["fileNameTextBox"].Text;
if (Path.GetExtension(fileName).Length == 0) {
fileName += Path.GetExtension(item.Template.DefaultName);
}
fileName = Path.Combine(basePath, fileName);
fileName = Path.GetFullPath(fileName);
IProject project = ProjectService.CurrentProject;
if (project != null) {

Loading…
Cancel
Save