public override object GetAutomationObject() { if (_automationObject == null) { _automationObject = new NemerleOAFileItem((OAProject)ProjectMgr.GetAutomationObject(), this); } return(_automationObject); }
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// public override object GetAutomationObject () { if (m_automationObject == null) { m_automationObject = new OAAndroidProjectFileItem (ProjectMgr.GetAutomationObject () as OAProject, this); } return m_automationObject; }
/// <summary> /// Get the automation object for the FolderNode /// </summary> /// <returns>An instance of the Automation.OAFolderNode type if succeeded</returns> public override object GetAutomationObject() { if (ProjectMgr == null || ProjectMgr.IsClosed) { return(null); } return(new OAFolderItem(ProjectMgr.GetAutomationObject() as OAProject, this)); }
public override int QueryService(ref Guid guidService, out object result) { if (guidService == typeof(EnvDTE.Project).GUID) { result = ProjectMgr.GetAutomationObject(); return(VSConstants.S_OK); } else if (guidService == typeof(EnvDTE.ProjectItem).GUID) { result = GetAutomationObject(); return(VSConstants.S_OK); } return(base.QueryService(ref guidService, out result)); }
/// <summary> /// Get an instance of the automation object for a FileNode /// </summary> /// <returns> /// An instance of the Automation.OAFileNode if succeeded /// </returns> public override object GetAutomationObject() { return(_AutomationObject ?? (_AutomationObject = new OAPsProjectFileItem(ProjectMgr.GetAutomationObject() as OAProject, this))); }