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.
Intent/FAQ
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.
After having exported an Intent project, I have the following exception
java.lang.NoClassDefFoundError: org/eclipse/pde/core/plugin/PluginRegistry at org.eclipse.acceleo.common.internal.utils.workspace.AcceleoWorkspaceUtil$WorkspaceResourcesListener.processBuildEvent(AcceleoWorkspaceUtil.java:1114) at org.eclipse.acceleo.common.internal.utils.workspace.AcceleoWorkspaceUtil$WorkspaceResourcesListener.resourceChanged(AcceleoWorkspaceUtil.java:1080) at org.eclipse.core.internal.events.NotificationManager$1.run(NotificationManager.java:291) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:285) at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:149) at org.eclipse.core.internal.resources.Workspace.broadcastBuildEvent(Workspace.java:382) at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:146) at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
Make sure that you have installed PDE (see http://www.eclipse.org/forums/index.php/t/472797/ for further details)
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.