rcp

How to use log4j in an Eclipse RCP?

十年热恋 提交于 2019-11-29 07:03:04
How to use log4j logging API in an Eclipse RCP project? As a workaround U tried to create a new OSGI Bundle which has a log4j jars, below is the bundle structure: I've crated a basic RCP application with a view (template) named loggingtest .I've included the bundle log4j in the dependencies tab of loggingtest project.In the Activator start method i placed the following code Logger logger = Logger.getLogger(Activator.class); logger.info("Info starting"); logger.warn("Warning starting"); logger.error("Error starting"); so everything is fine so far I'm able to use log4j API and half way through,i

Prevent SWT ScrolledComposite from eating part of it's children

不打扰是莪最后的温柔 提交于 2019-11-29 03:46:59
What did I do wrong? Here is an excerpt from my code: public void createPartControl(Composite parent) { parent.setLayout(new FillLayout()); ScrolledComposite scrollBox = new ScrolledComposite(parent, SWT.V_SCROLL); scrollBox.setExpandHorizontal(true); mParent = new Composite(scrollBox, SWT.NONE); scrollBox.setContent(mParent); FormLayout layout = new FormLayout(); mParent.setLayout(layout); // Adds a bunch of controls here mParent.layout(); mParent.setSize(mParent.computeSize(SWT.DEFAULT, SWT.DEFAULT, true)); } ...but it clips the last button: bigbrother82: That didn't work. SCdF: I tried your

软件分发管理器Secure Delivery Center基本概念概述(二)

南楼画角 提交于 2019-11-28 22:17:33
< 免费下载Secure Delivery Center 2015 > 7月23日软件分发管理神器Secure Delivery Center免费技术交流会,MyEclipse原厂商倾力主讲,敬请关注! 在 软件分发管理器Secure Delivery Center基本概念概述(一) 一文中,小编为大家介绍了分发管理器、交付中心以及包&库的一部分内容,在本文中,小编将接着包&库这一部分继续为大家介绍Secure Delivery Center的一些基本概念,欢迎大家品鉴! 包&库 如上图所示,从Genuitec中接收到的软件可以是MyEclipse、Eclipse,也可以是附加软件。管理员在SDC服务器上加载用于管理交付中心分发的软件。从那里,您可以为基于Eclipse的其他来源的安装程序交付一个被管理的secure marketplace目录和安全策略 。或者,您可以向最终用户交付完整的安全目录和自定义IDE。 第三种软件包类型就是Eclipse RCP包。您可以通过SDC指定Eclipse IDE包中的一个RCP产品来交付RCP应用程序。这有两种RCP的部署模式。 在SDC中"Based on Package"方法适用于在一个标准的Eclipse包顶端定义Eclipse应用程序或产品。您可以把您的软件视为第三方软件,然后在软件标签上将其添加到Eclipse包中。"Product

Which Rich Client Platform to use

爷,独闯天下 提交于 2019-11-28 20:43:34
We recently started to develop a Java desktop app and management has requested that we make use of Rich Client Platform. I know of four for Java namely: Eclipse RCP - www link to ecipse rcp , Netbean RCP - Netbeans RCP web site , Spring RCP - spring rich client Valkyrie RCP - Valkyrie rich client Has anyone got any experience in any of these and if so what are the strength and weaknesess of each? thanks I recommend that you take a look at JSR 296 - it's not complete yet by any stretch, but I think it hits the sweet spot for providing certain core functionality that you really, really need in

What are the differences between plug-ins, features, and products in Eclipse RCP?

旧城冷巷雨未停 提交于 2019-11-28 15:24:57
What are the differences? What gets used for which purpose? VonC As the RCP tutorial details Plugins are the smallest deployable and installable software components of Eclipse. Each plugin can define extension-points which define possibilities for functionality contributions ( code and non-code ) by other plugins. Non-code functionality contributions are for example the provision of help content. The basis for this architecture is the runtime environment Equinox of Eclipse which is the reference implementation of OSGI. See OSGi development - Tutorial for details. The Plugin concept of Eclipse

How do I write a JUnit test case to test threads and events

自作多情 提交于 2019-11-28 10:05:51
I have a java code which works in one (main) thread. From the main thread, i spawn a new thread in which I make a server call. After the server call is done, I am doing some work in the new thread and after that the code joins the main thread. I am using eclipse Jobs to do the server call. I want to know, how do I write a JUnit test case for this. You may need to restructure your code so that it can be easily tested. I can see several distinct areas for testing: Thread Management code: the code that launches the thread(s) and perhaps waits for results The "worker" code run in the thread The

Set Size of JFace Wizard

寵の児 提交于 2019-11-28 07:29:25
问题 I am building an Eclipse RCP application and am having trouble on settings the size of a JFace Wizard. 回答1: Yeah, it is generally a good idea to let Eclipse work out the size for you. However, if you really want to set the size of the wizard, you can do it by setting the size of the WizardDialog which you are using to open your wizard. For example: Wizard wizard = new MyCustomWizard(); WizardDialog wizardDialog = new WizardDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell()

Prevent SWT ScrolledComposite from eating part of it's children

↘锁芯ラ 提交于 2019-11-27 18:04:51
问题 What did I do wrong? Here is an excerpt from my code: public void createPartControl(Composite parent) { parent.setLayout(new FillLayout()); ScrolledComposite scrollBox = new ScrolledComposite(parent, SWT.V_SCROLL); scrollBox.setExpandHorizontal(true); mParent = new Composite(scrollBox, SWT.NONE); scrollBox.setContent(mParent); FormLayout layout = new FormLayout(); mParent.setLayout(layout); // Adds a bunch of controls here mParent.layout(); mParent.setSize(mParent.computeSize(SWT.DEFAULT, SWT

How to get the selected node in the package explorer from an Eclipse plugin

烂漫一生 提交于 2019-11-27 13:46:49
问题 I'm writing an Eclipse command plugin and want to retrieve the currently selected node in the package explorer view. I want to be able to get the absolute filepath, where the selected node resides on the filesystem (i.e. c:\eclipse\test.html), from the returned result. How do I do this ? 回答1: The first step is to get a selection service, e.g. from any view or editor like this: ISelectionService service = getSite().getWorkbenchWindow() .getSelectionService(); Or, as VonC wrote, you could get

Which Rich Client Platform to use

徘徊边缘 提交于 2019-11-27 13:06:23
问题 We recently started to develop a Java desktop app and management has requested that we make use of Rich Client Platform. I know of four for Java namely: Eclipse RCP - www link to ecipse rcp, Netbean RCP - Netbeans RCP web site, Spring RCP - spring rich client Valkyrie RCP - Valkyrie rich client Has anyone got any experience in any of these and if so what are the strength and weaknesess of each? thanks 回答1: I recommend that you take a look at JSR 296 - it's not complete yet by any stretch, but