eclipse-rcp

Can't get SWT Display on Mac OS X

你离开我真会死。 提交于 2019-12-03 14:38:02
问题 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!");

Disable plugin contributions in Eclipse RCP Application

六眼飞鱼酱① 提交于 2019-12-03 14:20:20
I frequently had this problem and didn't find a solution yet: Whenever I write a new Eclipse RCP based application and include plugins from the Eclipse platform, I 'inherit' UI contributions from some of those plugins. Most of this contributions (menu entries, keyboard shortcuts, property pages) are useful but sometimes I'd rather disabled some of these contributions, just because I really do not need them and they might confuse the users. Does anyone know of the official or a practical way to disable/prohibit selected contributions in Eclipse RCP applications? Nick Veys Take a look at the

Java 7 update 45 broke my Web Start SWT application

左心房为你撑大大i 提交于 2019-12-03 13:54:21
问题 I maintain an Eclipse RCP application launched with WebStart. Java 7 u45 made some security changes, and now my application crashes on startup. I've added to the manifest: Permissions: all-permissions Codebase: * Trusted-Library: true This removed all of the warning messages from the Control Panel. But I still have a classloader issue when trying to load my IApplication implemenentation, probably the first of my classes to load. This is new to update 45. 回答1: I have experienced the same issue

Learning Eclipse RCP and SWT/JFace

。_饼干妹妹 提交于 2019-12-03 13:48:27
问题 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? 回答1: I read the first edition of the book in 2007 when I started a project with Eclipse RCP

Eclipse look & feel customization

北城以北 提交于 2019-12-03 13:36:39
问题 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. 回答1: One way of customizing an RCP app

How to change Eclipse window title?

懵懂的女人 提交于 2019-12-03 12:03:11
问题 How to change the title (last part of it) of a running Eclipse? I am speaking about Eclipse distribution itself, not about my program written for Eclipse. Currently I have the the following title: 1 this part is set in Window -> Preferences -> General -> Workspace -> Workspace name . Other parts are autogenerated. I want to change part 2 which is now Eclipse . I have several Eclipses installed and want to refer them here. UPDATE I found file plugin.xml inside ./plugins/org.eclipse.epp.package

How do I get the workbench window to open a modal dialog in an Eclipse based project?

醉酒当歌 提交于 2019-12-03 10:51:57
In order to open a modal dialog, you need to pass a parent window, and pass the necessary flags for the dialog to be modal of course. Depending on where you are in the eclipse infrastructure, finding this parent window is not always easy. How can the parent window be accessed? zvikico The piece of code from the previous answer will work. However, keep in mind you can only open your dialog from the UI thread. If you are opening the dialog from a different thread, e.g. a background process, you need to do something like this: PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() {

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.

How to create my own shell to replace the shell created in the MTrimmedWindow in e4 RCP?

被刻印的时光 ゝ 提交于 2019-12-03 08:23:16
Is there a way to replace the shell generated by Eclipse RCP for the MTrimmedWindow by a user defined window? Eclipse creates a shell with a particular style type, which can only be provided while creating. I want to remove maximize and resize from the shell element created for the MTrimmedWindow. If any one has a solution for the above problem please reply. The style for the shell cannot be changed after creation, and the shell itself cannot be exchanged after it has been created by the renderer. But the situation is not hopeless. Eclipse 4 uses renderers to generate UI elements from the

can I combine SWT GridLayout and FillLayout

走远了吗. 提交于 2019-12-03 08:03:07
I have an RCP/SWT application in which I'm trying to construct a view out of existing composites. One is a FillLayout composite, the other uses GridLayout. I'd to like to end up with a view in which the GridLayout composite is lined up to the left of the FillLayout composite (think vertical banner) and is about 10 percent the width of the entire view, with the existing FillLayout composite comprising the other 90 percent. I'm not sure if it is possible in SWT to combine layouts, but I'm thinking something like a GridLayout with two columns. Column one would contain the GridLayout widget and