Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Mylyn Intent » No intent document in intent project
No intent document in intent project [message #755269] Mon, 07 November 2011 20:54 Go to next message
Andy Dunkel is currently offline Andy DunkelFriend
Messages: 6
Registered: November 2011
Junior Member
Hi,

I saw your presentation at the EclipseCON.

I just installed intent, but ran into some problems. I created a new intent project, but there is no default intent document created. Nor am I able to create one, by right click -> new menu.

Any ideas what might be wrong?

Andy
Re: No intent document in intent project [message #755336 is a reply to message #755269] Tue, 08 November 2011 08:17 Go to previous messageGo to next message
Alex Lagarde is currently offline Alex LagardeFriend
Messages: 193
Registered: May 2010
Senior Member

Are you in the Project Explorer perspective ?

I advice you to follow this tutorial
http://wiki.eclipse.org/Intent/Getting_Started to get started with Intent.

Cheers,
Alex
Re: No intent document in intent project [message #755575 is a reply to message #755336] Tue, 08 November 2011 20:34 Go to previous messageGo to next message
Andy Dunkel is currently offline Andy DunkelFriend
Messages: 6
Registered: November 2011
Junior Member
Thanks Alex, the project explorer did the trick. Got this confused with the package explorer.

Andy
Re: No intent document in intent project [message #755597 is a reply to message #755575] Tue, 08 November 2011 21:49 Go to previous messageGo to next message
Andy Dunkel is currently offline Andy DunkelFriend
Messages: 6
Registered: November 2011
Junior Member
Hi,

I am still a little bit stuck. Razz
The tutorial does not really help me at the moment, as the tutorials decribes the handling of an ecore.

I think the syntax of modelling unit differs for classes?

So I created a small demo RCP project. See attached screenshot.

index.php/fa/6068/0/

I want to link my modelling unit with the class "SquareRoot". Currently it does not work. Maybe my syntax of the modelling unit is wrong. Something else?

My modelling unit currently look like this:
@M
   new Square root {
    isUIFeature = "false";
    isImplementedBy = "com.da.intent.rcp.logic.SquareRoot";
   }
M@


Is there documention or a tutorial for the syntax of the modelling unit?
So far it looks like a very interesting project. Keep up the good work.

Andy

  • Attachment: 08.11.png
    (Size: 43.59KB, Downloaded 818 times)

[Updated on: Tue, 08 November 2011 21:51]

Report message to a moderator

Re: No intent document in intent project [message #755658 is a reply to message #755597] Wed, 09 November 2011 08:49 Go to previous messageGo to next message
Alex Lagarde is currently offline Alex LagardeFriend
Messages: 193
Registered: May 2010
Senior Member

Hi Andy,

the tutorial explains how to synchronize any model with your doc. To
synchronize any other technical artifact (javaClasses, MANIFEST.MF
files, code examples on the Internet...), Intent uses pluggable
synchronization bridges, that are in charge of computing a model out of
concrete artifacts like java files(see
http://www.eclipse.org/intent/pages/transcripts/2011_EclipseConEurope/img18.html).

I wrote very quickly a basic synchronization bridge that allows to
synchronize java test projects. I'll soon work on a more generic
synchronization bridge, that allows to document any java file. Writing a
new synchronization bridge is quite easy, and I'll work hard to make it
as straighforward as possible.

Would you explain to me how do you want to represent java files in your
use case ? I explain myself : I'll have to write a metamodel to
represent a plugin with its java files.

If I define the metamodel as below :
- a JavaPlugin contains JavaClasses
- a JavaClass contains Method

You could write inside Intent :
Section {
	Specifications of the Intent RCP Plugin

	The prupose of the Intent RCP Plugin is to... It has been defined to 
fulfill requirements definined in @see "1.2 Project requirements".

	@M
		new Plugin intentRCPPlugin {
			qualifiedName = "com.da.intent.rcp";
		};
	M@

}
Section {
	Implementation of the RCP Plugin

	We define inside the IntentRCPPlugin the SquareRoot class to represent.....
	@M
    	intentRCPPlugin {
		classes += new JavaClass SquareRoot {
			methods += new Method getChildren{};
		};
    	}
	M@
}


But you have many other ways to represent a plugin, freeying you from
your physical structure.

Let's say I add to the metamodel defined previously the following
concepts :
- A Software contains Features
- A Software contains Plugin
- Each JavaClass should be at least associated to a feature

This will add many useful informations : by reading the doc you could
say by looking this fragment :
	SquareRoot {
		relatedFeatures += [drawSquares, persistency];
	}


You understand that the SquareRoot class has been defined to ensure 2
different features. That's an information that could be hard to get from
the code or javadoc, in which you're often missing the big picture. What
is more, Intent will allows you to to plugin custom validation rules
like "Any javaClass of my plugin should be associated to at least one
Feature" or "Any feature should be covered by at least one Test".

To have an example of how can Intent synchronize JavaCode and check
custom validation rules, I invite you to check this demo
http://www.eclipse.org/intent/pages/transcripts/2011_EclipseConEurope/img22.html
..

So I'll be glad that you give me your opinion on what could be the best
way for you to represent eclipse plugin & java files. Be sure that I
will take this opinion into account when writing the Java
synchronization bridge. I've got some tasks to do first (documentation
export for example), but I'll keep you in tuch.

Thanks a lot for your interest in Intent, there's a lot to do to make
the project work in all usecases but the core & architecture have been
wrote for this purpose :)

Cheers,
Alex
Re: No intent document in intent project [message #755668 is a reply to message #755658] Wed, 09 November 2011 09:13 Go to previous message
Alex Lagarde is currently offline Alex LagardeFriend
Messages: 193
Registered: May 2010
Senior Member

Hi Andy,

would be better to continue this conversation on a new topic http://www.eclipse.org/forums/index.php/t/261790/ .

Thanks !
Alex
Previous Topic:Incomplete Dependencies on Update Site
Next Topic:Plans for Eclipse Phoenix website integration?
Goto Forum:
  


Current Time: Thu Mar 28 17:33:23 GMT 2024

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

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

Back to the top