Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » MoDisco » Discoverer Not Appearing in UI (Discoverers list)
Discoverer Not Appearing in UI (Discoverers list) [message #1765090] Tue, 06 June 2017 13:31 Go to next message
Tiago Martins is currently offline Tiago MartinsFriend
Messages: 23
Registered: May 2017
Junior Member
Hello there, I am following the "Discovery Manager Developer Documentation" on "MoDisco Documentation > MoDisco User Guide > Infrastructure > Discovery Manager" but something is wrong, I have used both extension points, but the discover does not appear when I right-click in a project and go to Discovery > Discoverers.

I followed the following steps:

1) Creating Plugin Project (selected "Generate an Activator.." and "This plug-in will make contributions to the UI)

2) Created the Discover Class using New > Other > Modisco > Modisco Discover and create a class with empty example, like the following:

public class DiscoverFromPHPProject implements IDiscoverer<IProject>
{
	@Override
	public boolean isApplicableTo(IProject source) {
		// TODO Auto-generated method stub
		return true;
	}

	@Override
	public void discoverElement(IProject source, IProgressMonitor monitor) throws DiscoveryException {
		// TODO Auto-generated method stub
		
	}
}


And I setup the the plugin extension points on "Extensions" tab, the plugin.xml looks like the following:

<plugin>
   <extension point="org.eclipse.modisco.infra.discovery.core.discoverer">
      <discoverer class="discoverers.DiscoverFromPHPProject" id="org.eclipse.modisco.php.discoverer"/>
   </extension>
   <extension point="org.eclipse.modisco.infra.discovery.ui.discoverer">
      <discoverer discovererID="org.eclipse.modisco.php.discoverer" icon="icons/xml_tag.gif" label="Discover from PHP" path="abc/def" />
   </extension>
</plugin>


Still I can't see my new option on the UI, am I doing something wrong?

Thank you very much!
Re: Discoverer Not Appearing in UI (Discoverers list) [message #1765101 is a reply to message #1765090] Tue, 06 June 2017 15:30 Go to previous message
Tiago Martins is currently offline Tiago MartinsFriend
Messages: 23
Registered: May 2017
Junior Member
Only after some research I could investigate the problem.

Here is the solution by "Wenceslao SanchezFriend" in another topic:

Quote:
I am writing this just because if anyone has to face to the same problem, in order I could help him.

The workaround is:
Right click on the discoverer project name on the explorer window view
Chose the option run as...
Go to Eclipse Application (or similar)

And now all the discoverers are in the running Eclipse application
Previous Topic:Implement new Discover and Metamodel
Next Topic:JDTVisitor Assignment Node
Goto Forum:
  


Current Time: Sat Apr 20 03:48:42 GMT 2024

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

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

Back to the top