How to find the type of a selected member in Eclipse?
问题 I am co-developing an Eclipse plugin where Users can select Classes and Methods from their code and attach them to notes that are saved in a different file. I want to find a way to determine what type of member was selected by the user when they choose to create an attachment. For example: I want to attach a class named "HelloClass" to a note called "HelloNote". I select the "HelloClass" member name in the editor, right-click and select my "Create Attachment" action. This action calls the