comparison dwtx/jface/text/formatter/ContextBasedFormattingStrategy.d @ 162:1a5b8f8129df

...
author Frank Benoit <benoit@tionex.de>
date Mon, 08 Sep 2008 00:51:37 +0200
parents 25f1f92fa3df
children
comparison
equal deleted inserted replaced
161:f8d52b926852 162:1a5b8f8129df
41 41
42 /** The current preferences for formatting */ 42 /** The current preferences for formatting */
43 private Map fCurrentPreferences= null; 43 private Map fCurrentPreferences= null;
44 44
45 /** The list of preferences for initiated the formatting steps */ 45 /** The list of preferences for initiated the formatting steps */
46 private const LinkedList fPreferences= new LinkedList(); 46 private const LinkedList fPreferences;
47
48 this(){
49 fPreferences= new LinkedList();
50 }
47 51
48 /* 52 /*
49 * @see dwtx.jface.text.formatter.IFormattingStrategyExtension#format() 53 * @see dwtx.jface.text.formatter.IFormattingStrategyExtension#format()
50 */ 54 */
51 public void format() { 55 public void format() {
61 65
62 /* 66 /*
63 * @see dwtx.jface.text.formatter.IFormattingStrategyExtension#formatterStarts(dwtx.jface.text.formatter.IFormattingContext) 67 * @see dwtx.jface.text.formatter.IFormattingStrategyExtension#formatterStarts(dwtx.jface.text.formatter.IFormattingContext)
64 */ 68 */
65 public void formatterStarts(IFormattingContext context) { 69 public void formatterStarts(IFormattingContext context) {
66 fPreferences.addLast(context.getProperty(FormattingContextProperties.CONTEXT_PREFERENCES)); 70 fPreferences.addLast(context.getProperty(stringcast(FormattingContextProperties.CONTEXT_PREFERENCES)));
67 } 71 }
68 72
69 /* 73 /*
70 * @see IFormattingStrategy#formatterStarts(String) 74 * @see IFormattingStrategy#formatterStarts(String)
71 */ 75 */