swt

Eclipse RCP Jface/SWT TreeViewer on Windows 10

大憨熊 提交于 2019-12-13 07:32:54
问题 I have a RCP application. I recently moved the application to 64 bit. It is based on Eclipse 3.7.0. I noticed something weird. There is a discrepancy between TreeViewer expand/collapse icons on 32 and 64 bit builds on Windows 10. From what I understand it goes down to the OS which determines the theme and what to use for the icon. On 32 bit builds TreeViewer expand/collapse looks like: On 64 bit builds TreeViewer expand/collapse looks like: Why are 64 bit builds only using + -? This only

Writing process input stream data to GUI

…衆ロ難τιáo~ 提交于 2019-12-13 07:19:22
问题 Im using SWT in my java code for my GUI and im executing a process that his code is written in python. Im using the process input stream in order to catch the prints on the process and writing them immediatly into my GUI. my code: in = new BufferedReader(new InputStreamReader(process.getInputStream())); String line; while ((line = in.readLine()) != null) { printToTerminal(line); } and the printToTerminal function: protected void printToTerminal(String text) { terminal.append(text + "\n");

SWT: Table Resizing Issue

拜拜、爱过 提交于 2019-12-13 07:15:20
问题 I am working on a homework project wherein the user is displayed a product catalog and then the user selects a product from the catalog to make a purchase. I decide to build a basic UI using SWT. And not to mention I have just started learning SWT. So this is what I have done so far. The first component of UI is a Table which displays the product catalog. Code snippet for this: private void displayProductCatalog(List<Product> productList) { Group group = new Group(shell, SWT.NULL); group

HTML “getElementByID” implementation for SWT widget

蹲街弑〆低调 提交于 2019-12-13 05:59:50
问题 In HTML, there is something like document.getElementById("button1"); I would like something of this sort to happen in my SWT application. Say I created an SWT widget on the run with new Button(shell, SWT.PUSH) Is there anywhere I can get(reference) this object with something similar to getElementById(...) ? I am thinking of creating a HashMap<String, Object> type, where String places the id of the object(Widget) and then I will call hashMap.getKey(id) which will return me a reference to the

Eclipse-based IDE, LPCXpresso, doesn't launch because of SWT library not loaded

走远了吗. 提交于 2019-12-13 05:19:21
问题 I'm having trouble with LPCXpresso IDE. I'm unable to launch it. Here is a part of the log file : java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons: /home/fouge/.eclipse/org.eclipse.platform_4.2.0_470841845/configuration/org.eclipse.osgi/bundles/213/1/.cp/libswt-pi-gtk-4236.so: libgtk-x11-2.0.so.0: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou dossier de ce type I found help saying I need to make a symbolic link : ln -s /usr/lib/jni/libswt-* ~/.swt/lib/linux

Running SWT GUI from jar file is different (and faulty) but works perfectly running from eclipse

不羁的心 提交于 2019-12-13 04:38:18
问题 When I run my program from eclipse the GUI is perfect and all is swell. But when I export into jar file (with all dependencies) it runs, but the GUI is just strange and some of the UI items don't even appear (as you'll see in the screen shots). I have tried exporting as runnable jar, or as a normal jar with my own manifest file, and I've tried compiling and linking into a jar manually from terminal (I'm using linux mint by the way). My project compliance is set on java 1.8, and I have java 1

Cannot load 32-bit SWT libraries on 64-bit JVM

天涯浪子 提交于 2019-12-13 04:30:10
问题 My computer is win7 64 bit, and jdk is 1.7.0.21,jvm is 1.6.. and 64 bit I want to run SWT application and export as runnable jar file . When I run the application, it has the exception that Cannot load 32-bit SWT libraries on 64-bit JVM, so I import the SDK as alternate jre just like you point at Cannot load 64-bit SWT libraries on 32-bit JVM ( replacing SWT file ) , and in Eclipse, the application can run correctly, but when I edit the bat file to run the jar file, it always has the problem

JavaScript method processing fixed by alert()

℡╲_俬逩灬. 提交于 2019-12-13 04:25:41
问题 I have SWT application which uses map service API (http://mapy.cz particularly) for acquiring image as background for some additional drawings based on that provided map data. Before the browser component screenshot is made by SWT GC instance, I'm trying to hide the controls from map layer, to have it cleanest as possible. This functionality is provided by service's JS API this way: function hideControls() { var controls = map.getControls(); for (var i = controls.length; i > 0; i--) { map

Launching SWT on Mac using Java Web Start

核能气质少年 提交于 2019-12-13 04:23:39
问题 Goal: Launch SWT Web Start application on Mac using Java 7 In order to run an SWT RCP application on Mac OS X, it is well documented that it is necessary to include -XstartOnFirstThread as part of the Java Virtual Machine arguments. Unfortunately, Java Web Start seems to be deleting this argument. Looking at Java Web Start’s detailed tracing logs: temp: returning LaunchDesc from XMLFormat.parse(): <jnlp spec="1.0+" codebase=“..." href=“..."> <information> ... <resources> <java java-vm-args="

Launching eclipse application with java web start generates java.lang.ClassNotFoundException: org.eclipse.swt.SWTError

夙愿已清 提交于 2019-12-13 04:08:22
问题 I have an Eclipse application, for which I created the feature for generating the jnlp file. I built the application with maven tycho, for architectures x86 and x86_64. When I try to start the jnlp for the application, I see that all the resources are downloaded, but the application does not start. If I try to open it in a broswer, it starts. I checked the logs for the first case and I got the following: eclipse.buildId=unknown java.version=1.6.0_26 java.vendor=Sun Microsystems Inc.