diff options
Diffstat (limited to 'main/src/core/MonoDevelop.Ide')
6 files changed, 58 insertions, 16 deletions
diff --git a/main/src/core/MonoDevelop.Ide/ChangeLog b/main/src/core/MonoDevelop.Ide/ChangeLog index d963ae2a1a..eda9afee52 100644 --- a/main/src/core/MonoDevelop.Ide/ChangeLog +++ b/main/src/core/MonoDevelop.Ide/ChangeLog @@ -1,3 +1,37 @@ +2010-06-15 Michael Hutchinson <mhutchinson@novell.com> + + * MonoDevelop.Ide/RootWorkspace.cs: Disabled + OnRunProjectChecks timeout because it churns disk, wastes + power on laptop. + +2010-06-15 Michael Hutchinson <mhutchinson@novell.com> + + * MonoDevelop.Ide.addin.xml: Set icon for the default code + formatting policies panel group to match the per-item one. + + * MonoDevelop.Ide.Desktop/PlatformService.cs: Handle icon for + text/plain mimetype. + +2010-06-15 Michael Hutchinson <mhutchinson@novell.com> + + * MonoDevelop.Ide.Desktop/PlatformService.cs: Add a + description for the text/plain mimetype. + +2010-06-15 Michael Hutchinson <mhutchinson@novell.com> + + * MonoDevelop.Ide.addin.xml: Remove nonexistent icon. + +2010-06-15 Michael Hutchinson <mhutchinson@novell.com> + + * MonoDevelop.Ide.Projects.OptionPanels/CodeFormattingPanel.cs: + Only show mimetypes with policies. + +2010-06-15 Michael Hutchinson <mhutchinson@novell.com> + + * MonoDevelop.Ide.CodeCompletion/CompletionListWindow.cs: + Remove debug writelines. Disable + process-enter-on-exact-match behaviour change or now. + 2010-06-15 Lluis Sanchez Gual <lluis@novell.com> * MonoDevelop.Components.DockToolbars/DockToolbar.cs: Reset diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeCompletion/CompletionListWindow.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeCompletion/CompletionListWindow.cs index b5f9a754ce..ffd57cd87d 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeCompletion/CompletionListWindow.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeCompletion/CompletionListWindow.cs @@ -123,11 +123,11 @@ namespace MonoDevelop.Ide.CodeCompletion if ((ka & KeyActions.Complete) != 0) { bool completed = CompleteWord (); - Console.WriteLine ("completed:" + completed); - if (!completed) { - CompletionWindowManager.HideWindow (); - return false; - } + //NOTE: this passes the enter keystroke through to the editor if the current item is an exact match + //if (!completed) { + // CompletionWindowManager.HideWindow (); + // return false; + //} } if ((ka & KeyActions.CloseWindow) != 0) diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Desktop/PlatformService.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Desktop/PlatformService.cs index 7003cd163b..dfe2037a5d 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Desktop/PlatformService.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Desktop/PlatformService.cs @@ -79,6 +79,8 @@ namespace MonoDevelop.Ide.Desktop public string GetMimeTypeDescription (string mimeType) { + if (mimeType == "text/plain") + return GettextCatalog.GetString ("Text file"); MimeTypeNode mt = FindMimeType (mimeType); if (mt != null && mt.Description != null) return mt.Description; @@ -202,6 +204,8 @@ namespace MonoDevelop.Ide.Desktop string GetIconForType (string type) { + if (type == "text/plain") + return "md-text-file-icon"; MimeTypeNode mt = FindMimeType (type); if (mt != null) return mt.Icon; diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects.OptionPanels/CodeFormattingPanel.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects.OptionPanels/CodeFormattingPanel.cs index adf013eef4..30179fde58 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects.OptionPanels/CodeFormattingPanel.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects.OptionPanels/CodeFormattingPanel.cs @@ -34,6 +34,7 @@ using MonoDevelop.Projects; using MonoDevelop.Core; using MonoDevelop.Projects.Policies; using MonoDevelop.Components; +using System.Linq; namespace MonoDevelop.Ide.Projects.OptionPanels { @@ -42,11 +43,15 @@ namespace MonoDevelop.Ide.Projects.OptionPanels PolicyContainer policyContainer; Dictionary<string,MimeTypePanelData> typeSections = new Dictionary<string, MimeTypePanelData> (); List<string> globalMimeTypes; + HashSet<string> mimeTypesWithPolicies = new HashSet<string> (); public override void Initialize (MonoDevelop.Ide.Gui.Dialogs.OptionsDialog dialog, object dataObject) { base.Initialize (dialog, dataObject); + foreach (MimeTypeOptionsPanelNode node in AddinManager.GetExtensionNodes ("/MonoDevelop/ProjectModel/Gui/MimeTypePolicyPanels")) + mimeTypesWithPolicies.Add (node.MimeType); + if (dataObject is SolutionItem) { policyContainer = ((SolutionItem)dataObject).Policies; } else if (dataObject is Solution) { @@ -64,6 +69,9 @@ namespace MonoDevelop.Ide.Projects.OptionPanels MimeTypePanelData AddPanel (string mt) { + var chain = new List<string> (DesktopService.GetMimeTypeInheritanceChain (mt).Where (x => mimeTypesWithPolicies.Contains (x))); + if (chain.Count == 0) + return null; MimeTypePanelData data = new MimeTypePanelData (); OptionsDialogSection sec = new OptionsDialogSection (typeof(MimeTypePolicyOptionsSection)); sec.Fill = true; @@ -77,7 +85,7 @@ namespace MonoDevelop.Ide.Projects.OptionPanels data.DataObject = DataObject; data.PolicyContainer = policyContainer; sec.Label = data.TypeDescription; - LoadPolicyTypeData (data, mt); + LoadPolicyTypeData (data, mt, chain); typeSections [mt] = data; ParentDialog.AddChildSection (this, sec, data); return data; @@ -114,10 +122,8 @@ namespace MonoDevelop.Ide.Projects.OptionPanels get { return policyContainer; } } - void LoadPolicyTypeData (MimeTypePanelData data, string mimeType) + void LoadPolicyTypeData (MimeTypePanelData data, string mimeType, List<string> types) { - List<string> types = new List<string> (); - types.AddRange (DesktopService.GetMimeTypeInheritanceChain (mimeType)); List<IMimeTypePolicyOptionsPanel> panels = new List<IMimeTypePolicyOptionsPanel> (); bool useParentPolicy = false; diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.addin.xml b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.addin.xml index ccd424b091..a3aa87ef29 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.addin.xml +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.addin.xml @@ -468,7 +468,6 @@ <StockIcon stockid = "md-addin" resource = "plugin-32.png" size = "LargeToolbar"/> <StockIcon stockid = "md-workspace" resource = "workspace-16.png" size="Menu"/> <StockIcon stockid = "md-workspace" resource = "workspace-32.png" size="Dnd" /> - <StockIcon stockid = "md-new-workspace" resource = "workspace-new-16.png"/> <StockIcon stockid = "md-new-solution-folder" resource = "solution-folder-new-16.png"/> <StockIcon stockid = "md-solution-folder-open" resource = "solution-folder-open-16.png" size="Menu"/> <StockIcon stockid = "md-solution-folder-closed" resource = "solution-folder-closed-16.png" size="Menu"/> @@ -640,7 +639,7 @@ <Section id="DefaultDotNetNamingPolicies" _label=".NET Naming Policies"> <Panel id = "NamespaceSynchronisationPanel" class = "MonoDevelop.Ide.Projects.OptionPanels.NamespaceSynchronisationPanel" /> </Section> - <Section id="CodeFormattingPolicies" _label="Code Formatting" fill = "true" class="MonoDevelop.Ide.Projects.OptionPanels.CodeFormattingPanel" /> + <Section id="CodeFormattingPolicies" _label="Code Formatting" icon="md-formatting" fill = "true" class="MonoDevelop.Ide.Projects.OptionPanels.CodeFormattingPanel" /> </Section> </Extension> @@ -803,8 +802,7 @@ icon = "md-new-project" /> <Command id = "MonoDevelop.Ide.Commands.ProjectCommands.AddNewWorkspace" _label = "_Add New Workspace..." - _description = "Add a new child workspace to the selected workspace" - icon = "md-new-workspace" /> + _description = "Add a new child workspace to the selected workspace" /> <Command id = "MonoDevelop.Ide.Commands.ProjectCommands.AddNewSolution" _label = "_Add New Solution..." _description = "Add a new child solution to the selected workspace" @@ -988,8 +986,7 @@ shortcut = "Control|Shift|N" /> <Command id = "MonoDevelop.Ide.Commands.FileCommands.NewWorkspace" defaultHandler = "MonoDevelop.Ide.Commands.NewWorkspaceHandler" - _label = "_Workspace..." - icon = "md-new-workspace" + _label = "_Workspace..." _description = "Create a new workspace"/> <Command id = "MonoDevelop.Ide.Commands.FileCommands.CloseFile" _label = "_Close File" diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/RootWorkspace.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/RootWorkspace.cs index ae19945fff..bdb5ac1df2 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/RootWorkspace.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/RootWorkspace.cs @@ -95,7 +95,8 @@ namespace MonoDevelop.Ide } }; - GLib.Timeout.Add (2000, OnRunProjectChecks); + //FIXME: disabled OnRunProjectChecks timeout because it churns disk, wastes power on laptop. Need better solution. + //GLib.Timeout.Add (2000, OnRunProjectChecks); } public WorkspaceItemCollection Items { |