How to use the Velocity Eclipse plug-in? - eclipse

I'm trying to create a theme plugin for Liferay with Velocity, but I'm having some problems.
I'v installed the Velocity plug-in to Eclipse from here http://veloedit.sourceforge.net/updates/ . But I cant find it in Eclipse UI. How do I use it to edit Liferay velocity templates? Can you give some examples?

Once you have installed the Velocity plugin, next you need to create your Liferay theme plugin. This can be done with the Liferay Plugins SDK and with the Liferay IDE. Here is a tutorial for how to work with Liferay themes. Once you have created your theme, you can customize any of the existing *.vtl files (velocity templates). You just need to put these under the _diffs folder for the theme project, _diffs/templates. Once you have copied a VTL file into the templates folder, you can edit it, by right-clicking the file in Eclipse and choosing "Open with > Velocity Editor".

Related

How can I use fxml in Eclipse?

I was wondering about using fxml in eclipse.
I watched a Video about JavaFX where the Creator handles the UI with a fxml File(He uses Eclipse too).
But my Eclipse doesnt recognize that I use fxml(Maybe doesnt have fxml?).
Is there any way I can add fxml to eclipse?
Screenshot
You can also get the e(fx)clipse plugin (which allows you to create fxmls) by opening Eclipse, clicking Help, scrolling down to the Eclipse Marketplace, and searching e(fx)clipse. Install, and then just restart Eclipse. To create a new JavaFX project, go to File->New->Project...->JavaFX->JavaFX Project, and you should be good to go (these instructions are based on using Eclipse Neon).

eclipse Mars default Velocity editor

I accidentally associated VM files with EditPadPro and I want to revert.
What was the eclipse Mars default Velocity Editor? I can't see anything obvious in the File Associations dropdown.
Was it just Text Editor? If so I will find a plugin for VMs a la:
Velocity editor plugin for Eclipse Luna
Many thanks.
Eclipse donot have intergrated editor for .vm files.You can install plugin to edit it.There are some choices for you:Veloeclipse态VeloEdit.... But I donot know if these plugins can installed and used in the lasted version Eclipse.

Create new service builder for liferay with eclipse luna does not work

I am trying to create a new service builder for liferay portly project.
If I open the "new Service Builder" dialog, it is not possible for me to click the finish Button. I tried to do this with the guestbook Portlet example on dev.liferay.com, without success.
Eclipse says that I have to enter a project name. However, it is not possible to enter something at Plugin project. I don't know why; perhaps this is a bug?
I did this several times and it worked, but now I've tried this with a new setup. Perhaps this is the reason.
Setup:
Mac OSX 10.10.4
eclipse Luna 4.4.2
installed Plugins:
Liferay
Git
Maven
Liferay 6.2
How do I make this work?
You're using Liferay IDE, right? (I assume that's what you mean when you say you have Liferay installed as a plugin.)
Maybe with your new setup, Eclipse doesn't recognize your guestbook project as a valid Liferay Plugin project. When you click New -> Liferay Service Builder, you have to select a Liferay Plugin project within which to create the Service Builder stuff. Since you can't select anything at the Plugin project selector, I'd guess that Eclipse doesn't recognize any of your projects as valid Liferay Plugin projects.
Note that if you click New -> Liferay Plugin Project, you have to specify a Liferay Plugins SDK and a Liferay runtime. You need to have both of these configured in your new environment.
For Plugins SDK, go to Eclipse's Preferences Window then Liferay -> Installed Plugin SDKs. Add the Plugins SDK that contains your guestbook project and re-import your guestbook project from this SDK. Then check if the Service Builder wizard lets you select your project via the selector.

Velocity editor plugin for Eclipse Luna

I was searching for a Velocity editor plugin for Eclipse Luna but I could not find any. I found couple of editor plugins like:
Veloeclipse
Velocity Editor
Veloedit <--------------- This is now working on Luna 4.4.1!
QIQU
Velocity Web Edit
None of this worked for Eclipse Luna. Does anyone else know any other plugin for editing Velocity files in Eclipse Luna?
Thank you in advance!
You can install support for 2.0 style plugins using Help > Install New Software.
Select the 'Eclipse Project Updates' site (http://download.eclipse.org/eclipse/updates/4.4).
You will find 'Eclipse 2.0 Style Plugin Support' in the 'Eclipse Tests, Examples and Extras' section.
Install it.
After, simply install Veloeclipse or other old "2.0 style" plugin
Veloedit worked, following the installation instructions from their github page: https://github.com/vaulttec/veloedit
Installation
Online updates are available from
https://raw.githubusercontent.com/vaulttec/veloedit/updatesite/.
Define a site bookmark in Eclipse's Update Manager view,
navigate to the update site via this bookmark and install
the Velocity UI feature.
Veloedit seems the most prominent option for file editing, but it has installation problems currently. More information about the current status in active SourceForge bug.
I can confirm that installing 'Eclipse 2.0 Style Plugin Support' made the plugin work in Eclipse Luna. Thanks.

Add language pack to eclipse RCP

I downloaded the eclipse language pack from the following site:
http://download.eclipse.org/technology/babel/babel_language_packs/R0.10.1/indigo/indigo.php
I put the downloaded plugins in the plugin folder of my eclipse installation.
My question: How do I use these plugins with my eclipse RCP application now?
I seem to be unable to add them to my application because I can select them no where. I also tried to drop them into the plugin folder of my RCP application after I exported the application and adding the plugin names to the config.ini but I had no success.
I'd appreciate any help on this topic since I'm stuck :(
Since 3.6 or so, Eclipse doesn't try to find additional plugins in the plugins folder; it will only consider what has been installed with p2 (i.e. via the "Install New Software" menu or the marketplace).
There should be a dropins folder next to the plugins folder; put the language packs in there and Eclipse should automatically pick them up.
See the documentation for details.