View | Details | Raw Unified | Return to bug 265820
Collapse All | Expand All

(-)dom/org/eclipse/jdt/internal/core/dom/rewrite/ImportRewriteAnalyzer.java (-17 lines)
Lines 834-848 Link Here
834
	 * of all types from the same package
834
	 * of all types from the same package
835
	 */
835
	 */
836
	private final static class PackageEntry {
836
	private final static class PackageEntry {
837
838
		public static PackageEntry createOnPlaceholderEntry(String preferenceOrder) {
839
			if (preferenceOrder.length() > 0 && preferenceOrder.charAt(0) == '#') {
840
				String curr= preferenceOrder.substring(1);
841
				return new PackageEntry(curr, curr, true);
842
			}
843
			return new PackageEntry(preferenceOrder, preferenceOrder, false);
844
		}
845
846
		private String name;
837
		private String name;
847
		private ArrayList importEntries;
838
		private ArrayList importEntries;
848
		private String group;
839
		private String group;
Lines 998-1011 Link Here
998
			}
989
			}
999
		}
990
		}
1000
991
1001
		public ImportDeclEntry getLast() {
1002
			int nImports= getNumberOfImports();
1003
			if (nImports > 0) {
1004
				return getImportAt(nImports - 1);
1005
			}
1006
			return null;
1007
		}
1008
1009
		public boolean isComment() {
992
		public boolean isComment() {
1010
			return "!".equals(this.name); //$NON-NLS-1$
993
			return "!".equals(this.name); //$NON-NLS-1$
1011
		}
994
		}

Return to bug 265820