Community
Participate
Working Groups
I'm trying to dynamically add annotation columns to the left of a ProjectionRulerColumn. This would be easy if I could test the type of the vertical ruler column: CompositeRuler cr = (CompositeRuler)getVerticalRuler(); int insertLocation = 0; for (Iterator it = cr.getDecoratorIterator(); it.hasNext();) { IVerticalRulerColumn existingColumn = (IVerticalRulerColumn)it.next(); insertLocation++; if (existingColumn instanceof ProjectionRulerColumn) break; } But I can't test the type since ProjectionRulerColumn is not visible outside its package.
You could test the model, which will usually be a ProjectionAnnotationModel for the ProjectionRulerColumn. What you really want are simpler ways to add decorators. See my comments in bug 25793. *** This bug has been marked as a duplicate of 25793 ***
Changing OS from Mac OS to Mac OS X as per bug 185991