IntelliJ Community . NewFromTemplatePlugin

 
NewFromTemplatePlugin 

HOME INDEX SEARCH CHANGES GO  

New From Template Plugin

NewFromTemplatePlugin will be discontinued as IDEA has improved and now provides configurable templates.

What it is

NewFromTemplatePlugin is a plugin which provides a new menu in the project popup. "New from template .." lets you choose a template and creates it in the currently selected directory.

NewFromTemplatePlugin is based on the velocity template engine. Templates should be placed in $IDEA_HOME$/plugins/templates. For more information see the file readme.txt.

Version 1.2 is now available which includes all system properties. I still have not found a way to place the action into the New popup.

NewFromTemplatePlugin is available here.

-- StefanMainz - 17 Jun 2002


Stefan, this sounds interesting. Are the templates customizable with a Velocity-like template language?

-- ThomasSinger - 15 Jun 2002

Yes, as it uses velocity.

-- StefanMainz - 17 Jun 2002


Probably overkill, but adding (to populateContext):

      Set propertySet = System.getProperties().entrySet();
      for (Iterator i = propertySet.iterator(); i.hasNext();)
      {
         Map.Entry propertyEntry = (Map.Entry) i.next();
         String systemVariableName = propertyEntry.getKey().toString().toUpperCase().replace('.', '_');
         System.out.println("${" + systemVariableName + "}=" + propertyEntry.getValue().toString());
         context.put(systemVariableName, propertyEntry.getValue());
      }
..gives me kinda nice things like SystemVariables

-- AndrewArmstrong - 17 Jun 2002

Done!

-- StefanMainz - 21 Jun 2002


WAY WAY COOL!

-- ErbC - 20 Jun 2002

e d i t a t t a c h r e f - b y d i f f s m o r e
Have ideas, requests, problems regarding this site? Send feedback.
Copyright © 2000-2003 by the contributing authors. All materials at intellij.org are the property of the contributing authors.