eclipse-rcp

Why does my application requires admin priviliges when placed in C:\\Program Files on windows 10 but not on windows 7?

自古美人都是妖i 提交于 2019-12-02 01:37:26
My Java RCP application ( App.exe ) was recently converted from 32-bit to 64-bit . Since it is a 64-bit application i have used NSIS to create an installer which will dump all the required files along with App.exe in C:\Program Files. When the App.exe is run, i am getting a security exception(Access denied) when the application tries to open files (in C:\Program Files) in edit mode to dump the results/logs. When i run App.exe as administrator it works fine. It also works fine in windows 7 64-bit machine even when run in non-admin mode. Any idea, as what to do to run App.exe in non-admin mode ?

Eclipse RCP MessageConsole: How to allow user to input and handle this listener?

只愿长相守 提交于 2019-12-02 01:21:06
I'm writing an eclipse-plugin which creating a new Console. Please see my source code: IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage(); IConsoleView consoleView = (IConsoleView) page.showView(IConsoleConstants.ID_CONSOLE_VIEW); MessageConsole myConsole = new MessageConsole("CLI", null); ConsolePlugin.getDefault().getConsoleManager().addConsoles(new IConsole[] { myConsole }); consoleView.display(myConsole); MessageConsoleStream stream = myConsole.newMessageStream(); stream.println("Hello World"); The Console "CLI" appeared, but it is not editable by

“link with editor” for FormEditor

回眸只為那壹抹淺笑 提交于 2019-12-02 01:16:14
I am looking for a solution of "link with editor" but for FormEditor instead of ViewPart as described in http://murygin.wordpress.com/2012/06/13/link-eclipse-view-to-editor/ I try to do similar. But the "link with editor" does not fire any action. Thanks for help! I found out that I could use "Navigator Link Helper": http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fextension-points%2Forg_eclipse_ui_navigator_linkHelper.html Hier is my code in plugin.xml: <extension point="org.eclipse.ui.navigator.viewer"> ... <viewerContentBinding ...> <includes>

Set/Get values for RadioGroupFieldEditor in SWT

ぃ、小莉子 提交于 2019-12-02 00:47:12
I'm trying to add a RadioGroupFieldEditor in an Eclipse RCP application I'm developing, but seem unable to do two key things: set the value for the radio button (i.e. when the dialog/window is opened, I'd like to for example set the default to "button1") get the current value of the selected radio button (i.e. what has been selected by the user, or if nothing has been set, the default value set above). The code I'm using is as follows: String[][] radioButtonOptions = new String[][] { { "Button1" "button1" }, { "Button2" "button2" } }; RadioGroupFieldEditor radioButtonGroup = new

How to position a Handled Tool Item to the right

你离开我真会死。 提交于 2019-12-02 00:44:11
I've an application built on eclipse e4 framework. I want to position a Handled Tool Item to the far right end. How can I achieve it? You need to use two 'Toolbar' entries with a 'Tool Control' between them: so something like: In the Tags for the Tool Control add the word stretch this will make the trim bar manager stretch out the control to use all available space pushing everything after it to the right: The class for the control can something simple like: public class SpacerControl { @PostConstruct public void postConstruct(Composite parent) { Composite body = new Composite(parent, SWT.NONE

Toggle Button in Eclipse Forms Section Toolbar

别说谁变了你拦得住时间么 提交于 2019-12-02 00:15:26
How do I implement a toggle button, as pictured below, in the section toolbar of Eclipse UI Forms? I only find examples for adding actions to the section toolbar. Bela Vizer I think the key is: IAction.AS_CHECK_BOX toggleBotton = new Action(Messages.toolTipMessage, IAction.AS_CHECK_BOX) { @Override public void run() { } }; toggleBotton.setImageDescriptor(...); toggleBotton.setEnabled(...); getManagedForm().getForm().getToolBarManager().add(toggleBotton); 来源: https://stackoverflow.com/questions/11222951/toggle-button-in-eclipse-forms-section-toolbar

Remove “File, edit,…etc” menus from Eclipse RCP application

烂漫一生 提交于 2019-12-01 23:57:00
问题 I want to remove the File, edit, Source, Refactor, etc. menus from my RCP application Can I use hideActionSet() ? or what should I do ? 回答1: That's right; in your ApplicationWorkbenchWindowAdvisor , override postWindowOpen() . The tricky bit is usually figuring out the names of the actionsets that you want to remove, but you can use the old standby ALT-SHIFT-F2 (the default keybinding for 'Plugin-in Menu Spy') and click on one of the menu items that you want to remove. Note that if the menu

Eclipse Kepler RCP Main Toolbar Actions

喜夏-厌秋 提交于 2019-12-01 23:03:35
Google is my best friend, but the information I'm getting is too scattered and very unclear. There isn't a concise tutorial describing my needs. I want to add actions to my RCP app's main toolbar, but I need every way of doing this explained thoroughly. But since this is StackOverflow, I will write down the questions off the top of my head, and hope the answers will do. Which is the new and old way of adding actions? Via ActionBarAdvisor or via plugin.xml ? Can actions be added to the main toolbar ONLY using plugin.xml ? How many steps are there to add an action via extensions? ( handlers ,

How to force a minimum height of a JFace Wizard in Eclipse?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-01 22:57:45
问题 I'm presenting a wizard (code here) that gets too low, so the content does not show completely (see screenshot below): How can I force the wizard to have a minimum height? According to the answer on this question here on StackOverflow, the wizard will be the same height as the largest wizardpage in the wizard, but my wizard obvilusly does not get resized according to at least the content of the largest page, and I also tried to set the minimum height of the first visible wizard page with code

Remove “File, edit,…etc” menus from Eclipse RCP application

守給你的承諾、 提交于 2019-12-01 21:10:49
I want to remove the File, edit, Source, Refactor, etc. menus from my RCP application Can I use hideActionSet() ? or what should I do ? That's right; in your ApplicationWorkbenchWindowAdvisor , override postWindowOpen() . The tricky bit is usually figuring out the names of the actionsets that you want to remove, but you can use the old standby ALT-SHIFT-F2 (the default keybinding for 'Plugin-in Menu Spy') and click on one of the menu items that you want to remove. Note that if the menu item is disabled, the spy won't give you any info on it. public void postWindowOpen() {