jface

Learning Eclipse RCP and SWT/JFace

。_饼干妹妹 提交于 2019-12-03 13:48:27
问题 I am new to to Eclipse RCP and SWT/JFace. I intend to purchase the Second Edition of the well known Eclipse Rich Client Platform book by Jeff McAffer, Jean-Michel Lemieux, Chris Aniszczyk. I wish to know from people who have read any of the editions of the book whether the book serves as a good introduction to both the topics (RCP and SWT/JFace)? Or would I need separate reading material for SWT/JFace? 回答1: I read the first edition of the book in 2007 when I started a project with Eclipse RCP

Populating huge table in SWT/JFace RCP application

China☆狼群 提交于 2019-12-03 09:28:47
问题 How would you go about displaying huge amount of rows in SWT table? Huge is something above 20K rows, 20 columns. Don't ask me why I need to show that much data, it's not the point. The point is how to make it work as fast as possible so that end user won't get bored waiting. Each row displays an instance of some object, columns are its properties (some). I thought to use JFace content/label provider pattern, but afraid it will be even slower than hitting the table directly with the data.

What does JFace add to SWT?

懵懂的女人 提交于 2019-12-03 08:56:50
问题 What is the difference betweem the following: TreeViewer & Tree TableViewer & Table TreeViewerColumn & TreeColumn TableViewerColumn & TableColumn When to use viewer & regular widget? PS: It would a great help if you can help me find a good resource for understanding them.Thanks in advance! 回答1: You could have titled your question "What does JFace add to SWT ?". Viewers are from JFace, Widgets are from SWT. In summary, JFace make Widgets easy to manipulate and insert into a GUI. JFace frees

SWT Table with variable row height: Working on Linux, but not Mac/Windows

非 Y 不嫁゛ 提交于 2019-12-03 07:35:34
Problem: I need an SWT Table (JFace TableViewer) with variable row height. In fact, I solved this on my development machine (running Ubuntu 10.10). Unfortunately, this doesn't work on Windows nor on Mac. Initially, I thought I didn't use the libraries correctly. But by now I fear that what I want to do is simply not possible on Windows. I hope someone here convinces me otherwise. To reproduce: rather than providing my code here, I built a minimal program to reproduce the problem. I started with the following Snipplet: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/tree/examples/org

Learning Eclipse RCP and SWT/JFace

依然范特西╮ 提交于 2019-12-03 03:41:23
I am new to to Eclipse RCP and SWT/JFace. I intend to purchase the Second Edition of the well known Eclipse Rich Client Platform book by Jeff McAffer, Jean-Michel Lemieux, Chris Aniszczyk. I wish to know from people who have read any of the editions of the book whether the book serves as a good introduction to both the topics (RCP and SWT/JFace)? Or would I need separate reading material for SWT/JFace? I read the first edition of the book in 2007 when I started a project with Eclipse RCP development. It was a really useful introduction on how to build RCP applications and what concepts are

What does JFace add to SWT?

孤街醉人 提交于 2019-12-02 22:57:18
What is the difference betweem the following: TreeViewer & Tree TableViewer & Table TreeViewerColumn & TreeColumn TableViewerColumn & TableColumn When to use viewer & regular widget? PS: It would a great help if you can help me find a good resource for understanding them.Thanks in advance! You could have titled your question "What does JFace add to SWT ?". Viewers are from JFace, Widgets are from SWT. In summary, JFace make Widgets easy to manipulate and insert into a GUI. JFace frees you from all the drudgery of manipulating SWT widget elements to add behaviour to static widgets. SWT just

Why does Table.getItem(Point) always return the item from column zero?

本小妞迷上赌 提交于 2019-12-02 20:19:18
问题 I've implemented a class to give me a more flexible tooptip for the org.eclipse.swt.widgets.Table class. As I'm sure you all know, by default you get one tooltip for the whole table - and not individual tips for each cell. My object creates a number of listeners to implement it's own location sensitive tooltip, however, when I call Table.getItem(Point) to get the TableItem (or cell) over which the mouse is hovering it always returns the cell from column 0 of the correct row. The table in

JFace DialogCellEditor: how to make buttons always appear?

本秂侑毒 提交于 2019-12-02 02:05:44
I use JFace DialogCellEditor to show a button in a cell of a row of my JFace TableViewer which triggers a dialog when activated. This behaviour works well with the following code but the button only appears when the cell of the table hosting the button is explicitly selected. public class CompareDialogCellEditor extends DialogCellEditor { public CompareDialogCellEditor(Composite parent) { super(parent); } @Override protected Button createButton(Composite parent) { Button button = super.createButton(parent); button.setText(""); button.setImage(AbstractUIPlugin.imageDescriptorFromPlugin

How to force a minimum height of a JFace Wizard in Eclipse?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-01 22:57:45
问题 I'm presenting a wizard (code here) that gets too low, so the content does not show completely (see screenshot below): How can I force the wizard to have a minimum height? According to the answer on this question here on StackOverflow, the wizard will be the same height as the largest wizardpage in the wizard, but my wizard obvilusly does not get resized according to at least the content of the largest page, and I also tried to set the minimum height of the first visible wizard page with code

multiline feature or wrap text feature in jface tableviewer

霸气de小男生 提交于 2019-12-01 21:14:25
i have a jface tableviewer table where in the data in the columns just come in one single line even if it is the long text. I would want a wrap text feature or a multiple line feature for table, if text exceeding a certain limit. Could anybody help me with this. Tonny Madsen See this SWT snippet draw multiple lines of text in a table item and this JFace SnippetSnippet006TableMultiLineCells 来源: https://stackoverflow.com/questions/8355693/multiline-feature-or-wrap-text-feature-in-jface-tableviewer