eclipse-rcp

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

How to change Eclipse window title?

Deadly 提交于 2019-12-03 02:34:49
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.standard_XXXXX and found it containing a setting <property name="appName" value="Eclipse"> </property>

Eclipse 4 RCP (aka E4) documentation

痞子三分冷 提交于 2019-12-03 01:40:35
Is there at least anything other than Vogella's tutorials and his book , which is completely based on those tuts? Examples from his repo are often either incomplete/unfinished/won't run and those examples even don't match the book actually.. I'd like to find at least some javadoc for this, because any step to a side and I'm completely lost on how to accomplish different tasks and what functionality is available. Lars Vogel's Tutorials are the most complete and up-to-date documentation on Eclipse 4 development. Second to this is asking questions in Eclipse 4 Community Forum . Last option is to

Developing an Eclipse RCP application

我的梦境 提交于 2019-12-03 00:42:01
It's my first time to develop an RCP application with Eclipse 3.8. My question may seem weird but it is really confusing for me. Where can I put the code for my application? If I create the needed classes for my app where can I use their objects? In the Application.java class? I'm confused, and Internet tutorials focus only on the visual aspect and SWT, not on how to code. An eclipse RCP application is basically an eclipse plugin. I suggest starting off with an RCP application based on a simple template (e.g., the Hello World template). To create such an application, create a new plug-in

Adding a filter to the Project Explorer in Eclipse

主宰稳场 提交于 2019-12-03 00:32:23
I want to add a new filter to the Project Explorer, to hide from the user some projects that are created automatically in an Eclipse RCP Application. So far I've found two extension points: org.eclipse.ui.ide.resourceFilters Allows me to filter Navigation org.eclipse.jdt.ui.javaElementFilters Allows me to filter the Java Viewers I expect there is a similar extension point for the Project Explorer, but so far I haven't had any luck getting it. I tried importing org.eclipse.ui.navigator and org.eclipse.ui.navigator.resources but I could not find any interesting looking extension point either I

Sharing an Eclipse workspace across computers?

若如初见. 提交于 2019-12-02 22:51:03
问题 I need to design or use 5 to 10 PCs (with eclipse) but with the same workspace, how can I do that? I already tried but I can not share the folder of the workspace, please help 回答1: What do you want to achieve, actually? Because the workspace is supposed to be user specific. It contains things like settings, how perspectives are setup, which view to show where. Which means if two users share a workspace they will continually write of each others settings. And to enforce this, as soon as you

How to add files to the Eclipse RCP application root directory (application type plugins)?

拈花ヽ惹草 提交于 2019-12-02 22:09:53
问题 I saw on official documentation, and some posts that's possible to add files to the root of an Eclipse RCP application : http://help.eclipse.org/kepler/index.jsp?topic=/org.eclipse.pde.doc.user/tasks/pde_rootfiles.htm and How to add files to the root of an Eclipse RCP app? unfortunately, i can't make it works! I would like to distribute a file "launcher.bat" which has to be in the root of the application. Some information : - I use eclipse RCP 4 (with eclipse version = kepler). - My project

Search-Plugin for Eclipse

安稳与你 提交于 2019-12-02 21:07:13
问题 i have written am Eclipse-plugin and now need to extend it with a search functionality. I know that Eclipse has a search feature, but it does only search the workspace and what i need is to look after matches within my own plugin and than to show the result in a tree structure. Is there any examples of search-plugins for Eclipse? I would appreciate a link of some hint :D 回答1: Check out the org.eclipse.search.searchPages extension. 来源: https://stackoverflow.com/questions/10219441/search-plugin

Anyone have experience in building an Eclipse RCP application with Gradle?

笑着哭i 提交于 2019-12-02 20:56:56
Does anyone have experience in building an application based on Eclipse RCP with Gradle ? I'd like especially to know: How reasonable is it to build Eclipse RCP plugins and products with Gradle? Are there any Gradle plugins to achieve this task (like the Tycho plugin for Maven)? Do you know any tutorials or articles describing such an approach? Questions is three years old, nevertheless... Here is the solution: https://github.com/akhikhl/wuff there is a pdePlugin available for Gradle written by Gregory Boissinot. The plugin is available at https://github.com/gboissinot/gradleplugins . It

Why does Table.getItem(Point) always return the item from column zero?

本小妞迷上赌 提交于 2019-12-02 20:19:18
问题 I've implemented a class to give me a more flexible tooptip for the org.eclipse.swt.widgets.Table class. As I'm sure you all know, by default you get one tooltip for the whole table - and not individual tips for each cell. My object creates a number of listeners to implement it's own location sensitive tooltip, however, when I call Table.getItem(Point) to get the TableItem (or cell) over which the mouse is hovering it always returns the cell from column 0 of the correct row. The table in