swt

pentaho-kettle-8.2.0.0-R源码开发环境搭建

孤街浪徒 提交于 2019-12-03 03:43:06
1.从Kettle官网下载源码,本文使用的是pentaho-kettle-8.2.0.0-R 下载地址: https://codeload.github.com/pentaho/pentaho-kettle/zip/8.2.0.0-R 2.打开eclipse,选择一个新的工作空间,然后设置maven的信息,settings.xml使用官方提供的配置文件 点击下载 。下载可以根据需要设置自己本地仓库的存储路径。 因为为引入kettle项目源码的时候,会去默认的maven仓库地址下载项目构建所需的依赖,但这些依赖只在Kettle官方的仓库有,所以先配置好kettle的maven仓库地址。 3.引入已存在的maven项目,将解压后的kettle源码引入工作空间,如下图所示选择所有的项目 4.修改pom.xml中swt版本信息,官方的源码在linux系统中开发的,若在windows系统或其他系统中开发时需要更换为相应的swt版本,本文在在windows环境中开发。 工作空间全文搜索“<artifactId>org.eclipse.swt.gtk.linux.x86_64</artifactId>”更改为“ <artifactId>org.eclipse.swt.win32.win32.x86_64</artifactId>” 修改前 修改后 5.配置maven的Lifecycle

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

Eclipse look & feel customization

让人想犯罪 __ 提交于 2019-12-03 03:38:56
I need to customize the look & feel of my RCP application. I took a look at Eclipse Presentation API and I suppose it allows to customize everything in workbench except controls. So is there any solution to customize controls? I made some research work and implemented some ad-hoc SWT cunstomization using control canvas drawning. May be there are better solutions? In Swing you can use Synth theme. It would be great if some 'skin' framework exists for SWT. One way of customizing an RCP app is by using a plugin_customization.ini file. Like this: Create a new file called "plugin_customization.ini"

Can't get SWT Display on Mac OS X

青春壹個敷衍的年華 提交于 2019-12-03 03:35:56
I'm running Mac OS X Snow Leopard and wan't to access the Display from the activator in an OSGi bundle. Below is the start method for my activator: @Override public void start(BundleContext context) throws Exception { ExecutorService service = Executors.newSingleThreadExecutor(); service.execute(new Runnable() { @Override public void run() { Display display = Display.getDefault(); Shell shell = new Shell(display); Text helloText = new Text(shell, SWT.CENTER); helloText.setText("Hello SWT!"); helloText.pack(); shell.pack(); shell.open(); while (!shell.isDisposed()) { if (!display

Find composite location on screen

前提是你 提交于 2019-12-03 03:13:14
I am implementing a on screen keyboard in Java for SWT and AWT. One important thing is to move the keyboard to a position where the selected text field can show and is not lying behind the on screen keyboard. For AWT i can detect the position of the current selected component with Component owner = KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner(); if (owner == null) { return; } Point ownerLocation = owner.getLocationOnScreen(); Dimension ownerSize = owner.getSize(); How can i implement the same logic in SWT? I get the current selected widget by adding a focuslistener to

SWT composite - redraw problem

匿名 (未验证) 提交于 2019-12-03 03:05:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a composite element, that initially has a Label. Now I call dispose on the it (the label) and create another label in the same container (composite elm), but I don't see the new text. It brings me to question how do I enable redraw on the composite, so that the new label (or any other component I might create) will render in place of the old one. Here is the code I have (separated into a unit test for redraw a composite) private Label createLabel( Composite parent) { Label label = new Label(parent, SWT.NONE); label.setAlignment(SWT

XULRunner error in Eclipse / SWT

匿名 (未验证) 提交于 2019-12-03 03:04:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to run the Enhanced JavaScript Bridge example found here . I created a new project, and added a reference to SWT via: Project(right-click)-->Properties-->Libraries-->Add Variable-->Configure Variable-->New However I cannot get this project to run. The error I get depends on what SWT library I'm referencing: org.eclipse.swt.win32.win32.x86_64_3.103.2.v20150203-1351.jar : Error is Could not instantiate Browser: org.eclipse.swt.internal.mozilla.init.XPCOMInit.GREVersionRange_sizeof()I swt-3.6.1-win32-win32-x86_64\swt.jar : Error is

org.eclipse.swt.*; The import org.eclipse cannot be resolved

匿名 (未验证) 提交于 2019-12-03 02:49:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to write a small program that requires the import statement import org.eclipse.swt.*; . (I'm practicing with THIS tutorial). However, Eclipse won't compile the program and is giving me the error " The import org.eclipse cannot be resolved " Google hasn't been such a a great friend at finding the answer this time. 回答1: This is because you haven't added the SWT library to your buildpath. Follow the steps of the tutorial: Download SWT library. For 3.1.2 version of eclipse, SWT library is available at http://archive.eclipse.org

Unable to access jarfile lib\\archquery.jar

匿名 (未验证) 提交于 2019-12-03 02:48:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Problem: Unable to open SDK Manager (Flashes only for a second) No build path target in Eclipse Paths: Android SDK: C:\Program Files\Android\android-sdk JDK used for android: C:\Program Files\Java\jdk1.7.0_04 (There are other JDKs also in dir Java) Environment Variables: ANDROID_SDK_HOME: C:\Program Files\Android\android-sdk JAVA_HOME: C:\Program Files\Java\jdk1.7.0_04;C:\Program Files (x86)\Java\jre1.6.0;C:\Program Files\Java\jre7; System Path: C:\Program Files\Java\jdk1.7.0_04\bin;C:\Program Files\Java\jdk1.7.0_01\bin;C:\Program Files (x86

SWT Table.setLinesVisible(false) does not seem to work on Windows 7

匿名 (未验证) 提交于 2019-12-03 02:29:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Our company is trying to move everyone from Window XP to Windows 7, so I'm testing some of the home-grown SWT applications to make sure that they still work on Windows 7. Most of them still do, but there's some weird quirks. I've been able to work out most of them, but the one here I'm having no luck with. SWT Tables always seem to have an ugly black line between columns. I've tried calling setLinesVisible(false), but to no avail. I know this doesn't seem like an important difference, but our users can be quite picky. Has anyone had similar