-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add inline extensions to all object types that support extensions
- Loading branch information
1 parent
25edb0f
commit 209bdc3
Showing
13 changed files
with
943 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
############################################################################### | ||
# Set default behavior to automatically normalize line endings. | ||
############################################################################### | ||
* text=auto | ||
|
||
############################################################################### | ||
# Set default behavior for command prompt diff. | ||
# | ||
# This is need for earlier builds of msysgit that does not have it on by | ||
# default for csharp files. | ||
# Note: This is only used by command line | ||
############################################################################### | ||
#*.cs diff=csharp | ||
|
||
############################################################################### | ||
# Set the merge driver for project and solution files | ||
# | ||
# Merging from the command prompt will add diff markers to the files if there | ||
# are conflicts (Merging from VS is not affected by the settings below, in VS | ||
# the diff markers are never inserted). Diff markers may cause the following | ||
# file extensions to fail to load in VS. An alternative would be to treat | ||
# these files as binary and thus will always conflict and require user | ||
# intervention with every merge. To do so, just uncomment the entries below | ||
############################################################################### | ||
#*.sln merge=binary | ||
#*.csproj merge=binary | ||
#*.vbproj merge=binary | ||
#*.vcxproj merge=binary | ||
#*.vcproj merge=binary | ||
#*.dbproj merge=binary | ||
#*.fsproj merge=binary | ||
#*.lsproj merge=binary | ||
#*.wixproj merge=binary | ||
#*.modelproj merge=binary | ||
#*.sqlproj merge=binary | ||
#*.wwaproj merge=binary | ||
|
||
############################################################################### | ||
# behavior for image files | ||
# | ||
# image files are treated as binary by default. | ||
############################################################################### | ||
#*.jpg binary | ||
#*.png binary | ||
#*.gif binary | ||
|
||
############################################################################### | ||
# diff behavior for common document formats | ||
# | ||
# Convert binary document formats to text before diffing them. This feature | ||
# is only available from the command line. Turn it on by uncommenting the | ||
# entries below. | ||
############################################################################### | ||
#*.doc diff=astextplain | ||
#*.DOC diff=astextplain | ||
#*.docx diff=astextplain | ||
#*.DOCX diff=astextplain | ||
#*.dot diff=astextplain | ||
#*.DOT diff=astextplain | ||
#*.pdf diff=astextplain | ||
#*.PDF diff=astextplain | ||
#*.rtf diff=astextplain | ||
#*.RTF diff=astextplain |
225 changes: 182 additions & 43 deletions
225
Metadata/AOTBrowser/AOTBrowser/AxClass/ARBAOTObjectTree.xml
Large diffs are not rendered by default.
Oops, something went wrong.
53 changes: 53 additions & 0 deletions
53
Metadata/AOTBrowser/AOTBrowser/AxClass/ARBAOTObjectTreeBaseEnum.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<AxClass xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> | ||
<Name>ARBAOTObjectTreeBaseEnum</Name> | ||
<SourceCode> | ||
<Declaration><![CDATA[ | ||
using Xpp = Microsoft.Dynamics.Ax.Xpp; | ||
using Microsoft.Dynamics.AX.Metadata.MetaModel; | ||
/// <summary> | ||
/// Override the Object Tree for Base Enums | ||
/// </summary> | ||
[ARBAOTObjectType(ARBAOTObjectType::BaseEnum)] | ||
class ARBAOTObjectTreeBaseEnum extends ARBAOTObjectTree | ||
{ | ||
} | ||
]]></Declaration> | ||
<Methods> | ||
<Method> | ||
<Name>addExtensionCollection</Name> | ||
<Source><![CDATA[ | ||
/// <summary> | ||
/// Adds a collection of extensions to the tree | ||
/// </summary> | ||
/// <param name = "_collection">The collection to add</param> | ||
/// <param name = "_collectionName">The collection name</param> | ||
/// <param name = "_extensionName">The extension name</param> | ||
protected void addExtensionCollection(System.Collections.IEnumerable _collection, str _collectionName, str _extensionName) | ||
{ | ||
switch (_collectionName) | ||
{ | ||
case 'ValueModifications': | ||
System.Collections.IEnumerator valueModsEnum = _collection.GetEnumerator(); | ||
if (collectionMap.exists('EnumValues')) | ||
{ | ||
Map valuesMap = collectionMap.lookup('EnumValues'); | ||
while (valueModsEnum.MoveNext()) | ||
{ | ||
FormTreeItem control = treeControl.getItem(valuesMap.lookup(this.getObjectName(valueModsEnum.Current))); | ||
this.addExtensionModification(control, valueModsEnum.Current, _extensionName); | ||
} | ||
} | ||
break; | ||
default: | ||
super(_collection, _collectionName, _extensionName); | ||
break; | ||
} | ||
} | ||
]]></Source> | ||
</Method> | ||
</Methods> | ||
</SourceCode> | ||
</AxClass> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.