Index: src/Common/DelftTools.Controls/Command.cs =================================================================== diff -u -r5fc71a385897af92ccb092f2f969b5709afab85a -r893e87bb682400420fd124ca200c511c44f363e5 --- src/Common/DelftTools.Controls/Command.cs (.../Command.cs) (revision 5fc71a385897af92ccb092f2f969b5709afab85a) +++ src/Common/DelftTools.Controls/Command.cs (.../Command.cs) (revision 893e87bb682400420fd124ca200c511c44f363e5) @@ -1,6 +1,3 @@ -using System; -using System.Drawing; - namespace DelftTools.Controls { /// @@ -18,81 +15,15 @@ /// public abstract class Command : ICommand { - private string name; - private Image image; - - /// - /// Commands can be disabled when they should not be used. - /// public abstract bool Enabled { get; } - /// - /// HACK: Commands can checked if they represent a (boolean) state. - /// public virtual bool Checked { set; get; } - /// - /// DisplayName of the command. - /// - public virtual string Name - { - get - { - return name; - } - - protected set - { - string oldName = name; - name = value; - } - } - - #region ICommand Members - - /// - /// Image of the command - /// - public Image Image - { - get - { - return image; - } - set - { - Image oldImage = image; - image = value; - } - } - - #endregion - - /// - /// Method to be called when command will be executed. - /// - /// arguments to the command - protected abstract void OnExecute(params object[] arguments); - - #region ICommand Members - - /// - /// Execute the command. - /// - /// Arguments past to the command. public void Execute(params object[] arguments) { OnExecute(arguments); } - /// - /// Undo the command. - /// - public void Unexecute() - { - throw new NotImplementedException(); - } - - #endregion + protected abstract void OnExecute(params object[] arguments); } } \ No newline at end of file Index: src/Common/DelftTools.Controls/DelftTools.Controls.csproj =================================================================== diff -u -rfa9b36343401d44cb6813d7871903782d0dedec9 -r893e87bb682400420fd124ca200c511c44f363e5 --- src/Common/DelftTools.Controls/DelftTools.Controls.csproj (.../DelftTools.Controls.csproj) (revision fa9b36343401d44cb6813d7871903782d0dedec9) +++ src/Common/DelftTools.Controls/DelftTools.Controls.csproj (.../DelftTools.Controls.csproj) (revision 893e87bb682400420fd124ca200c511c44f363e5) @@ -80,7 +80,6 @@ - Index: src/Common/DelftTools.Controls/ICommand.cs =================================================================== diff -u -rb2f8d42a10dc057d13f9004c2361e2c90f8b15a3 -r893e87bb682400420fd124ca200c511c44f363e5 --- src/Common/DelftTools.Controls/ICommand.cs (.../ICommand.cs) (revision b2f8d42a10dc057d13f9004c2361e2c90f8b15a3) +++ src/Common/DelftTools.Controls/ICommand.cs (.../ICommand.cs) (revision 893e87bb682400420fd124ca200c511c44f363e5) @@ -21,10 +21,5 @@ /// /// Arguments used in executing the Command. void Execute(params object[] arguments); - - /// - /// Unexecute or undo the Command. - /// - void Unexecute(); } } \ No newline at end of file Fisheye: Tag 893e87bb682400420fd124ca200c511c44f363e5 refers to a dead (removed) revision in file `src/Common/DelftTools.Controls/ISuspendibleView.cs'. Fisheye: No comparison available. Pass `N' to diff? Index: src/Common/DelftTools.Controls/UML/ITableView.cd =================================================================== diff -u -r8f6ae890fed8e8eae3a32f9c0498a10f82e0ddf9 -r893e87bb682400420fd124ca200c511c44f363e5 --- src/Common/DelftTools.Controls/UML/ITableView.cd (.../ITableView.cd) (revision 8f6ae890fed8e8eae3a32f9c0498a10f82e0ddf9) +++ src/Common/DelftTools.Controls/UML/ITableView.cd (.../ITableView.cd) (revision 893e87bb682400420fd124ca200c511c44f363e5) @@ -17,12 +17,10 @@ - owgAAAAAUIBAcKASAAQAAERAkACgKABgAEEIQJhIAqU= + owgAAAAAUIAAYKASAIAAAERAkAAgKABgAAAIQJhIAqE= ITableView.cs - - @@ -33,17 +31,14 @@ - AAAABAAAAAAgAAIAYAEAAI0AAAAAARAICAAIAYAAAAA= + AAAABAAAAAAgAAIAYAEAAMwAAABAARAICAAIAYAAAAA= ITableViewColumn.cs - - - - AAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAACAAAAAAAIA= + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAIA= ITableViewPasteController.cs @@ -58,15 +53,8 @@ AAAAAAACAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAA= - ITableView.cs + TableViewPasteBehaviourOptions.cs - - - - AAAAAAAAACAAAAAAAABAAAAAAAAAAAAAAAAAAAEAAAA= - SortOrder.cs - - \ No newline at end of file Index: src/Common/DelftTools.Shell.Gui.Swf/Validation/ValidationView.cs =================================================================== diff -u -r5fc71a385897af92ccb092f2f969b5709afab85a -r893e87bb682400420fd124ca200c511c44f363e5 --- src/Common/DelftTools.Shell.Gui.Swf/Validation/ValidationView.cs (.../ValidationView.cs) (revision 5fc71a385897af92ccb092f2f969b5709afab85a) +++ src/Common/DelftTools.Shell.Gui.Swf/Validation/ValidationView.cs (.../ValidationView.cs) (revision 893e87bb682400420fd124ca200c511c44f363e5) @@ -9,11 +9,10 @@ namespace DelftTools.Shell.Gui.Swf.Validation { - public partial class ValidationView : UserControl, ISuspendibleView, IAdditionalView + public partial class ValidationView : UserControl, IAdditionalView { private readonly Stopwatch stopwatch = new Stopwatch(); private Func onValidate; - private bool suspend; private object data; public ValidationView() @@ -62,16 +61,6 @@ public void EnsureVisible(object item) {} - public void SuspendUpdates() - { - suspend = true; - } - - public void ResumeUpdates() - { - suspend = false; - } - private void SetViewText() { if (data == null) @@ -130,11 +119,6 @@ private void RefreshTimerTick(object sender, EventArgs e) { - if (suspend) - { - return; - } - refreshTimer.Stop(); if (RefreshReport()) { Index: src/DeltaShell/DeltaShell.Gui/DeltaShellGui.cs =================================================================== diff -u -r4ae34e044a58f8c6d1de9fe28b60b301955106f6 -r893e87bb682400420fd124ca200c511c44f363e5 --- src/DeltaShell/DeltaShell.Gui/DeltaShellGui.cs (.../DeltaShellGui.cs) (revision 4ae34e044a58f8c6d1de9fe28b60b301955106f6) +++ src/DeltaShell/DeltaShell.Gui/DeltaShellGui.cs (.../DeltaShellGui.cs) (revision 893e87bb682400420fd124ca200c511c44f363e5) @@ -113,8 +113,6 @@ { Application.ProjectClosing -= ApplicationProjectClosing; Application.ProjectOpened -= ApplicationProjectOpened; - Application.ProjectOpening -= ApplicationProjectOpening; - Application.ProjectSaving -= ApplicationProjectSaving; Application.ProjectSaved -= ApplicationProjectSaved; Application.ActivityRunner.IsRunningChanged -= ActivityRunnerIsRunningChanged; Application.ActivityRunner.ActivityCompleted -= ActivityRunnerActivityCompleted; @@ -127,8 +125,6 @@ // subscribe to application events so that we can handle opening, closing, renamig of views on project changes Application.ProjectClosing += ApplicationProjectClosing; Application.ProjectOpened += ApplicationProjectOpened; - Application.ProjectOpening += ApplicationProjectOpening; - Application.ProjectSaving += ApplicationProjectSaving; Application.ProjectSaved += ApplicationProjectSaved; Application.ActivityRunner.IsRunningChanged += ActivityRunnerIsRunningChanged; Application.ActivityRunner.ActivityCompleted += ActivityRunnerActivityCompleted; @@ -545,47 +541,14 @@ ResumeUI(); } - private void ApplicationProjectSaving(Project obj) - { - SuspendUI(); - } - - private void SuspendUI() - { - if (documentViews != null) - { - documentViews.SuspendAllViewUpdates(); - } - - if (toolWindowViews != null) - { - toolWindowViews.SuspendAllViewUpdates(); - } - } - private void ResumeUI() { - if (documentViews != null) - { - documentViews.ResumeAllViewUpdates(); - } - - if (toolWindowViews != null) - { - toolWindowViews.ResumeAllViewUpdates(); - } - if (mainWindow != null) { mainWindow.ValidateItems(); } } - private void ApplicationProjectOpening(Project obj) - { - SuspendUI(); - } - [InvokeRequired] private void ActivityRunnerIsRunningChanged(object sender, EventArgs e) { @@ -594,12 +557,8 @@ return; } - if (Application.IsActivityRunning()) + if (!Application.IsActivityRunning()) { - SuspendUI(); - } - else - { ResumeUI(); } @@ -675,8 +634,6 @@ private void ApplicationProjectClosing(Project project) { - SuspendUI(); - ClonableToolStripMenuItem.ClearCache(); } Index: src/DeltaShell/DeltaShell.Gui/Forms/ViewManager/ViewList.cs =================================================================== diff -u -rcbba848ecb8dc1dd4edf148beac44e7f7220fc08 -r893e87bb682400420fd124ca200c511c44f363e5 --- src/DeltaShell/DeltaShell.Gui/Forms/ViewManager/ViewList.cs (.../ViewList.cs) (revision cbba848ecb8dc1dd4edf148beac44e7f7220fc08) +++ src/DeltaShell/DeltaShell.Gui/Forms/ViewManager/ViewList.cs (.../ViewList.cs) (revision 893e87bb682400420fd124ca200c511c44f363e5) @@ -117,28 +117,6 @@ } } - /// - /// The resume all view updates. - /// - public void ResumeAllViewUpdates() - { - foreach (var view in AllViews.OfType()) - { - view.ResumeUpdates(); - } - } - - /// - /// The suspend all view updates. - /// - public void SuspendAllViewUpdates() - { - foreach (var view in AllViews.OfType()) - { - view.SuspendUpdates(); - } - } - public void EnableTabContextMenus() { viewSelectionMouseController = new ViewSelectionMouseController(dockingManager, this);