rcp

How to customize eclipse perspective programmatically?

故事扮演 提交于 2020-01-12 19:01:28
问题 I want to make the same behavior I got when I do a right click on a perspective and choose customize to get this window I want to customize menus and toolbars for my perspective only programmatically. Actually, I want to remove most menus and toolbars in my perspective only and let them show up again when I change to any other perspective Can you please help me with this ? 回答1: This guide shows how to customise toolbars programmatically based on the current perspective, and hints that the

Eclipse RCP application - Create a window programmatically

邮差的信 提交于 2020-01-12 10:08:10
问题 In an RCP application, how I can programmatically define and open a new window? I want to open several window - each window show different data. How can I set different input for each window? I want to simulate the same functionality of Eclipse IDE (Window --> New Window), but I want each new opened window to have different input. I'm trying to use : IWorkbenchPage newPage = window.openPage(inputObject); How can I programmatically define the "inputObject" that identifies the data shown in the

Eclipse Rcp系列 http://www.blogjava.net/dreamstone/archive/2007/02/08/98706.html

微笑、不失礼 提交于 2020-01-11 23:00:49
Eclise Rcp 系列一 第一个SWT程序 写在开始: 由于工作须要,做了一周时间的Rcp开发,发现由于Eclipse开发方面的中文资料较少,对入门者来说有些困难, 所以把自己一周的内容放上,共享给开始学习Eclipse开发的人 Eclipse开发中有很多名词: 插件开发 ,RCP ,SWT,Jface很容易让人迷糊 做个大概的比喻,如果说SWT是C++的话 那么JFace就像STL对SWT做了简单的封装 Rcp就像MFC封装更多 而插件开发和Rcp唯一不同就使导出不同,一个导出成plug in,另一个导出成独立运行的程序。其实没有什么区别 好了,开始第一个程序,从Hello world开始。写到这个地方,再次崇拜一下第一个写Hello world的人。 真应改给他搬个什么普及教育之类的奖项。 import org.eclipse.swt.SWT; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Label; import org.eclipse.swt.widgets.Shell; public class HelloSWT { public static void main(String[] args) { Display display = new Display();

How to make an eclipse partstack not disappear when the last part is closed?

爱⌒轻易说出口 提交于 2020-01-11 06:24:14
问题 I'm working on a project with a main window consisting of a mpartstack where I add parts dynamically from another part. The problem is that when the last part gets closed the mpartstack disappears and the other part takes up all the space. When I try to add new parts nothing happens. I've tried fiddling around with the preDestroy function in the parts that are added to the stack by trying to add a new part. The preDestroy works occasionally but far from satisfactory. I've looked far and wide

云主机上传文件的具体步骤

别来无恙 提交于 2020-01-07 13:53:21
云主机文件上传方式有很多种多样,这儿宵云详细介绍几类当地共享资源的方式。 一、Windows网络服务器文件上传方法 1、运作mstsc,联接远程桌面的那时候,点“选择项”“当地資源”–详细资料。 2、“磁盘驱动器”前边打钩。联接远程电脑后,打开计算机,就能见到共享资源的硬盘驱动器。 3、把必须上传入云主机的文档复制粘贴回来就就行了。 二、向linux网络服务器文件上传方法 rcp作用发送 总体目标云服务器必须事前开启rcp作用,并设定好rcp的管理权限:把源服务器添加到可信任站点服务器目录中,不然没法在源服务器上应用rcp远程控制复制粘贴文档到总体目标服务器。 winscp手机软件方法 在Windows安装下载winscp,运作后能够看见远程控制Linux网络服务器文件目录,挑选要发送的文档移到相对的文件目录就可以,该方法简易好用。 运用SecureCRT 1.本地下载SecureCRT,缓解压力后开启,点一下相互连接,键入网络服务器网络ip和登录名,点一下联接。 2.键入网络服务器登陆密码,点一下明确。联接取得成功以后,若云主机未安裝RZ手机软件,开展安裝。 3.安裝rz取得成功以后,键入rz,回车键弹出来文档挑选对话框,挑选必须发送的文档,点一下加上。 4.等候上传文件,进行以后则进行上传文件,键入rz发送的文档默认设置在root下。 来源: CSDN 作者: 宵云建站 链接:

Getting the content of a view Eclipse RCP

℡╲_俬逩灬. 提交于 2020-01-05 09:53:36
问题 How can I get the content of a specific view ? For instance, I want to get the size of a table in a view. I only have the view ID wanted and more globally the workbench. I cannot modify the original RCP project. Thanks 回答1: You can use org.eclipse.ui.IWorkbenchPage.findView(String) to return the IViewPart (the instance of the contributed object that created that view). From there, you would have to know and have access to the class and internals to get ahold of their Tree object: IViewPart

A tutorial on adding search to an Eclipse RCP program

大城市里の小女人 提交于 2020-01-03 13:56:18
问题 Could some one point me to a tutorial on how to work with the Eclipse search plug-in with custom views in an Eclipse RCP program. I have tried searching google for one, but I have found to have the word "search" in your search phrase you might as well not have it there. I have tried the phrase "Eclipse RCP search" "Eclipse RCP search tutorial" "Eclipse RCP search plug-in" and none of my results are about the search plug-in (maybe a suggested search phrase if one can not suggest a good

Eclispe does not show progress bar of user threads

浪尽此生 提交于 2020-01-03 02:33:05
问题 I created some user jobs on start-up of eclipse, but after launching the workbench I am not able to see the progress bar. Is there anywhere I have to mention these threads other than making them user threads? protected IStatus run(IProgressMonitor monitor) { monitor.beginTask("Download", -1); for (ProxyBean network : ProxyBean.get()) { // do something } monitor.done(); return Status.OK_STATUS; } I initialize it in this way: job = new MyJob(); job.setUser(true); job.schedule();` 回答1: Check

Eclipse 3.5 and Java 7

眉间皱痕 提交于 2020-01-02 03:56:07
问题 Is there any way where I can increase the Java Compiler Compliance level of Eclipse 3.5 to 1.7. (i.e.) By adding a plugin/add-on. Since by default this will not support the JDK 1.7 compliance. We have a constraint in Eclipse upgrade, since it's an RCP application. Any thoughts on this will be greatly appreciated. Thank You. 回答1: Old eclipse version doesn't support java 7. You will have to download at least eclipse-3.8M1 version. 回答2: To conclude, there is no way to enable Java 7 Compliance in

JFace DialogCellEditor: how to make buttons always appear?

痴心易碎 提交于 2019-12-31 03:31:07
问题 I use JFace DialogCellEditor to show a button in a cell of a row of my JFace TableViewer which triggers a dialog when activated. This behaviour works well with the following code but the button only appears when the cell of the table hosting the button is explicitly selected. public class CompareDialogCellEditor extends DialogCellEditor { public CompareDialogCellEditor(Composite parent) { super(parent); } @Override protected Button createButton(Composite parent) { Button button = super