Bug 166210 - Duplicate .aj files in Project Explorer
Summary: Duplicate .aj files in Project Explorer
Status: RESOLVED FIXED
Alias: None
Product: AJDT
Classification: Tools
Component: UI (show other bugs)
Version: 1.5   Edit
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Target Milestone: 1.5.3   Edit
Assignee: Andrew Clement CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-29 10:36 EST by Matt Chapman CLA
Modified: 2009-05-15 00:12 EDT (History)
1 user (show)

See Also:


Attachments
Screenshot of file listed twice (14.28 KB, image/jpeg)
2007-12-15 11:49 EST, Steve CLA
no flags Details
patch to change plugin.xml so that it filters project explorer view (1.85 KB, patch)
2008-06-17 16:16 EDT, Andrew Eisenberg CLA
andrew.eisenberg: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Chapman CLA 2006-11-29 10:36:00 EST
There is a new view called the Project Explorer (Show View > Other > General),
which is essentially a more extensible version of the JDT Package Explorer.
This means that the AJDT contributions to the Project Explorer need to look and behave the same as they do in the Project Explorer. This appears to already be the case in most ways, with the exception of filters. The filters contributed by AJDT are not appearing in the Project Explorer. These allow elements such as advice and pointcuts to be filtered out, and more importantly there is a filter enabled by default which removes the non-AJCompilationUnit version of .aj files. This therefore results in .aj files appearing twice in the Project Explorer.

Of possible relevance here is this bug, which has been fixed:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=126508
(I believe the new view is also known as the "Common Navigator")
Comment 1 Steve CLA 2007-12-15 11:49:13 EST
Created attachment 85336 [details]
Screenshot of file listed twice
Comment 2 Andrew Clement CLA 2008-06-13 14:03:33 EDT
add filtering to this other view?
Comment 3 Andrew Eisenberg CLA 2008-06-17 16:16:53 EDT
Created attachment 105203 [details]
patch to change plugin.xml so that it filters project explorer view

Nice to work on an easy fix for once.  :-)

I made some changes to the plugin.xml of ajdt.ui so that the view is filtered.
Comment 4 Andrew Clement CLA 2008-06-18 13:11:22 EDT
err.... did you include the patch for this along with the patch for inpath output selection?  As this will no longer apply...
Comment 5 Andrew Eisenberg CLA 2008-06-19 11:33:29 EDT
Oops.  I think I did. However, it seems like the manifest.mf file for ajdt.ui was not included.  Below is the text of a patch that adds the appropriate line.

### Eclipse Workspace Patch 1.0
#P org.eclipse.ajdt.ui
Index: META-INF/MANIFEST.MF
===================================================================
RCS file: /cvsroot/tools/org.eclipse.ajdt/AJDT_src/org.eclipse.ajdt.ui/META-INF/MANIFEST.MF,v
retrieving revision 1.28.2.2
diff -u -r1.28.2.2 MANIFEST.MF
--- META-INF/MANIFEST.MF	12 Jun 2008 18:40:07 -0000	1.28.2.2
+++ META-INF/MANIFEST.MF	19 Jun 2008 15:32:32 -0000
@@ -82,7 +82,8 @@
  org.eclipse.contribution.xref.ui;resolution:=optional,
  org.eclipse.help,
  org.aspectj.weaver,
- org.eclipse.core.filesystem
+ org.eclipse.core.filesystem,
+ org.eclipse.ui.navigator
 Eclipse-LazyStart: true; exceptions="org.eclipse.ajdt.internal.ui.lazystart"
 Bundle-RequiredExecutionEnvironment: J2SE-1.4
 Import-Package: com.ibm.icu.text,
Comment 6 Andrew Clement CLA 2008-07-09 10:18:09 EDT
patch is in

iplog