X-Git-Url: http://secure.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ui/PreferenceConstants.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ui/PreferenceConstants.java index 8a27f28..15796fe 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ui/PreferenceConstants.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ui/PreferenceConstants.java @@ -58,7 +58,7 @@ public class PreferenceConstants { /** * A named preference that defines the pattern used for package name compression. *

- * Value is of type String. For example foe the given package name 'org.eclipse.jdt' pattern '.' will compress it + * Value is of type String. For example foe the given package name 'net.sourceforge.phpdt' pattern '.' will compress it * to '..jdt', '1~' to 'o~.e~.jdt'. *

*/ @@ -168,7 +168,37 @@ public class PreferenceConstants { * @see #CODEGEN_USE_GETTERSETTER_SUFFIX */ public static final String CODEGEN_GETTERSETTER_SUFFIX = "net.sourceforge.phpdt.ui.gettersetter.suffix.list"; //$NON-NLS-1$ - + /** + * A named preference that controls whether the keyword "this" will be added + * automatically to field accesses in generated methods. + *

+ * Value is of type Boolean. + *

+ * @since 3.0 + */ + public static final String CODEGEN_KEYWORD_THIS= "org.eclipse.jdt.ui.keywordthis"; //$NON-NLS-1$ + + /** + * A named preference that controls whether to use the prefix "is" or the prefix "get" for + * automatically created getters which return a boolean field. + *

+ * Value is of type Boolean. + *

+ * @since 3.0 + */ + public static final String CODEGEN_IS_FOR_GETTERS= "org.eclipse.jdt.ui.gettersetter.use.is"; //$NON-NLS-1$ + + + /** + * A named preference that defines the preferred variable names for exceptions in + * catch clauses. + *

+ * Value is of type String. + *

+ * @since 3.0 + */ + public static final String CODEGEN_EXCEPTION_VAR_NAME= "org.eclipse.jdt.ui.exception.name"; //$NON-NLS-1$ + /** * A named preference that controls if comment stubs will be added automatically to newly created types and methods. *

@@ -1032,7 +1062,7 @@ public class PreferenceConstants { public final static String EDITOR_MULTI_LINE_COMMENT_COLOR = IPreferenceConstants.PHP_MULTILINE_COMMENT; /** - * The symbolic font name for the Java editor text font (value "org.eclipse.jdt.ui.editors.textfont"). + * The symbolic font name for the Java editor text font (value "net.sourceforge.phpdt.ui.editors.textfont"). * * @since 2.1 */ @@ -2270,6 +2300,10 @@ public class PreferenceConstants { store.setDefault(PreferenceConstants.CODEGEN_USE_GETTERSETTER_SUFFIX, false); store.setDefault(PreferenceConstants.CODEGEN_GETTERSETTER_PREFIX, "fg, f, _$, _, m_"); //$NON-NLS-1$ store.setDefault(PreferenceConstants.CODEGEN_GETTERSETTER_SUFFIX, "_"); //$NON-NLS-1$ + + store.setDefault(PreferenceConstants.CODEGEN_KEYWORD_THIS, false); + store.setDefault(PreferenceConstants.CODEGEN_IS_FOR_GETTERS, true); + store.setDefault(PreferenceConstants.CODEGEN_EXCEPTION_VAR_NAME, "e"); //$NON-NLS-1$ store.setDefault(PreferenceConstants.CODEGEN_ADD_COMMENTS, true); store.setDefault(PreferenceConstants.CODEGEN__NON_JAVADOC_COMMENTS, false); store.setDefault(PreferenceConstants.CODEGEN__FILE_COMMENTS, false);