[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[dtp-dev] IViewActionDelegate.init(IViewPart view) not invoked
|
Hi
I have created a popmenu item and delegate action using the xml snippet below; TableOpen(IViewActionDelegate).init(..) is not getting invoked.
<extension
point = "org.eclipse.ui.popupMenus">
<objectContribution
id="oracle.dbtools.connectivity.actions.table.open"
objectClass="oracle.dbtools.connectivity.catalog.OracleTable">
<action
id="
oracle.dbtools.connectivity.catalog.OracleTable"
label="Open"
menubarPath="additions"
enablesFor="*"
class="oracle.dbtools.connectivity.actions.TableOpen
">
</action>
</objectContribution>
</extension>
The invoking class, PluginAction invokes the delegate's init in it's following method
protected void initDelegate() {
if (delegate instanceof IActionDelegate2)
((IActionDelegate2) delegate).init(this);
}
Note that the init is invoked only if the delegate is IActionDelegate2.
Am I missing something ?
Regards
Anthos
--
Anil Samuel <
anil.samuel@xxxxxxxxxx>
Senior Technical Member
Product Development
Oracle Corporation