eclipse-rcp

Using Eclipse with large workspaces

守給你的承諾、 提交于 2019-12-06 04:51:51
问题 Our current product is based on Eclipse RCP. We are starting to have problems when we try to have our whole code base inside one eclipse workspace and we were wondering what others were doing. Here's our setup: ~225 eclipse projects (all in trunk/project) ~30 eclipse features (all in trunk/features) ~900k lines of code We are finding a few different bottlenecks: SVN on Windows is dreadfully slow (tried TortoiseSVN, SmartSVN, command line svn), an update can take in the upwards of 5-8 minutes

get ITextViewer from IEDitorPart (Eclipse)

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-06 04:34:59
Eclipse RCP question I open file with: IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage(); IEditorPart editorPart = IDE.openEditor(page, file); I also get document with: IDocument doc = ((ITextEditor)editorPart).getDocumentProvider().getDocument(editorPart.getEditorInput()); I need to get to text viewer of that document (for creating LinkedModeUI), is there any way to do this? The following worked for me: IEditorPart editorPart = getSite().getPage().getActiveEditor(); if (editorPart != null) { ITextOperationTarget target = (ITextOperationTarget

How can I embed Clojure in an RCP application

烈酒焚心 提交于 2019-12-06 04:11:57
问题 I am currently using javascript to add scripting to an Eclipse RCP application, but I would prefer to be able to use Clojure. However, I have run into classpath difficulties because while Eclipse can find the Clojure classes, Clojure itself can't. The plugin activator's start method: public void start(BundleContext context) throws Exception { super.start(context); plugin = this ; Class.forName("clojure.lang.RT") ; JSController.startup() ; } doesn't raise a class not found exception for

How do I change the background selection color for a jface table

核能气质少年 提交于 2019-12-06 04:06:05
问题 In a elipse-rcp application I am setting the background color for a row in a jface table but I don't want the selection to change this color. I want to be able to specify the color change for a selected row. 回答1: According to this thread, for JFace Viewers ( ListViewer , Table , Tree ) by means of using EraseItem and MeasureItem events General principle detailed in the article "Custom Drawing Table and Tree Items" SWT.EraseItem : allows a client to custom draw a cell's background and/or

Eclipse RCP cannot find EclipseStarter

廉价感情. 提交于 2019-12-06 03:57:46
问题 I have an RCP application to develop; the code was written a couple of years ago, and I have to finish it. I imported the plugins in Eclipse, I solve all the dependencies, but when I try to launch it I get this error: !SESSION Tue Mar 29 10:13:24 CEST 2011 ----------------------------------------- !ENTRY org.eclipse.equinox.launcher 4 0 2011-03-29 10:13:24.326 !MESSAGE Exception launching the Eclipse Platform: !STACK java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor

Howto restart an e4 RCP application

泄露秘密 提交于 2019-12-06 03:22:43
A 3.* based RCP application will be restarted if IApplication.start returns IApplication.EXIT_RESTART. The class E4Application seems to always return EXIT_OK. org.eclipse.ui.IWorkbench also has a restart method, org.eclipse.e4.ui.workbench.IWorkbench does not. So how can I restart an e4 RCP application? The current implementation in Eclipse 4.2 leads to a command with id org.eclipse.ui.file.restartWorkbench which ultimately leads to the handler class RestartWorkbenchHandler. This class is implemented as follows public Object execute(ExecutionEvent event){ PlatformUI.getWorkbench().restart();

eclipse rcp keybindings don't work

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-06 03:19:37
问题 I am trying to make eclipse keybindings work. I tried to make the rename command work. I looked at some tutorials and experimented. I enabled command and key binding trace in console (http://eclipsesource.com/blogs/2009/07/08/tip-tracing-keybindings-in-rcp/). I have created a custom command: com.mycompany.myproduct.command.rename This is what I got so far: 1) I tried to follow this tutorial,http://www.vogella.com/tutorials/EclipseCommandsKeybindings/article.html, but I came to the conclusion

Maven Tycho: How to Exclude eclipsec.exe in a product build?

最后都变了- 提交于 2019-12-06 03:19:20
问题 I switched the build of our Eclipse RCP product from PDE-build to Maven Tycho. In addition to the main (branded) launcher executable, the product now includes the "eclipsec.exe" file. We would like to omit this console-based launcher from our product as it might confuse our customers. Is there a way to do that with Tycho? 回答1: I got this answer on the tycho-users list: In your eclipse-repository project, assuming that you have a .product file, you can place another file in the same directory

Build Eclipse cross-platform with Maven Tycho

折月煮酒 提交于 2019-12-06 01:41:45
问题 I try to compile an Eclipse Indigo RCP application with Maven and Tycho . It works fine if I just build it for one platform but if I try to build it for more the build stops working. The Problem is that I have platform specific plugins in my product file I want to build. Dependencies like org.eclipse.swt.win32.win32.x86 which are fragment plugins for org.eclipse.swt . When I add no platform specific fragments to my product the application wouldn't start because there are no platform libraries

Eclipse RCP application - custom splash screen

孤者浪人 提交于 2019-12-06 00:24:05
I'm currently developing an Eclipse RCP application, in which I'm trying to implement a custom splash screen handler, sporting a progress bar (behavior similar to the default progress bar you can define in the .product definition) and multiple cycling background images. After editing the extensions of the main application plugin this way: [...] <!-- install custom splash handler --> <extension point="org.eclipse.ui.splashHandlers"> <splashHandler class="com.example.application.splash.SlideShowSplashHandler" id="splash.slideshow"> </splashHandler> <splashHandlerProductBinding productId="com