Language editor/generator on normal eclipse - eclipse

I've created my DSL language and code generator using Xtext nad Xtend. But when I want to use it, I need to open my Xtext project and click "Run as-> Launch Runtime Eclipse". Is it possible to have my editor/generator in the normal eclipse run? In other words, I want to download plain eclipse installation,than install some plugin or somehow configure my eclipse, and than create files of my language, have syntax coloring and all editor features, code generation etc.

You have to export your plugins and install them into eclipse.
option 1: use File>Export...>Deployable plugins and fragments to export your plugins, then install them into an eclipse. That wizard has an option to deploy them directly into your running eclipse.
option 2: build your plugins using PDE build or maven/tycho and create a p2 update site. Then you can install them into any eclipse you have.
Both options are easier to manage if you create a feature that contains your plugins. It's easier to export, and easier to install the feature.

Related

Launching Eclipse plug in template

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?
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 menu, choose Export... and then choose the Deployable plug-ins and fragments wizard.
Step 2 - Configure your Wizard Options
Select the plug-ins you want to export.
As the destination, choose Install into host
Press Finish
Step 3 - Confirm unsigned content
As you are probably not signing your plug-in, but you do trust it, say Yes to the Warning: you are installing software that contains unsigned content.
Step 4 - Restart Eclipse
Restart Eclipse when prompted to to enable the plug-ins.
Result
You should now see your new plug-ins. To make this example I used the new Plug-in wizard and choose the "Hello, World Command" template. The arrows below point to the contributions in the UI that the plug-in made.
When you run a plugin (Run As > Eclipse Application) Eclipse starts a new instance of Eclipse including your plugin and uses a new workspace. This enables you to test the plugin without damaging your main Eclipse installation and workspace.
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.
If you want to run your plugin as part of an RCP you can set the application or product launched in the 'Run > Run Configurations...' entry.
For example:
Here I am running a product called 'greg.music.e4.rcp.product'

How to localize an Eclipse RCP 4 application using Eclipse Babel?

I am developing an Eclipse RCP product in Eclipse e4 environment using Kepler for RCP developers on 64-bit Linux and Java 7.
I'd like to use Eclipse Babel language packages within my Eclipse product. Copying features and plugins directory into Eclipse IDE directory works without a problem. I can run my Eclipse environment in the language I want by passing -nl argument.
I used PDE to produce a product and applied the same step by simply copying the language package into the product's features and plugins directory. However, it did not work as I see OK and Cancel button labels still in English.
Is it correct to simply copy the files or do I have to add an extra dependency?
Thanks.

How to build and install an Eclipse plugin using ant

How do I build and install an Eclipse plugin using ant? I want to build a plugin as a zip file and then install the plugin on 32bit or 64bit eclipse. What am I supposed to do here?
Indeed, using PDE/Build to achieve a so-called headless build is difficult, but not impossible.
We are still building our RCP this way.
I recommend reading Paulin's and Sharma's tutorials on the issue.
The Eclipse PDE has its own builder which is built on ant. I'm not sure from your question if you are looking to simply build/export your plugin within eclipse or generate ant build scripts that can be run outside of eclipse. The latter is more difficult. Inside eclipse you can simple go to file -> export -> Plugin-Development -> Deployable plugin and the export wizard will walk you through it, you can select to deploy a zip or exploded directory and then select output location and presto you have your plugin built as a jar that can be dropped into an eclipse instance. If you are looking to use ant outside of eclipse to build you need to go through a series of steps that are complicated to get a 'headless build", if this is what you need to do Google "pde headless" build. I've tried it but gave up. There is also a good book "Building highly modular systems with OSGI/Equinox that has a chapter devoted to this. - Duncan

Plug-in for Eclipse

I am developing a plug-in for eclipse for JSHOP2 language. For that i made a plug-in project with 'editor'. I have written the code for the neceessary syntax highlighting for JSHOP2 but I don't know how to integrate this types of plug-in with eclipse and then how to take use of it, so that while i write the JSHOP2 code the necessary syntax gets highlighted. Please help me with this.
So you have an editor that works correctly?
Then you need to make sure the files with your extension are opened with your editor. That is described in the Eclipse wiki.
To make sure your plugin is integrated to your version of Eclipse, either create an update site and import the plugin as you would do with any other plugin. Or export the plugin to a jar and copy the jar to the dropins catalog.
Since you are using eclipse to write java code (plug-in project). Create a new eclipse launch configuration. Menu Run -> Run Configuration. Location eclipse application. Right click -> Create new & Run. Hope this helps.

Using Ant Scripts/Deployment tool within the Eclipse UI for Salesforce.com deployments

We are using Salesforce.com with a large number of sandboxes. We currently using Eclipse with the Force.com plugin for deployment.
Problem
I can deploy using the Ant in the CLI mode - however, it would be great if we can add Ant to Eclipse so that we can have an integrated UI for both.
I would appreciate if anyone who has done this before can provide some pointers. Here is what I have installed on my PC: Win7, Ant, Eclipse, Force.com IDE plugin, SubClipse plugin
There is no real integration between the Force.com IDE for Eclipse and the Force.com Migration Tool for ANT, but you can run ANT scripts from Eclipse itself through the External Tools Configurations. This will not doing anything that you can not just do on the CLI (e.g. it will not automatically create your ANT targets or anything), but if you already have your build.xml setup, it will create a menu item in Eclipse so you can execute it from within the IDE with the click of a button. See Running Ant Buildfiles in Eclipse help for how to do this. Since your build.xml may not be inside your Force.com project, you can always go to Run | External Tools | External Tools Configuration | Ant Build to choose ant build file.