rcp

Print using SWT Browser Widget

回眸只為那壹抹淺笑 提交于 2019-12-06 13:17:31
问题 I want to print the contents of a SWT Browser Widget. but it prints the only the visible part of the browser not the full content of it. Please help. 回答1: I've modified the SWT Browser snippet to selected code, and it work for me like a charm.. import org.eclipse.swt.*; import org.eclipse.swt.layout.*; import org.eclipse.swt.widgets.*; import org.eclipse.swt.browser.*; public class BrowserPrintTest { public static void main(String [] args) { Display display = new Display(); final Shell shell

How can I disable Quick Access TextField in Eclipse RCP Application

雨燕双飞 提交于 2019-12-06 09:22:10
today I changed my Eclipse IDE from 3.7 to 4.2 and my plugin-project has a new feature in the Statusbar of the UI called QuickAccess. But I dont need it, so how can I disable this feature, because the position of my button bar has changed... Go to Help --> Install New Software https://raw.github.com/atlanto/eclipse-4.x-filler/master/pdt_tools.eclipse-4.x-filler.update/ Install that Plugin and Restart the Eclipse. Quick Access automatically hide. or else you have an option to hide Window --> Hide Quick Access. For all who have the same problem, it seems that this new feature is hardcoded and

Printing with an Eclipse RCP program

て烟熏妆下的殇ゞ 提交于 2019-12-06 07:42:41
I am looking for a good, standard way to generate "output" in my RCP programm and print it. This should work as it works on Windows, Mac OS and Linux with the standard print dialog. I am aware of the Birt project, but I could not find any hints about how to implement it within a RCP programm and how to invoke the standard print dialog and how to pass the Birt generated report to the printer. Happy for all hints. VonC I believe the Birt project used to use IText . (now ITextPDF ) The other solution is to integrate Apache Fop in your RCP project . (see Apache FOP ). For that to work, it is

Eclipse plugin with external third party jar

不想你离开。 提交于 2019-12-06 06:11:05
I have an RCP application which includes different plugins. In one of the plugin I am using an external third party jar. Due to copyrights reasons I cannot bundle that jar into my product. So I try to include the jar as external jar at runtime. what I have done is as follows In the Plugin manifest.mf I have Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: %pluginName Bundle-SymbolicName: EaCom-plugin;singleton:=true Bundle-Version: 2.1.0 Require-Bundle: org.eclipse.core.runtime Bundle-RequiredExecutionEnvironment: JavaSE-1.6 Bundle-ClassPath: ., external:$eaapi_location$/eaapi.jar

Eclipse RCP application Log View: change/set TimeZone for messages sent to the Eclipse Log view

你。 提交于 2019-12-06 05:37:09
I'm developing an RCP application that uses the Eclipse Log view. All the messages logged have the TimeZone set to system current time. I need to have those messages all in GMT time for example As far as I can see, there is no direct customisation possibility regarding the emitted timestamps in the Eclipse Log view. Subclassing of Eclipse classes etc. wouldn't help much either, since most of the things we would have to change are private fields / private methods of 'internal' classes. Any suggestion on how I can configure the eclipse Log View plugin in my RCP application to have the time of

Restrict permissions to threads which execute third party software

好久不见. 提交于 2019-12-06 05:11:17
问题 I'm developing an eclipse based application capable to execute third party component (not eclipse-plugin). Each component has a custom descriptor, where are listed permissions (with correspondent motivation). In this way final user can decide if execute it or not. Components are executed in separated threads. How can I restrict permissions to these threads according with the descriptor, without restrict entire application? Thanks 回答1: First of all, you should turn on the Security Manager.

Eclipse RCP: Parallel jobs presented in one progress dialog?

只谈情不闲聊 提交于 2019-12-05 22:43:59
问题 I would like to show progress of multiple Jobs running in parallel, but in only one progress dialog. But each call to Job.setUser() seems to result in a new progress dialog. I've tried: Setting a common progress group on all the jobs (obtained via IJobManager.createProgressGroup()). Having one parent job call setUser() and join a job family to which all the parallel jobs belong. (This results in a message that progress is blocked on the parent job, by the background tasks.) What pattern can I

Configure a p2 update repository programmatically

前提是你 提交于 2019-12-05 22:21:21
There is an article in the Eclipse wiki how to configure user's p2 default repositories of an RCP application by adding a static conf file to your product: Equinox/p2/Adding Self-Update to an RCP Application - Configuring the user's default repositories I want to do the same programmatically in a Java class when the user changes some configuration details. I could not find appropriate p2 API documentation for that. Use this solution for Eclipse 3.7 based applications: final ProvisioningUI ui = ProvUIActivator.getDefault().getProvisioningUI(); IArtifactRepositoryManager artifactManager = ProvUI

how to print jasper report in Eclipse RCP using its print option?

那年仲夏 提交于 2019-12-05 16:59:22
My question : I have a ViewerComposite in Eclipse RCP application which displays Jasper Report (*.jrxml) integrated into it. The report displayed in this ViewerComposite can be exported as PDF,RTF,XML,jrxml,HTML,CSV, etc. Everything is fine except I can not print this report by using the print option provided at top of ViewerComposite in GUI. How can I print the reports by using my default printer by using print option of the report viewer. Rem: I can print jasper report by using the print option of jasper report viewer composite in Oracle JDeveloper Projects without adding any more codes(by

How to keep SWT menu open after user clicks menu item?

偶尔善良 提交于 2019-12-05 16:03:40
I have an Eclipse RCP / SWT application with a Menu of Check Box Menu Items. I would like to be able to check/uncheck multiple items before clicking elsewhere to close the menu. However, the default SWT behavior is to close the menu after a single click. I have implemented the following very hacked solution which works, but is certainly not elegant and probably won't work properly on all platforms or under all circumstances. So I'm very interested in a simpler technique if one exists. The following code should compile and run inside eclipse right out of the box (apologies for the length, its