UndoContext of an editor [message #166179] |
Fri, 21 December 2007 10:17 |
Eclipse User |
|
|
|
Originally posted by: Robin.Brandstaedter.gmx.de
Hi,
I need the context of the current activated editor, i tried this,
(implementing PartListener)
public void partActivated(IWorkbenchPart part) {
if (part instanceof DiagramEditor){
context =
((DiagramEditor)part).getDiagramEditDomain().getDiagramComma ndStack().getUndoContext();
}
I also tried out with the created editor and with the DiagramDocumentEditor,
but there is thrown an exception (leads to an failure) during runtime:
NoClassDefFoundError (reason
org/eclipse/gmf/runtime/diagram/ui/parts/DiagramEditor).
My Question is, is there an other way to get the context or does anybody
know, how to solve my problem (NoClassDefFoundError)?
Kind regards,
Robin
|
|
|
Re: UndoContext of an editor [message #166188 is a reply to message #166179] |
Fri, 21 December 2007 10:52 |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
Robin,
Unless there is some more specific reason the class couldn't be loaded
(like an exception during the initialization of its static constants,
which you would know from the stack trace in the Error Log view),
failure to find classes at runtime is mostly typically caused by missing
dependencies in the MANIFEST.MF. The typical way this arises is if you
edit the properties of the project rather than using the Dependencies
tab of the MANIFEST.MF editor to fix your compilation problems because
doing so makes the development time problem show up at runtime instead.
Robin Brandstädter wrote:
> Hi,
> I need the context of the current activated editor, i tried this,
> (implementing PartListener)
>
> public void partActivated(IWorkbenchPart part) {
> if (part instanceof DiagramEditor){
>
> context =
> ((DiagramEditor)part).getDiagramEditDomain().getDiagramComma ndStack().getUndoContext();
>
> }
>
> I also tried out with the created editor and with the DiagramDocumentEditor,
> but there is thrown an exception (leads to an failure) during runtime:
> NoClassDefFoundError (reason
> org/eclipse/gmf/runtime/diagram/ui/parts/DiagramEditor).
>
> My Question is, is there an other way to get the context or does anybody
> know, how to solve my problem (NoClassDefFoundError)?
>
>
>
> Kind regards,
>
> Robin
>
>
>
>
>
|
|
|
Re: UndoContext of an editor [message #166204 is a reply to message #166188] |
Fri, 21 December 2007 12:49 |
Eclipse User |
|
|
|
Originally posted by: Robin.Brandstaedter.gmx.de
THX A LOT, XMAS is rescued.... now it works
Kind regards,
Robin
"Ed Merks" <merks@ca.ibm.com> schrieb im Newsbeitrag
news:fkg5tp$igu$1@build.eclipse.org...
> Robin,
>
> Unless there is some more specific reason the class couldn't be loaded
> (like an exception during the initialization of its static constants,
> which you would know from the stack trace in the Error Log view), failure
> to find classes at runtime is mostly typically caused by missing
> dependencies in the MANIFEST.MF. The typical way this arises is if you
> edit the properties of the project rather than using the Dependencies tab
> of the MANIFEST.MF editor to fix your compilation problems because doing
> so makes the development time problem show up at runtime instead.
>
>
> Robin Brandst
|
|
|
Powered by
FUDForum. Page generated in 0.03193 seconds