eclipse-plugin

PMD Eclipse Plugin error: An internal error occurred during: “ReviewCode”

寵の児 提交于 2019-12-24 21:48:43
问题 I need your help to solve my problem: I'm modifying the Eclipse PMD Plugin for introduce my own rulesets in the plugin, and when I have installed my modified plugin, the IDE starts OK, but when I test it in any Java project to check the PMD with the option "Check Code with PMD", Eclipse shows me this error message: An internal error occurred during: "ReviewCode". tried to access field net.sourceforge.pmd.CommonAbstractRule.properties from class com.mypackage.cal.cca.crregvalijav.uti.ClassASL2

Eclipse Plugin Development: How to highlight syntax in texteditor?

房东的猫 提交于 2019-12-24 21:42:20
问题 Given a java method name, i want to highlight it in the TextEditor. I have reference to the texteditor in ITextEditor. 回答1: You can create an IMarker object on a file which the Java editor will show. IFile file = ... file to mark IMarker marker = file.createMarker(IMarker.TASK); marker.setAttribute(IMarker.CHAR_START, start); marker.setAttribute(IMarker.CHAR_END, end); I have used a task marker in this example, but you can use the org.eclipse.core.resources.markers extension point to define

ERROR exporting Eclipse Plug-In

偶尔善良 提交于 2019-12-24 21:17:37
问题 I'm trying to export an Eclipse Plgug-In in Eclipse Oxygen, but I get the following errors (only 2): The error is in one of my Java Classes, emitter1, when I use the xerces import and then the Base64 Object below, but when I compile the plug-in in the IDE in runs with no errors, Here's an image of my projects tree: The import and the object are being used, like I said, in the emitter1 class, Does anyone know why this is happening and how to solve it? Maybe I can't use referenced libraries in

MAT : Eclipse is not showing any running process

走远了吗. 提交于 2019-12-24 20:42:34
问题 I have installed MAT tool in my eclipse. I have tomcat running on eclipse but no process is showing this, how to I proceed to fix get this working. I have configured eclipse to use JDK ( in installed jre ) 回答1: I have clicked on configure and given JDK path and it worked 来源: https://stackoverflow.com/questions/38522401/mat-eclipse-is-not-showing-any-running-process

Eclipse plug-in not working when deployed

99封情书 提交于 2019-12-24 20:41:42
问题 I have written an Eclipse plug-in that works fine when it's being run in the development runtime, however after creating an update site and installing, the behavior changes. For the most part the functionality does work, it just appears unable to display 2 dialog boxes. The first is a popup dialog subclassed from org.eclipse.jface.dialogs.PopupDialog. The second has been subclassed from org.eclipse.jface.dialogs.Dialog. The rest of the code around these dialogs appears to run as if they're

Eclipse Galileo Birt

好久不见. 提交于 2019-12-24 19:25:25
问题 While clicking on the Preview button or running the report in the web viewer Following ERROR is arising. org.eclipse.birt.report.presentation.aggregation.layout.RunFragment cannot be cast to org.eclipse.birt.report.presentation.aggregation.IFragment Caused by: java.lang.ClassCastException: org.eclipse.birt.report.presentation.aggregation.layout.RunFragment cannot be cast to org.eclipse.birt.report.presentation.aggregation.IFragment at org.apache.jsp.webcontent.birt.pages.layout.RunFragment

Simple SWT/JFace exercise fails to find handler

♀尐吖头ヾ 提交于 2019-12-24 19:07:05
问题 I'm working through "Eclipse 4 Plug-in Development by Example Beginner's Guide" and up to section "Time for action creating commands and handlers". This defines a simple command, handler, and menuContribution. I followed the instructions in the text, but when the menu rendered, the menu item was insensitive. I then noticed that the default implementation of the "isEnabled" method in the handler just returns "false". I changed it to "true" and that made the menu item sensitive, but when I

How to run TestNG tests in parallel using Eclipse?

别来无恙 提交于 2019-12-24 18:43:25
问题 I am new to test-ng, I am using eclipse plugin to run test cases. I have an excel file for data. when I am running, it is executing 1 by 1. I know we can execute parallel through cmd by setting parallel="methods" thread-count="2" , But it not working in Eclipse plugin. So please tell me how to run TestNG parallel in Eclipse. Thanks. 回答1: It seems here is the exact question and the answer to it: When you are running an XML file, you can specify all the settings you want for this run in the XML

Errors in updating the Android's ADT Plugin for Eclipse

天大地大妈咪最大 提交于 2019-12-24 14:32:12
问题 I have been trying everything since 2 days now, my ADT plugin is not updating: 1)I have tried going to SDK manager in my Android SDK Windows folder, Ran it as Administrator and installed Android SDK Build-tools but going to Windows>Preferences>Android I am still getting the error on selecting this sdk as SDK Path ( This Android SDK requires Android Developer Toolkit version 22.6.2 or above. Current version is 10.0.1.v201103111512-110841. Please update ADT to the latest version. ): 2) And also

Eclipse with TFS plugin - looping login

淺唱寂寞╮ 提交于 2019-12-24 13:57:00
问题 few days ago (without installing anything new as far as I know) my Eclipse environment started looping authentiacation action when loging to Team Foundation Services. Everytime I want to explore, checkin and so on I see dialog "connecting to server" then dialog loading indentity providers appears and after it white blank screen and all repeats again and again. I tried to find if I can reset stored password but there is no one in Credentials Manager in Windows (related to TFS address). I tried