diff --git a/CHANGELOG.md b/CHANGELOG.md index 0156ef5..9d4046d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Add `RibbonThemePanelUtils` to update the theme for itens in the `RibbonPanel`. - Update `RibbonPanel` create and remove to update the theme of the itens. - Update `TryThemeImage` to not change assembly name if is a resource component. +- Remove `ConsoleAttribute` and `SetOrderPanels` obsolete methods. +- Update `GetAutodeskOwner` to obsolete only in `net46`. ### Tests - Add `RibbonThemeUtilsTests` to test the theme change event. - Add `TryThemeImage` tests to replace image with theme. diff --git a/Directory.Build.props b/Directory.Build.props index 14b7a55..a15c333 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,5 +1,5 @@ - 0.7.0-rc.1 + 0.7.0-rc.2 \ No newline at end of file diff --git a/ricaun.Revit.UI/AppLoaderAttribute.cs b/ricaun.Revit.UI/AppLoaderAttribute.cs index ff890e2..2f472d4 100644 --- a/ricaun.Revit.UI/AppLoaderAttribute.cs +++ b/ricaun.Revit.UI/AppLoaderAttribute.cs @@ -2,14 +2,6 @@ namespace ricaun.Revit.UI { - /// - /// Console Attribute for ricaun.AppLoader - /// - [Obsolete("This method gonna be removed, use AppLoaderAttribute")] - public class ConsoleAttribute : Attribute - { - } - /// /// AppLoader Attribute for ricaun.AppLoader /// diff --git a/ricaun.Revit.UI/AutodeskExtension.cs b/ricaun.Revit.UI/AutodeskExtension.cs index ea35e9c..4454abf 100644 --- a/ricaun.Revit.UI/AutodeskExtension.cs +++ b/ricaun.Revit.UI/AutodeskExtension.cs @@ -34,7 +34,9 @@ public static void SetAutodeskOwner(this Window window) /// Get Autodesk.Windows as the Owner Window /// /// - [Obsolete("This funciton does not work with Revit 2018 and 2017, gonna be removed.")] +#if NET46 + [Obsolete("This funciton does not work with Revit 2018 and 2017, Revit Application is not a Window.")] +#endif public static Window GetAutodeskOwner() { var owner = ComponentManager.ApplicationWindow; diff --git a/ricaun.Revit.UI/RibbonTabExtension.cs b/ricaun.Revit.UI/RibbonTabExtension.cs index 3e10543..6c430a8 100644 --- a/ricaun.Revit.UI/RibbonTabExtension.cs +++ b/ricaun.Revit.UI/RibbonTabExtension.cs @@ -111,16 +111,6 @@ public static Autodesk.Windows.RibbonTab SetPanelsOrderByTitle(this Autodesk.Win return ribbonTab.SetPanelsOrderBy(ComparationOrderByTitle); } - /// - /// Set Order of Panels by Title - /// - /// - [Obsolete("This method gonna be removed, use SetPanelsOrderByTitle")] - public static void SetOrderPanels(this Autodesk.Windows.RibbonTab ribbonTab) - { - ribbonTab.SetPanelsOrderByTitle(); - } - private static string ComparationOrderByTitle(Autodesk.Windows.RibbonPanel ribbonPanel) { return ribbonPanel.Source.Title;