Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » ScrolledComposite and lack of method
ScrolledComposite and lack of method [message #550375] Fri, 30 July 2010 07:27 Go to next message
Łukasz Dycjan is currently offline Łukasz DycjanFriend
Messages: 1
Registered: July 2010
Junior Member
Hi all,

hope somebody will be able to help me with that one. After change SWT/JFace library from 3.0 to 3.6 i can't open PreferenceDialog. I've seen than in 3.6 api documentation this function exists, so i don't know why it can't find it. I've got the following exception:

java.lang.NoSuchMethodError: org.eclipse.swt.custom.ScrolledComposite.setShowFocusedControl(Z)V
        at org.eclipse.jface.preference.PreferenceDialog.createPageContainer(PreferenceDialog.java:538)
        at org.eclipse.jface.preference.PreferenceDialog.createDialogArea(PreferenceDialog.java:449)
        at org.eclipse.jface.dialogs.Dialog.createContents(Dialog.java:760)
        at org.eclipse.jface.preference.PreferenceDialog.access$5(PreferenceDialog.java:1)
        at org.eclipse.jface.preference.PreferenceDialog$4.run(PreferenceDialog.java:373)
        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
        at org.eclipse.jface.preference.PreferenceDialog.createContents(PreferenceDialog.java:371)
        at org.eclipse.jface.window.Window.create(Window.java:431)
        at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)
        at org.eclipse.jface.window.Window.open(Window.java:790)
        at actions.mainWindow.PreferencesAction.run(PreferencesAction.java:41)
        at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
        at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
        at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
        at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3319)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2971)
        at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
        at org.eclipse.jface.window.Window.open(Window.java:801)
        at app.Application.main(Application.java:73)


I'll be greatful for any help.
Re: ScrolledComposite and lack of method [message #553716 is a reply to message #550375] Wed, 18 August 2010 15:05 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Hi, sorry for the late reply,

I would guess that an older swt jar is being picked up from somewhere ans
used instead of the one from 3.6.
ScrolledComposite.setShowFocusedControl(Z) is @since 3.4.

Grant


<lukasz.dycjan@gmail.com> wrote in message
news:i2tutr$b7f$1@build.eclipse.org...
> Hi all,
>
> hope somebody will be able to help me with that one. After change
> SWT/JFace library from 3.0 to 3.6 i can't open PreferenceDialog. I've seen
> than in 3.6 api documentation this function exists, so i don't know why it
> can't find it. I've got the following exception:
>
> java.lang.NoSuchMethodError:
> org.eclipse.swt.custom.ScrolledComposite.setShowFocusedContr ol(Z)V
> at
> org.eclipse.jface.preference.PreferenceDialog.createPageCont ainer(PreferenceDialog.java:538)
> at
> org.eclipse.jface.preference.PreferenceDialog.createDialogAr ea(PreferenceDialog.java:449)
> at org.eclipse.jface.dialogs.Dialog.createContents(Dialog.java: 760)
> at
> org.eclipse.jface.preference.PreferenceDialog.access$5(Prefe renceDialog.java:1)
> at
> org.eclipse.jface.preference.PreferenceDialog$4.run(Preferen ceDialog.java:373)
> at
> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
> at
> org.eclipse.jface.preference.PreferenceDialog.createContents (PreferenceDialog.java:371)
> at org.eclipse.jface.window.Window.create(Window.java:431)
> at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)
> at org.eclipse.jface.window.Window.open(Window.java:790)
> at
> actions.mainWindow.PreferencesAction.run(PreferencesAction.j ava:41)
> at org.eclipse.jface.action.Action.runWithEvent(Action.java:498 )
> at
> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:584)
> at
> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:501)
> at
> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:411)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
> at
> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3319)
> at
> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2971)
> at org.eclipse.jface.window.Window.runEventLoop(Window.java:825 )
> at org.eclipse.jface.window.Window.open(Window.java:801)
> at app.Application.main(Application.java:73)
>
> I'll be greatful for any help.
Previous Topic:How do I remove columns after I've created TableViewer?
Next Topic:HeaderProvider for the TableViewer
Goto Forum:
  


Current Time: Tue Sep 24 17:27:08 GMT 2024

Powered by FUDForum. Page generated in 0.03466 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top