rcp

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

懵懂的女人 提交于 2019-12-31 03:20:07
问题 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

How to position a Handled Tool Item to the right

为君一笑 提交于 2019-12-31 02:59:14
问题 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? 回答1: 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 {

jar resources in jnlp are not signed by the same certificate

荒凉一梦 提交于 2019-12-30 01:51:18
问题 I've been working with web start for a couple years now and have experience with signing the jars and what not. I am taking my first attempt at deploying a RCP app with web start and though I have in fact signed all of the jars with the same certificate I keep getting this error: 'jar resources in jnlp are not signed by the same certificate' Has anyone else came across this? If so, any ideas on how to fix? 回答1: When I had similar problems after checking the jars it turned out that some 3rd

Launching an Eclipse 3.x RCP Application using bndtools

五迷三道 提交于 2019-12-25 16:07:25
问题 I have spent the past few days trying to find a solution to my problem. I am trying to launch an Eclipse RCP using the 3.x compatibility layer using the bndtools launcher via a bndrun file. I am aware of the solution which involves placing bndtools.runtime.eclipse.applauncher in the list of run bundles in order to get an E4 application to start and that there are ways to migrate an E3.x application to E4. We would like to maintain programmatic control over the Rich Client Platform for the

Open up Eclipse Editor in a dialog

两盒软妹~` 提交于 2019-12-25 08:12:22
问题 I have a requirement where I need to open my editor in a dialog. The things I have are My Editor Plugin A button listener in a different plugin where I need to open this editor in a dialog I tried one way , below is code inside that button listener //this opens up a new workbench window PlatformUI.getWorkbench().openWorkbenchWindow("<provide perspective id here>", null); //this gets active window, which is the above one and opens our editor PlatformUI.getWorkbench().getActiveWorkbenchWindow()

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.

Eclipse RCP: Get rid of “reset perspective” message

℡╲_俬逩灬. 提交于 2019-12-25 00:34:50
问题 In an RCP application, we dynamically load plugins and our applicaton can add new plugins. When we create a new plugin, we then load it with: newBundle = Activator.getDefault().getBundleContext().installBundle(location); newBundle.start(); This causes a confirmation dialog appears with the message "Changes to installed plug-ins have affected this perspective. Would you like to reset this perspective to accept these changes?" Is there any way of getting rid of this dialog so that user

Could I change or configure default log file location of eclipse?

∥☆過路亽.° 提交于 2019-12-24 23:49:03
问题 Could I change or configure default log file location of eclipse ? the default location is .medadata and default name is .log I want to make them configurable. Any hints will be more than welcome! 回答1: Eclipse Log File Location is: workspace_location/.metadata/.log You can set the workspace in the eclipse.ini with -Dosgi.instance.area.default or -data, for example -Dosgi.instance.area.default=@user.home/AppData/Roaming/WorkspaceDirectory see The Eclipse runtime options for more details. Btw,

How to enable scroll when CheckboxTableViewer inside a ScrolledComposite is disabled?

喜欢而已 提交于 2019-12-24 19:14:09
问题 I have got a CheckboxTableViewer inside a ScrolledComposite. I have to enable or disable all the tableItems based upon the another checkBox button. To do this, I am using CheckboxTableViewer.getTable().setEnabled(false). In the above case, the ScrolledComposite is also disabling along with the table. But I want the scroll behaviour to work as-usual even when CheckboxTableViewer is disabled (all the items in the able are disabled). 回答1: It's not possible to make the table control show

Adding a custom renderer to different parts

谁说胖子不能爱 提交于 2019-12-24 10:23:53
问题 I would like some parts to use a different renderer. In some cases I would like to remove the Detach option when right clicking and this is a solution according to a comment on my question here. I've been following this tutorial as to how this can be done. I've created two classes. UndetachableStackRenderer and UndetachableStackRendererFactory . If I add UndetachableStackRendererFactory to the plugin.xml it successfully removes the option to detach from ALL part stacks. <property name=