def CustomContextMenuHandler(self, pos):
menu = QtGui.QMenu(self)
menu.addAction(QtGui.QAction("Xref ...", 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.addAction(QtGui.QAction("Open bytecodes...", self,
statusTip="",
triggered=self.display_bytecodes))
menu.exec_(QtGui.QCursor.pos())
sourcewindow.py 文件源码
python
阅读 21
收藏 0
点赞 0
评论 0
评论列表
文章目录