swt

A more advanced table/spreadsheet SWT implementation

故事扮演 提交于 2019-11-30 03:29:48
I'm developing an application based on Eclipse's Rich Client Platform that relies heavily on the use of tables for showing and editing data. I'm currently using the SWT implementations of Table and TableViewer. My users are forever complaining that it "doesn't work like in excel". Most notably, I can't select a single cell within a row and all rows have the same height. I'm looking for an implementation that addresses these issues. Criteria: Free (as in speech and beer -- I'm a phd student and the program is EPL) SWT (the various solutions for including swing in SWT aren't very nice) Edit: So

Selection and hover overrides Cell background color in an SWT Table component

笑着哭i 提交于 2019-11-30 03:29:30
问题 I'm using SWT (and Eclipse RCP) to render a table. My problem is that if I change the background of a cell (a ViewerCell in fact) I can see that it has the new color. My problem is that if I select a row in my Table or if I hover over the row containing my cell in question then the selection/hover background overrides my cell color. How can I override this? 回答1: Problem solved with StyledCellLabelProvider. Tell me if you want to see some code. Edit: We use it do display validation errors so

Compare SWT with SWING [closed]

风格不统一 提交于 2019-11-30 02:27:36
Is swt faster than swing? Where can i get good tutorials about swt? it easy to migrate from swing to swt? See this web sites: SWT, AWT and Swing Swing vs SWT Swing vs SWT(2nd) Very nice webpages with example source code: SWT SWT 2d-Graphics I think it's important to remember SWT came in to being when Swing was very immature and I guess the Eclipse folks thought it necessary to reinvent-the-wheel (suspect in retrospect that's something they regret, however thin a layer SWT is). Nowadays Swing has matured, many of the problems and performance issues it used to have have been fixed and with the

RCP with SWT.Browser and XULRunner

一笑奈何 提交于 2019-11-30 02:26:38
I'm developing an RCP application (Windows) with SWT.Browser ( SWT.MOZILLA ): Browser browser = new Browser(parent, SWT.MOZILLA); It's working fine with the old XULRunner 3.6.23 and the installation described here : xulrunner.exe --register-global I want to use the new XULRunner 8.x, but as mentioned here the old way to install XULRunner was removed. So I added the XULRunner-Path programmatically: System.setProperty("org.eclipse.swt.browser.XULRunnerPath", "Path\\To\\xulrunner_8.x"); But when I start my application, I'll get the following error org.eclipse.swt.SWTError: XPCOM error -2147467261

SWT table: auto resize all columns

好久不见. 提交于 2019-11-30 01:28:39
问题 Qt solution is a single call to resizeColumnsToContent() , in .NET one can use TextRenderer.MeasureText() , JTable could use AUTO_RESIZE_ALL_COLUMNS . In SWT, is there a way to programmaticaly resize columns after populating them? Calling computeSize(SWT.DEFAULT, SWT.DEFAULT) returns the same value thus disregarding character left overs in columns. TableColumn has setWidth() , but how do I obtain the size hint for the current content taking into account font face, etc? 回答1: In many cases, the

How to get Eclipse SWT Browser component running on Ubuntu 11.04 (Natty Narwhal) with Webkit?

萝らか妹 提交于 2019-11-30 00:50:50
I use the SWT Browser control in my Eclipse RCP application. On Linux Ubuntu 10.10 this depends on the user having installed xulrunner-1.9.2. This works fine. However, on Ubuntu 11.04 I find that it ships by default with xulrunner-2.0. The SWT Browser does not support this. See http://bugs.eclipse.org/bugs/show_bug.cgi?id=327696 and http://bugs.eclipse.org/bugs/process_bug.cgi So rather than ask the user to install xulrunner-1.9.2 I want to get the SWT Browser to run with WebKitGTK as per the instructions on the SWT FAQ - http://www.eclipse.org/swt/faq.php#browserwebkitgtk I cannot get this to

Make JFace Window blink in taskbar or get users attention?

ぃ、小莉子 提交于 2019-11-29 19:08:31
问题 I wonder someone has any idea how to solve this: In my Java Eclipse plugin there are some processes which take some time. Therefore the user might minimize the window and let the process run in the background . Now, when the process is finished , I can force the window to come to the top again, but that is a no-no in usability. I'd rather want the process to blink in the taskbar instead. Is there any way to achieve this? I had a look at the org.eclipse.jface.window but could'nt find anything

Delete rows from Nattable

一世执手 提交于 2019-11-29 18:36:53
I want to implement a row deletion logic in a Nebula Nattable. This is what I plan to do: Add context menu to the Nattable which is described in http://blog.vogella.com/2015/02/03/nattable-context-menus-with-eclipse-menus/ Add an SWT Action to the menu which will implement the delete my question is, which is the best way to accomplish this: Should I delete the corresponding value from my data model and the table view is refreshed when I execute this.natview.refresh(); ? OR Should I get the rows from SelectionLayer and delete them (if so how do I do ?)? OR is there any default support for this

How to remove views from Windows-->Show View list?

女生的网名这么多〃 提交于 2019-11-29 18:00:24
I have view which I am setting permanently on my perspective. This view can not be closed and can not be opened from Windows --> show views I struct to remove View from Windows --> view list. How would I achieve this? I tried your solution it is doing the things but it is also removing the view from perspective. Below are the steps I followed.. I have added the following view in plugin.XML <view allowMultiple="false" category="org.view.ui.IDECategory" class="org.view.ui.BannerInformationView" id="org.view.ui.BannerInformationView" name="BannerInfo" restorable="true"> </view> After this I have

How to stop JFace combo box from re sizing on a window re size?

陌路散爱 提交于 2019-11-29 17:52:12
I have a Java Eclipse RCP program in which I have a a long string inside a JFace combobox. Now when I am in the same view,The combobox attaches a scroll over it to show the full name. but as soon as I re size the window of the application, the combobox stretches itself to accommodate the lengthy string. How do i make the combobox stay the same size. Like the size of it should remain fixed even after I resize the window. Here are two screen shots to demonstrate the issue. P.S. I am using a comboViewer and inside it a comboBox. Thanks in advance. If you are using GridLayout and GridData as your