swt

Native status bars

给你一囗甜甜゛ 提交于 2019-12-03 11:52:45
问题 Is there a way to create native status bars in SWT like those found in Windows applications: I have seen status bars simulated using labels, but I am more interested in a true solution. 回答1: org.eclipse.jface.action.StatusLineManager.createControl(), or getControl(), returns a status line control. This control is, of course (being SWT), native. 回答2: Looks like long standing change request: https://bugs.eclipse.org/bugs/show_bug.cgi?id=88837 回答3: There is a status bar available in JIDE

Open eclipse juno with error “No more handles …” in Ubuntu 12.04

坚强是说给别人听的谎言 提交于 2019-12-03 11:36:45
Starting today, every time I open up the eclipse, I got a message box with title "Problem Occured" pops up saying: No more handles [Unknown Mozilla path (MOZILLA_FIVE_HOME not set)] possible args: {0}, {1}, {2}, {3} No more handles [Unknown Mozilla path (MOZILLA_FIVE_HOME not set)] Then I click "OK" and proceed to the workbench, I got another error saying An SWT error has occurred. You are recommended to exit the workbench. Subsequent errors may happen and exit the workbench without warning. See the .log file for more details. Do you want to exit the workbench? (Yes / No) Then I clicked "Yes"

Import SWT as a Gradle dependency

匿名 (未验证) 提交于 2019-12-03 10:24:21
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am looking at how to import the SWT UI library into my Java project. I found the pom file for SWT on maven at: https://repo1.maven.org/maven2/org/eclipse/swt/3.3.0-v3346/swt-3.3.0-v3346.pom From the file I added the following line to my build.gradle file compile "org.eclipse:swt:3.3.0" however when I added it to my build.gradle I received the following error: Project 'L-CAD Main' is missing required library: '/home/ashley/unresolved dependency - org.eclipse swt 3.3.0' If I understand this right this means it can't find the dependency, so I

SWT Drag to Explorer (Windows) or Finder (OS X)

匿名 (未验证) 提交于 2019-12-03 10:03:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've got an SWT application with a bunch of graphical elements. I'd like for the user to be able to drag an element to their Desktop / Windows Explorer / OS X Finder. When they drop the element, I need the path that they dropped it to, so that I can create a file in that location which represents the element. I don't think I can use a FileTransfer , because there is no source file. There is a source object which can create a file, but only once it knows where to put it. Inlined below is a simple example of what I'm trying to achieve, there

Updating SWT objects from another thread

痴心易碎 提交于 2019-12-03 09:49:53
问题 In my Java application, when the main module is invoked, i start my SWT GUI in a separate thread. I need to perform some long opertations in the main thread and update the GUI thread. When I try to update the GUI thread from the main thread i.e. change a label text or something, i get a java.lang.NullPointerException . From what I've read online is because SWT doesn't allow non-UI threads to update UI objects. How can I update the GUI thread from the main thread. I've found some examples

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.

MQ Explorer - Could not load SWT library

匿名 (未验证) 提交于 2019-12-03 09:14:57
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Installed IBM MQ 8.0.0.4 developer instance in Linux VM (Centos). When launching MQ explorer, using command strmqcfg (getting the following error). !ENTRY org.eclipse.osgi 4 0 2016-01-14 13:33:43.226 !MESSAGE Application error !STACK 1 java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons: /home/mqm/.eclipse/com.ibm.mq.explorer.ui.rcp.RcpApplication_8.0.0.201510171407_1624510073_linux_gtk_x86_64/configuration/org.eclipse.osgi/bundles/500/1/.cp/libswt-pi-gtk-4333.so (libgtk-x11-2.0.so.0: cannot open shared object file: No such

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

Java SWT: widgetSelected vs widgetDefaultSelected

匿名 (未验证) 提交于 2019-12-03 08:46:08
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: For example I want to execute something when user clicks on a button. Which do I use? The documentation didn't appear to make it very clear UPDATE A quick test shows that Widget Selected is triggered but not Default Selected. In TasksView.main() TasksView view = new TasksView(shell, SWT.None); TasksController controller = new TasksController(view); In TasksController public class TasksController extends ControllerAbstract { protected TasksView view; public TasksController(TasksView view) { this.view = view; view.addTaskListener(new

Deploying an SWT application on Java Webstart

匿名 (未验证) 提交于 2019-12-03 08:30:34
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Is it possible to deploy SWT applications using JNLP. Especially loading the swt native library (dll in Windows, so in Linux)? Any links? I found one at IBM Developer Works , however it just describes using swt.jar. In addition to that, is it possible to load the native dll files over JNLP? 回答1: The IBM developer works article you linked to contains everything you need to know including how to load the native dll files. Notice the nativelib element in the resources. The jar file referred to here will contain any native libraries required by