eclipse-rcp

how to open multiple consoleview with different input text

偶尔善良 提交于 2019-12-25 05:15:46
问题 i want to open multiple console view with different input text on single swt button click in eclipse rcp application Can anybody tell me about this ? Thank you. 回答1: Add org.eclipse.ui.console as dependency and after that you can create different extensions. Some more details about the implementation you can find on this page http://www.eclipsezone.com/eclipse/forums/t66777.html. Here a simple implementation (source): plugin.xml <plugin> <extension point="org.eclipse.ui.console

Eclipse Kepler RCP CoolBar Actions CSS

只愿长相守 提交于 2019-12-25 04:55:16
问题 Similar to this question's screenshot, my RCP App has those annoying spaces between actions on the coolbar. My guess is that it's because I'm using deprecated extensions in the plugin.xml (i.e. viewActions actionSet s). For now, I don't want to begin changing all those action implementations to comply with the new rules (mostly because there are A LOT of those actions). Question : Can I somehow apply CSS styling to that CoolBar so that extra spaces are grabbed by the actions? The road so far

How build and deliver patches for Eclipse RCP application?

本秂侑毒 提交于 2019-12-25 04:40:19
问题 In the context of an RCP application I want to deliver to my customers a patch. This patch has modification in only one of my plugin included in one of my feature. How should I build the patch and what will be the patch's content ? How can I deliver this patch to my end users, through a zip file, an update site ? Can you point me to any link on the subject ? Thanks, Manu 回答1: You can deliver your patch as Feature Patch. See this blog post. 来源: https://stackoverflow.com/questions/4243685/how

Can I merge Syntax coloring and Folding? OR Projection colored from master document info

让人想犯罪 __ 提交于 2019-12-25 04:37:21
问题 Example. I have an XML document: <document> <region type="type1">text of region1 </region> some simple text <region type="type2">text of region2 </region> And I want it to be presented as text of region1 some simple text text of region2 The basic Eclipse coloring works independent from folding, as I know. But I need text to be colored depending on the xml info. Or maybe I need something other, than folding? It's probably easier to just manipulate StyledText, but I need other Eclipse Editor

Add keyevent to switch ViewPart under IPageLayout

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-25 03:54:07
问题 how to assign key for switch focus on different viewpart?? example: (press "SWT.F7" to focus on viewpartA, "SWT.F8" to focus on viewpartB) public class UserPerspective implements IPerspectiveFactory{ ...... ...... public void createInitialLayout(IPageLayout layout){ final IFolderLayout leftPanel = layout.createFolder(......); leftPanel.addView(viewpartA.ID); final IFolderLayout rightPanel = layout.createFolder(......); rightPanel.addView(viewpartB.ID); } } 回答1: You can use the following key

e4 - removing elements from the application model

主宰稳场 提交于 2019-12-25 03:27:19
问题 I want to modify an existing e4 Application Model . In my modification I want to remove some elements inside the Application Model. E.g. Parts, Menu and so on. I am having the unique UI-Element-Id. How can I best remove some elements from the Application Model with this information. At this time, I am going to use the MApplication class, and look at every children and children of the children, if there are many matches with an UI-Element-Id. But this approach is nasty I think. public void

How to create RCP plugin which is used in eclipse?

纵饮孤独 提交于 2019-12-25 03:22:56
问题 This question is seems to be immature question, but I didn't find any satisfactory solution for this from long time. I want to deliver a plugin of my RCP application. I am able to create a plugin which works as a stand alone application here But still struggles to find how to create a RCP plugin which other developers can add in there own eclipse and start using it. Any reference is appreciated. Regards, Mandar. 回答1: http://www.vogella.com/articles/EclipsePlugIn/article.html hope this helps.

How to get an IHandlerService object in Eclipse 4 RCP?

强颜欢笑 提交于 2019-12-25 03:22:16
问题 I am working on a test project and followed Vogella's RCP tutorial. After that I made some changes on it, eg. created a JFace TreeView . Now I want that if the user double clicks on a TreeView element it opens up another Part . I have the command for it but, I do not know how to call it. If you look at the tutorial you may notice it only uses Parts, not Views and, I do not have an Application.java class that starts the workbench. Therefore the following methods do not work for me:

Add a Key Listener to TitleAreaDialog

余生长醉 提交于 2019-12-25 02:58:51
问题 I need to add a key listener to my TitelAreaDialog is there any solution to do this ? 回答1: You can add a Listener to the Display by using: Listener listener = new Listener() { public void handleEvent(Event event) { System.out.println(event.character); } } getShell().getDisplay().addFilter(SWT.KeyDown, listener); This will output all pressed keys without consuming the events, i.e. the underlying widgets will still register the events. Remember to remove it again in the close() method of the

InjectionException - Eclipse 2018-12 e4 export

我的未来我决定 提交于 2019-12-25 02:48:20
问题 When running my RCP application in Eclipse it works correctly. If I export using the Eclipse Product export wizard and execute the application I get InjectionExceptions. I've found another question here that is the exact same problem. I've added org.apache.felix.scr to the product configuration but I'm still getting the same issue. I'm assuming another plug-in needs to be added but Add Recommended doesn't add any more. Start Levels Exception example !ENTRY org.eclipse.e4.ui.workbench 4 0 2019