Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Correct import
Correct import [message #68607] Tue, 24 October 2006 12:22 Go to next message
Eclipse UserFriend
Hi,

I'm trying to use some code with a type Activity as described:

http://dev.eclipse.org/newslists/news.eclipse.modeling.gmf/m sg00843.html

the particular line is:

Activity activity=(Activity)editpart.resolveSemanticElement();

I've tried: import org.eclipse.ui.internal.activities.*; but this gives me
the error "The type Activity is not visible", can anyone tell me what is
the correct import for type Activity?

Have tried everything suggested by CTRL+SHFT+T

Cheers,

Gaff
Re: Correct import [message #68616 is a reply to message #68607] Tue, 24 October 2006 13:54 Go to previous message
Eclipse UserFriend
Activity in the snippet is author's domain model element, CTRL+SHIFT+T won't
help you unless you have same model and code generated for it.


"Gaff" <conorgaff@hotmail.com> wrote in message
news:61f0399ddd71c0ea1b92e06a332eecab$1@www.eclipse.org...
> Hi,
>
> I'm trying to use some code with a type Activity as described:
>
> http://dev.eclipse.org/newslists/news.eclipse.modeling.gmf/m sg00843.html
>
> the particular line is:
>
> Activity activity=(Activity)editpart.resolveSemanticElement();
>
> I've tried: import org.eclipse.ui.internal.activities.*; but this gives me
> the error "The type Activity is not visible", can anyone tell me what is
> the correct import for type Activity?
>
> Have tried everything suggested by CTRL+SHFT+T
>
> Cheers,
>
> Gaff
>
Previous Topic:Better error diagnostics while generating model?
Next Topic:Strange differences to mindmap example: How to control layout?
Goto Forum:
  


Current Time: Sat Jun 07 21:10:04 EDT 2025

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

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

Back to the top