jface

Virtual TableViewer sorting causes selection problems

若如初见. 提交于 2020-01-06 07:42:23
问题 Our application is an RCP appliction and needs to display table of several thousands items. For this reason, we're using SWT.VIRTUAL in our TableViewer . That works pretty well except for selection. We're having following issue : Our TableViewer support sorting and filtering. When we use a virtual tableviewer, changing the selection does not preserve the current selected item but the row currently selected.This leads to another item being selected. e.g: If Item 'A' present at the 5th row is

image not loading

岁酱吖の 提交于 2020-01-06 02:42:25
问题 trying to run the code // Create a label with an image Image image = new Image(display, "interspatial.gif"); Label imageLabel = new Label(shell, SWT.NONE); imageLabel.setImage(image); is giving me the error message Exception in thread "main" org.eclipse.swt.SWTException: i/o error (java.io.FileNotFoundException: interspatial.gif (O sistema não pode encontrar o arquivo especificado)) at org.eclipse.swt.SWT.error(Unknown Source) at org.eclipse.swt.SWT.error(Unknown Source) at org.eclipse.swt

JFace TableViewer - Setting font color for all Cells in table

自作多情 提交于 2020-01-05 07:47:12
问题 I have asked a very similar question, but I ended up using images instead of changing the color. I want all the text in the cells to be dark grey. I understand that you have to assign each column. But I do not how to do it. This is one of my columns in my TableViewer. col = new TableViewerColumn(this , SWT.NONE); col.getColumn().setWidth(200); col.getColumn().setText("Printer/Profile"); col.setLabelProvider(new ColumnLabelProvider() { @Override public String getText(Object element) {

Eclipse force handlers to to re-evaluate

本秂侑毒 提交于 2020-01-04 08:16:52
问题 How can I force Eclipse to do a re-evaluation of the activeWhen-conditions of all handlers? Situation: I have defined a command on a TreeViewer. This command has more than one possible handlers. Handlers have defined some conditions to decide whether the handler shall be activated or not. My problem is that there is no re-evaluation of the handler conditions until I de-seclect the item in the tree (e.g. select another item) and select it again. If the selection does not change but the raise

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

Reuse Project Explorer' view for your custom plugin project

蓝咒 提交于 2020-01-03 03:48:08
问题 I am working on a eclipse plugin and reusing the 'Project Explorer' view to display the tree content. I have few questions to make it best possible reuse: How can I disable the sort - currently 'Project Explorer' view sort tree nodes which I dont want. Is thr a single place where i can change the flags or something? Or I will have to implement a View Sorter ? How can I save the expanded state of projects the way it does for a java project , i want the same to implemented for custom plugin

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

SWT Shell resize depending on children

半腔热情 提交于 2020-01-01 10:57:48
问题 I'm working on this Composite canvas on which other Composite s may be added and removed. My understanding of how the whole laying-out concept is still in the fog. When children are added to the container, given the fact that the container has a GridData which fills in the parent, shouldn't the parent also know that the child resized? Children remain hidden after their container has been laid out, because of the shell (top parent). If the question is too vague, do not hesitate to ask for more

ElementListSelectionDialog has no elements

你离开我真会死。 提交于 2020-01-01 06:13:34
问题 I'm trying to use a ElementListSelectionDialog. I've followed the example code but for whatever reason the dialog show but with no options My Code: ElementListSelectionDialog dialog = new ElementListSelectionDialog(shlSpriteCreator, new LabelProvider()); dialog.setMultipleSelection(false); dialog.setIgnoreCase(true); dialog.setAllowDuplicates(true); dialog.setMessage("Select an AI"); dialog.setTitle("What AI to use?"); dialog.setElements(new String[]{"HELLO","GOODBYE"}); if (dialog.open() ==