Ejemplo n.º 1
0
 def __init__(self, botOrGefViewer):
     gefViewer = self._getViewer(botOrGefViewer) if isinstance(botOrGefViewer, SWTBotGefViewer) else botOrGefViewer
     SWTBotGefViewer.__init__(self, gefViewer)
     self.logger = logging.getLogger("Centre finding")
Ejemplo n.º 2
0
 def _getViewer(obj):
     viewerField = SWTBotGefViewer.getDeclaredField("graphicalViewer")
     viewerField.setAccessible(True)
     return viewerField.get(obj)