How can I find the Editor extension in an ArcGIS Engine application (i.e. no access to the IApplication object)?
There is an example method at http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//0001000004nn000000 ...
private void GetEditorExtension(IApplication application)
{
//Find extension by CLSID or ProgId.
UID extensionID = new UIDClass();
extensionID.Value = "esriEditor.Editor";
//{F8842F20-BB23-11D0-802B-0000F8037368}.
IExtension editExtension = application.FindExtensionByCLSID(extensionID);
}
However, IApplication is only available for code that runs directly in ArcMap, not stand-alone apps.
If it helps, I'm writing this inside a custom tool, so I also have acces to the HookHelperClass.