eclipse-rcp

How to force a minimum height of a JFace Wizard in Eclipse?

二次信任 提交于 2019-12-01 21:03:01
I'm presenting a wizard (code here ) that gets too low, so the content does not show completely (see screenshot below): How can I force the wizard to have a minimum height? According to the answer on this question here on StackOverflow , the wizard will be the same height as the largest wizardpage in the wizard, but my wizard obvilusly does not get resized according to at least the content of the largest page, and I also tried to set the minimum height of the first visible wizard page with code like this in the WizardPage class: @Override public void createControl(Composite parent) { // create

Creating multiple identical text verify listeners in eclipse-rcp/swt

烂漫一生 提交于 2019-12-01 18:52:43
问题 I'm trying to validate the input of multiple text boxes (i.e. they should be a number), and found the useful code snippet below here. However, if I have three text boxes ( text , moreText and evenMoreText ), how can I apply a verify listener with the same functionality to each, without having to repeat the ( .addVerifyListener(new VerifyListener() {... ) code three times? I don't want to implement a switch statement or similar (to decide which text box to apply it to), I want something more

Passing parameters to the view

陌路散爱 提交于 2019-12-01 18:47:52
In my RCP application, I have a View with a TreeViewer for Navigation on the left side and a Folder for my views on the right side. The Perspective looks like this: public void createInitialLayout(IPageLayout layout) { layout.setEditorAreaVisible(false); layout.setFixed(false); layout.addStandaloneView(NavigationView.ID, false, IPageLayout.LEFT, 0.7f, layout.getEditorArea()); right = layout.createFolder("right", IPageLayout.RIGHT, 0.3f, "com.my.app.views.browser.navigation"); layout.getViewLayout(WallpaperView.Id).setCloseable(false);//dummy view to keep the folder from closing layout

How to add the plugin with my RCP application in the Tycho SWTBot test runtime

烂漫一生 提交于 2019-12-01 18:32:03
问题 My RCP was created on a 3.x Eclipse and is now on 4.x using the compatibility layer. This is the setup that I have: I have two plugins: xyz-plugin and xyz-rcp-plugin . My RCP application is composed of these two plugins. I have a Test fragment ( xyz-test ) whose host plugin is xyz-plugin and contains SWTBot tests. My product configuration points to the application defined in the plugin.xml of xyz-rcp-plugin . When I run the SWTBot Test via Eclipse, it all works ok. I point it to the correct

Automatically generate IDs on SWT-Widgets

偶尔善良 提交于 2019-12-01 18:08:29
Is there a way to automatically generate IDs on SWT-Widgets so UI-Tests can reference them? I know i can manually set an id using seData but I want to implement this feature for an existing application in a somewhat generic fashion. You can recursively assign IDs for all your shells in your application using Display.getCurrent().getShells(); and Widget.setData(); . Setting the IDs Shell []shells = Display.getCurrent().getShells(); for(Shell obj : shells) { setIds(obj); } You have access to all the active (not disposed) Shells in your application with the method Display.getCurrent().getShells()

How to add the plugin with my RCP application in the Tycho SWTBot test runtime

穿精又带淫゛_ 提交于 2019-12-01 17:54:26
My RCP was created on a 3.x Eclipse and is now on 4.x using the compatibility layer. This is the setup that I have: I have two plugins: xyz-plugin and xyz-rcp-plugin . My RCP application is composed of these two plugins. I have a Test fragment ( xyz-test ) whose host plugin is xyz-plugin and contains SWTBot tests. My product configuration points to the application defined in the plugin.xml of xyz-rcp-plugin . When I run the SWTBot Test via Eclipse, it all works ok. I point it to the correct application on the Main tab and it launches the correct one. When I try to run it via Maven (using mvn

Mac distribution of Eclipse RCP application built with Tycho on Windows doesn't start

北慕城南 提交于 2019-12-01 17:53:50
I have built an Eclipse RCP application (Indigo) with Tycho. The build is run on a Win 7, 64-bit machine. The parent POM includes: <plugin> <groupId>org.eclipse.tycho</groupId> <artifactId>target-platform-configuration</artifactId> <version>${tycho-version}</version> <configuration> <resolver>p2</resolver> <environment> <os>linux</os> <ws>gtk</ws> <arch>x86_64</arch> </environment> <environment> <os>win32</os> <ws>win32</ws> <arch>x86_64</arch> </environment> <environment> <os>macosx</os> <ws>cocoa</ws> <arch>x86_64</arch> </environment> ... The product configuration looks like this (with a

Mac distribution of Eclipse RCP application built with Tycho on Windows doesn't start

廉价感情. 提交于 2019-12-01 17:12:40
问题 I have built an Eclipse RCP application (Indigo) with Tycho. The build is run on a Win 7, 64-bit machine. The parent POM includes: <plugin> <groupId>org.eclipse.tycho</groupId> <artifactId>target-platform-configuration</artifactId> <version>${tycho-version}</version> <configuration> <resolver>p2</resolver> <environment> <os>linux</os> <ws>gtk</ws> <arch>x86_64</arch> </environment> <environment> <os>win32</os> <ws>win32</ws> <arch>x86_64</arch> </environment> <environment> <os>macosx</os> <ws

creating VerticalRuler and add Information

为君一笑 提交于 2019-12-01 12:45:32
问题 I'm pretty new to Eclipse plugins and I want to create a VerticalRuler, I found this picture of Subeclipse which inspired me to add information to a specific code line. Right now I have no Clue where I would start adding a column like that. My first try was to create a column within my editor-plugin, but nothing happened. I'm happy about every hint that helps me start. cheers CompositeRuler ruler2; ruler2= new CompositeRuler(); ruler2.addDecorator(0, new AnnotationRulerColumn(100)); 回答1: I'm

Processes Launched from Java with `Runtime.getRuntime().exec` can't get access to file system places

ε祈祈猫儿з 提交于 2019-12-01 11:57:59
问题 Process Launched from Java with Runtime.getRuntime().exec has less permissions and I don't see description for that in JavaDocs and how to manage that. How to ensure that launched process has the same environment and permissions? More details: Writing lightweight Eclipse plugins for maven and gradle. (This problem is tested not to be Eclipse related see in the end.) I am launching mvn and gradle from within Eclipse plugin: For gradle gralde build fails to create a temporary file: Eclipse