Exemple #1
0
 def transform(self):
     StatusBar.setStatus("Computing GEM smell view [can take a while]")
     fto = remove(label == 'ForTestersOnly') # huge performace boost
     gemLayout()
     StatusBar.setStatus("Transforming to binPack ...")
     add(fto)
     binPackLayout()
     center()
Exemple #2
0
 def __execScripts(self):
     StatusBar.setStatus("initializing scripts")
     TSMELLS_VIZ= os.environ['TSMELLS'] + '/src/viz'
     execfile(TSMELLS_VIZ + '/gui/TDockable.py')
     execfile(TSMELLS_VIZ + '/gui/TMenu.py')
     execfile(TSMELLS_VIZ + "/gui/Metrics.py")
     execfile(TSMELLS_VIZ + "/gui/GraphViews.py")
     #execfile(TSMELLS_VIZ + '/gui/TestCaseList.py')
     execfile(TSMELLS_VIZ + '/gui/SmellIndentiKit.py')
     execfile(TSMELLS_VIZ + '/gui/ToSourceContext.py')
     execfile(TSMELLS_VIZ + '/gui/TestSuiteTree.py')
     execfile(TSMELLS_VIZ + '/gui/RescalePanel.py')
     execfile(TSMELLS_VIZ + '/gui/StinkParade.py')
Exemple #3
0
    def run(self):
        start = time()
        g.nodes.visible = 0
        self.gl.resetGraph()

        unwanted = self.pre()       # abstract, bring the graph in the correct state.
        unwanted = remove(unwanted) # return unwanted nodes, those that should be hidden
        g.nodes.visible = 0

        Guess.setSynchronous(true)
        self.transform()            # abstract, execute the layout algorithm(s)
        Guess.setSynchronous(false)
        resetLook()

        g.nodes.visible = 1
        g.edges.visible = 1
        self.__restore(unwanted)
        self.post()                 # abstract, fix colors, position etc

        el = str(time() - start)
        el = el.split('.')[0] +  '.' + el.split('.')[1][0:3]
        StatusBar.setStatus("Done. [" + el + "sec]")
        self.__moveOutOfTheWay()
Exemple #4
0
    def run(self):
        global glzz
        StatusBar.runProgressBar(true)

        self.__loadGdf()
        self.__loadPickleFiles()
        self.__execScripts()
        glzz = Globalz()
        self.__constructTMenu()
        self.__constructContextActions()
        self.__constructPanels()

        StatusBar.runProgressBar(false)
        StatusBar.setStatus("done.")
Exemple #5
0
def test():
    StatusBar.setStatus("test", 0)
Exemple #6
0
 def transform(self):
     StatusBar.setStatus("computing radial suite view")
     radialLayout(root)
Exemple #7
0
def test():
	StatusBar.setStatus("test",0)
Exemple #8
0
 def __loadGdf(self):
     StatusBar.setStatus("loading GDF [can take a while]")
     setDisplayBackground("black")
     makeFromGDF(os.environ['TSMELLS_GDF'])
     g.edges.color = 'lightgray'
     g.nodes.visible = 0