eclipse-rcp

ALL black Pixels with SWT since Windows 10 Update 1809 and gc.print() / gc.copyArea(

白昼怎懂夜的黑 提交于 2019-12-11 05:44:53
问题 I have this piece of code that worked throug the ages (kepler to oxygen) for the last 4 Years, Since the Windows 10 1809 update this results in an all black picture. This happens on several PCs. public static Image renderToImage(Control control) { Shell imgShell = new Shell(control.getDisplay(), SWT.NO_TRIM); Composite oldParent = control.getParent(); Point size = control.getSize(); imgShell.setSize(size); control.setParent(imgShell); Image image = new Image(control.getShell().getDisplay(),

how to remove unwanted help menu in Eclipse RCP?

只谈情不闲聊 提交于 2019-12-11 05:29:31
问题 Hi StackOverflow team ! I've created an Eclipse RCP desktop application which has an extra menu called 'Help' in the menubar. I didn't create it from any of usual ways like adding actionSets extention, or creating and registering the actions from ActionBarAdvisor.java of the project. I don't need it anymore. Please, suggest me how can i remove it from my Menubar ? 回答1: It's sounds like the help UI plug-ins are being included within your run configuration Couple of things to check... -- Have a

Eclipse e4 RCP SourceViewer syntax coloring

我怕爱的太早我们不能终老 提交于 2019-12-11 05:18:03
问题 To implement syntax coloring in an eclipse e4 RCP application, I have created a basic plugin project with a Part including a SourceViewer control. public class SyntaxColoringTest { /** The SourceViewer control to create the editor. */ public SourceViewer sv = null; @Inject public SyntaxColoringTest() { } @PostConstruct public void postConstruct(Composite parent) { IVerticalRuler verticalRuler = new VerticalRuler(10); OverviewRuler overviewRuler = new OverviewRuler(null, 20, null); sv = new

Eclipse RCP: How is the default name of the private configuration directory (created in ~/.eclipse when using a shared install) constructed?

五迷三道 提交于 2019-12-11 04:55:28
问题 Situation I have developed an Eclipse RCP application. This application may be installed on both Windows and Linux systems. If this application is installed in Administrator mode (Windows) or by a superuser (Linux), the application is typically installed in a write-protected shared install directory . On Windows, our product installer is always run in Administrator -mode. The default installation directory is the (write-protected) C:\Program Files\MyProduct . On Linux, the installer can be

How to find the preference key for a certain setting in the Preferences dialog

与世无争的帅哥 提交于 2019-12-11 04:42:23
问题 I need to set the value RSE UI to unchecked by default. I just need to access this value programmatically but I cannot find it. The value is located under Window > Preferences > General > Startup and shutdown. 回答1: There is an Eclipse plug-in called Preferences Spy . http://blog.vogella.com/2014/12/28/preferences-spy-for-eclipse-ide-and-rcp/ It adds a view that allows you to log all or certain preference changes. For each change, the affected preference node, the preference name, and the old

Eclipse RCP - how to add mouselistener on the titlebar of an eclipse ScrolledForm

筅森魡賤 提交于 2019-12-11 04:37:00
问题 I try to use the addmouselistener method of the form and check if the clicks are in the area of the title bar, but the mouse listener is not working. I tried to add the mouse listener on form and on form.getform() and on form.getBody() neither one works. Here is the code where I am creating the form and trying to add a mouse listener on it: toolKit = new FormToolkit(parent.getDisplay()); form = toolKit.createScrolledForm(parent); FillLayout layout = new FillLayout(); layout.type = SWT

Opening a default editor, on a treeviewer selection eclipse rcp(eg: as eclipse knows that j.java files must be opened in text editor)

好久不见. 提交于 2019-12-11 04:33:00
问题 I have a file with extension .xyz .i want to open an editor when it is double clicked How to go about doing it.I have a treeviewer that lists only my files that i need ,in those i have a .xyz file.I have added an editor in the extension point and in the extensions textfield i hav e added .xyz also.I dont want to add a doubleclicklistener to the viewer.Is there a way to add or tell eclipse that if this is the extension of the file then by default it should open. 回答1: Well if you have your own

BIRT: Getting started with the Chart API

最后都变了- 提交于 2019-12-11 04:24:33
问题 So I need a few simple pointers with the BIRT chart API. I am trying to draw a simple line chart of a numeric value over time. I have a vector of (Date,Double) pairs as input. I have read through the examples in org.eclipse.birt.chart.examples but not yet gained enough traction with the API to start making use of it. Just composing a org.eclipse.birt.chart.model.impl.ChartWithAxesImpl has me stumped. The eventual destination is an Eclipse editor, and that I can do. Is there a tutorial or book

What is the right way to update a table view in a Part in a Eclipse RCP project?

半城伤御伤魂 提交于 2019-12-11 04:21:46
问题 Say I have a ItemListPart class in my RCP project, and there is a table to be displayed in it as following: import java.util.List; import javax.annotation.PostConstruct; import org.eclipse.e4.ui.di.Focus; import org.eclipse.swt.SWT; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Table; import org.eclipse.swt.widgets.TableColumn; import org.eclipse.swt.widgets.TableItem; public class

Remove or disable the “X” close button shown on a RAP/RCP EditorPart

99封情书 提交于 2019-12-11 04:01:26
问题 Im working on a RAP application that shows both ViewParts and EditorParts. Im trying to find a way to prevent "All" Editor parts from closing. Is there a way to either remove or disable the "X" close button shown on a Editor part? 回答1: This is possible through implementing a presentation layer - see http://wiki.eclipse.org/RCP_Custom_Look_and_Feel and http://e-rcp.blogspot.ca/2007/09/prevent-that-rcp-editor-is-closed.html. 回答2: you can do like this(what I have written is about the same like