View ID for custom created view is different from eclipse 3.6.2 [message #1105874] |
Tue, 10 September 2013 07:38  |
Eclipse User |
|
|
|
We have recently migrated our eclipse based Text Analytics tooling from eclipse 3.6.2 to eclipse 4.2.2, after migration we are not able to see the toolbar buttons in the custom views we have in our tooling (they are Result Table view and Result Tree view.) we haven't changed any code with respect to this
script we have used for thie new view is
<extension
point="org.eclipse.ui.menus">
<menuContribution
locationURI="toolbar:treeview.view.AQLResultTreeView?after=additions">
<command
commandId="textanalytics.treeview.commands.ShowAllDocs"
icon="icons/tb_showAllDocs.gif"
id="textanalytics.treeview.ShowAllDocs"
label="Show All Documents That Are Annotated"
mnemonic="t"
style="push"
tooltip="Show All Documents That Are Annotated">
</command>
</menuContribution>
When I open the tree view in editor and print the view details like view ID, secondary ID, title etc in both eclipse 3.6.2. and 4.2.2 I found the following difference.
In 3.6.2 view details are like
View ID : treeview.view.AQLResultTreeView
View Sec ID : /BI_Project_102_html/labeledCollections/lc1/20071127BA01_8008_ISO-8859-1.txt.lc
View Title : /BI_Project_102_html/labeledCollections/lc1/20071127BA01_8008_ISO-8859-1.txt.lc
In 4.2.2 view details are like
View ID : treeview.view.AQLResultTreeView:/BI_Project_102_html/labeledCollections/lc1/20071127BA01_008_ISO-8859-1.txt.lc
View Sec ID : /BI_Project_102_html/labeledCollections/lc1/20071127BA01_8008_ISO-8859-1.txt.lc
View Title : /BI_Project_102_html/labeledCollections/lc1/20071127BA01_8008_ISO-8859-1.txt.lc
In 4.2.2, view id is combination of view id and secondary id.
In menu contributions we have used view ID as treeview.view.AQLResultTreeView?..... So its finding proper view in 3.6.2 and finding view in eclipse 4.2.2.
I am thinking due to this modified view ID tool bar buttons are missing in 4.2.2, Do you have any idea on resolving it? how to ensure same view id is considered in 4.2.2 as like 3.6.2 ?
Actually there is no change in our tooling code, some thing must have changed from eclipse API point of view.
Do you have any solution to fix this? Please let me know.
|
|
|
Re: View ID for custom created view is different from eclipse 3.6.2 [message #1110873 is a reply to message #1105874] |
Tue, 17 September 2013 08:45  |
Eclipse User |
|
|
|
I have found this issues is not happening in eclipse 4.3. with out changing any source code, I have run it against eclipse 4.3 version and found the views working properly and toolbars also not missed out.
Can any one please suggest what is causing this issue in eclipse 4.2.2?
and how can I proceed further?
Is there a way to get the patch for this issue and apply in 4.2.2?
or need to have some work around in my code it slef?
As I need this little urgent, any suggestion is much appreciated and really helpful.
Thanks
Rajeshwar kalakuntla
|
|
|
Powered by
FUDForum. Page generated in 0.03743 seconds