Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Correct import
Correct import [message #68607] Tue, 24 October 2006 16:22 Go to next message
Conor Missing name is currently offline Conor Missing nameFriend
Messages: 159
Registered: July 2009
Senior Member
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 17:54 Go to previous message
Artem Tikhomirov is currently offline Artem TikhomirovFriend
Messages: 222
Registered: July 2009
Senior Member
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: Thu Dec 26 14:01:33 GMT 2024

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

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

Back to the top