Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 368923

Summary: [Examples] Xviewer Example test throws exception
Product: z_Archived Reporter: Wim Jongman <wim.jongman>
Component: NebulaAssignee: Donald Dunne <donald.g.dunne>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
[Examples] Xviewer Example test throws exception wim.jongman: iplog+

Description Wim Jongman CLA 2012-01-18 04:18:50 EST
18-jan-2012 10:16:50 org.eclipse.nebula.widgets.xviewer.example.util.MyLog log
SEVERE: Invalid path: C:\UserData
java.lang.Exception: used to get a stack trace
	at org.eclipse.nebula.widgets.xviewer.example.util.MyLog.log(MyLog.java:30)
	at org.eclipse.nebula.widgets.xviewer.example.util.MyLib.readListFromDir(MyLib.java:92)
	at org.eclipse.nebula.widgets.xviewer.example.MyXViewerCustomizations.getSavedCustDatas(MyXViewerCustomizations.java:50)
	at org.eclipse.nebula.widgets.xviewer.customize.CustomizeManager.getSavedCustDatas(CustomizeManager.java:431)
	at org.eclipse.nebula.widgets.xviewer.action.TableCustomizationDropDownAction.getMenu(TableCustomizationDropDownAction.java:57)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:530)
	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
	at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:452)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
	at org.eclipse.nebula.widgets.xviewer.example.MyXViewerTest.main(MyXViewerTest.java:81)
Comment 1 S. Cook CLA 2012-01-26 15:58:56 EST
Created attachment 210151 [details]
[Examples] Xviewer Example test throws exception

Modified MyXViewerCustomizations class. Removed hard coded dependency on "C:/UserData" and replaced with System.getProperty("user.home")
Comment 2 Donald Dunne CLA 2012-04-30 13:55:37 EDT
Changes made as per Shawn's comment.