eclipse-rcp

Transfer Items between Views with Drag-and-Drop in Eclipse RCP?

心已入冬 提交于 2019-12-21 17:47:00
问题 I have 2 views in my application. In one of the views I can see a TreeStructure containing custom defined elements (such as MDocument, MVersion...). I would like to be able to drag items of type MVersion from my view to the other one but I don't know how to declare the transfer types or to check if the item selected is a supported type. Any ideas? 回答1: The easiest way is to use LocalSelectionTransfer. Once you have added drag/drop support to your viewers... You set the ISelection that is

Simple “check for update” library in java

霸气de小男生 提交于 2019-12-21 17:01:59
问题 I'm using Eclipse RCP, but, mainly because i have total control of the UI (removed all contributions, made Preferences from scratch, etc) i just cannot accept the complexity and demand of the included UPDATE MANAGER (also, i use PLUGINS not features, and the app Plugin must be EXTRACTED - though i could get arround this last issue). Anyway, on a first approach i just want to check IF there is a newer version of the app available. The logical way would be to check against a file (xml?) on a

Require-Bundle and Import-Package versus feature.xml requires

旧时模样 提交于 2019-12-21 11:33:29
问题 When building an Eclipse plugin ( lato sensu ) which consists of multiple plugins and one feature, I have two ways of specifying dependencies: in the plugins themselves, using Require-Bundle and Import-Package in META-INF/MANIFEST.MF ; in the feature.xml file from the feature. In my understanding, it should be enough to declare the dependencies at the lower level, i.e. in the plugins. Why do we still have the feature.xml requires mechanism? Update : feature.xml description in the Eclipse Help

Can Spring and SWT work together for Java Desktop Applications?

主宰稳场 提交于 2019-12-21 11:30:26
问题 I am going to design Java Desktop Application. While I was design web application, I got plenty of choice, e.g. Spring, Strut etc. However, for Java Desktop (which is new to me), I don't find any. Is that Eclipse RCP a Java Desktop Framework, which works like Spring mvc in Web apps? I wonder, can I use Spring to enjoy the benefit of IOC, together with Eclipse RCP to enjoy the benefit of both world? Please advise. Thanks. 回答1: In java desktop land, you have 2 major choices : Swing or SWT. I'm

When to choose “Generate an activator…” when creating a new Eclipse plugin project

梦想的初衷 提交于 2019-12-21 09:28:28
问题 There are lots of Eclipse RCP tutorials that begin with the obvious first step: "Create a new plugin project..." It seems that approx. 70% of them specify checking the "Generate an activator, a Java class that controls the plug-in life cycle" . The others specifically say don't check that toggle. alt text http://img179.imageshack.us/img179/6710/newpluginoptions.png Its not clear to me, what generating an activator class does for you, when you need one, and when you don't. For being a

How to use directory containing third party bundles in a Tycho build

走远了吗. 提交于 2019-12-21 07:56:03
问题 In the past, we had our bundles and features on the file system and made them available in Eclipse through a target definition file with a 'Directory' location. In this way, it was easy to use them with the Export wizards in Eclipse. Now I'm trying to build an eclipse-plugin with Tycho which has third party dependencies, e.g. javax.vecmath and org.apache.commons.math . From what I know, the best way to obtain the dependencies in a Tycho build is through a p2 repository. So I'm using one for

How to implement content assist's documentation popup in Eclipse RCP

一曲冷凌霜 提交于 2019-12-21 05:38:14
问题 I have implemented my own editor and added a code completion functionality to it. My content assistant is registered in source viewer configuration like this: public IContentAssistant getContentAssistant(ISourceViewer sourceViewer) { if (assistant == null) { assistant = new ContentAssistant(); assistant.setDocumentPartitioning(getConfiguredDocumentPartitioning(sourceViewer)); assistant.setContentAssistProcessor(getMyAssistProcessor(), MyPartitionScanner.DESIRED_PARTITION_FOR_MY_ASSISTANCE);

Eclipse RCP application - multi-window design for multiple monitors

落爺英雄遲暮 提交于 2019-12-21 05:06:15
问题 Question about Eclipse RCP and whole perspective/view/editor design - what is the best way to create application which will display multiple windows on multiple monitors? Tutorials and book I've seen always pack RCP/SWT design into views inside perspective within single application window. Should one window rule all others or they all should be equal (closing last one exits application)? How deal with the perspectives and views? Are there any other things we should know? Environment: Eclipse

Eclipse RCP save values to workbench

那年仲夏 提交于 2019-12-21 02:36:22
问题 Background I am working on a plugin for uDig, a project build on Eclipse RCP. My plugin contains a table that gets populated with data from the Workbench selection. The table data can be grouped, sorted and filtered by the user. When the workbench selection changes the group, sort and filter information is reset and the new selection data loaded into the table. Question How do I save values to he workbench so I can access them later? When the workbench selection gets changed I wish to save

How to create my own shell to replace the shell created in the MTrimmedWindow in e4 RCP?

纵然是瞬间 提交于 2019-12-21 02:22:10
问题 Is there a way to replace the shell generated by Eclipse RCP for the MTrimmedWindow by a user defined window? Eclipse creates a shell with a particular style type, which can only be provided while creating. I want to remove maximize and resize from the shell element created for the MTrimmedWindow. If any one has a solution for the above problem please reply. 回答1: The style for the shell cannot be changed after creation, and the shell itself cannot be exchanged after it has been created by the