swt

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

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

Platform specific code in Eclipse

試著忘記壹切 提交于 2020-01-03 19:01:53
问题 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

How can I correctly update a progress bar for an operation of unknown duration within an Eclipse wizard?

非 Y 不嫁゛ 提交于 2020-01-03 16:57:55
问题 I have implemented a wizard for my Eclipse plug-in, showing several pages. One of these pages needs some lengthy initialization, that means it consists of a SWT table, which needs to be populated by information coming from an external source. This source needs to be activated first (one single method call that returns after a couple of seconds - I can not know in advance how long it will take exactly), before it can be used as input for for the table viewer. This initialization is currently

Can I drag items from Outlook into my SWT application?

帅比萌擦擦* 提交于 2020-01-03 13:31:10
问题 Background Our Eclipse RCP 3.6-based application lets people drag files in for storage/processing. This works fine when the files are dragged from a filesystem, but not when people drag items (messages or attachments) directly from Outlook. This appears to be because Outlook wants to feed our application the files via a FileGroupDescriptorW and FileContents , but SWT only includes a FileTransfer type. (In a FileTransfer , only the file paths are passed, with the assumption that the receiver

Use Tab-key on a multiline text filed in swt?

折月煮酒 提交于 2020-01-03 08:18:16
问题 How do I prevent a multi-line text field from "stealing" tab-key presses? I mean: I'd like to use TAB to cycle between the elements of a window, but when I enter the multiline text, TAB becomes a "normal" key, and simply inserts tabulators into the text I'm typing. How do I handle this? Should I write some custom listener, or can I change the behaviour of the component by using an SWT constant? 回答1: SWT defines a mechanism for implementing this kind of behaviour using the TraverseListener

Can I detect change in text fields in SWT?

徘徊边缘 提交于 2020-01-03 06:50:10
问题 I have a couple of SWT widgets. I am trying to create an action if there is any modification in any of the fields present. Example: If I change the name from the Text I should be able to identify it. I tried searching online for a solution but couldn't find a suitable one. Any suggestions? 回答1: Use addModifyListener ModifyListener listener = new ModifyListener() { /** {@inheritDoc} */ public void modifyText(ModifyEvent e) { // Handle event } }); text1.addModifyListener(listener); text2

Alternatives to DeferredContentProvider for supporting filtering in tables with SWT.VIRTUAL

淺唱寂寞╮ 提交于 2020-01-02 09:52:38
问题 In my project, I have a TableViewer which needs to show more than 100,000 items and also filter them. Without SWT.VIRTUAL the table takes multiple seconds to display. When trying to use SWT.VIRTUAL , however, I have the following problem: Just implementing ILazyContentProvider as one would usually do is problematic, since it is incompatible with the usual filtering mechanisms in TableViewer and I would therefore have to implement the entire filtering mechanism myself. In my searches, I have

Alternatives to DeferredContentProvider for supporting filtering in tables with SWT.VIRTUAL

随声附和 提交于 2020-01-02 09:52:09
问题 In my project, I have a TableViewer which needs to show more than 100,000 items and also filter them. Without SWT.VIRTUAL the table takes multiple seconds to display. When trying to use SWT.VIRTUAL , however, I have the following problem: Just implementing ILazyContentProvider as one would usually do is problematic, since it is incompatible with the usual filtering mechanisms in TableViewer and I would therefore have to implement the entire filtering mechanism myself. In my searches, I have

How to make child Tree Items checked/un-checked if parent Tree was made checked/un-checked

时间秒杀一切 提交于 2020-01-02 09:27:15
问题 I'm having a Check-box Tree View structure, consisting of parent and child nodes. I want to make all the child nodes [of the parent node] appear as checked if parent Tree is checked. Similarly, if parent Tree is unchecked then its childrens should be unchecked. 回答1: The best way to achieve this would be using the JFace CheckboxTreeViewer as it has the following predefined methods to simplify the task. setSubtreeChecked - Sets the child elements checked on selecting the parent node