def createMenuItems(self, invocation): self.invocation = invocation context = invocation.getInvocationContext() if context in [invocation.CONTEXT_TARGET_SITE_MAP_TREE]: sendToGAT = JMenuItem("Enviar Issues para GAT CORE") # sendToGAT.setForeground(Color.ORANGE) FONT = sendToGAT.getFont() sendToGAT.setFont( Font(FONT.getFontName(), Font.BOLD, FONT.getSize())) sendToGAT.addActionListener(self.actionTarget) menuItems = ArrayList() menuItems.add(sendToGAT) return menuItems else: # TODO: add support for other tools pass