Changeset 1112 for trunk/org.modelica.mdt.ui/src/org/modelica/mdt/ui
- Timestamp:
- 11/22/11 19:30:07 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/org.modelica.mdt.ui/src/org/modelica/mdt/ui/editor/ModelicaSourceViewer.java
r491 r1112 25 25 import org.eclipse.swt.widgets.Display; 26 26 27 import org.eclipse.core.runtime.Assert; 27 28 import org.eclipse.jface.preference.IPreferenceStore; 28 29 import org.eclipse.jface.preference.PreferenceConverter; … … 30 31 import org.eclipse.jface.util.PropertyChangeEvent; 31 32 32 import org.eclipse.jface.text.Assert;33 33 import org.eclipse.jface.text.BadLocationException; 34 34 import org.eclipse.jface.text.IDocument; … … 394 394 395 395 if (fTextPresentationListeners == null) 396 fTextPresentationListeners= new ArrayList ();396 fTextPresentationListeners= new ArrayList<ITextPresentationListener>(); 397 397 398 398 fTextPresentationListeners.remove(listener); … … 458 458 ITypedRegion[] linePartitioning= TextUtilities.computePartitioning(document, IModelicaPartitions.MODELICA_PARTITIONING, lineOffset, line.getLength(), false); 459 459 460 List segmentation= new ArrayList();460 List<ITypedRegion> segmentation= new ArrayList<ITypedRegion>(); 461 461 for (int i= 0; i < linePartitioning.length; i++) { 462 462 if (IModelicaPartitions.MODELICA_STRING.equals(linePartitioning[i].getType())) … … 473 473 int j= 0; 474 474 for (int i= 0; i < size; i++) { 475 ITypedRegion segment= (ITypedRegion)segmentation.get(i);475 ITypedRegion segment= segmentation.get(i); 476 476 477 477 if (i == 0)
Note: See TracChangeset
for help on using the changeset viewer.