Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Strange plugin.xml behavior when writing a DTP ODA
billjclark
<p>Hi-</p>
<p> </p>
<p>I am working on a data source for MarkLogic and am encountering strange behavior in my run/debug configurations.</p>
<p> </p>
<p>The <dataSetUI> element works as designed when the <dataSourceUI> element is commented out.</p>
<p> </p>
<p>When I uncomment the <dataSourceUI> element, the <dataSetUI> no longer works while the <dataSourceUI> works fine.</p>
<p> </p>
<p>Any ideas what the problem could be?</p>
<p> </p>
<p>Bill</p>
Find more posts tagged with
Comments
Clement Wong
<p>Bill,</p>
<p> </p>
<p>I can't tell from the plugin.xml without the other project files, but if I had to take a guess, does the dataSetUI have the correct id and initialPageId?</p>
<p> </p>
<p>One is "org.eclipse.datatools.<strong>engagement</strong>.marklogic.dataSet" and the other is "org.eclipse.datatools.<strong>connectivity</strong>.marklogic.ui.dataset..."</p>
<pre class="_prettyXprint">
<dataSetUI id="org.eclipse.datatools.engagement.marklogic.dataSet" supportsOutParameters="false" supportsInParameters="true" initialPageId="org.eclipse.datatools.connectivity.marklogic.ui.dataset.ui1">
</pre>
<p>What steps did you take to create this ODA?</p>
billjclark
<p>Hi-</p>
<p> </p>
<p>I am using the XML Data source as a starting point. The XML Data source works great with the MarkLogic REST API but we want to expand the feature set. Initially, I am going to add three features to our extension of the XML data source. They are:</p>
<p> </p>
<p>- Change the output type to either application/xml or json.</p>
<p>- Add the ability to use security. (I.e. add username/password)</p>
<p>- Add JSON document support. (Obviously, this is the biggest change. We want the same ODA to handle either XML or JSON documents seamlessly.)</p>
<p> </p>
<p>Thanks for you help!</p>
<p> </p>
<p>I have never successfully gotten the "next" button to work in creating a dataset. I assume that the pulgin.xml is screwed up. I can supply more files or even put the whole project in github if that would help. The real version that I am using is:</p>
<p> </p>
<div><?xml version="1.0" encoding="UTF-8"?></div>
<div><?eclipse version="3.0"?></div>
<div><plugin></div>
<div> <extension</div>
<div> point="org.eclipse.datatools.connectivity.connectionProfile"></div>
<div><newWizard</div>
<div> id="%oda.data.source.id"</div>
<div> name="%newwizard.name"</div>
<div> class="org.eclipse.datatools.connectivity.oda.design.ui.wizards.NewDataSourceWizard"</div>
<div> description="%newwizard.description"</div>
<div> icon="icons/fieldlist.ico"</div>
<div> profile="%oda.data.source.id"/></div>
<div> </extension></div>
<div> <extension</div>
<div> point="org.eclipse.datatools.connectivity.ui.connectionProfileImage"></div>
<div> <profileImage</div>
<div> profileID="%oda.data.source.id"</div>
<div> icon="icons/profile.gif"></div>
<div> </profileImage></div>
<div> </extension> </div>
<div> <extension</div>
<div> point="org.eclipse.ui.propertyPages"></div>
<div> <page</div>
<div> id="%oda.data.source.id"</div>
<div> name="%profile.propertypage.name"</div>
<div> class="org.eclipse.datatools.engagement.marklogic.ui.wizards.XMLPropertyPage"></div>
<div> <enabledWhen></div>
<div> <instanceof</div>
<div> value="org.eclipse.datatools.connectivity.IConnectionProfile"></div>
<div> </instanceof></div>
<div> </enabledWhen></div>
<div> <filter</div>
<div> name="org.eclipse.datatools.profile.property.id"</div>
<div> value="%oda.data.source.id"/></div>
<div> </page></div>
<div> </extension></div>
<div> </div>
<div> <extension</div>
<div> point="org.eclipse.datatools.connectivity.oda.design.ui.dataSource"></div>
<div><dataSourceUI id="%oda.data.source.id"></div>
<div> <newDataSourceWizard</div>
<div> includesProgressMonitor="false"</div>
<div> pageClass="org.eclipse.datatools.engagement.marklogic.ui.wizards.XMLSelectionWizardPage"</div>
<div> pageTitle="%wizard.data.source.page.title"</div>
<div> windowTitle="%wizard.window.title"/></div>
<div></dataSourceUI></div>
<div> </div>
<div><dataSetUI id="org.eclipse.datatools.enagagement.marklogicdataSet" </div>
<div> supportsOutParameters="false"</div>
<div> supportsInParameters="true"</div>
<div> initialPageId="org.eclipse.datatools.enagagement.marklogic.ui.dataset.ui1"></div>
<div> </div>
<div><dataSetWizard class="org.eclipse.datatools.connectivity.oda.design.ui.wizards.DataSetWizard"</div>
<div> windowTitle="%wizard.data.set.window.title"/></div>
<div> </div>
<div><dataSetPage id="org.eclipse.datatools.enagagement.marklogic.ui.dataset.ui1" </div>
<div> displayName="%marklogic.dataset"</div>
<div> path="/"</div>
<div> wizardPageClass="org.eclipse.datatools.engagement.marklogic.ui.wizards.XmlDataSetSelectionPage"/></div>
<div> </div>
<div><dataSetPage id="org.eclipse.datatools.enagagement.marklogic.ui.dataset.ui2"</div>
<div> displayName="%marklogic.tablemapping"</div>
<div> path="/"</div>
<div> wizardPageClass="org.eclipse.datatools.engagement.marklogic.ui.wizards.XPathChoosePage"/></div>
<div> </div>
<div><dataSetPage id="org.eclipse.datatools.enagagement.marklogic.ui.dataset.ui3"</div>
<div> displayName="%marklogic.columnmapping"</div>
<div> path="/"</div>
<div> wizardPageClass="org.eclipse.datatools.engagement.marklogic.ui.wizards.ColumnMappingPage"/></div>
<div> </div>
<div></dataSetUI></div>
<div></extension></div>
<div><extension</div>
<div> point="org.eclipse.ui.preferencePages"></div>
<div> <page</div>
<div> class="org.eclipse.datatools.engagement.marklogic.ui.preference.DataSetPreferencePage"</div>
<div> category="org.eclipse.datatools.connectivity.oda.design.ui.preferences.OpenDataAccessPage"</div>
<div> name="%preference.datasetpreview"</div>
<div> id="org.eclipse.datatools.engagement.marklogic.ui.preference.DataSetPreferencePage"/></div>
<div> </extension></div>
<div></plugin></div>
Clement Wong
<p>I'll most likely need to entire project to troubleshoot. PM me with the location, and we can work on this offline.</p>