swt

Is there a SWT debugger/spy?

自作多情 提交于 2019-11-28 03:43:39
问题 I'm trying to debug my SWT dialog (in an Eclipse plugin.) I'd like to find out why the layout is the way it is, and where the borders are between the controls. I've seen the SWT Spy plugin (http://www.eclipse.org/swt/tools.php), but I'd like something more graphical. I'm basically looking for something similar to the way the WebKit developer tools panel allows you to point at something and have it be outlined in both the actual rendered page, and in the HTML source. 回答1: Check out Picasso:

Create GUI using Eclipse (Java) [duplicate]

我们两清 提交于 2019-11-28 03:42:38
Possible Duplicate: Best GUI designer for eclipse? Is there any Eclipse Plugin tool(s) who can help to create Graphical User Interface for (swing, awt or swt), because I'm tired of writing everytime the code of Panels, Labels, ... Thanks Grzegorz Szpetkowski Yes. Use WindowBuilder Pro (provided by Google). It supports SWT and Swing as well with multiple layouts (Group layout, MiGLayout etc.) It's integrated out of the box with Eclipse Indigo, but you can install plugin on previous versions (3.4/3.5/3.6): There are lot of GUI designers even like Eclipse plugins, just few of them could use both,

How would one use IDecorationContext api from Eclipse JFace

余生长醉 提交于 2019-11-28 01:56:56
Is there an example out there for using IDecorationContext for label decorations? By the looks of it, IDecorationContext class seems to provide some sort of contextual decoration support, but for the life of me, I can not find any sample code using this feature... Has anybody actually used decoration context feature and if so, what use cases did it solve? PS: I am looking for a way to apply image decorations to object labels and depending on where the object is displayed, the base icon size varies (e.g. traditional "small" icons in table- and tree items and larger icons for content headers).

SWT Exception when running jar: Exception in thread “main” org.eclipse.swt.SWTException: Invalid thread access

孤者浪人 提交于 2019-11-28 01:32:08
When executing my jar from terminal I am getting the following: ***WARNING: Display must be created on main thread due to Cocoa restrictions. Exception in thread "main" org.eclipse.swt.SWTException: Invalid thread access at org.eclipse.swt.SWT.error(Unknown Source) at org.eclipse.swt.SWT.error(Unknown Source) at org.eclipse.swt.SWT.error(Unknown Source) at org.eclipse.swt.widgets.Display.error(Unknown Source) at org.eclipse.swt.widgets.Display.createDisplay(Unknown Source) at org.eclipse.swt.widgets.Display.create(Unknown Source) at org.eclipse.swt.graphics.Device.<init>(Unknown Source) at org

Can't put content behind SWT Wizard Help Button

懵懂的女人 提交于 2019-11-28 01:11:32
问题 I created a SWT based Wizard which has an own help Button by custom. Now i want to put some content behind that, so maybe a SWT browser will be openend and a predifined HTML Doc will be shown. But I don't have any clue where to access the Actions of the Help Button within my Wizard. Any idea? 回答1: I am assuming that you are using the standard JFace interfaces and classes for the wizard implementation. So, in your wizard page ( extending org.eclipse.jface.wizard.WizardPage ) you just have to

Using ProgressMonitorDialog in Eclipse 4 properly

戏子无情 提交于 2019-11-28 01:09:47
问题 I have a set of APIs that do file operations e.g. saveToFile(CustomObject objectToSave); Since a file operation could be lengthy I decided that some indication should be shown to the user e.g. progress bar. I read about a ProgressMonitorDialog and so I tried it, but it doesn't exactly work as I need (or better I don't know how to use it properly). Currently I do: ProgressMonitorDialog progressDialog = new ProgressMonitorDialog(theShell); try { progressDialog.run(false, true, new

SWT FileDialog: Selecting directories instead of files

梦想与她 提交于 2019-11-28 00:57:23
Can I use the SWT FileDialog to select folders instead of files? You could use the DirectoryDialog instead. Here is some sample code: public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.open(); DirectoryDialog dialog = new DirectoryDialog(shell); dialog.setFilterPath("c:\\"); // Windows specific System.out.println("RESULT=" + dialog.open()); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } Here is a slightly larger example. 来源: https://stackoverflow.com/questions/12140884/swt

SWT 手机重启问题分析指南

落爺英雄遲暮 提交于 2019-11-27 23:09:20
极力推荐文章:欢迎收藏 Android 干货分享 阅读五分钟,每日十点,和您一起终身学习,这里是程序员Android 本篇文章主要介绍 Android 开发中的部分知识点,通过阅读本篇文章,您将收获以下内容: 一、SWT 手机重启问题简介 二、SWT 手机重启问题处理流程 三、SWT 手机重启问题的原因 四、SWT 手机重启问题分析流程 五、SWT 手机重启问题分析举例 六、Android O以上导 Log 注意事项 一、 SWT 手机重启问题简介 SWT(Software Watch Dog ) 主要用来监控 SystemServer 等 重要线程/Service 的运行情况。如果发现其阻塞超过 60s ,看门狗进程就会把系统重启,进而保证系统可以恢复到正常状态。 判断阻塞的方法 : 1.利用 Services 注册monitor 去Check 主要是: AMS 、 Foreground Thread 发送handler 到重要的Loop 线程来Check 是否阻塞。 主要是: Main Thread 、 UI Thread 、 IO Thread 、 Display Thread 、 WMS 、 Other Services 。 SWT 判断阻塞的方法 图文描述如下: 二、 SWT 手机重启问题处理流程 SWT 处理流程: 1.每半分钟check 一次system_server

SWT on Windows 64-bit

ⅰ亾dé卋堺 提交于 2019-11-27 21:01:18
My application throws the exception below. Exception in thread "main" java.lang.UnsatisfiedLinkError: Cannot load 32-bit SW T libraries on 64-bit JVM. How to solve this? What is the name of jar file needed? Daniel On 64-bit JVM's you need the 64-bit SWT. Current versions can be downloaded here: http://archive.eclipse.org/eclipse/downloads/drops/R-3.6.1-201009090800/index.php#SWT Note the first two downloads, the first is for x32, the other for x64. Note: Even on 64bit Windows, if you use the 32bit JVM, you still need the 32bit SWT version! I faced the same problems a couple of weeks ago. We

Can't OPEN Eclipse in Ubuntu 12.04 - java.lang.UnsatisfiedLinkError: Could not load SWT library

房东的猫 提交于 2019-11-27 21:00:18
问题 I have installed Ubuntu 12.04 newly. Also i installed Java 7. I try to install eclipse-java-indigo-SR2-linux-gtk.tar.gz. i extracted this file in /home/ramprabhu location. Then i try to run eclipse executable file. I got error as see the log file. My log file: !SESSION 2012-06-10 22:47:35.959 ----------------------------------------------- eclipse.buildId=M20120208-0800 java.version=1.7.0_04 java.vendor=Oracle Corporation BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US Framework