Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 137830 - Make ProjectionRulerColumn visible
Summary: Make ProjectionRulerColumn visible
Status: RESOLVED DUPLICATE of bug 25793
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.2   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-20 16:21 EDT by David Coppit CLA
Modified: 2007-07-29 09:19 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Coppit CLA 2006-04-20 16:21:33 EDT
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.
Comment 1 Dani Megert CLA 2006-04-21 03:27:56 EDT
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 ***
Comment 2 Eclipse Webmaster CLA 2007-07-29 09:19:34 EDT
Changing OS from Mac OS to Mac OS X as per bug 185991