Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7713859
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T01:58:43+00:00 2026-06-01T01:58:43+00:00

I am generating Java Code from my Domain specific Language (DSL). My Language is

  • 0

I am generating Java Code from my Domain specific Language (DSL). My Language is using String Template files for generating Java Code from DSL.

My problem is that String Template files generate un-formatted Java code in Eclipse. Whenever I generated code, I have to press cntr + Shift + F to format each generated Java file.

Is there any way of generating formatted code ? I am using Eclipse IDE.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T01:58:44+00:00Added an answer on June 1, 2026 at 1:58 am

    You have to take care of indentation in your StringTemplate templates. I tend to write templates for fragments of code such as a function definitions, function calls or even argument declarations that have to be expanded over a collection of variable elements, and combined them programmatically as arguments to a single souce file template.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The code I'm working on is using jaxb2-maven-plugin from org.codehaus.mojo to generate Java classes
I want to generate java code from xsd using JAXB 2.1 XJC. I have
I have written java code for generating json of my searched data from file.But
I am working on generating Java objects from an XSD file using JAXB 2.1.
I'm generating a WSDL from a Java class using the @WebService annotation and running
I am trying to use jibx-maven plugin 1.2.3 for generating Java Source Code from
I am trying to generate java source files from a package of *.xsd files
I'm looking at the possibility of generating Java byte code at run time (hopefully
Given the following Java code for generating a binary file: DataOutputStream out = new
I am generating JavaScript pages through Java code like: FileOutputStream fs=new FileOutputStream(C:\\Documents and Settings\\prajakta\\Desktop\\searcheng.html);

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.