Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Commit

Permalink
v2.0.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
msawczyn committed Apr 9, 2020
1 parent 71fc0a7 commit e57008e
Show file tree
Hide file tree
Showing 28 changed files with 141 additions and 246 deletions.
Binary file modified dist/Sawczyn.EFDesigner.EFModel.DslPackage.vsix
Binary file not shown.
41 changes: 0 additions & 41 deletions src/Dsl/CustomCode/Partials/EFModelDiagram.cs
Expand Up @@ -140,46 +140,5 @@ public override void OnMouseUp(DiagramMouseEventArgs e)
IsDropping = false;
base.OnMouseUp(e);
}

/// <summary>
/// Called when a key is pressed when the Diagram itself has the focus.
/// </summary>
/// <param name="e">A DiagramKeyEventArgs that contains event data.</param>
public override void OnKeyDown(DiagramKeyEventArgs e)
{
//using (Transaction t = Store.TransactionManager.BeginTransaction("Diagram.OnKeyDown"))
//{

// if (e.KeyCode == Keys.Delete)
// {
// SelectedShapesCollection selection = FocusedDiagramView.Selection;

// string message = selection.Count == 1
// ? "Delete multiple elements from model? Are you sure?"
// : "Delete element from model? Are you sure?";

// if (e.Control && BooleanQuestionDisplay.Show(message) == true)
// {
// foreach (ModelElement modelElement in selection.RepresentedElements)
// modelElement.Delete();
// t.Commit();
// e.Handled = true;
// }
// else if (!e.Control)
// {
// foreach (DiagramItem diagramItem in selection)
// {
// if (diagramItem.Shape is NodeShape nodeShape)
// nodeShape.Delete();
// }

// t.Commit();
// e.Handled = true;
// }
// }
//}

base.OnKeyDown(e);
}
}
}
18 changes: 0 additions & 18 deletions src/Dsl/CustomCode/Partials/FixUpAllDiagrams.cs

This file was deleted.

17 changes: 0 additions & 17 deletions src/Dsl/CustomCode/Partials/UnidirectionalConnector.cs

This file was deleted.

4 changes: 1 addition & 3 deletions src/Dsl/Dsl.csproj
Expand Up @@ -139,7 +139,6 @@
<Compile Include="CustomCode\Name Providers\ModelDiagramDataNameProvider.cs" />
<Compile Include="CustomCode\Partials\AssociationConnector.cs" />
<Compile Include="CustomCode\Domain Types\Namespaces.cs" />
<Compile Include="CustomCode\Partials\FixUpAllDiagrams.cs" />
<Compile Include="CustomCode\Partials\ModelDiagramData.cs" />
<Compile Include="CustomCode\Rules\AssociationDeletingRules.cs" />
<Compile Include="CustomCode\Rules\BidirectionalAssociationAddRules.cs" />
Expand Down Expand Up @@ -194,7 +193,6 @@
<Compile Include="CustomCode\Utilities\ModelMigration.cs" />
<Compile Include="CustomCode\Utilities\Nuget\NuGetHelper.cs" />
<Compile Include="CustomCode\Utilities\Nuget\Models\NuGetDisplay.cs" />
<Compile Include="CustomCode\Partials\UnidirectionalConnector.cs" />
<Compile Include="CustomCode\Rules\AssociationAddRules.cs" />
<Compile Include="CustomCode\Rules\AssociationChangeRules.cs" />
<Compile Include="CustomCode\Rules\CommonRules.cs" />
Expand Down Expand Up @@ -555,7 +553,7 @@
<Version>3.5.0</Version>
</PackageReference>
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers">
<Version>2.9.8</Version>
<Version>3.0.0</Version>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
Expand Down
2 changes: 1 addition & 1 deletion src/Dsl/DslDefinition.dsl
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Dsl xmlns:dm0="http://schemas.microsoft.com/VisualStudio/2008/DslTools/Core" dslVersion="1.0.0.0" Id="9987f227-3d05-49b7-b151-857879f5dfb8" Description="Entity Framework visual editor for EF6, EFCore and beyond." Name="EFModel" DisplayName="Entity Framework Visual Editor" Namespace="Sawczyn.EFDesigner.EFModel" MajorVersion="2" Revision="4" ProductName="EFDesigner" CompanyName="Michael Sawczyn" PackageGuid="56bbe1ba-aaee-4883-848f-e3c8656f8db2" PackageNamespace="Sawczyn.EFDesigner.EFModel" xmlns="http://schemas.microsoft.com/VisualStudio/2005/DslTools/DslDefinitionModel">
<Dsl xmlns:dm0="http://schemas.microsoft.com/VisualStudio/2008/DslTools/Core" dslVersion="1.0.0.0" Id="9987f227-3d05-49b7-b151-857879f5dfb8" Description="Entity Framework visual editor for EF6, EFCore and beyond." Name="EFModel" DisplayName="Entity Framework Visual Editor" Namespace="Sawczyn.EFDesigner.EFModel" MajorVersion="2" Revision="5" ProductName="EFDesigner" CompanyName="Michael Sawczyn" PackageGuid="56bbe1ba-aaee-4883-848f-e3c8656f8db2" PackageNamespace="Sawczyn.EFDesigner.EFModel" xmlns="http://schemas.microsoft.com/VisualStudio/2005/DslTools/DslDefinitionModel">
<Classes>
<DomainClass Id="95532cb8-3452-4b09-a654-aeb2e2d0b3ad" Description="" Name="ModelRoot" DisplayName="Entity Model" Namespace="Sawczyn.EFDesigner.EFModel">
<CustomTypeDescriptor>
Expand Down

0 comments on commit e57008e

Please sign in to comment.