Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Intent/FAQ"
(→Technical Questions) |
|||
Line 10: | Line 10: | ||
Are you in the Project Explorer perspective? | Are you in the Project Explorer perspective? | ||
For more tips, check out the [http://wiki.eclipse.org/Intent/Getting_Started Getting Started] tutorial. | For more tips, check out the [http://wiki.eclipse.org/Intent/Getting_Started 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. | ||
+ | |||
+ | <pre> | ||
+ | // 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() | ||
+ | </pre> | ||
= General Questions = | = General Questions = |
Revision as of 06:45, 31 December 2012
Can't find the answer you're looking for? Try the Intent Forum and get involved!
Contents
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?
It has the *ability* to do so (see newsgroup post), but default Java code integration is not yet integrated. This will come soon...
- General questions about Intent (Doc abstraction, Doc synchronization, validation, extensibility, etc.)