Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Intent/FAQ

< Intent
Revision as of 09:42, 11 April 2013 by Alex.lagarde.obeo.fr (Talk | contribs) (Does Intent allow to synchronize Java code?)

Can't find the answer you're looking for? Try the Intent Forum and get involved!

Technical Questions

Any relevant question about Intent use

Dependencies issues when installing Intent

As explained in the Installation Guide, the easiest way to install Intent is to start from a Juno or Indigo Modeling.

When I create an Intent project, it is empty

Are you in the Project Explorer perspective? For more tips, check out the Getting Started tutorial.

How can I export documentation programatically?

If you do not want to depend from UI, you can use the IntentHTMLExporter. Here is an example of how to export an IntentDocument stored in a CDO-based Intent Repository.

// Step 1: connect to the Intent Repository
Repository repository = IntentRepositoryManager.INSTANCE.getRepository("cdo://localhost:2036/intent-server");

// Step 2: create a repository adapter to get the IntentDocument
RepositoryAdapter repositoryAdapter = repository.createRepositoryAdapter();
repositoryAdapter.openReadOnlyContext();
IntentDocument elementToOpen = new IntentDocumentQuery(repositoryAdapter).getOrCreateIntentDocument();

// Step 3: export the IntentDocument using the IntentHTMLExporter
new IntentHTMLExporter().exportIntentDocumentation(elementToOpen, "D:/exportFolderLocation", "My Intent documentation", BasicMonitor.toMonitor(new NullProgressMonitor()));

// Step 4: close connection
repositoryAdapter.closeContext()

General Questions

Any relevant question about Intent scope, architecture, etc.

Does Intent allow to synchronize Java code?

Yes, since 0.8 M6. Simply install the Java Bridge, and try to drag Java files/classes/fields or methods inside the Intent editor.

Back to the top