comparison dwtx/jface/text/rules/RuleBasedPartitioner.d @ 160:3678e4f1a766

toHash, toString
author Frank Benoit <benoit@tionex.de>
date Wed, 27 Aug 2008 02:07:22 +0200
parents f70d9508c95c
children 1a5b8f8129df
comparison
equal deleted inserted replaced
159:7926b636c282 160:3678e4f1a766
117 * @param legalContentTypes the legal content types of this partitioner 117 * @param legalContentTypes the legal content types of this partitioner
118 */ 118 */
119 public this(RuleBasedScanner scanner, String[] legalContentTypes) { 119 public this(RuleBasedScanner scanner, String[] legalContentTypes) {
120 fScanner= scanner; 120 fScanner= scanner;
121 fLegalContentTypes= TextUtilities.copy(legalContentTypes); 121 fLegalContentTypes= TextUtilities.copy(legalContentTypes);
122 fPositionCategory= CONTENT_TYPES_CATEGORY + hashCode(); 122 fPositionCategory= CONTENT_TYPES_CATEGORY + toHash();
123 fPositionUpdater= new DefaultPositionUpdater(fPositionCategory); 123 fPositionUpdater= new DefaultPositionUpdater(fPositionCategory);
124 } 124 }
125 125
126 /* 126 /*
127 * @see dwtx.jface.text.IDocumentPartitionerExtension2#getManagingPositionCategories() 127 * @see dwtx.jface.text.IDocumentPartitionerExtension2#getManagingPositionCategories()