Discoverer Not Appearing in UI (Discoverers list) [message #1765090] |
Tue, 06 June 2017 09:31  |
Eclipse User |
|
|
|
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 11:30  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03175 seconds