Beispiel #1
0
 @Override
 public void propertyChange(PropertyChangeEvent event) {
   for (SourceRenderer rnd : m_renderers) {
     rnd.onPropertiesChanged(event);
   }
   String property = event.getProperty();
   if (property.equals(FontKey.CODE.getPreferenceName())) {
     applyItemHeight();
     getGrid().getColumn(CodeViewerColumn.LINE_NO.ordinal()).pack();
   }
   getGrid().redraw();
 }
Beispiel #2
0
 /**
  * ************************************************************************* Increase or decrease
  * the font size
  *
  * @param increase If true, increase the font size
  *     ************************************************************************
  */
 public void zoom(boolean increase) {
   boolean changed = false;
   for (SourceRenderer rnd : m_renderers) {
     changed = changed | rnd.zoom(increase);
   }
   if (changed) {
     getGrid().setItemHeight(m_renderers[0].getFontSize() + 8);
     getGrid().getColumn(CodeViewerColumn.LINE_NO.ordinal()).pack();
     getGrid().redraw();
     showLastLine();
   }
 }
Beispiel #3
0
 public void setExecutorStatus(ExecutorStatus st) {
   showLastLine();
   for (SourceRenderer r : m_renderers) {
     r.setExecutorStatus(st);
   }
 }