From 0cb6db4f573da85ebc8a637da22055e80ff758d4 Mon Sep 17 00:00:00 2001 From: axelcl Date: Sat, 6 Nov 2004 11:49:16 +0000 Subject: [PATCH 1/1] Simple auto indent strategy when inserting templates --- net.sourceforge.phpeclipse/plugin.xml | 21 +- .../formatter/DefaultCodeFormatterConstants.java | 2493 ++++++++++++++++++++ .../internal/corext/template/php/JavaContext.java | 1123 +++++----- .../corext/template/php/JavaFormatter.java | 358 +++ .../internal/corext/util/CodeFormatterUtil.java | 291 +++ .../phpdt/internal/ui/text/JavaIndenter.java | 1372 +++++++++++ 6 files changed, 5075 insertions(+), 583 deletions(-) create mode 100644 net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/core/formatter/DefaultCodeFormatterConstants.java create mode 100644 net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/corext/template/php/JavaFormatter.java create mode 100644 net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/corext/util/CodeFormatterUtil.java create mode 100644 net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/text/JavaIndenter.java diff --git a/net.sourceforge.phpeclipse/plugin.xml b/net.sourceforge.phpeclipse/plugin.xml index 940c251..72dcc0d 100644 --- a/net.sourceforge.phpeclipse/plugin.xml +++ b/net.sourceforge.phpeclipse/plugin.xml @@ -138,8 +138,7 @@ - - + - - + --> - - + -->