comparison dwtx/jface/text/rules/DefaultPartitioner.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
126 * @param legalContentTypes the legal content types of this partitioner 126 * @param legalContentTypes the legal content types of this partitioner
127 */ 127 */
128 public this(IPartitionTokenScanner scanner, String[] legalContentTypes) { 128 public this(IPartitionTokenScanner scanner, String[] legalContentTypes) {
129 fScanner= scanner; 129 fScanner= scanner;
130 fLegalContentTypes= TextUtilities.copy(legalContentTypes); 130 fLegalContentTypes= TextUtilities.copy(legalContentTypes);
131 fPositionCategory= CONTENT_TYPES_CATEGORY + hashCode(); 131 fPositionCategory= CONTENT_TYPES_CATEGORY + toHash();
132 fPositionUpdater= new DefaultPositionUpdater(fPositionCategory); 132 fPositionUpdater= new DefaultPositionUpdater(fPositionCategory);
133 } 133 }
134 134
135 /* 135 /*
136 * @see dwtx.jface.text.IDocumentPartitionerExtension2#getManagingPositionCategories() 136 * @see dwtx.jface.text.IDocumentPartitionerExtension2#getManagingPositionCategories()