eclipse-rcp

Eclipse RCP: Custom console

时光毁灭记忆、已成空白 提交于 2020-01-01 05:33:05
问题 I am trying to create a console that would work as a shell for a custom programming language. It would be very similar to the pydev interactive console. Currently, my RCP uses the basic TextConsole and is connected to the shell via pipes so it just displays whatever the shell displays and if the user enters anything in the RCP console, the same is written in the shell. I want to be able to do a bit more such as move the caret position, add events for up and down arrow keys etc. I believe to

How to create new Eclipse RCP project using Maven?

蹲街弑〆低调 提交于 2020-01-01 00:45:17
问题 How to create new Eclipse RCP project using Maven (preferably m2eclipse)? I read that there's plug-in for Maven that have idea about Eclipse. (Maven Eclipse Plugin) And then it looks like I need to find some Maven Archetype to create Eclipse RCP project, but I could not. At this point I am in doubt if I go right way. I just want to use maven dependencies resolution and other features in my RCP application development. P.S. I found that it is possible to "Enable Dependency Management" via

How to use an IResourceChangeListener to detect a file rename and set the EditorPart name dynamically?

情到浓时终转凉″ 提交于 2019-12-31 04:00:31
问题 IResourceChangeListener listens to changes in project workspace for example if the editor part file name has changed. I want to know how to access that particular EditorPart and change its title name accordingly (e.g. with .setPartName ), or maybe the refresh the editor so that it shows the new name automatically. Ideal would be if the IResourceChangeListener has a Rename event type but does not seem to be the case. Reference question. 回答1: The IResourceChangeListener does fire for rename

How can my Eclipse RCP code list all installed features?

余生颓废 提交于 2019-12-31 03:34:08
问题 I am writing a plugin for Bioclipse, an Eclipse RCP application, and need some Java source code to list all installed features in a running Bioclipse instance. How can I programmatically list all installed features? 回答1: You can try looking at IBundleGroup, IBundleGroupProvider and Platform.getBundleGroupProviders . I believe this API is the source of the information you see in the about dialog. 来源: https://stackoverflow.com/questions/3104416/how-can-my-eclipse-rcp-code-list-all-installed

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 {

How to change Eclipse Preferences programmatically

孤街醉人 提交于 2019-12-30 07:44:06
问题 What approach should be to change Eclipse Preferences? They are stored in <workspace>/.metadata/.plugin/org.eclipse.core.runtime/.settings But I hope to find Java API and a way to discover any preference ID. 回答1: Somewhat confusingly there are several APIs a plugin can use for preferences. If your plugin activator extends AbstractUIPlugin then you can call IPreferenceStore prefStore = getPreferenceStore(); in the activator to get the preference store for your plugin. You can also use

How to Refresh Eclipse View Plugin

岁酱吖の 提交于 2019-12-30 07:24:07
问题 I created a simple view based off of the eclipse plugin view tutorial. I added functionality that allows my plugin to listen to changes on the debugger. My problem is, every time something on the debugger happens, I want my view to be refreshed and be updated with new information. Here is what I have/what I'm trying: public void createPartControl(Composite parent) { listener = new DebugContextListener(this); DebugUITools.getDebugContextManager().addDebugContextListener(listener); // Check if

How to make simplistic RCP application really standalone?

三世轮回 提交于 2019-12-30 07:02:36
问题 This is total refactoring of my old question on new level of knowledge. Questions summary My eclipse product is not working. Does it require any additional feature? Creating Simplistic RCP Application At this moment all wizard features were disabled and I press Finish button. As a result, Eclipse creates nearly empty project with MANIFEST.MF and build.properties files only. Now I am creating an application. Application is an extension to org.eclipse.core.runtime.applications extension point,

Launching Eclipse plug in template

半腔热情 提交于 2019-12-29 09:22:26
问题 I created a Eclipse plug-in project by selecting a plug-in template provides by the eclipse. Then i ran the plug-in it opened another eclipse and the plug-in executed there.Why so? is the plugin taking eclipse's application class to create workbench? 回答1: As an elaboration of "If you want to run the plugin in your main workspace you will have to export the plugin and install it in your main Eclipse." that @greg-449 had in his answer. You can do this. Step 1 - Export your plugin From the File