[commit] r2662 - in trunk/SDK/DotNet/CSharpComponentWizard/Templates: . CSharpAddon CSharpInterpreter
GMESRC Repository Notifications
gme-commit at list.isis.vanderbilt.edu
Fri Jan 27 13:01:48 CST 2017
Author: ksmyth
Date: Fri Jan 27 13:01:48 2017
New Revision: 2662
Log:
CSharpComponentWizard: format generated files
Modified:
trunk/SDK/DotNet/CSharpComponentWizard/Templates/CSharpAddon.zip
trunk/SDK/DotNet/CSharpComponentWizard/Templates/CSharpAddon/AssemblyInfo.cs
trunk/SDK/DotNet/CSharpComponentWizard/Templates/CSharpAddon/ComponentConfig.cs
trunk/SDK/DotNet/CSharpComponentWizard/Templates/CSharpAddon/GMEConsole.cs
trunk/SDK/DotNet/CSharpComponentWizard/Templates/CSharpInterpreter.zip
trunk/SDK/DotNet/CSharpComponentWizard/Templates/CSharpInterpreter/AssemblyInfo.cs
trunk/SDK/DotNet/CSharpComponentWizard/Templates/CSharpInterpreter/ComponentConfig.cs
trunk/SDK/DotNet/CSharpComponentWizard/Templates/CSharpInterpreter/GMEConsole.cs
trunk/SDK/DotNet/CSharpComponentWizard/Templates/CSharpInterpreter/MgaGateway.cs
trunk/SDK/DotNet/CSharpComponentWizard/Templates/CSharpInterpreter/MyInterpreter.cs
trunk/SDK/DotNet/CSharpComponentWizard/Templates/rezip.sh
Modified: trunk/SDK/DotNet/CSharpComponentWizard/Templates/CSharpAddon.zip
==============================================================================
Binary file (source and/or target). No diff available.
Modified: trunk/SDK/DotNet/CSharpComponentWizard/Templates/CSharpAddon/AssemblyInfo.cs
==============================================================================
--- trunk/SDK/DotNet/CSharpComponentWizard/Templates/CSharpAddon/AssemblyInfo.cs Fri Jan 27 13:01:44 2017 (r2661)
+++ trunk/SDK/DotNet/CSharpComponentWizard/Templates/CSharpAddon/AssemblyInfo.cs Fri Jan 27 13:01:48 2017 (r2662)
@@ -2,7 +2,7 @@
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
-// General Information about an assembly is controlled through the following
+// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("$projectname$")]
@@ -14,8 +14,8 @@
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
@@ -25,11 +25,11 @@
// Version information for an assembly consists of the following four values:
//
// Major Version
-// Minor Version
+// Minor Version
// Build Number
// Revision
//
-// You can specify all the values or you can default the Build and Revision Numbers
+// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
Modified: trunk/SDK/DotNet/CSharpComponentWizard/Templates/CSharpAddon/ComponentConfig.cs
==============================================================================
--- trunk/SDK/DotNet/CSharpComponentWizard/Templates/CSharpAddon/ComponentConfig.cs Fri Jan 27 13:01:44 2017 (r2661)
+++ trunk/SDK/DotNet/CSharpComponentWizard/Templates/CSharpAddon/ComponentConfig.cs Fri Jan 27 13:01:48 2017 (r2662)
@@ -5,23 +5,23 @@
namespace GME.CSharp
{
-
+
abstract class ComponentConfig
{
// Set paradigm name. Provide * if you want to register it for all paradigms.
public const string paradigmName = "$paradigmname$";
-
- // Set the human readable name of the addon. You can use white space characters.
+
+ // Set the human readable name of the addon. You can use white space characters.
public const string componentName = "$componentname$";
-
- // Select the object events you want the addon to listen to.
+
+ // Select the object events you want the addon to listen to.
public const int eventMask = (int)($eventmask$);
-
+
// Uncomment the flag if your component is paradigm independent.
public static componenttype_enum componentType = componenttype_enum.COMPONENTTYPE_ADDON;
- public const regaccessmode_enum registrationMode = regaccessmode_enum.$regaccessmode$;
+ public const regaccessmode_enum registrationMode = regaccessmode_enum.$regaccessmode$;
public const string progID = "MGA.Addon.$progid$";
- public const string guid = "$guid$";
+ public const string guid = "$guid$";
}
}
Modified: trunk/SDK/DotNet/CSharpComponentWizard/Templates/CSharpAddon/GMEConsole.cs
==============================================================================
--- trunk/SDK/DotNet/CSharpComponentWizard/Templates/CSharpAddon/GMEConsole.cs Fri Jan 27 13:01:44 2017 (r2661)
+++ trunk/SDK/DotNet/CSharpComponentWizard/Templates/CSharpAddon/GMEConsole.cs Fri Jan 27 13:01:48 2017 (r2662)
@@ -98,7 +98,7 @@
GMEConsole console = new GMEConsole();
try
{
- // Initializing console
+ // Initializing console
console.gme = (IGMEOLEApp)project.GetClientByName("GME.Application").OLEServer;
}
catch (System.Runtime.InteropServices.COMException ex)
Modified: trunk/SDK/DotNet/CSharpComponentWizard/Templates/CSharpInterpreter.zip
==============================================================================
Binary file (source and/or target). No diff available.
Modified: trunk/SDK/DotNet/CSharpComponentWizard/Templates/CSharpInterpreter/AssemblyInfo.cs
==============================================================================
--- trunk/SDK/DotNet/CSharpComponentWizard/Templates/CSharpInterpreter/AssemblyInfo.cs Fri Jan 27 13:01:44 2017 (r2661)
+++ trunk/SDK/DotNet/CSharpComponentWizard/Templates/CSharpInterpreter/AssemblyInfo.cs Fri Jan 27 13:01:48 2017 (r2662)
@@ -2,7 +2,7 @@
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
-// General Information about an assembly is controlled through the following
+// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("$projectname$")]
@@ -14,8 +14,8 @@
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
@@ -25,11 +25,11 @@
// Version information for an assembly consists of the following four values:
//
// Major Version
-// Minor Version
+// Minor Version
// Build Number
// Revision
//
-// You can specify all the values or you can default the Build and Revision Numbers
+// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
Modified: trunk/SDK/DotNet/CSharpComponentWizard/Templates/CSharpInterpreter/ComponentConfig.cs
==============================================================================
--- trunk/SDK/DotNet/CSharpComponentWizard/Templates/CSharpInterpreter/ComponentConfig.cs Fri Jan 27 13:01:44 2017 (r2661)
+++ trunk/SDK/DotNet/CSharpComponentWizard/Templates/CSharpInterpreter/ComponentConfig.cs Fri Jan 27 13:01:48 2017 (r2662)
@@ -5,26 +5,26 @@
namespace GME.CSharp
{
-
+
abstract class ComponentConfig
{
// Set paradigm name. Provide * if you want to register it for all paradigms.
- public const string paradigmName = "$paradigmname$";
-
- // Set the human readable name of the interpreter. You can use white space characters.
+ public const string paradigmName = "$paradigmname$";
+
+ // Set the human readable name of the interpreter. You can use white space characters.
public const string componentName = "$componentname$";
-
- // Specify an icon path
- public const string iconName = "$iconname$";
-
- public const string tooltip = "$progid$";
-
- // If null, updated with the assembly path + the iconName dynamically on registration
- public static string iconPath = $iconpath$;
-
- // Uncomment the flag if your component is paradigm independent.
- public static componenttype_enum componentType = componenttype_enum.COMPONENTTYPE_$componenttype$;
-
+
+ // Specify an icon path
+ public const string iconName = "$iconname$";
+
+ public const string tooltip = "$progid$";
+
+ // If null, updated with the assembly path + the iconName dynamically on registration
+ public static string iconPath = $iconpath$;
+
+ // Uncomment the flag if your component is paradigm independent.
+ public static componenttype_enum componentType = componenttype_enum.COMPONENTTYPE_$componenttype$;
+
public const regaccessmode_enum registrationMode = regaccessmode_enum.$regaccessmode$;
public const string progID = "MGA.Interpreter.$progid$";
public const string guid = "$guid$";
Modified: trunk/SDK/DotNet/CSharpComponentWizard/Templates/CSharpInterpreter/GMEConsole.cs
==============================================================================
--- trunk/SDK/DotNet/CSharpComponentWizard/Templates/CSharpInterpreter/GMEConsole.cs Fri Jan 27 13:01:44 2017 (r2661)
+++ trunk/SDK/DotNet/CSharpComponentWizard/Templates/CSharpInterpreter/GMEConsole.cs Fri Jan 27 13:01:48 2017 (r2662)
@@ -98,7 +98,7 @@
GMEConsole console = new GMEConsole();
try
{
- // Initializing console
+ // Initializing console
console.gme = (IGMEOLEApp)project.GetClientByName("GME.Application").OLEServer;
}
catch (System.Runtime.InteropServices.COMException ex)
Modified: trunk/SDK/DotNet/CSharpComponentWizard/Templates/CSharpInterpreter/MgaGateway.cs
==============================================================================
--- trunk/SDK/DotNet/CSharpComponentWizard/Templates/CSharpInterpreter/MgaGateway.cs Fri Jan 27 13:01:44 2017 (r2661)
+++ trunk/SDK/DotNet/CSharpComponentWizard/Templates/CSharpInterpreter/MgaGateway.cs Fri Jan 27 13:01:48 2017 (r2662)
@@ -52,7 +52,7 @@
}
finally
{
- AbortTransaction();
+ AbortTransaction();
}
}
#endregion
Modified: trunk/SDK/DotNet/CSharpComponentWizard/Templates/CSharpInterpreter/MyInterpreter.cs
==============================================================================
--- trunk/SDK/DotNet/CSharpComponentWizard/Templates/CSharpInterpreter/MyInterpreter.cs Fri Jan 27 13:01:44 2017 (r2661)
+++ trunk/SDK/DotNet/CSharpComponentWizard/Templates/CSharpInterpreter/MyInterpreter.cs Fri Jan 27 13:01:48 2017 (r2662)
@@ -42,7 +42,7 @@
/// <param name="project">The handle of the project opened in GME, for which the interpreter was called.</param>
public void Initialize(MgaProject project)
{
- // TODO: Add your initialization code here...
+ // TODO: Add your initialization code here...
}
/// <summary>
@@ -56,7 +56,7 @@
/// A collection for the selected model elements. It is never null.
/// If the interpreter is invoked by the context menu of the GME Tree Browser, then the selected items in the tree browser. Folders
/// are never passed (they are not FCOs).
- /// If the interpreter is invoked by clicking on the toolbar icon or the context menu of the modeling window, then the selected items
+ /// If the interpreter is invoked by clicking on the toolbar icon or the context menu of the modeling window, then the selected items
/// in the active GME modeling window. If nothing is selected, the collection is empty (contains zero elements).
/// </param>
/// <param name="startMode">Contains information about the GUI event that initiated the invocation.</param>
@@ -65,10 +65,10 @@
{
// TODO: Add your interpreter code
GMEConsole.Out.WriteLine("Running interpreter...");
-
+
// Get RootFolder
$GET_ROOTFOLDER_CODE$
-
+
// To use the domain-specific API:
// Create another project with the same name as the paradigm name
// Copy the paradigm .mga file to the directory containing the new project
@@ -76,7 +76,7 @@
// Add a Reference in this project to the other project
// Add "using [ParadigmName] = ISIS.GME.Dsml.[ParadigmName].Interfaces;" to the top of this file
// if (currentobj != null && currentobj.Meta.Name == "KindName")
- // [ParadigmName].[KindName] dsCurrentObj = ISIS.GME.Dsml.[ParadigmName].Classes.[KindName].Cast(currentobj);
+ // [ParadigmName].[KindName] dsCurrentObj = ISIS.GME.Dsml.[ParadigmName].Classes.[KindName].Cast(currentobj);
}
#region IMgaComponentEx Members
Modified: trunk/SDK/DotNet/CSharpComponentWizard/Templates/rezip.sh
==============================================================================
--- trunk/SDK/DotNet/CSharpComponentWizard/Templates/rezip.sh Fri Jan 27 13:01:44 2017 (r2661)
+++ trunk/SDK/DotNet/CSharpComponentWizard/Templates/rezip.sh Fri Jan 27 13:01:48 2017 (r2662)
@@ -7,6 +7,9 @@
if [ ${UNAME_S:0:7} == "MINGW32" ]; then
seven_z=/c/Program\ Files/7-Zip/7z.exe
fi
+if [ ${UNAME_S:0:7} == "MSYS_NT" ]; then
+ seven_z=/c/Program\ Files/7-Zip/7z.exe
+fi
rm *zip
( cd CSharpInterpreter && "$seven_z" a -x\!.svn -r ../CSharpInterpreter.zip * ) && ( cd CSharpAddon/ && "$seven_z" a -x\!.svn -r ../CSharpAddon.zip * )
More information about the gme-commit
mailing list