eclipse-rcp

JFace examples in Eclipse like SWT Examples?

情到浓时终转凉″ 提交于 2019-12-05 05:53:08
Are there any all-in-one JFace controls example out there like the SWT Examples in Eclipse? Searching (googling and searching here on stackoverflow.com) did not help me. It would be nice if it was a standalone app or an eclipse plugin. Thank you. VonC Aside from the SWT JFace examples and introduction courses , you have some projects based on JFace controls: JFace Data Binding CellLabelProvider TreeViewer example Nebula project Nebula is a place where different Eclipse-Projects and Independent developers collaborate on building Custom SWT widgets and reuseable UI-Components useable in UI

Blinking background rows of TableViewer or TreeViewer in SWT

◇◆丶佛笑我妖孽 提交于 2019-12-05 03:44:31
I need the ability to have a blinking (red, maybe more colors) background for rows in a TableViewer/TreeViewer. What are the best options? There may be more than one row blinking, the blinking MUST be synchron and I need two blinking modes, fast and slow. Kire Haglin I would do something similar to this. Update the elements that you need to change the colors for at a regular interval. At each update toggle the colors depending on how you want them to flash. void scheduleColorChange(final Color colors[], final int startIndex, final int changeInterval) { getDisplay().timerExec(changeInterval,

How to add @Override, @Deprecate and static modifiers to methods automatically for all project Java classes where necessary?

痴心易碎 提交于 2019-12-05 02:40:21
I need to insert @Override / @Deprecated annotations and static modifiers automatically where necessary to all Java files of concrete project is opened in Eclipse IDE. Eclipse has a great ability to insert @Override / @Deprecate annotations and add static modifiers on Java files saving ( Preferences -> Java -> Editor -> Save actions -> Additional actions ). But Eclipse can apply these actions only on edited java file and only when saving it. Sure, I can insert a tab or space into the each file using Eclipse as editor and save it to activate Eclipse refactoring tools on save action, but I have

Bundle JRE with RCP plugin based application by tycho maven

橙三吉。 提交于 2019-12-05 02:22:27
问题 I have the RCP application that based on plugin model. I would like to put JRE to final artifacts that created by Maven+Tycho. I tried to follow to these recomendation including-a-jre-in-a-tycho-build bundle-jre-along-with-your-product I created one more feature project where required JRE is put to folder in root of the feature project. In my case this jre/win64. The I add feature to product definition. But I don't understand How shall I notify maven process that responsible for product

Disable plugin contributions in Eclipse RCP Application

a 夏天 提交于 2019-12-05 00:09:51
问题 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

Enumerating all my Eclipse editors?

那年仲夏 提交于 2019-12-05 00:05:54
问题 I have built a simple Eclipse plugin where a user may use a TableViewer of database resources to open an editor on any of those resources. Users may therefore have zero upwards instances of the editor running. Is there an API available to get a list of those editor instances? 回答1: You can get references to all open editors with: PlatformUI.getWorkbench().getActiveWorkbenchWindow() .getActivePage().getEditorReferences(); And then check these to select the ones that reference instances of your

Eclipse RCP - all possibilities to define dependencies?

时光怂恿深爱的人放手 提交于 2019-12-04 23:36:20
问题 Is there somewhere a list of all possibilities, to define dependencies in an Eclipse RCP project? maybe filtered by resources? Possible dependencies: from other Eclipse RCP Plugins by package, without explicitely defining the plugin jar libs ... 回答1: as you said, you can use the following directives in the MANIFEST.MF to define dependencies Require-Bundle (for depending on specified bundles) Import-Package (for depending on packages available by export from other bundles) Bundle-Classpath

MouseDown events are not delivered until MouseUp when a Drag Source is present

大城市里の小女人 提交于 2019-12-04 22:51:51
I have a mouse listener. It has some code to respond to mouseUp and mouseDown events. This works correctly. However, as soon as I add a DragSource, my mouseDown event is no longer delivered -- until I release the mouse button! This is trivial to reproduce - below is a simple program which contains a plain shell with just a mouse listener and a drag listener. When I run this (on a Mac), and I press and hold the mouse button, nothing happens - but as soon as I release the mouse button, I instantly see both the mouse down and mouse up events delivered. If I comment out the drag source, then the

get line number within a eclipse Plugin

柔情痞子 提交于 2019-12-04 21:07:36
I'm looking for the right extension point for my plugin to access the cursor position in the editor. The aim is to provide additional information to the current code line in a plugin view. I sure it is possible, since the Outline view for example highlights the current function which I'm within. thx You can use textSelection.getOffset() from the pattern you've found and then use the org.eclipse.jface.text.IDocument interface to extract text from the document to do whatever analysis you want. ITextEditor textEditor = (ITextEditor)editor; IDocumentProvider dp = editor.getDocumentProvider();

Eclipse RCP - relative field of view perspective extension not working

对着背影说爱祢 提交于 2019-12-04 19:30:55
Greetings fellow Stackoverflownians, Currently developing an Eclipse RCP app. I'm trying to make a view appear in the right place when the perspective is reset. In my plugin.xml: <perspectiveExtension targetID="the.perspective.id"> <view id="the.first.view.id" relationship="stack" relative="org.eclipse.ui.navigator.ProjectExplorer" visible="false"> </view> <view id="the.second.view.id" relationship="left" relative="org.eclipse.ui.navigator.ProjectExplorer" visible="true"> </view> </perspectiveExtension> Where the first and second views are declared in the views extension point. As per eclipse