eclipse-rcp

Eclipse RCP: How to pre-select a new project wizard?

独自空忆成欢 提交于 2019-12-12 01:43:14
问题 I have an Eclipse plugin using RCP and Eclipse 4.5.2. This plugin is for developing a project of type "X". Right now, under File > New > Project... I have "X" within a category of "MyPlugin". I'd have to expand "MyPlugin" then double click on "X" to open the X version of the new project wizard. Is it possible to pre-select "X" when clicking on File > New > Project...? This would mean the category "MyPlugin" would have to be automatically expanded to show the pre-selected "X". Here's a snippet

Problem with loading custom appender using log4j property file

回眸只為那壹抹淺笑 提交于 2019-12-12 01:34:28
问题 Merged with Log4j not finding custom appender using a property file. I'm working on an Eclipse RCP project comprised from multiple plugin projects, and having trouble load a custom appender using the following property file in log4j: <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> <appender name="eclipseErrorView" class="com.mypackage.EclipseLoggingAppender"> </appender> <appender

How to set custom style to some columns in a nattable?

五迷三道 提交于 2019-12-11 23:58:21
问题 I need to set a custom style not for all, but some columns in a nattable. I can't set the configuration like this: natTable.addConfiguration(new DefaultNatTableStyleConfiguration()); because this sets the configuration to the whole table. I have to override the configuration only to specific columns. In my case the columns should have the horizontal align set like this: setHAlign(HorizontalAlignmentEnum.RIGHT); How can I achieve this? Thanks! 回答1: From NatTable styling docs To enable

Circular Dependencies in Eclipse Platform

久未见 提交于 2019-12-11 23:24:26
问题 I'm trying to add the Eclipse Platform to my Maven project and stumbled over something very weird. There is the plug-in org.eclipse.swt, which has a dependency org.eclipse.swt.${osgi.platform} , where ${osgi.platform} can be any of the following: cocoa.macosc.cocoa gtk.linux.aarch64 win32.win32.x86_64 However if you check the pom.xml of org.eclipse.swt.win32.win32.x86_64 you learn that this project has a dependency to org.eclipse.swt . Which forms a nice dependency circle, which is not

osgi.baseConfiguration.area does not resolve using a relative path

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 23:22:49
问题 My company produces a small suite of Eclipse RCP applications that are installed into the same shared location on Windows (C:\Program Files (x86)\MyCompany). They share a plug-ins directory but have separate configuration areas. The desired location for osgi.configuration.area, osgi.user.area, and osgi.instance.area are in a user's roaming application data area (%APPDATA% on Windows XP/7). Due to localization requirements and differences in path locations between the OSes, it is not

How to implement “Save As” functionality for our Part

て烟熏妆下的殇ゞ 提交于 2019-12-11 20:09:19
问题 I'm creating E4 RCP application in that I have one part. I want to implement "Save As" functionality for my Part, as it is implemented for Editors (Like:Java file Editor). Requirements: When user click on my part "Save As" option should be enable. When user click on "Save As" option my code should run so that I can do what I want. So my question is for this what should I do, is I have to implement any extension point or any this else. ? 回答1: In a pure e4 application there is no built in

Invalid Thread Access

牧云@^-^@ 提交于 2019-12-11 19:46:15
问题 The create View Control Class public void createPartControl(Composite parent) { //viewer = new TableViewer(parent, SWT.MULTI| SWT.V_SCROLL); //viewer.setContentProvider(new ViewContentProvider()); //viewer.setLabelProvider(new ViewLabelProvider()); // Provide the input to the ContentProvider //viewer.setInput(new String[] {"One", "Two", "Three"}); //Display display=new Display(); parent.getShell().setText("A dialog box with no buttons at all press 'ESC' to close"); final Shell shell = new

SWT plugin missing from 64 bit RCP build

房东的猫 提交于 2019-12-11 19:32:40
问题 I have set up a headless build environment to build our RCP products for windows 32 and 64 bit. My problem is that the 64 bit build is missing the SWT plugin and the application will not start until I manually copy in the SWT plugin. In the log files this exception can be found: Caused by: java.lang.ClassNotFoundException: org.eclipse.swt.SWTError Looking in the plugin directory of the 64 bit build I found org.eclipse.swt_3.6.2.v3659c.jar which does not contain any class files but only the

Highlighting swt table row on focus lost

谁说我不能喝 提交于 2019-12-11 19:21:44
问题 I am facing the same problem mentioned here SWT: Table lost selection . I am using ubuntu 12.04 NOT windows. Is there any way to highlight the selected row of a SWT table even after focus lost. I tried adding focus listener to the table and in focus lost I changed the selected item background colour and on focus gain resets the background colour. See the code. @Override public void focusLost(FocusEvent e) { System.out.println("table focus los"); TableItem item = fileListTable .getItem