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

Difference between revisions of "Intent/FAQ"

(General Questions)
(Technical Questions)
 
(6 intermediate revisions by 2 users not shown)
Line 5: Line 5:
  
 
==== Dependencies issues when installing Intent ====
 
==== Dependencies issues when installing Intent ====
As explained in the [http://wiki.eclipse.org/Intent/Installation_Guide Installation Guide], the easiest way to install Intent is to start from an Indigo Modeling.
+
As explained in the [http://wiki.eclipse.org/Intent/Installation_Guide Installation Guide], the easiest way to install Intent is to start from a Juno or Indigo Modeling.
We will work on packaging and dependencies when aligning Intent 0.7 with the Juno release train.
+
  
 
==== When I create an Intent project, it is empty ====
 
==== When I create an Intent project, it is empty ====
 
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.
 +
 +
==== After having exported an Intent project, I have the following exception ====
 +
<pre>
 +
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)
 +
</pre>
 +
 +
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.
 +
 +
<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 =
 
''Any relevant question about Intent scope, architecture, etc.''
 
''Any relevant question about Intent scope, architecture, etc.''
  
* [http://www.eclipse.org/forums/index.php?t=msg&th=203863&start=0&S=a5c2acc9b62c92c965e3c0d2c61deab9 General questions about Intent] (Doc abstraction, Doc synchronization, validation, extensibility...)
+
=== 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.

Latest revision as of 09:44, 11 April 2013

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.

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.

Back to the top