eclipse-rcp

Toolbar does not scale correctly in E4

╄→尐↘猪︶ㄣ 提交于 2019-12-11 15:17:12
问题 I have a E4 application with some custom toolbar widgets. When the application ran in WIndows 10 without DPI scaling, everything looks fine. After chaning the DPI settings the application toolbar is not fully viewed. Correct view: With scaling enabled: The application.e4xmi looks like: The class that is responsible for creating the widget looks like: public class OpenOrderDropDown { @Inject private IEclipseContext context; private Combo combo; private static final String[] ITEMS = {"Default",

Filtering contents in Eclipse Common Navigator Framework view

ぃ、小莉子 提交于 2019-12-11 15:07:14
问题 I am developing a 3.x based Eclipse RCP application. In the part of application, I am implementing Common-navigator plugin of Eclipse itself, in order to display resources in the workspace. I'have created the navigator view shown below: But I would like display only one tree child element. More specifically, I only want clause folder and its elements to be shown. What is the accurate way to do it? 回答1: Add dependecy of org.eclipse.ui.navigator if not exists in plugin.xml. Add extension point

No Scroll on View in Eclipse RCP

☆樱花仙子☆ 提交于 2019-12-11 15:05:58
问题 I am supposed to create a scroll bar in my Eclipse RCP view and I referred to the ScrolledComposite javadoc and taking help from this. private void createComposite2(final Composite parent,final String text, int compositeNumber) { final ScrolledComposite rightScrolled = new ScrolledComposite(parent, SWT.V_SCROLL|SWT.H_SCROLL|SWT.BORDER); group=GUIToolkit.newGroup(rightScrolled, SWT.NONE, text, null); rightScrolled.setContent(group); group.setLayout(new FillLayout()); rightScrolled

Scaling Handled Differently in Java and Eclipse Framework

浪子不回头ぞ 提交于 2019-12-11 15:01:42
问题 We have a problem using Paperclips (printing library for SWT) on scaled monitors, but I don't think it has anything to do with the framework and all with the Eclipse environment. Let's see an example: Left is the print with no scaling (or 100%), right is the same print started on a monitor with 175% scaling. I know what you are thinking: the monitor and its resolution / scaling should have no influence on a print. Right, should. While that's sad and all, it would not be much of a problem. But

How to disable or enable a MMenu (not MMenuItem) in an Eclipse E4 application

ぐ巨炮叔叔 提交于 2019-12-11 14:46:58
问题 I have an Eclipse E4 application with a MMenu (in the main menu of the application and in popup menus of different parts) that contains items provided at runtime by a dynamic menu contribution. What I want to achieve is to disable the menu element, if the menu contribution does not provide any item. Something like @CanExecute for handler classes for commands or direct menu items. 回答1: Do you use the latest version of eclipse and you have an Application.e4xmi file? If so, for your "Dynamic

Java RCP - Not able to dynamically set text to SWT label control

纵然是瞬间 提交于 2019-12-11 14:45:37
问题 In one of our rcp application's window, I need to set label text dynamically after the creation of the window. When the window is created I would have created the label control but I would not set the text by then. After user selects a button on the window, I want to set the text of the label inside the button's selection listener method. After setting text to label inside button's selection listener method I am not able to see the text on the window. Why is that I am not able to see the

How to specify required bundle version in RCP product

非 Y 不嫁゛ 提交于 2019-12-11 14:17:15
问题 I created new xerces bundle from jar. I can see two org.apache.xerces bundles now - one from orbit 2.9.0 and "my" 2.11.0. If I try to export product then only the version from orbit is exported I tried to specify version in dependency for org.apache.xerces using properties, but it does not help, the entry is also marked as erroneous (how to see the reason?). I am using Eclipse for RCP and RAP Developers Version: Luna Service Release 1 (4.4.1) Build id: 20140925-1800 回答1: I missed qualifier! I

How to disable a Dynamic Menu Contribution parent in Eclipse 4 RCP Application

自作多情 提交于 2019-12-11 14:16:48
问题 This question stems from How to disable or enable a MMenu (not MMenuItem) in an Eclipse E4 application I have been attempting to grey-out/disable an entire Dynamic Menu Contribution in Eclipse 4 when a condition is met in the application. The Dynamic Menu Contribution is itself in the File Menu Model Element. My workaround has been to remove all options so the menu does not show anything, but is still active (not-grey) when the condition is met with the code below for clearing the menu. items

What makes eclipse for RCP different from eclipse classic?

元气小坏坏 提交于 2019-12-11 13:54:22
问题 I understand that I need RCP for eclipse plugin and eclipse RCP development. However, as I have some crashes, and software installation issues, I guess I have to use eclipse classic until the issues are solved. What makes eclipse for RCP different from eclipse classic? I checked eclipse download page, and to me it seems like that eclipse classic doesn't have any feature whereas RCP has a lot. Are the features only difference between the two choices? If so, can I download the features/plugins

Type mismatch: cannot convert from Class <..> to Class <…>

a 夏天 提交于 2019-12-11 13:45:48
问题 I've 'inherited' an Eclipse RCP project which seems to work fine with a target platform set based around 3.6. However, moving forward we need to update to the latest version of the platform, but when I change the target platform to 3.7 (or 4.2) I get a handful of errors along the lines of Type mismatch: cannot convert from Class<capture#1-of ?> to Class<? extends IDatasetProvider> Can anyone suggest/provide an explanation of why this might work fine in 3.6, but not in 3.7 (and later)? Any