eclipse-rcp

Eclipse RCP - Combining table rows by drag and drop the arrows

佐手、 提交于 2019-12-12 03:34:01
问题 I am new be in RCP development. I want to create two tables with, each table contains different data. Data from two tables have either 1 to 1 , 1 to many or many to 1 relationship. And that can be done by drawing arrows between two tables. For example, **Row 1** **Row 2** R1 V1 R2 V1 R1 V2 R2 V2 R1 V3 R2 V3 I want to draw arrows from R1V1 to ( R2V1 and R2V3 ) or vice a versa. How can I show it graphically. How can I find that which rows are combined by arrows. Any help is appreciated. ---

Trying to put new “Generate” option under Source menu in Eclipse

可紊 提交于 2019-12-12 03:09:47
问题 I'm trying to add a new "Generate..." option under the Source menu when you right-click on a Java file. At this point, I'm just trying to get the menu option to show up but I haven't had success yet. Is there something wrong with my plugin.xml file below as far as you can see? <?xml version="1.0" encoding="UTF-8"?> <?eclipse version="3.4"?> <plugin> <extension point="org.eclipse.ui.popupMenus"> <objectContribution id="GenerateBuilderPlugin.contribution1" objectClass="org.eclipse.core

How to use Nebula NatTable's PreserveSelectionModel?

北战南征 提交于 2019-12-12 03:08:17
问题 I am developing an RCP Application, and am using Nebula's NatTable for that. When it comes to selection, I am failing to understand how I am supposed to use it. What I want is: I want to have entire Rows selected. I was able do that using the RowOnlySelectionConfiguration and the RowOnlySelectionBindings . If I select a row, I want the selection to stay there and not be cleared when some data in that row gets updated. How do I do that? If a row is selected, and the position of the element in

Toggle the view of the Console in a RCP application

被刻印的时光 ゝ 提交于 2019-12-12 02:50:02
问题 I am developing a RCPP application which displays a Console. For the moment when I close the Console I cannot open it again unless I restart the application. So I added a new menu item to show and hide the console as an extension point and created a handler for it. I can check whether the console exists but the problem is that when it closes it is actually hidden and not disposed of. <pre> private Console() { super("", null); setWaterMarks(-1, -1); infoStream = newOutputStream(); errorStream

Eclipse RCP terminologies and concepts

僤鯓⒐⒋嵵緔 提交于 2019-12-12 02:45:28
问题 I am just starting to develop some application using Eclipse RCP. I was able to hack out a prototype by reading some tutorials. Although I was able to hack out some working code, I found myself shaky on some of the RCP concepts like: What is a page? I see a lot of getActivePage() API calls, so I am assuming there can be multiple pages am I correct? In the IWorkbechPart API there is an API called getSite(), which is being use a lot, but I am not sure what is a "site" The above are just a

Eclipse-RCP view not coming on fullscreen

自作多情 提交于 2019-12-12 02:34:55
问题 I am using RCP 3.x and trying to create a layout which i want full and on the left hand side. I tried many combinations but none seem to work. Here is the screenshot. and here is the code snippet that i used to create this public MonitorView(final Composite parent) { super(parent); setDisplayName(I18N("Visual Monitoring of iCommand")); setLayout(new GridLayout()); final Composite composite=GUIToolkit.newComposite(parent, SWT.NONE, new GridData(SWT.TOP,SWT.LEFT,false,false,0,0)); GridLayout

CheckBoxTreeviewer set old checked element on creating new set of objects

我怕爱的太早我们不能终老 提交于 2019-12-12 02:33:37
问题 I have used CheckboxTreeviewer with ICheckStateListener to get a checked elements. if element get checked then create a new set of object and setInut in same CheckboxTreeviewer.but when I put the new set of object in CheckboxTreeviewer previously checked elements unchecked. code - chboxtv.addCheckStateListener(new ICheckStateListener() { @Override public void checkStateChanged(CheckStateChangedEvent event) { String child=null; String parent=null; Object obj= event.getElement(); if(obj

Vertical align 2 jface TreeViewers to specific element

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 02:28:35
问题 I have two TreeViewer objects on a page (2 columns, one TreeViewer in each column), and I want to vertically align a tree when the other is scrolled or selected. import org.eclipse.jface.viewers.TreeViewer; import org.eclipse.swt.widgets.Tree; I think the solution should look something like treeViewer.addSelectionChangedListener(new ISelectionChangedListener() { @Override public void selectionChanged(SelectionChangedEvent arg0) { TreeViewer mirrorTree = (treeViewer == treeVwrSource ?

Kepler RCP CoolBar + PerspectiveBar appearance

隐身守侯 提交于 2019-12-12 01:45:12
问题 The coolbars on all Kepler RCP applications look just terrible. This a project created from scratch on Windows 8. What is it with that thick black line sorrounding the coolbar? Can it be style-hacked with CSS? From my testing, it seems that it appears only when the perspective bar is present. 回答1: I think the CSS for this is the eclipse-perspective-keyline-color in the #PerspectiveSwitcher selector. 回答2: You can try to add this dependencies in your product file: org.eclipse.e4.ui.css.core ,

Constructor of Part is being called twice

穿精又带淫゛_ 提交于 2019-12-12 01:44:19
问题 Short story: I have a class that is being used as a Part in the e4xmi. This class has a constructor, which initializes a list, and methods that are bindings from a DS (declarative service on OSGi). When the binding methods are called, this list should add or remove an item. The first time the constructor is called (automatically by the e4, because it's a Part in the Application Model), the list is initialized. Ok, that's how it is supposed to work. After that, an item is added to the list