Example #1
0
 def __setupMDSession(self):
     print "startmdsess called"
     """
     Sets up a MagicDraw session, as appropriate
     """
     ##
     ## Maddalena: set up MagicDraw session here
     self.__highlighter = ActHi(self.__project)
     self.__mdSession = object()
     pass
Example #2
0
            server = 1
        except:
            gl.log(
                "ERROR: server inaccessable - not started or something. geez.")

        if server == 1:
            step = None
            step = s.step()

            if debug == 1:
                gl.log("DEBUG: " + str(step))

            if step is not None:
                project = Application.getInstance().getProjectsManager(
                ).getActiveProject()
                ah = ActHi(project, False)
                if len(step) == 2:
                    msg, end = step
                    if msg == "Activity started":
                        gl.log("Starting sub activity")
                else:
                    activity, node, state, message, end = step
                    gl.log(str(message))
                    ah.highlight(activity, node, state)

                    if end is True:
                        n = JOptionPane.showConfirmDialog(
                            None,
                            "Activity finished. Would you like to see \nthe final output?",
                            "Activity Final", JOptionPane.YES_NO_OPTION)
                        if n == JOptionPane.YES_OPTION: