plugins/c_ext/c_ext.py
changeset 656 c1792dfc8c7e
parent 651 cbeb769b0a56
child 658 94417ab25510
--- a/plugins/c_ext/c_ext.py	Mon Dec 19 01:56:13 2011 +0100
+++ b/plugins/c_ext/c_ext.py	Tue Dec 20 23:37:06 2011 +0100
@@ -26,9 +26,13 @@
       </xsd:element>
     </xsd:schema>
     """
+    EditorType = CFileEditor
+    
     def __init__(self):
         filepath = self.CFileName()
         
+        self._View = None
+        
         self.Buffering = False
         self.CFile = CFileClasses["CFile"]()
         if os.path.isfile(filepath):
@@ -140,13 +144,6 @@
         elif name == "Publish":
             return self.CFile.publishFunction.gettext()
         return ""
-    
-    def _OpenView(self):
-        app_frame = self.GetPlugRoot().AppFrame
-        
-        cfileeditor = CFileEditor(app_frame.TabsOpened, self, app_frame)
-        
-        app_frame.EditProjectElement(cfileeditor, self.GetFilename())
                 
     PluginMethods = [
         {"bitmap" : os.path.join("images", "EditCfile"),
@@ -267,7 +264,8 @@
         matiec_flags = '"-I%s"'%os.path.abspath(self.GetPlugRoot().GetIECLibPath())
         
         return [(Gen_Cfile_path, str(self.CExtension.getCFLAGS() + matiec_flags))],str(self.CExtension.getLDFLAGS()),True
-        
+
+
 #-------------------------------------------------------------------------------
 #                      Current Buffering Management Functions
 #-------------------------------------------------------------------------------