Plugins/ViewManagerPlugins/Listspace/Listspace.py

changeset 825
9cdec3c5bc07
parent 791
9ec2ac20e54e
child 945
8cd4d08fa9f6
child 1510
e75ecf2bd9dd
--- a/Plugins/ViewManagerPlugins/Listspace/Listspace.py	Fri Jan 07 12:08:01 2011 +0100
+++ b/Plugins/ViewManagerPlugins/Listspace/Listspace.py	Fri Jan 07 12:38:39 2011 +0100
@@ -12,8 +12,6 @@
 from PyQt4.QtCore import *
 from PyQt4.QtGui import *
 
-from E5Gui.E5Application import e5App
-
 from ViewManager.ViewManager import ViewManager
 
 import QScintilla.Editor
@@ -205,9 +203,6 @@
             self.trUtf8('Save As...'), self.__contextMenuSaveAs)
         self.__menu.addAction(UI.PixmapCache.getIcon("fileSaveAll.png"),
             self.trUtf8('Save All'), self.__contextMenuSaveAll)
-        self.projectMenuAct = \
-            self.__menu.addAction(UI.PixmapCache.getIcon("fileSaveProject.png"),
-                self.trUtf8('Save to Project'), self.__contextMenuSaveToProject)
         self.__menu.addSeparator()
         self.__menu.addAction(UI.PixmapCache.getIcon("print.png"),
             self.trUtf8('Print'), self.__contextMenuPrintFile)
@@ -223,7 +218,6 @@
                 self.contextMenuEditor = self.editors[row]
                 if self.contextMenuEditor:
                     self.saveMenuAct.setEnabled(self.contextMenuEditor.isModified())
-                    self.projectMenuAct.setEnabled(e5App().getObject("Project").isOpen())
                     self.__menu.popup(self.viewlist.mapToGlobal(point))
         
     def canCascade(self):
@@ -599,13 +593,6 @@
         """
         self.saveEditorsList(self.editors)
         
-    def __contextMenuSaveToProject(self):
-        """
-        Private method to save the selected tab to the current project.
-        """
-        if self.contextMenuEditor:
-            self.saveEditorToProjectEd(self.contextMenuEditor)
-        
     def __contextMenuPrintFile(self):
         """
         Private method to print the selected tab.

eric ide

mercurial