eclipse-rcp

Eclipse RCP 4 draggable Toolbar

拥有回忆 提交于 2019-12-08 06:49:36
问题 Is it possible to create a pure Eclipse RCP 4 application, that uses the nice toolbar from the Eclipse IDE with Drag and Drop functionality? Starting with a fresh installation of Eclipse for RCP 4.5.1, I created a pure e4 application with sample content using the wizrad. It contains two toolbars, but D&D functionality is missing. So what to do next? 回答1: There was Drag and Drop functionality in Eclipse 3.x (locking / unlocking toolbar) But with Eclipse 4.x its not working. You can see bug :

Eclipse plugin: make Combo to handle Enter key

我们两清 提交于 2019-12-08 06:24:33
问题 Eclipse plugin: how to make Combo to handle Enter key pressing? That is after entering some text user can press Enter, that will case some processing. The same processing can be started by Button "Run" click. org.eclipse.swt.widgets.Combo 回答1: Just add a Listener for SWT.KeyUp and check if the entered character is equal to SWT.CR . Here is some code: public static void main(String[] args) { Display display = new Display(); final Shell shell = new Shell(display); shell.setText("StackOverflow")

How to remove default wizards from File > New Menu in RCP application?

时光总嘲笑我的痴心妄想 提交于 2019-12-08 06:17:00
问题 I wanted to add some of my wizards in File > New menu of my RCP application by adding org.eclipse.ui.newWizards extension point into plugin.xml file. <extension point="org.eclipse.ui.newWizards"> <category id="com.my.testapp.ui.objects" name="Objects"/> <wizard category="com.my.testapp.ui.objects" class="com.my.testapp.ui.wizard.create.COWizard" icon="icons/co.gif" id="com.my.testapp.ui.wizard.co" name="Configure Object" preferredPerspectives="com.my.testapp.ui.perspective"/> </wizard> <

Opening remote terminal programmatically in eclipse terminals view and execute shell commands programmatically in it

戏子无情 提交于 2019-12-08 05:11:19
问题 Using the below code to execute shell commands in remote shell and can able to read the command outputs: IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindowChecked(event); IStructuredSelection sel = (IStructuredSelection)window.getSelectionService().getSelection(); RemoteProcessImpl ele = (RemoteProcessImpl)sel.getFirstElement(); IHost conn = ele.getSystemConnection(); IRemoteCmdSubSystem cmdSS = RemoteCommandHelpers.getCmdSubSystem(conn); Object[] obs = null; RemoteOutput fe =

Eclipse Plugin: Opening A New Window From The WorkBench

我的梦境 提交于 2019-12-08 05:06:41
问题 I am new in developing Eclipse plugin and i have manage to do a lot of work. This is where i have got stuck. I have a view with a button. When a user cklicks on the button i want a new window to be opened(The window is a form with Text areas, buttons and other SWT widgets). I have finished creating the window. After I compile the application, I get a new instance of the eclipse workbench(as expected) but when I open the view and clicks on the button, the window don't show up. This is the

Update Eclipse E4 application using p2

心已入冬 提交于 2019-12-08 04:00:33
问题 I'm adding an update feature in my Eclipse E4 application. Herefor I used the source code and tutorial from Lars Vogel. When I test my application the provisioningJob is always null. It should only be null when it run into Eclipse. But when I try to update my exported application the provisioningJob is still null. What I'm doing wrong? public class UpdateHandler { private static final String REPOSITORY_LOC = System.getProperty("UpdateHandler.Repo", "file:////updateServer/repository");

Can Eclipse launcher ini -configuration variable take a relative path?

℡╲_俬逩灬. 提交于 2019-12-08 03:36:46
问题 I have an RCP Eclipse product that defines the -configuration folder to be in a different location from the exe and ini files. When I specify the path to configuration in the ini as relative to the exe , launching the product only works when launched from the directory of the exe . Ie: /home/Sheldon>product.exe Launching from another directory fails , unless the configuration path is set to an absolute path in the ini file. Ie: >/home/Sheldon/product.exe This is not the case for the startup

Tycho: Categorize p2 metadata

房东的猫 提交于 2019-12-08 02:31:16
问题 Iam trying to generate a categorized p2 repository with Tycho. There are basically three steps to make (compare Eclipse documentation): Download Bundles Trigger org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher Trigger org.eclipse.equinox.p2.publisher.CategoryPublisher which i configured in a maven pom-file. Steps 1 and 2 are doing well whereas step 3 fails with: Status ERROR: this code=0 publishing result null children=[Status ERROR: org.eclipse.equinox.p2.updatesite code=0 Error

Eclipse Validation error - Platform filter did not match:(&(osgi.ws=win32)(osgi.os=win32)(osgi.arch=x86))

假装没事ソ 提交于 2019-12-08 00:29:25
问题 Hi I am getting this error when I validate my configuration. Any ideas how to fix this? here is the error: Platform filter did not match:(&(osgi.ws=win32)(osgi.os=win32)(osgi.arch=x86)) here is the screeenshot: 回答1: That is a 32 bit plugin for Windows. It does not match the platform, GUI system or architecture you are trying to use. Plugins like SWT are platform, GUI and architecture dependent so you need to choose the correct one. If you are using a target platform with a different settings

Eclipse restart using 'PlatformUI.getWorkbench().restart()' is not restarting the RCP product

杀马特。学长 韩版系。学妹 提交于 2019-12-07 22:34:47
问题 Upon invoking the method PlatformUI.getWorkbench().restart() the application is simply closing and refusing to restart the product. 回答1: Your IApplication needs to check the return code from PlatformUI.createAndRunWorkbench in the start method: The simplest is: int returnCode = PlatformUI.createAndRunWorkbench(display, advisor); if (returnCode == PlatformUI.RETURN_RESTART) return IApplication.EXIT_RESTART; return IApplication.EXIT_OK; More recent applications seem to use this: private static