コード例 #1
0
 @Override
 public void dispose() {
   getStore().removePropertyChangeListener(listener);
   colorManager.dispose();
   getJBehaveProject().removeListener(projectListener);
   super.dispose();
 }
コード例 #2
0
  private void updateStyles() {
    TextStyle theme = getTheme();
    textAttributeProvider.changeTheme(theme);

    StyledText textWidget = getSourceViewer().getTextWidget();
    textWidget.setBackground(colorManager.getColor(theme.getBackgroundOrDefault()));
    textWidget.setForeground(colorManager.getColor(theme.getForegroundOrDefault()));

    adjustCurrentLineColor(theme);
    getSourceViewer().invalidateTextPresentation();
  }