ConfigTreeNode.py
changeset 2696 9bd639e9124e
parent 2695 a4704fb40b0b
child 2711 ecfb59e4ecb0
child 3096 fc5a0b1ece10
equal deleted inserted replaced
2695:a4704fb40b0b 2696:9bd639e9124e
   467         return res
   467         return res
   468 
   468 
   469     def GetContextualMenuItems(self):
   469     def GetContextualMenuItems(self):
   470         return None
   470         return None
   471 
   471 
   472     def GetView(self):
   472     def GetView(self, onlyopened=False):
   473         if self._View is None and self.EditorType is not None:
   473         if self._View is None and not onlyopened and self.EditorType is not None:
   474             app_frame = self.GetCTRoot().AppFrame
   474             app_frame = self.GetCTRoot().AppFrame
   475             self._View = self.EditorType(app_frame.TabsOpened, self, app_frame)
   475             self._View = self.EditorType(app_frame.TabsOpened, self, app_frame)
   476 
   476 
   477         return self._View
   477         return self._View
   478 
   478 
   479     def _OpenView(self, name=None, onlyopened=False):
   479     def _OpenView(self, name=None, onlyopened=False):
   480         view = self.GetView()
   480         view = self.GetView(onlyopened)
   481 
   481 
   482         if view is not None:
   482         if view is not None:
   483             if name is None:
   483             if name is None:
   484                 name = self.CTNFullName()
   484                 name = self.CTNFullName()
   485             app_frame = self.GetCTRoot().AppFrame
   485             app_frame = self.GetCTRoot().AppFrame