[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[Subclipse-users] Possible time waster...

From: Dave Scotese <dscotese_at_litmocracy.com>
Date: Tue, 12 Feb 2008 23:34:25 -0800

The SVN comment font defaults to the Basic Text font, which is great.
However, when I changed it, the box displaying the comments continued using
the old font (while the editor window was updated to use the new one). The
simple workaround would be to close the History view and re-open it, but
that generates a NullPointerException. Error log output:
eclipse.buildId=M20071023-1652
java.version=1.7.0
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86

Error
Tue Feb 12 23:14:48 PST 2008
Problems occurred when invoking code from plug-in: "org.eclipse.jface".

java.lang.NullPointerException
at org.eclipse.team.internal.ui.history.GenericHistoryView.getHistoryPage(
GenericHistoryView.java:921)
at
org.tigris.subversion.subclipse.ui.annotations.AnnotateView.listSelectionChanged
(AnnotateView.java:314)
at
org.tigris.subversion.subclipse.ui.annotations.AnnotateView.selectionChanged
(AnnotateView.java:207)
at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:162)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:857)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:46)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:199)
at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:160)
at org.eclipse.jface.viewers.StructuredViewer.updateSelection(
StructuredViewer.java:2047)
at org.eclipse.jface.viewers.StructuredViewer.setSelection(
StructuredViewer.java:1641)
at
org.tigris.subversion.subclipse.ui.annotations.AnnotateView.textSelectionChanged
(AnnotateView.java:246)
at
org.tigris.subversion.subclipse.ui.annotations.AnnotateView.selectionChanged
(AnnotateView.java:209)
at org.eclipse.jface.text.TextViewer.firePostSelectionChanged(
TextViewer.java:2546)
at org.eclipse.jface.text.TextViewer.firePostSelectionChanged(
TextViewer.java:2498)
at org.eclipse.jface.text.TextViewer$5.run(TextViewer.java:2477)
at org.eclipse.swt.widgets.Display.timerProc(Display.java:3766)
at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:1487)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2969)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java
:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java
:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(
IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(
EclipseAppHandle.java:169)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(
EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(
EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java
:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java
:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:623)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)

Here are the steps to reproduce the behavior:
Right-click a file in the SVN tree and select Annotate...
Pick whatever revision # and click Ok.
Now the editor will appear, and below that (by default at least) will be the
History view. Note the comment text in the lower right window of the
history view.
Go to Window->Preferences and select General->Appearance->Colors and Fonts
from the left hand tree.
Select Text Font from the list and change it, for example make it *bold*.
Click Apply and/or Ok, and notice that the text in the box has not changed.
If you close the History view and reopen it from the Window->Show
View->History, you'll get an NPE.

Dave.
Received on 2008-02-13 09:23:08 CET

This is an archived mail posted to the Subclipse Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.