eclipse-pde

Automating unit tests (junit) for Eclipse Plugin development

喜欢而已 提交于 2019-11-28 04:25:06
I am developing Eclipse plugins, and I need to be able to automate the building and execution of the test suite for each plugin. (Using Junit) Test are working within Eclipse, and I can break the plugins into the actual plugin and a fragment plugin for unit testing as described here , here and in a couple places here . However, each of the approaches above results in the same issue: The java ant task/commandline command that issues the build or should trigger the test, generates no observable side effects, and returns the value "13". I've tried everything I can find, and I've learned a fair

Building Eclipse plugins and features on the command line

不羁岁月 提交于 2019-11-27 12:57:07
问题 I have a bunch of Eclipse plugins and features, which I would like to build as part of a nightly (headless) build. I've managed to do this using a complicated setup involving manually specifying paths to Eclipse plugin jars, copying customTargets.xml, etc. Is there really no simpler solution? Isn't there a way to just point out my Update Site's site.xml and say "build"; i.e. the equivalent of clicking "Build All" in the Update Site project? 回答1: Given that all the answers to this question are

Automating unit tests (junit) for Eclipse Plugin development

房东的猫 提交于 2019-11-27 05:20:46
问题 I am developing Eclipse plugins, and I need to be able to automate the building and execution of the test suite for each plugin. (Using Junit) Test are working within Eclipse, and I can break the plugins into the actual plugin and a fragment plugin for unit testing as described here, here and in a couple places here. However, each of the approaches above results in the same issue: The java ant task/commandline command that issues the build or should trigger the test, generates no observable

Programmatically showing a View from an Eclipse Plug-in

家住魔仙堡 提交于 2019-11-27 01:02:17
I have a plug-in to an Eclipse RCP application that has a view. After an event occurs in the RCP application, the plug-in is instantiated, its methods are called to populate the plug-in's model, but I cannot find how to make the view appear without going to the "Show View..." menu. I would think that there would be something in the workbench singleton that could handle this, but I have not found out how anywhere. You are probably looking for this: PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView("viewId"); If called from handler of a command HandlerUtil

Programmatically showing a View from an Eclipse Plug-in

风格不统一 提交于 2019-11-26 17:28:19
问题 I have a plug-in to an Eclipse RCP application that has a view. After an event occurs in the RCP application, the plug-in is instantiated, its methods are called to populate the plug-in's model, but I cannot find how to make the view appear without going to the "Show View..." menu. I would think that there would be something in the workbench singleton that could handle this, but I have not found out how anywhere. 回答1: You are probably looking for this: PlatformUI.getWorkbench()