def compileCurrent(): comp=ICore.documentController().activeDocument().url() project=ICore.projectController().findProjectForUrl(comp) if project is not None: items=project.filesForUrl(comp) for item in items: builder=project.buildSystemManager().builder(item) buildjob=builder.build(item) ICore.runController().registerJob(buildjob)
def contextMenuExtension(ctx, cme): comp=ICore.documentController().activeDocument().url() project=ICore.projectController().findProjectForUrl(comp) if project is not None: cme.addAction(cme.ExtensionGroup, act)