eclipse-rcp

“Unable to acquire application service” error when starting an Eclipse application built with Tycho

佐手、 提交于 2019-12-23 23:37:40
问题 This is a question which is frequently asked in the Tycho community: I want to build an Eclipse distribution/RCP application with Tycho. To do this, I have created an eclipse-repository project with a product file which specifies the features to be included. Then, I have configured the tycho-p2-director-plugin to create an installation of the product. The build runs fine, but the installation fails to start up. The log contains the following error: java.lang.IllegalStateException: Unable to

Add link to MessageDialog message

旧城冷巷雨未停 提交于 2019-12-23 21:07:19
问题 I am doing Eclipse plugin development. I am using the class MessageDialog . The API can be found here. I want to add a link like I did about with "here" in the message of the MessageDialog . Here is what I am doing: String errorMessage = "You have received an error. Please visit " + URL_NEEDED_HERE MessageDialog.openError(getShell(), "Get Existing Data Sources Error", errorMessage); The URL keeps showing up as just a String. Is it possible for it to show as a link? 回答1: As @greg-449 said, the

Programmatically resize a view in Eclipse

我只是一个虾纸丫 提交于 2019-12-23 19:01:43
问题 I'm testing an non-e4 RCP application using SWTBot and I need to change the size of my view. (Move the sash-bar) I unsuccessfully tried Resize my view using SWTBot (no such api) Resize my view using Eclipse 3 API (no supported) Resize my view using underlying e4 model (resizing not working) e4 model seams to be promising, but I'm missing something, so it doesn't work. I can Get MPart of my view: view = ePartService.findPart(ID) Get MTrimmedWindow: window = (view as EObject).eContainer as

How to follow test first approach with Equinox/OSGi - Tycho - Eclipse RCP environment

僤鯓⒐⒋嵵緔 提交于 2019-12-23 12:27:38
问题 I joined a project where the development is carried on Eclipse RCP platform with the use of Equinox/OSGi, Tycho. I am slowly getting familiar with classpath/classloading mechanism of OSGi, how tycho, equinox works etc. I am writing plain unit tests with the use of mocking by collecting them in test bundles (which are fragments of the target bundles) however I am encountering ClassNotFound errors, issues with attaching source code. I have seen recommendations such as running tests as rcp

Tycho build error: “… requires bundle … but it could not be found”

不想你离开。 提交于 2019-12-23 10:24:54
问题 We have an eclipse Luna plugin application which we're trying to build with Tycho. When we try to do a mvn clean verify , we're getting this type of message: [ERROR] Cannot resolve project dependencies: [ERROR] Software being installed: our.app 1.0.0.qualifier [ERROR] Missing requirement: our.app 1.0.0.qualifier requires 'bundle org.eclipse.core.runtime 3.7.0' but it could not be found When we look at the logs it appears that any Eclipse plugin that is required will give us this error, and

java.lang.UnsatisfiedLinkError: no gluegen-rt in java.library.path RCP Application

两盒软妹~` 提交于 2019-12-23 09:38:24
问题 I followed this tutorial: http://wadeawalker.wordpress.com/2010/10/17/tutorial-faster-rendering-with-vertex-buffer-objects/ When I try to start my application, I'm getting a java.lang.UnsatisfiedLinkError: no gluegen-rt in java.library.path Error. Can anyone help me? Teddy 回答1: Libraries are usually prefaced with "lib", thus the file you are looking for should be called "libgluegen-rt.so". It must be located somewhere in /usr folder . Since you are using eclipse you can select the Build-Path

Eclipse editor: show markers on custom column of vertical ruler

泄露秘密 提交于 2019-12-23 08:49:19
问题 I asked a question before about VerticalRulers, with this hint I added a second Column to the VerticalRuler and tried to add a Marker to it, but the Marker always appears on the standard Column, but not on mine. I added a second line number column to illustrate my problem. How do I change this behavior? Thanks for any help. @Override protected IVerticalRuler createVerticalRuler(){ IVerticalRuler ruler = super.createVerticalRuler(); ruler2 = (CompositeRuler) ruler; column1 = new

JFace/SWT: Change the labels for buttons in InputDialog

一世执手 提交于 2019-12-23 07:47:43
问题 I want to create an InputDialog with custom labels for the OK/Cancel buttons. I'm using org.eclipse.jface.dialogs.InputDialog. I tried to override the button creation method: @Override protected void createButtonsForButtonBar(Composite parent) { super.createButtonsForButtonBar(parent); getButton(IDialogConstants.OK_ID).setText(myOkText); getButton(IDialogConstants.CANCEL_ID).setText(myCancelText); } and it works, but the buttons are not resized (and the custom text results cropped). I guess

Changes not reflecting after Editing tree in SWT

强颜欢笑 提交于 2019-12-23 06:07:16
问题 I have a tree in SWT, to which I have added a edit listener as below - private void addEditListener() { final TreeEditor editor = new TreeEditor(tree); editor.horizontalAlignment = SWT.LEFT; editor.grabHorizontal = true; tree.addKeyListener(new KeyAdapter() { public void keyPressed(KeyEvent event) { // Make sure one and only one item is selected when F2 is // pressed if (event.keyCode == SWT.F2 && tree.getSelectionCount() == 1) { // Create a text field to do the editing final Text text = new

Changes not reflecting after Editing tree in SWT

℡╲_俬逩灬. 提交于 2019-12-23 06:07:08
问题 I have a tree in SWT, to which I have added a edit listener as below - private void addEditListener() { final TreeEditor editor = new TreeEditor(tree); editor.horizontalAlignment = SWT.LEFT; editor.grabHorizontal = true; tree.addKeyListener(new KeyAdapter() { public void keyPressed(KeyEvent event) { // Make sure one and only one item is selected when F2 is // pressed if (event.keyCode == SWT.F2 && tree.getSelectionCount() == 1) { // Create a text field to do the editing final Text text = new