eclipse-rcp

Getting parameter of parameterized command in Eclipse RCP 4.2

若如初见. 提交于 2020-01-05 02:02:45
问题 In Eclipse 3.7 we could do this: public class HelloName extends AbstractHandler { @Override public Object execute(ExecutionEvent event) throws ExecutionException { String name = event .getParameter("de.vogella.rcp.commands.parameterfirst.commandParameter1"); MessageDialog.openInformation(HandlerUtil.getActiveShell(event), "Hello", "Hello " + name); return null; } } In Eclipse 4.2 I made this handler, and I want the part id for findPart() to be given as a parameter, but where can I get the

Eclipse RCP update a View after changes in the editor

时光怂恿深爱的人放手 提交于 2020-01-04 12:15:40
问题 i am new to Eclipse RCP and have the following Scenario: One plugin which is the Application Another witch is a view and does show some Data And a third which is the editor. in the view I can right click on a record and choose edit what does open the Editor and lets me change the data. No I'd like to refresh the View when I save the Editor. I think this is a classical scenario to implement a Whiteboard pattern. Unfortunately I am not really familiar with it, may be some one could show a

Eclipse 4 RCP Deployment applicationXMI argument missing

。_饼干妹妹 提交于 2020-01-04 11:08:49
问题 I'm trying to export an Eclipse 4 RCP application that works when I run it through Eclipse but breaks when I try and deploy it. I found a solution to the problem here but when I look at the build.properties file it does not show what is included in the export. It shows Binary Build and Source Build. I checked the Application.e4xmi file for both and it doesn't seem to have an effect. My build.properties file looks like this: output.. = bin/ bin.includes = META-INF/,\ .,\ plugin.xml,\

Eclipse force handlers to to re-evaluate

本秂侑毒 提交于 2020-01-04 08:16:52
问题 How can I force Eclipse to do a re-evaluation of the activeWhen-conditions of all handlers? Situation: I have defined a command on a TreeViewer. This command has more than one possible handlers. Handlers have defined some conditions to decide whether the handler shall be activated or not. My problem is that there is no re-evaluation of the handler conditions until I de-seclect the item in the tree (e.g. select another item) and select it again. If the selection does not change but the raise

Eclipse minimal configuration for plug-in deployment

倖福魔咒の 提交于 2020-01-04 05:48:07
问题 I am developing eclipse plug-in right now. Default eclipse download contains a lot of plug-ins which my plug-in doesn't require. It causes eclipse folder to have a larger size then it is needed. So I wonder if there are any ways to create such minimal eclipse configuration, so it will be able to load my plug-in and be free of not require plug-ins? Are there any ways to do it automatically? 回答1: So I wonder if there are any ways to create such minimal eclipse configuration, so it will be able

Eclipse RCP 3.7 - feature icon in the about dialog does not apear

我只是一个虾纸丫 提交于 2020-01-04 05:25:11
问题 I followed this tutorial, but the feature icon does not apear in the about dialog. What could be the reason? I have created one feature-X-based product. I defined a plugin Y as feature X's branding plugin I added about.ini and an 32x32 px icon to the plugin. about.ini: aboutText=Dicke Alice featureImage=images/icons/icon_32x32.png 回答1: It looks like the feature's image will only show up after deployment, but not when started from IDE. 来源: https://stackoverflow.com/questions/11415139/eclipse

Eclipse GUI testing tool?

╄→尐↘猪︶ㄣ 提交于 2020-01-04 02:40:29
问题 what do you use for automatic GUI testing an eclipse rcp app? I checked Xored Q7 which looks pretty awesome, but it doesn't work 100%, the same goes for froglogic squish. I need something for testing SWT/JFACE and GEF(but i could live without GEF support). Is there any other mature testing tool? 回答1: I'm in charge of Xored's Q7 development, and we'll be very interesting learning more about your test case (where Q7 does not work 100% perfectly). Can you please email me or Xored support and I'm

Dynamically adding a file to a product archive built by Tycho

送分小仙女□ 提交于 2020-01-04 02:20:11
问题 Adding a file to a product distribution archive built with Maven/Tycho is possible: see this link But how can I add a dynamically chosen file to my archive? For example this could be a data file. 回答1: The article you linked deals with removing files from a product distribution archive, which can be quite challenging. Adding files to a distribution archive is a lot simpler , and doesn't require any of the low-level p2 hacking described in the article. In order to add a file to a product

Eclipse Incremental Builder Plugin does not work

情到浓时终转凉″ 提交于 2020-01-03 19:58:02
问题 I recently started working with Eclipse's Plug-in development environment on Eclipse RCP (4.2.1 Juno). I created a project with the Incremental Builder Template. My goal is to perform a build process on the user code after Java Build is over. The problem is, I don't know how to use the Builder. I tried Exporting the project into a "Deployable Plug-ins and Fragments" jar file, and then placed the jar file in several places, like Development Workspace, Runtime Workspace, and in the plugins

Platform specific code in Eclipse

浪子不回头ぞ 提交于 2020-01-03 19:03:15
问题 We're developing a java desktop/Eclipse RCP application with a graph-layout component. We faced issues with the GUI scaling on newer(8, 8.1, 10) versions on windows, it appeared that one can only retrieve the scaling factor through win32 api calls, so we added a little DLL that does this and call it through JNI. Works fine on windows, works fine in maven on linux/osx since the class is never instantiated there. The problem is that to get the scaling factor, we need the window handle, which we