rcp

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

核能气质少年 提交于 2019-11-27 09:10:40
问题 What are the differences? What gets used for which purpose? 回答1: 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 can, for example, provide help content. The basis for this architecture is the runtime environment Equinox of Eclipse which is the reference

Combo in columnheader with swt

佐手、 提交于 2019-11-27 08:22:52
问题 I want a table that has a combo as one of its columnheaders. I already found out that it is impossible with Table from this question: Controls (Combo, Radio, Text) in column header SWT Is there a way around that? I tried TableViewer but didn't find a way to do it with it either. Is there any way this can be achieved? 回答1: You could create your own column headers in a Composite above the table using normal controls. You will then need to adjust the size of these controls to match the table

Eclipse RCP: Actions VS Commands

本秂侑毒 提交于 2019-11-27 06:54:50
What are differences between Actions and Commands in the context of Eclipse RCP? I know that they both contribute to the menu entries, but which one is better? And why? Of all the online resources I read, I could not get a firm understanding of the differences between both. I have not actually tried to use them, but just wanted to understand them to start with from higher level point of view. Thanks Did you read the eclipse wiki FAQ What is the difference between a command and an action? You probably already understand that Actions and Commands basically do the same thing: They cause a certain

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

旧街凉风 提交于 2019-11-27 03:22:34
问题 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. 回答1: 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:

Java PDF Viewer

余生颓废 提交于 2019-11-27 01:38:51
I am using java and RCP and I am trying to show pdf Document with Acrobat on my views. I don't need to change them. I have this error with this code. Any idea how to resolve this problem?. P.s.: it works good same times. PDFFile pdfFile; pdfFile = PdfFileLoader.loadPdf(file, new NullProgressMonitor()); PdfDocument pdfDocument = new OneDimensionalPdfDocument(pdfFile, new NullProgressMonitor()); pdfViewer.setPdfDocument(pdfDocument); Error from PdfDocument pdfDocument = new OneDimensionalPdfDocument(pdfFile, new NullProgressMonitor()) : Unsupport CMap format: 6 java.nio.BufferUnderflowException

Programmatically showing a View from an Eclipse Plug-in

家住魔仙堡 提交于 2019-11-27 01:02:17
I have a plug-in to an Eclipse RCP application that has a view. After an event occurs in the RCP application, the plug-in is instantiated, its methods are called to populate the plug-in's model, but I cannot find how to make the view appear without going to the "Show View..." menu. I would think that there would be something in the workbench singleton that could handle this, but I have not found out how anywhere. You are probably looking for this: PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView("viewId"); If called from handler of a command HandlerUtil

Programmatically showing a View from an Eclipse Plug-in

风格不统一 提交于 2019-11-26 17:28:19
问题 I have a plug-in to an Eclipse RCP application that has a view. After an event occurs in the RCP application, the plug-in is instantiated, its methods are called to populate the plug-in's model, but I cannot find how to make the view appear without going to the "Show View..." menu. I would think that there would be something in the workbench singleton that could handle this, but I have not found out how anywhere. 回答1: You are probably looking for this: PlatformUI.getWorkbench()

Java PDF Viewer

杀马特。学长 韩版系。学妹 提交于 2019-11-26 08:24:22
问题 I am using java and RCP and I am trying to show pdf Document with Acrobat on my views. I don\'t need to change them. I have this error with this code. Any idea how to resolve this problem?. P.s.: it works good same times. PDFFile pdfFile; pdfFile = PdfFileLoader.loadPdf(file, new NullProgressMonitor()); PdfDocument pdfDocument = new OneDimensionalPdfDocument(pdfFile, new NullProgressMonitor()); pdfViewer.setPdfDocument(pdfDocument); Error from PdfDocument pdfDocument = new