Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » UndoContext of an editor
UndoContext of an editor [message #166179] Fri, 21 December 2007 10:17 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Diagram Partitioning more than one
Next Topic:rectangle rendering artifact
Goto Forum:
  


Current Time: Thu Apr 25 08:14:43 GMT 2024

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

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

Back to the top