Exemple #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")
Exemple #2
0
 def _getViewer(obj):
     viewerField = SWTBotGefViewer.getDeclaredField("graphicalViewer")
     viewerField.setAccessible(True)
     return viewerField.get(obj)