~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects/NewProjectDialog.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
96
96
                                chk_combine_directory.Hide ();
97
97
                                lbl_subdirectory.Hide ();
98
98
                        }
 
99
 
 
100
                        TreeIter iter;
 
101
                        ExpandCategory ("C#", out iter);
99
102
                }
100
103
                
101
104
                public void SelectTemplate (string id)
149
152
                        } while (catStore.IterNext (ref trial));
150
153
                        return false;
151
154
                }
152
 
                
153
 
                void SelectCategory (string category)
 
155
 
 
156
                bool ExpandCategory (string category, out TreeIter result)
154
157
                {
155
158
                        string[] cats = category.Split ('/');
156
159
                        
157
160
                        TreeIter iter;
158
 
                        if (!catStore.GetIterFirst (out iter))
159
 
                                return;
 
161
                        if (!catStore.GetIterFirst (out iter)) {
 
162
                                result = TreeIter.Zero;
 
163
                                return false;
 
164
                        }
160
165
                        
161
166
                        TreeIter nextIter = iter;
162
167
                        for (int i = 0; i < cats.Length; i++) {
171
176
                        }
172
177
                        
173
178
                        lst_template_types.ExpandToPath (catStore.GetPath (iter));
174
 
                        lst_template_types.Selection.SelectIter (iter);
 
179
                        result = iter;
 
180
                        return true;
 
181
                }
 
182
                
 
183
                void SelectCategory (string category)
 
184
                {
 
185
                        TreeIter iter;
 
186
                        if (ExpandCategory (category, out iter))
 
187
                                lst_template_types.Selection.SelectIter (iter);
175
188
                }
176
189
                
177
190
                void InitializeView()
425
438
                                return false;
426
439
                        }
427
440
                        
428
 
                        ProjectCreateInformation cinfo = CreateProjectCreateInformation ();
429
441
                        
430
442
                        try {
 
443
                                ProjectCreateInformation cinfo = CreateProjectCreateInformation ();
431
444
                                if (newSolution)
432
445
                                        newItem = item.CreateWorkspaceItem (cinfo);
433
446
                                else
434
447
                                        newItem = item.CreateProject (parentFolder, cinfo);
 
448
                        } catch (UserException ex) {
 
449
                                MessageService.ShowError (ex.Message, ex.Details);
 
450
                                return false;
435
451
                        } catch (Exception ex) {
436
452
                                MessageService.ShowException (ex, GettextCatalog.GetString ("The project could not be created"));
437
453
                                return false;