eclipse-rcp

Running Eclipse Junit plug-in tests using JUnit5

柔情痞子 提交于 2020-01-15 11:11:37
问题 When I run a simple example like the eclipse plug-in test, I get the following error: java.lang.Exception: No tests found matching [{ExactMatcher:fDisplayName=test], {ExactMatcher:fDisplayName=test(ru.cft.platform.deployment.ui.plugin.reverse.qqq)], {LeadingIdentifierMatcher:fClassName=ru.cft.platform.deployment.ui.plugin.reverse.qqq,fLeadingIdentifier=test]] from org.junit.internal.requests.ClassRequest@310850ef at org.junit.internal.requests.FilterRequest.getRunner(FilterRequest.java:40) at

Custom marker view with own interactions

末鹿安然 提交于 2020-01-15 03:51:14
问题 I am trying to create my own problem view. I found the following tutorial and all works fine. But is there any possibility to add an own DoubleClickListener or something like that? I want to react on user actions, which are executed on the list. Thanks for any advices. 回答1: Here is what I would do: by overriding public void createPartControl(final Composite parent) you will have the parent composite. By calling parent.getChildren() you can iterate over the available Controls.

Access relative path from eclipse-plugin

こ雲淡風輕ζ 提交于 2020-01-14 13:49:08
问题 Does anyone know how to get a file with uri from a self-made Eclipse Plug-in? Absolute paths would be no problem: URI.createFileURI("C:/Users/hp/workspace(dke)/SMartGen/StarSchema.profile.uml"); But how do I access local resources relatively? URI.createFileURI("jar:file:/%ECLIPSE_HOME%/plugins/SMartGen.jar!StarSchema.profile.uml"); doesn't work this way.... Happy for every answer. lg martin 回答1: Use the FileLocator. Example: URL iconUrl = FileLocator.find(Platform.getBundle("myBundle"), new

RCPTT running Java code from the script

家住魔仙堡 提交于 2020-01-14 09:08:49
问题 I am looking for some way to run some Java code directly from the test script I am writing for our RCP application. I need to set up a multi-cast socket in the test before clicking a particular button in the application. Something like this: MulticastSocket socket = new MulticastSocket(); socket.setNetworkInterface(interfaceTarget); InetAddress group = InetAddress.getByName("220.2.2.2"); socket.joinGroup(group); I was unable to find any way to do this just wondering if this is possible? 回答1:

Using WebKit for SWT Browser inside Eclipse plugin

让人想犯罪 __ 提交于 2020-01-13 20:39:13
问题 I tried today to use the WebKit as the Browser's underlying renderer for my eclipse plugin but no luck. I followed the recommended instructions and my current environment is as follows: OS: Windows 7 (x64) Safari installed (in the PATH too) 32 bit SWT (eclipse RCP indigo SR1 32) added the following line to eclipse.ini -Dorg.eclipse.swt.browser.DefaultType=webkit Now when I try to instantiate the browser: Browser b = new Browser(parent, SWT.WEBKIT); b.setUrl("http://whatismybrowser.com"); I

How to inject parameter with ParameterizedCommand in Eclipse 4.3?

久未见 提交于 2020-01-13 12:10:17
问题 I am currently implementing an Eclipse 4.3 application and running into a problem. I try to parametrize a command to delete specific files. My approach is corresponding to Getting parameter of parameterized command in Eclipse RCP 4.2, but i somehow don't get it working right. In my Application.e4xmi I have added a command with a parameter: <commands xmi:id="_K1MVgDGKEeOO8o2ChqdHMA" elementId="first.application.command.deleteproject" commandName="deleteProjectCommand"> <parameters xmi:id="

How to inject parameter with ParameterizedCommand in Eclipse 4.3?

大憨熊 提交于 2020-01-13 12:06:57
问题 I am currently implementing an Eclipse 4.3 application and running into a problem. I try to parametrize a command to delete specific files. My approach is corresponding to Getting parameter of parameterized command in Eclipse RCP 4.2, but i somehow don't get it working right. In my Application.e4xmi I have added a command with a parameter: <commands xmi:id="_K1MVgDGKEeOO8o2ChqdHMA" elementId="first.application.command.deleteproject" commandName="deleteProjectCommand"> <parameters xmi:id="

How to customize eclipse perspective programmatically?

故事扮演 提交于 2020-01-12 19:01:28
问题 I want to make the same behavior I got when I do a right click on a perspective and choose customize to get this window I want to customize menus and toolbars for my perspective only programmatically. Actually, I want to remove most menus and toolbars in my perspective only and let them show up again when I change to any other perspective Can you please help me with this ? 回答1: This guide shows how to customise toolbars programmatically based on the current perspective, and hints that the

Eclipse RCP application - Create a window programmatically

邮差的信 提交于 2020-01-12 10:08:10
问题 In an RCP application, how I can programmatically define and open a new window? I want to open several window - each window show different data. How can I set different input for each window? I want to simulate the same functionality of Eclipse IDE (Window --> New Window), but I want each new opened window to have different input. I'm trying to use : IWorkbenchPage newPage = window.openPage(inputObject); How can I programmatically define the "inputObject" that identifies the data shown in the

Eclipse RCP with project dependency

末鹿安然 提交于 2020-01-10 20:05:31
问题 I have developed an RCP plug-in (not standalone), and a Java Project with library code that the plug-in needs to call. I have configured the Java Project in the same workspace. The plug-in has a project dependency on the Java Project. The code compiles (the plug-in does some stuff with the Java Project / library code). When I run the plug-in, I get a ClassNotFoundException: java.lang.ClassNotFoundException: com.mycode.ArgSet at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal