Author: mhutch
Date: 2005-08-30 15:41:14 -0400 (Tue, 30 Aug 2005)
New Revision: 49148
Modified:
trunk/aspeditor/src/chrome/content/aspdesigner.js
Log:
Fix breakage, add some traces
Modified: trunk/aspeditor/src/chrome/content/aspdesigner.js
===================================================================
--- trunk/aspeditor/src/chrome/content/aspdesigner.js 2005-08-30 19:40:33 UTC
(rev 49147)
+++ trunk/aspeditor/src/chrome/content/aspdesigner.js 2005-08-30 19:41:14 UTC
(rev 49148)
@@ -424,6 +424,11 @@
throwException: function (location, msg)
{
JSCallPlaceClrCall ('ThrowException', '', new Array(location,
msg));
+ },
+
+ removeControl: function (aControlId)
+ {
+ JSCallPlaceClrCall ('RemoveControl', '', new Array(aControlId));
},
}
@@ -466,27 +471,29 @@
function JSCall_DoCommand (arg) {
var command = arg [0];
-
- switch(command) {
- case CUT:
+ dump ('Executing command "' + command +'"...');
+
+ switch (command) {
+ case "Cut":
editor.cut ();
break;
- case COPY:
+ case "Copy":
editor.copy ();
break;
- case PASTE:
+ case "Paste":
editor.paste ();
break;
- case UNDO:
+ case "Undo":
editor.undo ();
break;
- case REDO:
+ case "Redo":
editor.redo ();
break;
default :
- host.throwException ('DoComand', 'Invalid or no command');
+ host.throwException ('DoCommand', 'Invalid or no command');
break;
- }
+ }
+ return "";
}
@@ -568,11 +575,16 @@
//_____________________________________________________________________________
function aspNetEditor_initialize()
{
- dump ("Initialising...");
- editor = new aspNetEditor ();
- editor.initialize ();
- host = new aspNetHost ();
- host.initialize ();
+ dump ("Initialising...");
+ dump ("\tCreating host...");
+ editor = new aspNetEditor ();
+ dump ("\tCreated editor, initialising...");
+ editor.initialize ();
+ dump ("\tEditor initialised, creating host...");
+ host = new aspNetHost ();
+ dump ("\tHost created, initialising...");
+ host.initialize ();
+ dump ("Initialised.");
}
function aspNetEditor()
@@ -951,7 +963,7 @@
var destinationOffset = 0;
var selectedElement = this.getSelectedElement ('');
var focusNode = this.getSelection ().focusNode;
- var controlHTML = this.transformControlsInHtml
(aControlHtml);
+ var controlHTML = this.transformControlsToHtml
(aControlHtml);
var parentControl =
this.getElementOrParentByTagName
(CONTROL_TAG_NAME,
focusNode);
@@ -1008,7 +1020,7 @@
dump ('Will update control:' + aControlId);
this.hideResizers ();
var newDesignTimeHtml =
- this.transformControlsInHtml
(aNewDesignTimeHtml);
+ this.transformControlsToHtml
(aNewDesignTimeHtml);
try {
var oldControl =
this.getDocument ().getElementById
(aControlId);
@@ -1551,4 +1563,4 @@
if(DEBUG) {
JSCallPlaceClrCall ('DebugStatement', '', new
Array(aTxtAppend));
}
-}
\ No newline at end of file
+}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches