def CustomContextMenuHandler(self, pos):
menu = QtGui.QMenu(self)
menu.addAction(QtGui.QAction("Xref from...", self,
statusTip="List the references where this element is used",
triggered=self.actionXref))
menu.addAction(QtGui.QAction("Go to...", self,
statusTip="Go to element definition",
triggered=self.actionGoto))
menu.addAction(QtGui.QAction("Rename...", self,
statusTip="Rename an element (class, method, ...)",
triggered=self.actionRename))
menu.addAction(QtGui.QAction("Info...", self,
statusTip="Display info of an element (anything useful in the document)",
triggered=self.actionInfo))
menu.addAction(QtGui.QAction("Reload sources...", self,
statusTip="Reload sources (needed when renaming changed other tabs)",
triggered=self.reload_java_sources))
menu.exec_(QtGui.QCursor.pos())
评论列表
文章目录