~ubuntu-branches/ubuntu/feisty/monodevelop/feisty

« back to all changes in this revision

Viewing changes to Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads.ProjectPad/ProjectNodeBuilder.cs

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2006-08-18 00:51:23 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20060818005123-5iit07y0j7wjg55f
Tags: 0.11+svn20060818-0ubuntu1
* New SVN snapshot
  + Works with Gtk# 2.9.0
* debian/control:
  + Updated Build-Depends
* debian/patches/use_nunit2.2.dpatch,
  debian/patches/use_real_libs.dpatch:
  + Updated
* debian/patches/versioncontrol_buildfix.dpatch:
  + Fix build failure in the version control addin

Show diffs side-by-side

added added

removed removed

Lines of Context:
113
113
                        base.BuildNode (treeBuilder, dataObject, ref label, ref icon, ref closedIcon);
114
114
 
115
115
                        Project p = dataObject as Project;
116
 
                        label = p.Name;
117
 
                        string iconName = Services.Icons.GetImageForProjectType (p.ProjectType);
 
116
                        
 
117
                        string iconName;
 
118
                        if (p is DotNetProject && ((DotNetProject)p).LanguageBinding == null) {
 
119
                                iconName = Gtk.Stock.DialogError;
 
120
                                label = GettextCatalog.GetString ("{0} <span foreground='red' size='small'>(Unknown language '{1}')</span>", p.Name, ((DotNetProject)p).LanguageName);
 
121
                        } else {
 
122
                                iconName = Services.Icons.GetImageForProjectType (p.ProjectType);
 
123
                                if (p.ParentCombine != null && p.ParentCombine.StartupEntry == p)
 
124
                                        label = "<b>" + p.Name + "</b>";
 
125
                                else
 
126
                                        label = p.Name;
 
127
                        }
 
128
                        
118
129
                        icon = Context.GetIcon (iconName);
119
130
                }
120
131
 
273
284
                {
274
285
                }
275
286
                
276
 
                [CommandHandler (ProjectCommands.Options)]
277
 
                public void OnProjectOptions ()
278
 
                {
279
 
                        Project selectedProject = CurrentNode.DataItem as Project;
280
 
                        IdeApp.ProjectOperations.ShowOptions (selectedProject);
281
 
                }
282
 
                
283
 
                [CommandHandler (ProjectCommands.Deploy)]
284
 
                public void OnProjectDeploy ()
285
 
                {
286
 
                        Project selectedProject = CurrentNode.DataItem as Project;
287
 
                        IdeApp.ProjectOperations.Deploy (selectedProject);
288
 
                }
289
 
                
290
287
                [CommandHandler (ProjectCommands.SetAsStartupProject)]
291
288
                public void SetAsStartupProject ()
292
289
                {