eclipse-plugin

eclipse plugin: get notification on debug terminate

∥☆過路亽.° 提交于 2021-02-10 20:30:55
问题 Is there a way for an eclipse plugin to get a notification when user clicks on the "Terminate Debug" button? 回答1: You can call DebugPlugin.getDefault().addDebugEventListener(listener); to set up an IDebugEventSetListener . The DebugEvent passed to the handleDebugEvents method of the listener has TERMINATE as one of the event kinds. For example this handler is from the Ant plugin: @Override public void handleDebugEvents(DebugEvent[] events) { for (int i = 0; i < events.length; i++) {

java.lang.NoClassDefFoundError: org/apache/poi/xssf/usermodel/XSSFWorkbook

ε祈祈猫儿з 提交于 2021-02-10 15:41:21
问题 I was getting this exception but I am not able to understand what is happening there. Because on compilation time my class able access apache POI classes but on runtime my classes throws exception that he is not able find org.apache.poi.xssf.usermodel.XSSFWorkbook . Till now whatever solution is provided on net I have tried everything but not understanding what I am missing. And weird thing is same code and same Apache POI library working on my friend's eclipse. We both have identical

java.lang.NoClassDefFoundError: org/apache/poi/xssf/usermodel/XSSFWorkbook

百般思念 提交于 2021-02-10 15:40:13
问题 I was getting this exception but I am not able to understand what is happening there. Because on compilation time my class able access apache POI classes but on runtime my classes throws exception that he is not able find org.apache.poi.xssf.usermodel.XSSFWorkbook . Till now whatever solution is provided on net I have tried everything but not understanding what I am missing. And weird thing is same code and same Apache POI library working on my friend's eclipse. We both have identical

Eclipse : Getting Error as Could not find jar file while installing Plugin in Eclipse

笑着哭i 提交于 2021-02-09 05:42:48
问题 I was following this below website http://visualvm.java.net/eclipse-launcher.html for installing VisualVM into Eclipse Helios Version 3.6 , for this as mentioned i downloaded visualvm_launcher_u1_eclipse_36 and also under in Eclipse Menu Window --->Preferences ---> Installed JRE ---> Pointed JDK Path in JRE Settings C:\Program Files\Java\jdk1.6.0_27 But when i tried to install this VisualVM into Eclipse by Eclipse Menu ---> Install New Software --->Add -- >Archive option i am getting the

Search in Eclipse Help for RCP returns no results

人走茶凉 提交于 2021-02-07 21:56:34
问题 I have an RCP application with help enabled on the menus. I am able to successfully bring up the help that I created. However when I type in a search term there are no results returned. What is required to enable searching my help contents from the Eclipse help engine? 回答1: The resolution was to update the version number of the plugin with the help content to rebuild the index. I was relying on the .qualifier but that is not sufficient to trigger the index being rebuilt. Once the version was

Using Eclipse JDT to find all identifiers visible within a specific node

心不动则不痛 提交于 2021-02-07 21:55:44
问题 I'm working on a plug-in to Eclipse JDT that parses Java files and offers automatic corrections to them. I'm doing so using Eclipse's API for analyzing the AST. I'm trying to write a method that calculates the environment of a method - a list of all the identifiers that are visible within the scope of the method. Another way to look at this is the list of identifiers that can be auto-completed from a specific point in Eclipse. For example: import ... public class MyClass { private static

Search in Eclipse Help for RCP returns no results

旧城冷巷雨未停 提交于 2021-02-07 21:55:37
问题 I have an RCP application with help enabled on the menus. I am able to successfully bring up the help that I created. However when I type in a search term there are no results returned. What is required to enable searching my help contents from the Eclipse help engine? 回答1: The resolution was to update the version number of the plugin with the help content to rebuild the index. I was relying on the .qualifier but that is not sufficient to trigger the index being rebuilt. Once the version was

Using Eclipse JDT to find all identifiers visible within a specific node

℡╲_俬逩灬. 提交于 2021-02-07 21:55:18
问题 I'm working on a plug-in to Eclipse JDT that parses Java files and offers automatic corrections to them. I'm doing so using Eclipse's API for analyzing the AST. I'm trying to write a method that calculates the environment of a method - a list of all the identifiers that are visible within the scope of the method. Another way to look at this is the list of identifiers that can be auto-completed from a specific point in Eclipse. For example: import ... public class MyClass { private static

Using Eclipse JDT to find all identifiers visible within a specific node

二次信任 提交于 2021-02-07 21:55:16
问题 I'm working on a plug-in to Eclipse JDT that parses Java files and offers automatic corrections to them. I'm doing so using Eclipse's API for analyzing the AST. I'm trying to write a method that calculates the environment of a method - a list of all the identifiers that are visible within the scope of the method. Another way to look at this is the list of identifiers that can be auto-completed from a specific point in Eclipse. For example: import ... public class MyClass { private static

Execute command/handler of an existing plugin from a different plugin

假装没事ソ 提交于 2021-02-07 19:56:30
问题 I have an RCP application with an existing command and handler to switch perspective programmatically. And I also have and new plugin consumed by the existing RCP application. I want this new plugin to execute the command/handler of my RCP application, what can be the possible solution for this? 回答1: You may need to define a handler for that command (not sure), but executing commands programmatically looks like this: Command command = ((ICommandService) getSite().getService(ICommandService