You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by hu...@apache.org on 2005/06/14 16:54:50 UTC
svn commit: r190602 - in /struts/sandbox/trunk/overdrive/Nexus: Core/
Core/Helpers/ Core/Tables/ Extras/Spring/ Test/ Test/Commands/ Web/
Author: husted
Date: Tue Jun 14 07:54:49 2005
New Revision: 190602
URL: http://svn.apache.org/viewcvs?rev=190602&view=rev
Log:
OVR-15
* Code reformatting only; no changes.
Modified:
struts/sandbox/trunk/overdrive/Nexus/Core/Helpers/IViewHelper.cs
struts/sandbox/trunk/overdrive/Nexus/Core/Helpers/ViewHelper.cs
struts/sandbox/trunk/overdrive/Nexus/Core/IRequestContext.cs
struts/sandbox/trunk/overdrive/Nexus/Core/RequestContext.cs
struts/sandbox/trunk/overdrive/Nexus/Core/Tables/IFieldTable.cs
struts/sandbox/trunk/overdrive/Nexus/Extras/Spring/Controller.cs
struts/sandbox/trunk/overdrive/Nexus/Test/Commands/ListAll.cs
struts/sandbox/trunk/overdrive/Nexus/Test/RequestContextTest.cs
struts/sandbox/trunk/overdrive/Nexus/Web/AssemblyInfo.cs
struts/sandbox/trunk/overdrive/Nexus/Web/Global.asax.cs
struts/sandbox/trunk/overdrive/Nexus/Web/WebHelper.cs
struts/sandbox/trunk/overdrive/Nexus/Web/WebViewHelper.cs
Modified: struts/sandbox/trunk/overdrive/Nexus/Core/Helpers/IViewHelper.cs
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/overdrive/Nexus/Core/Helpers/IViewHelper.cs?rev=190602&r1=190601&r2=190602&view=diff
==============================================================================
--- struts/sandbox/trunk/overdrive/Nexus/Core/Helpers/IViewHelper.cs (original)
+++ struts/sandbox/trunk/overdrive/Nexus/Core/Helpers/IViewHelper.cs Tue Jun 14 07:54:49 2005
@@ -32,7 +32,6 @@
///
public interface IViewHelper
{
-
/// <summary>
/// Invoke the helper's command and bind the output to
/// controls in the given collection.
@@ -76,7 +75,7 @@
/// Invoke the helper's command.
/// </summary>
///
- void Execute();
+ void Execute ();
/// <summary>
@@ -88,7 +87,7 @@
// ----
-
+
/// <summary>
/// A list of error messages, keyed by the field causing the
/// error, or to a magic global key.
@@ -155,7 +154,7 @@
/// The FieldTable can also be used to generate UI controls.
/// </p></remarks>
///
- IFieldTable FieldTable { get;}
+ IFieldTable FieldTable { get; }
/// <summary>
@@ -167,8 +166,8 @@
/// FieldDefinitions
/// </p></remarks>
///
- IList FieldSet {get;}
-
+ IList FieldSet { get; }
+
/*
// TODO: Messengers
string Text(string key);
@@ -176,7 +175,7 @@
ITextTable TextTable {get;}
*/
-
+
// ----
/// <summary>
@@ -206,7 +205,7 @@
/// "facility_key_list" will be set to a field named "facility_key".
/// </P></remark>
///
- string ListSuffix {get; set;}
+ string ListSuffix { get; set; }
/*
// TODO:
@@ -221,7 +220,7 @@
/// instead [TRUE].
/// </summary>
///
- bool NullIfEmpty {get; set;}
+ bool NullIfEmpty { get; set; }
/// <summary>
@@ -231,7 +230,7 @@
/// To disable feature, set to a null string.
/// </p></remarks>
///
- string SelectItemPrompt {get; set;}
+ string SelectItemPrompt { get; set; }
// ----
Modified: struts/sandbox/trunk/overdrive/Nexus/Core/Helpers/ViewHelper.cs
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/overdrive/Nexus/Core/Helpers/ViewHelper.cs?rev=190602&r1=190601&r2=190602&view=diff
==============================================================================
--- struts/sandbox/trunk/overdrive/Nexus/Core/Helpers/ViewHelper.cs (original)
+++ struts/sandbox/trunk/overdrive/Nexus/Core/Helpers/ViewHelper.cs Tue Jun 14 07:54:49 2005
@@ -32,10 +32,8 @@
{
get
{
- if (_Context==null)
- {
- _Context = Controller.GetContext(Command);
- }
+ if (_Context == null)
+ _Context = Controller.GetContext (Command);
return _Context;
}
}
@@ -54,7 +52,7 @@
public void Execute ()
{
- Controller.ExecuteView(Context);
+ Controller.ExecuteView (Context);
}
#endregion
@@ -104,18 +102,18 @@
{
get { return Context.FieldTable; }
}
-
+
public IList FieldSet
{
get { throw new NotImplementedException (); }
}
-
+
public string Prefix
{
get { throw new NotImplementedException (); }
set { throw new NotImplementedException (); }
}
-
+
public string ListSuffix
{
get { throw new NotImplementedException (); }
@@ -145,7 +143,7 @@
{
get { throw new NotImplementedException (); }
set { throw new NotImplementedException (); }
-
+
}
#endregion
Modified: struts/sandbox/trunk/overdrive/Nexus/Core/IRequestContext.cs
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/overdrive/Nexus/Core/IRequestContext.cs?rev=190602&r1=190601&r2=190602&view=diff
==============================================================================
--- struts/sandbox/trunk/overdrive/Nexus/Core/IRequestContext.cs (original)
+++ struts/sandbox/trunk/overdrive/Nexus/Core/IRequestContext.cs Tue Jun 14 07:54:49 2005
@@ -192,7 +192,7 @@
/// </summary>
/// <returns>True if there are messages.</returns>
///
- bool HasMessages {get;}
+ bool HasMessages { get; }
}
}
Modified: struts/sandbox/trunk/overdrive/Nexus/Core/RequestContext.cs
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/overdrive/Nexus/Core/RequestContext.cs?rev=190602&r1=190601&r2=190602&view=diff
==============================================================================
--- struts/sandbox/trunk/overdrive/Nexus/Core/RequestContext.cs (original)
+++ struts/sandbox/trunk/overdrive/Nexus/Core/RequestContext.cs Tue Jun 14 07:54:49 2005
@@ -59,7 +59,7 @@
public IFieldTable FieldTable
{
get { return this [Tokens.FIELD_TABLE] as IFieldTable; }
- set { this [Tokens.FIELD_TABLE] = value; }
+ set { this [Tokens.FIELD_TABLE] = value; }
}
public IList FieldSet
Modified: struts/sandbox/trunk/overdrive/Nexus/Core/Tables/IFieldTable.cs
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/overdrive/Nexus/Core/Tables/IFieldTable.cs?rev=190602&r1=190601&r2=190602&view=diff
==============================================================================
--- struts/sandbox/trunk/overdrive/Nexus/Core/Tables/IFieldTable.cs (original)
+++ struts/sandbox/trunk/overdrive/Nexus/Core/Tables/IFieldTable.cs Tue Jun 14 07:54:49 2005
@@ -11,7 +11,6 @@
///
public interface IFieldTable : IContext, ISerializable
{
-
/// <summary>
/// Add a field to the set.
/// </summary>
Modified: struts/sandbox/trunk/overdrive/Nexus/Extras/Spring/Controller.cs
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/overdrive/Nexus/Extras/Spring/Controller.cs?rev=190602&r1=190601&r2=190602&view=diff
==============================================================================
--- struts/sandbox/trunk/overdrive/Nexus/Extras/Spring/Controller.cs (original)
+++ struts/sandbox/trunk/overdrive/Nexus/Extras/Spring/Controller.cs Tue Jun 14 07:54:49 2005
@@ -50,10 +50,10 @@
return _Factory;
}
- static string msg_NAME = "name";
- static string msg_NULL = "Command name cannot be null.";
- static string msg_MISSING = "Object is not found in Factory.";
- string msg_TYPE = "Command is not a IRequestCommand or IRequestChain.";
+ private static string msg_NAME = "name";
+ private static string msg_NULL = "Command name cannot be null.";
+ private static string msg_MISSING = "Object is not found in Factory.";
+ private string msg_TYPE = "Command is not a IRequestCommand or IRequestChain.";
public object GetObject (string name)
{
@@ -103,7 +103,7 @@
return context;
}
-
+
public IRequestContext GetContext (string name)
{
IRequestContext context = null;
Modified: struts/sandbox/trunk/overdrive/Nexus/Test/Commands/ListAll.cs
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/overdrive/Nexus/Test/Commands/ListAll.cs?rev=190602&r1=190601&r2=190602&view=diff
==============================================================================
--- struts/sandbox/trunk/overdrive/Nexus/Test/Commands/ListAll.cs (original)
+++ struts/sandbox/trunk/overdrive/Nexus/Test/Commands/ListAll.cs Tue Jun 14 07:54:49 2005
@@ -33,7 +33,7 @@
/// Fake name for test data.
/// </summary>
///
- const string DATA = "data";
+ private const string DATA = "data";
public override bool RequestExecute (IRequestContext context)
{
Modified: struts/sandbox/trunk/overdrive/Nexus/Test/RequestContextTest.cs
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/overdrive/Nexus/Test/RequestContextTest.cs?rev=190602&r1=190601&r2=190602&view=diff
==============================================================================
--- struts/sandbox/trunk/overdrive/Nexus/Test/RequestContextTest.cs (original)
+++ struts/sandbox/trunk/overdrive/Nexus/Test/RequestContextTest.cs Tue Jun 14 07:54:49 2005
@@ -68,8 +68,8 @@
public void IsNominal_Fault ()
{
context.Fault = fault;
- Assert.IsFalse (context.IsNominal,
- "Expected non-nominal state after setting Exception.");
+ Assert.IsFalse (context.IsNominal,
+ "Expected non-nominal state after setting Exception.");
}
/// <summary>
@@ -83,8 +83,8 @@
context.AddError ("Business logic error");
context.AddError ("Business logic error 2");
context.Fault = fault;
- Assert.IsFalse (context.IsNominal,
- "Expected non-nominal state after adding errors and Exception.");
+ Assert.IsFalse (context.IsNominal,
+ "Expected non-nominal state after adding errors and Exception.");
}
/// <summary>
Modified: struts/sandbox/trunk/overdrive/Nexus/Web/AssemblyInfo.cs
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/overdrive/Nexus/Web/AssemblyInfo.cs?rev=190602&r1=190601&r2=190602&view=diff
==============================================================================
--- struts/sandbox/trunk/overdrive/Nexus/Web/AssemblyInfo.cs (original)
+++ struts/sandbox/trunk/overdrive/Nexus/Web/AssemblyInfo.cs Tue Jun 14 07:54:49 2005
@@ -1,19 +1,17 @@
using System.Reflection;
-using System.Runtime.CompilerServices;
-
//
// 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("")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("")]
-[assembly: AssemblyCopyright("")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
+[assembly : AssemblyTitle ("")]
+[assembly : AssemblyDescription ("")]
+[assembly : AssemblyConfiguration ("")]
+[assembly : AssemblyCompany ("")]
+[assembly : AssemblyProduct ("")]
+[assembly : AssemblyCopyright ("")]
+[assembly : AssemblyTrademark ("")]
+[assembly : AssemblyCulture ("")]
//
// Version information for an assembly consists of the following four values:
@@ -26,7 +24,7 @@
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
-[assembly: AssemblyVersion("1.0.*")]
+[assembly : AssemblyVersion ("1.0.*")]
//
// In order to sign your assembly you must specify a key to use. Refer to the
@@ -57,6 +55,6 @@
// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
// documentation for more information on this.
//
-[assembly: AssemblyDelaySign(false)]
-[assembly: AssemblyKeyFile("")]
-[assembly: AssemblyKeyName("")]
+[assembly : AssemblyDelaySign (false)]
+[assembly : AssemblyKeyFile ("")]
+[assembly : AssemblyKeyName ("")]
\ No newline at end of file
Modified: struts/sandbox/trunk/overdrive/Nexus/Web/Global.asax.cs
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/overdrive/Nexus/Web/Global.asax.cs?rev=190602&r1=190601&r2=190602&view=diff
==============================================================================
--- struts/sandbox/trunk/overdrive/Nexus/Web/Global.asax.cs (original)
+++ struts/sandbox/trunk/overdrive/Nexus/Web/Global.asax.cs Tue Jun 14 07:54:49 2005
@@ -1,76 +1,67 @@
using System;
-using System.Collections;
using System.ComponentModel;
using System.Web;
-using System.Web.SessionState;
-namespace Nexus
+namespace Nexus
{
/// <summary>
/// Summary description for Global.
/// </summary>
- public class Global : System.Web.HttpApplication
+ public class Global : HttpApplication
{
/// <summary>
/// Required designer variable.
/// </summary>
- private System.ComponentModel.IContainer components = null;
+ private IContainer components = null;
- public Global()
+ public Global ()
{
- InitializeComponent();
- }
-
- protected void Application_Start(Object sender, EventArgs e)
- {
-
+ InitializeComponent ();
}
-
- protected void Session_Start(Object sender, EventArgs e)
- {
+ protected void Application_Start (Object sender, EventArgs e)
+ {
}
- protected void Application_BeginRequest(Object sender, EventArgs e)
+ protected void Session_Start (Object sender, EventArgs e)
{
-
}
- protected void Application_EndRequest(Object sender, EventArgs e)
+ protected void Application_BeginRequest (Object sender, EventArgs e)
{
-
}
- protected void Application_AuthenticateRequest(Object sender, EventArgs e)
+ protected void Application_EndRequest (Object sender, EventArgs e)
{
-
}
- protected void Application_Error(Object sender, EventArgs e)
+ protected void Application_AuthenticateRequest (Object sender, EventArgs e)
{
-
}
- protected void Session_End(Object sender, EventArgs e)
+ protected void Application_Error (Object sender, EventArgs e)
{
-
}
- protected void Application_End(Object sender, EventArgs e)
+ protected void Session_End (Object sender, EventArgs e)
{
+ }
+ protected void Application_End (Object sender, EventArgs e)
+ {
}
-
+
#region Web Form Designer generated code
+
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
- private void InitializeComponent()
- {
- this.components = new System.ComponentModel.Container();
+ private void InitializeComponent ()
+ {
+ this.components = new Container ();
}
+
#endregion
}
-}
-
+}
\ No newline at end of file
Modified: struts/sandbox/trunk/overdrive/Nexus/Web/WebHelper.cs
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/overdrive/Nexus/Web/WebHelper.cs?rev=190602&r1=190601&r2=190602&view=diff
==============================================================================
--- struts/sandbox/trunk/overdrive/Nexus/Web/WebHelper.cs (original)
+++ struts/sandbox/trunk/overdrive/Nexus/Web/WebHelper.cs Tue Jun 14 07:54:49 2005
@@ -1,5 +1,3 @@
-using System;
-
namespace Nexus
{
/// <summary>
@@ -8,11 +6,11 @@
///
public class WebHelper
{
- public WebHelper()
+ public WebHelper ()
{
//
// TODO: Add constructor logic here
//
}
}
-}
+}
\ No newline at end of file
Modified: struts/sandbox/trunk/overdrive/Nexus/Web/WebViewHelper.cs
URL: http://svn.apache.org/viewcvs/struts/sandbox/trunk/overdrive/Nexus/Web/WebViewHelper.cs?rev=190602&r1=190601&r2=190602&view=diff
==============================================================================
--- struts/sandbox/trunk/overdrive/Nexus/Web/WebViewHelper.cs (original)
+++ struts/sandbox/trunk/overdrive/Nexus/Web/WebViewHelper.cs Tue Jun 14 07:54:49 2005
@@ -11,7 +11,6 @@
///
public class WebViewHelper : ViewHelper
{
-
#region Error Builders
/// <summary>
@@ -95,4 +94,4 @@
#endregion
}
-}
+}
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org