Bug 418561 - [Contributions] Two [Import...] menu items were shown
Summary: [Contributions] Two [Import...] menu items were shown
Status: CLOSED DUPLICATE of bug 391430
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 4.2.2   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
: 426962 457439 457778 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-10-03 01:30 EDT by fei wang CLA
Modified: 2015-05-18 05:57 EDT (History)
7 users (show)

See Also:


Attachments
two import menuitem (53.01 KB, image/png)
2013-10-03 01:30 EDT, fei wang CLA
no flags Details
Minimalist plugin.xml that reproduces the bug. (998 bytes, application/xml)
2014-01-31 03:52 EST, Wojciech Sudol CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description fei wang CLA 2013-10-03 01:30:42 EDT
Created attachment 236058 [details]
two import menuitem

[Environment]
1.Eclipse Modeling Tools
Version: Juno Service Release 2
Build id: 20130225-0426

2.wtp4x-sdk-R-3.4.2-20130208151217

[Steps to Reproduce]
1.Select the [Java EE] perspective
2.Right click in [Project Explorer] view -> [New] -> [Project...] -> [Java Project] -> [Next] -> Input a project name -> [Finish]
3.Click [No] in [Open Associated Perspective?] dialog
4.Right click the created project -> [Delete] -> OK
5.Right click in [Project Explorer] view -> [Import]

In [Import] submenu, two [Import...] menuitem were shown.
Comment 1 Dani Megert CLA 2013-10-03 06:34:04 EDT
In plain eclipse-jee-juno-SR1-win32 there's only an Import... top-level menu and no Import> sub-menu. Did you install some additional stuff?
Comment 2 fei wang CLA 2013-10-05 20:47:15 EDT
You should use eclipse-modeling-juno-SR2-win32 instead of eclipse-jee-juno-SR1-win32.
Comment 3 Dani Megert CLA 2013-10-10 05:45:33 EDT
I can also not reproduce with this:

http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/kepler/SR1/eclipse-modeling-kepler-SR1-win32.zip&mirror_id=63


If you still see this, please provide exact steps of how to setup the installation.
Comment 4 fei wang CLA 2013-10-25 01:25:35 EDT
Please use eclipse-modeling-juno-SR2-win32 instead of eclipse-modeling-kepler-SR1-win32
Comment 5 Dani Megert CLA 2013-10-25 05:08:59 EDT
(In reply to fei wang from comment #4)
> Please use eclipse-modeling-juno-SR2-win32 instead of
> eclipse-modeling-kepler-SR1-win32

No I won't, because Juno is gone, and we don't make fixes for it. Please try the latest version, which is Kepler SR1 and if you can reproduce the bug there, we can reopen it.
Comment 6 Alexey Kazakov CLA 2014-01-29 21:32:31 EST
I still can reproduce this issue in Luna - https://bugs.eclipse.org/bugs/show_bug.cgi?id=426962
Comment 7 Wojciech Sudol CLA 2014-01-30 04:16:10 EST
Reopened on behalf of Alexey (see bug 426962).
Comment 8 Wojciech Sudol CLA 2014-01-30 04:18:07 EST
*** Bug 426962 has been marked as a duplicate of this bug. ***
Comment 9 Paul Webster CLA 2014-01-30 06:04:03 EST
(In reply to Alexey Kazakov from comment #6)
> I still can reproduce this issue in Luna -
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=426962

Which eclipse configuration (filename) + any other plugins installed did you use?

PW
Comment 10 Wojciech Sudol CLA 2014-01-30 06:29:20 EST
I can reproduce the bug in Eclipse 4.3.2 M20140129-0800 and 4.4 I20140123-1600.
Requires Eclipse Java EE Developer Tools.
Comment 11 Dani Megert CLA 2014-01-30 06:57:56 EST
(In reply to Wojciech Sudol from comment #10)
> I can reproduce the bug in Eclipse 4.3.2 M20140129-0800 and 4.4
> I20140123-1600.
> Requires Eclipse Java EE Developer Tools.

Can you check whether they contribute the 'Import' menu, and if so how? AFAIK we contribute 'Import...' but not 'Import >'.
Comment 12 Wojciech Sudol CLA 2014-01-31 03:52:23 EST
Created attachment 239509 [details]
Minimalist plugin.xml that reproduces the bug.

They contribute the 'Import' menu through 'org.eclipse.ui.navigator.navigatorContent' extension point from 'org.eclipse.ui.navigator' bundle. I attach minimalist (partially incomplete) plugin.xml file that reproduces the problem. 
Original plugin.xml can be found in 'org.eclipse.jst.j2ee.navigator.ui' bundle.
Comment 13 Dani Megert CLA 2014-01-31 04:59:04 EST
(In reply to Wojciech Sudol from comment #12)
> Created attachment 239509 [details]
> Minimalist plugin.xml that reproduces the bug.

Cool! Can you check whether this is a regression in 4.x or whether this was always broken?
Comment 14 Wojciech Sudol CLA 2014-01-31 05:26:23 EST
Cannot reproduce in 3.7.2.
Reproduced in 4.2.0.
Looks like regression.
Comment 15 Paul Webster CLA 2014-01-31 05:58:09 EST
(In reply to Wojciech Sudol from comment #14)
> Cannot reproduce in 3.7.2.

Wojtek, can you try reproducing it in 3.8 please.

PW
Comment 16 Wojciech Sudol CLA 2014-01-31 06:21:48 EST
I cannot reproduce it in 3.8.2.
Comment 17 Wojciech Sudol CLA 2015-01-19 07:15:05 EST
*** Bug 457778 has been marked as a duplicate of this bug. ***
Comment 18 Wojciech Sudol CLA 2015-01-19 07:27:27 EST
*** Bug 457439 has been marked as a duplicate of this bug. ***
Comment 19 Leopoldo (Polo) Miranda CLA 2015-04-15 18:54:50 EDT
Following exact steps below, this problem can be reproduced all the time:

1. Start eclipse in a new brand workspace
2. Create a Java Project
3. Create a Dynamic Web Project
4. Select the Java Project, right click mouse
5. Select the Dynamic Web Project, right click, click on Import, then we you will see two Import entries.

- This problem can be reproduced in Juno, Luna and Mars.

Thanks.
Comment 20 Wojciech Sudol CLA 2015-05-15 05:56:18 EDT
(In reply to Leopoldo (Polo) Miranda from comment #19)
> Following exact steps below, this problem can be reproduced all the time:
> 
> 1. Start eclipse in a new brand workspace
> 2. Create a Java Project
> 3. Create a Dynamic Web Project
> 4. Select the Java Project, right click mouse
> 5. Select the Dynamic Web Project, right click, click on Import, then we you
> will see two Import entries.
> 
> - This problem can be reproduced in Juno, Luna and Mars.
> 
> Thanks.

I cannot reproduce the issue with Eclipse 4.5 I20150514-2000 following these steps. Could you provide additional information about version of the WTP, open perspective and the explorer view (I assume you used Project Explorer)
Comment 21 Wojciech Sudol CLA 2015-05-15 07:21:23 EDT
I can no longer reproduce the issue with any of the scenarios mentioned in this and related bugs.
Comment 22 Wojciech Sudol CLA 2015-05-18 05:57:46 EDT
Fixed with commit 35fb640646539b857ca858f49adcb666914697a1 from bug 391430.

*** This bug has been marked as a duplicate of bug 391430 ***