KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > eclipse > mapper > extractor > PackageHandler


1 /**
2  *
3  */

4 package org.hibernate.eclipse.mapper.extractor;
5
6 import org.eclipse.jdt.core.IJavaProject;
7 import org.eclipse.jface.text.contentassist.ICompletionProposal;
8 import org.hibernate.eclipse.mapper.extractor.HBMXMLResultCollector.Settings;
9 import org.w3c.dom.Node JavaDoc;
10
11 class PackageHandler extends JavaTypeHandler {
12     
13     public PackageHandler(HBMInfoExtractor extractor) {
14         super(extractor);
15     }
16
17     public ICompletionProposal[] attributeCompletionProposals(IJavaProject project, Node JavaDoc node, String JavaDoc attributeName, String JavaDoc start, int offset) {
18         Settings settings = new Settings();
19         settings.setAcceptPackages(true);
20         return handleTypes(project, settings,extractor.getPackageName(node), start, offset);
21     }
22 }
Popular Tags