|
Re: a failture of org.eclipse.ui.part.ViewPart [message #99538 is a reply to message #99406] |
Wed, 23 July 2008 11:02 |
Eclipse User |
|
|
|
Originally posted by: fappel.innoopract.com
Hi,
so what semantic does your action provide, this may helps to find a
solution for your problem.
Ciao
Frank
-----Ursprüngliche Nachricht-----
Von: Dahai Cao [mailto:dhcao2003@163.com]
Bereitgestellt: Dienstag, 22. Juli 2008 16:56
Bereitgestellt in: eclipse.technology.rap
Unterhaltung: a failture of org.eclipse.ui.part.ViewPart
Betreff: a failture of org.eclipse.ui.part.ViewPart
hi, I can only use IActionDelegate#selectionChanged() method to react to
selection changes in your ViewPart, but I need to react to the modify
changes in my view. the IActionDelegate should provide modifyChanged or
focusChanged or verifyChanged and so on.
I extends org.eclipse.ui.part.ViewPart as FormViewPart and add a
TabFolder
that contains many controls such as Text, List, Button, CheckBox, Radio,
etc in it. But the items on view tool bar can not listen it when the
content of controls changes. I can not use selection change and also can
not use
org.eclipse.ui.part.ViewPart#getSite()#setSelectionProvider( );
cheers,
Dahai
|
|
|
|
Re: a failture of org.eclipse.ui.part.ViewPart [message #99778 is a reply to message #99563] |
Thu, 24 July 2008 13:37 |
Eclipse User |
|
|
|
Originally posted by: fappel.innoopract.com
Hi,
did you thought of using the FormEditor, since you get dirty state
handling, save and save all for free?
Ciao
Frank
-----Ursprüngliche Nachricht-----
Von: Dahai Cao [mailto:dhcao2003@163.com]
Bereitgestellt: Mittwoch, 23. Juli 2008 15:02
Bereitgestellt in: eclipse.technology.rap
Unterhaltung: a failture of org.eclipse.ui.part.ViewPart
Betreff: Re: a failture of org.eclipse.ui.part.ViewPart
I extends org.eclipse.ui.part.ViewPart as FormViewPart. And I add a
TabFolder with two TabItems on the FormViewPart and hope to build a form
that contains various controls. Moreover, I add a "save" viewAction into
a
FormViewPart's local tool bar to save the input data of the controls.
Initially, "save" viewAction is disabled. But when the input data of the
controls change, I hope to the "save" viewAction becomes enabled for
saving.
Now I only found that RAP provides
org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse. jface.action
..IAction,
org.eclipse.jface.viewers.ISelection).
RAP should provide
org.eclipse.ui.IActionDelegate#modifyChanged(org.eclipse.jfa ce.action.IA
ction,
org.eclipse.jface.viewers.ISelection)
org.eclipse.ui.IActionDelegate#focusChanged(org.eclipse.jfac e.action.IAc
tion,
org.eclipse.jface.viewers.ISelection)
and so on.
Dahai Cao
|
|
|
|
Re: a failture of org.eclipse.ui.part.ViewPart [message #100113 is a reply to message #99973] |
Fri, 25 July 2008 08:40 |
Eclipse User |
|
|
|
Originally posted by: fappel.innoopract.com
Hi,
it's part of the org.eclipse.rap.forms bundle and it's fully qualified
name is org.eclipse.ui.forms.editor.FormEditor. I was just thinking of
it as you are talking about forms with editing and save mechanism. The
FormEditor is even a MultiPageEditor so it would already provide you
tab-handling.
Hope that helps.
Ciao
Frank
-----Ursprüngliche Nachricht-----
Von: Dahai Cao [mailto:dhcao2003@163.com]
Bereitgestellt: Donnerstag, 24. Juli 2008 17:38
Bereitgestellt in: eclipse.technology.rap
Unterhaltung: a failture of org.eclipse.ui.part.ViewPart
Betreff: Re: a failture of org.eclipse.ui.part.ViewPart
FormEditor? which package does it exist? I can not find the FormEditor
class.
|
|
|
|
Re: a failture of org.eclipse.ui.part.ViewPart [message #100600 is a reply to message #100357] |
Tue, 29 July 2008 09:00 |
Eclipse User |
|
|
|
Originally posted by: fappel.innoopract.com
Hi,
if you have configured the RAP target correctly (see windows/preferences
-> Plug-in Development/Target Platform) you should be able to find the
FormEditor e.g. by using open type (CNTL + SHIFT + T). Type 'FormEditor'
into the search text. The list field should be reduced to the FormEditor
entry - open it by double clicking the entry.
Ciao
Frank
-----Ursprüngliche Nachricht-----
Von: Dahai Cao [mailto:dhcao2003@163.com]
Bereitgestellt: Montag, 28. Juli 2008 16:23
Bereitgestellt in: eclipse.technology.rap
Unterhaltung: a failture of org.eclipse.ui.part.ViewPart
Betreff: Re: a failture of org.eclipse.ui.part.ViewPart
But I can not find it in rap-sdk-1.1.0-R-site-20080613-1119.zip for
Eclipse 3.3 and 3.4. Where is the
org.eclipse.ui.forms.editors.FormEditor?
|
|
|
Powered by
FUDForum. Page generated in 0.03106 seconds