jface

Unable to open multiple selected files and folders using Eclipse ShowInSystemExplorerHandler API

岁酱吖の 提交于 2020-07-23 06:34:17
问题 Hi I am using Eclipse ShowInSystemExplorerHandler API, it is working fine if I select a single file or folder. But it does not work for multiple selection of files or folders. I provide below the code snippet. Please help me how to resolve so that I should be able to open multiple folders/files in OS specific explorer. By the way I am using structuredSelection.forEach so that I can open all the files and folders. Find below the code. @SuppressWarnings("restriction") public class

Unable to open multiple selected files and folders using Eclipse ShowInSystemExplorerHandler API

喜夏-厌秋 提交于 2020-07-23 06:31:22
问题 Hi I am using Eclipse ShowInSystemExplorerHandler API, it is working fine if I select a single file or folder. But it does not work for multiple selection of files or folders. I provide below the code snippet. Please help me how to resolve so that I should be able to open multiple folders/files in OS specific explorer. By the way I am using structuredSelection.forEach so that I can open all the files and folders. Find below the code. @SuppressWarnings("restriction") public class

How to add Content Assist to text field in Wizard using SWT java [closed]

半腔热情 提交于 2020-05-16 03:59:45
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . I have designed a wizard page with a text field using SWT. I want to add a content assist to the text field i.e , when i press 'Ctrl+space', it has to propose the list of data. Any standard method to implement this feature? 回答1: You can use the JFace ContentProposalAdapter to do

Why do all the images of the Plugin disappear once the plugin is exported as a jar and integrated in the IDE?

安稳与你 提交于 2020-04-17 18:56:43
问题 In my eclipse plugin, while testing the plugin( Run As Eclipse Application )- As seen below, all the images in the New Wizard are rendered properly, highlighted in yellow. However, once the plugin is exported as shown below, and placed as the jar in \eclipse\plugins , all the images are lost. What could be the reason for this? After the jar is placed, the below is rendered without the images- MANIFEST.MF file- 回答1: Eclipse adds the compiled Java classes by default. Other files must be

Why does the table viewer's horizontal scrolling disappears once the wizard page is brought back to its normal size post expansion?

喜夏-厌秋 提交于 2020-03-25 18:20:59
问题 I have a table viewer displayed on a wizard page. The first time the page is displayed, as seen both horizontal and vertical scroll bars are present as yellow highlighted shown in below image- The horizontal scroll bar disappears once the wizard page is expanded in both directions and then brought back to its normal size. As seen below, only the vertical scroll bar is there, but the horizontal scroll bar is lost. How can I bring back the horizontal scroll bar? The code snippet to simulate the

Why does the table viewer's horizontal scrolling disappears once the wizard page is brought back to its normal size post expansion?

好久不见. 提交于 2020-03-25 18:20:50
问题 I have a table viewer displayed on a wizard page. The first time the page is displayed, as seen both horizontal and vertical scroll bars are present as yellow highlighted shown in below image- The horizontal scroll bar disappears once the wizard page is expanded in both directions and then brought back to its normal size. As seen below, only the vertical scroll bar is there, but the horizontal scroll bar is lost. How can I bring back the horizontal scroll bar? The code snippet to simulate the

JFace examples in Eclipse like SWT Examples?

吃可爱长大的小学妹 提交于 2020-01-23 05:55:35
问题 Are there any all-in-one JFace controls example out there like the SWT Examples in Eclipse? Searching (googling and searching here on stackoverflow.com) did not help me. It would be nice if it was a standalone app or an eclipse plugin. Thank you. 回答1: Aside from the SWT JFace examples and introduction courses, you have some projects based on JFace controls: JFace Data Binding CellLabelProvider TreeViewer example Nebula project Nebula is a place where different Eclipse-Projects and Independent

CheckboxTableViewer first column select all

你离开我真会死。 提交于 2020-01-16 00:58:19
问题 I am currently developing a Wizard that will take me through a couple of steps. On one of the WizardPages I want to have a dynamically filled table where the user selects some of the rows. I am using a CheckboxTableViewer for this. Currently it works well (including dynamic number of columns, etc.) and the result looks like in the screenshot. My problem with this is that the first column spans over the column with the checkboxes. I would like to have the following behaviour: The first column

Wrap abel within a composite

孤街醉人 提交于 2020-01-13 03:23:28
问题 I have ScrolledComposite which allows only vertical scrolling. ( heighthint = 400 ). Within this ScrolledComposite, I have another CompositeA (height may exceed 400 for scrolling) to store all other widgets. I have a very long label (with SWT.WRAP enabled). But instead of wrapping, it is always showing in a single line. I want this label to wrap according to the width of its parent ( CompositeA ) I forgot to add that this CompositeA is a 2 column GridLayout with makeColumnsEqualWidth = true .

How do I Set a Key and a Value in a JFace ComboViewer?

99封情书 提交于 2020-01-07 04:25:10
问题 I am trying to set up a combo box that will display a UserName, but when selected will send a an ID instead. I have already set up a method that queries my Derby database and returns a multidimensional array with the UserNames and IDs. I did some research on how to set this up and found several posts suggesting JFace, but nothing on how to accomplish this. I have tried setData(String Key, Object Value), and add(String String, int index). I have also looked at DataBinding, but haven't found