Author: dazarov
Date: 2011-11-04 20:55:12 -0400 (Fri, 04 Nov 2011)
New Revision: 36181
Added:
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/File.java
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/JavaProject.java
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/Project.java
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/Type.java
Removed:
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/CDIClass.java
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/CDIBean.java
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/CDIInjectionPoint.java
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/CDIQualifier.java
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/wizard/AddQualifiersToBeanWizardTest.java
Log:
Quickfix and Wizard for fixing ambigious injection warning is confusing
https://issues.jboss.org/browse/JBIDE-9940
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/CDIBean.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/CDIBean.java 2011-11-04
23:40:13 UTC (rev 36180)
+++
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/CDIBean.java 2011-11-05
00:55:12 UTC (rev 36181)
@@ -32,7 +32,8 @@
public class CDIBean extends CDIElement implements IClassBean{
private ICDIProject project;
private HashSet<IQualifier> qualifiers;
- private CDIClass cdiClass;
+ private Type cdiClass;
+ private File cdiFile;
public CDIBean(ICDIProject project, String qualifiedName){
this.project = project;
@@ -41,7 +42,8 @@
IQualifier defaultQualifier =
project.getQualifier(CDIConstants.DEFAULT_QUALIFIER_TYPE_NAME);
qualifiers.add(anyQualifier);
qualifiers.add(defaultQualifier);
- cdiClass = new CDIClass(qualifiedName);
+ cdiClass = new Type(qualifiedName);
+ cdiFile = new File();
}
@Override
@@ -92,7 +94,7 @@
@Override
public IResource getResource() {
- return null;
+ return cdiFile;
}
@Override
Deleted:
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/CDIClass.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/CDIClass.java 2011-11-04
23:40:13 UTC (rev 36180)
+++
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/CDIClass.java 2011-11-05
00:55:12 UTC (rev 36181)
@@ -1,656 +0,0 @@
-package org.jboss.tools.cdi.ui.test.testmodel;
-
-import java.io.InputStream;
-
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.jobs.ISchedulingRule;
-import org.eclipse.jdt.core.CompletionRequestor;
-import org.eclipse.jdt.core.IAnnotation;
-import org.eclipse.jdt.core.IClassFile;
-import org.eclipse.jdt.core.ICompilationUnit;
-import org.eclipse.jdt.core.ICompletionRequestor;
-import org.eclipse.jdt.core.IField;
-import org.eclipse.jdt.core.IInitializer;
-import org.eclipse.jdt.core.IJavaElement;
-import org.eclipse.jdt.core.IJavaModel;
-import org.eclipse.jdt.core.IJavaProject;
-import org.eclipse.jdt.core.IMethod;
-import org.eclipse.jdt.core.IOpenable;
-import org.eclipse.jdt.core.IPackageFragment;
-import org.eclipse.jdt.core.ISourceRange;
-import org.eclipse.jdt.core.IType;
-import org.eclipse.jdt.core.ITypeHierarchy;
-import org.eclipse.jdt.core.ITypeParameter;
-import org.eclipse.jdt.core.ITypeRoot;
-import org.eclipse.jdt.core.IWorkingCopy;
-import org.eclipse.jdt.core.JavaModelException;
-import org.eclipse.jdt.core.WorkingCopyOwner;
-import org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants;
-
-public class CDIClass extends CDIElement implements IType {
- private String qualifiedName;
-
- public CDIClass(String qualifiedName){
- this.qualifiedName = qualifiedName;
- }
-
- @Override
- public String[] getCategories() throws JavaModelException {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public IClassFile getClassFile() {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public ICompilationUnit getCompilationUnit() {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public IType getDeclaringType() {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public int getFlags() throws JavaModelException {
- return ClassFileConstants.AccPublic;
- }
-
- @Override
- public ISourceRange getJavadocRange() throws JavaModelException {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public int getOccurrenceCount() {
- // TODO Auto-generated method stub
- return 0;
- }
-
- @Override
- public ITypeRoot getTypeRoot() {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public IType getType(String name, int occurrenceCount) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public boolean isBinary() {
- // TODO Auto-generated method stub
- return false;
- }
-
- @Override
- public boolean exists() {
- // TODO Auto-generated method stub
- return false;
- }
-
- @Override
- public IJavaElement getAncestor(int ancestorType) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public String getAttachedJavadoc(IProgressMonitor monitor)
- throws JavaModelException {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public IResource getCorrespondingResource() throws JavaModelException {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public int getElementType() {
- // TODO Auto-generated method stub
- return 0;
- }
-
- @Override
- public String getHandleIdentifier() {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public IJavaModel getJavaModel() {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public IJavaProject getJavaProject() {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public IOpenable getOpenable() {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public IJavaElement getParent() {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public IPath getPath() {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public IJavaElement getPrimaryElement() {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public IResource getResource() {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public ISchedulingRule getSchedulingRule() {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public IResource getUnderlyingResource() throws JavaModelException {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public boolean isReadOnly() {
- // TODO Auto-generated method stub
- return false;
- }
-
- @Override
- public boolean isStructureKnown() throws JavaModelException {
- // TODO Auto-generated method stub
- return false;
- }
-
- @Override
- public Object getAdapter(Class adapter) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public String getSource() throws JavaModelException {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public ISourceRange getSourceRange() throws JavaModelException {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public ISourceRange getNameRange() throws JavaModelException {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public void copy(IJavaElement container, IJavaElement sibling,
- String rename, boolean replace, IProgressMonitor monitor)
- throws JavaModelException {
- // TODO Auto-generated method stub
-
- }
-
- @Override
- public void delete(boolean force, IProgressMonitor monitor)
- throws JavaModelException {
- // TODO Auto-generated method stub
-
- }
-
- @Override
- public void move(IJavaElement container, IJavaElement sibling,
- String rename, boolean replace, IProgressMonitor monitor)
- throws JavaModelException {
- // TODO Auto-generated method stub
-
- }
-
- @Override
- public void rename(String name, boolean replace, IProgressMonitor monitor)
- throws JavaModelException {
- // TODO Auto-generated method stub
-
- }
-
- @Override
- public IJavaElement[] getChildren() throws JavaModelException {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public boolean hasChildren() throws JavaModelException {
- // TODO Auto-generated method stub
- return false;
- }
-
- @Override
- public IAnnotation getAnnotation(String name) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public IAnnotation[] getAnnotations() throws JavaModelException {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public void codeComplete(char[] snippet, int insertion, int position,
- char[][] localVariableTypeNames, char[][] localVariableNames,
- int[] localVariableModifiers, boolean isStatic,
- ICompletionRequestor requestor) throws JavaModelException {
- // TODO Auto-generated method stub
-
- }
-
- @Override
- public void codeComplete(char[] snippet, int insertion, int position,
- char[][] localVariableTypeNames, char[][] localVariableNames,
- int[] localVariableModifiers, boolean isStatic,
- ICompletionRequestor requestor, WorkingCopyOwner owner)
- throws JavaModelException {
- // TODO Auto-generated method stub
-
- }
-
- @Override
- public void codeComplete(char[] snippet, int insertion, int position,
- char[][] localVariableTypeNames, char[][] localVariableNames,
- int[] localVariableModifiers, boolean isStatic,
- CompletionRequestor requestor) throws JavaModelException {
- // TODO Auto-generated method stub
-
- }
-
- @Override
- public void codeComplete(char[] snippet, int insertion, int position,
- char[][] localVariableTypeNames, char[][] localVariableNames,
- int[] localVariableModifiers, boolean isStatic,
- CompletionRequestor requestor, IProgressMonitor monitor)
- throws JavaModelException {
- // TODO Auto-generated method stub
-
- }
-
- @Override
- public void codeComplete(char[] snippet, int insertion, int position,
- char[][] localVariableTypeNames, char[][] localVariableNames,
- int[] localVariableModifiers, boolean isStatic,
- CompletionRequestor requestor, WorkingCopyOwner owner)
- throws JavaModelException {
- // TODO Auto-generated method stub
-
- }
-
- @Override
- public void codeComplete(char[] snippet, int insertion, int position,
- char[][] localVariableTypeNames, char[][] localVariableNames,
- int[] localVariableModifiers, boolean isStatic,
- CompletionRequestor requestor, WorkingCopyOwner owner,
- IProgressMonitor monitor) throws JavaModelException {
- // TODO Auto-generated method stub
-
- }
-
- @Override
- public IField createField(String contents, IJavaElement sibling,
- boolean force, IProgressMonitor monitor) throws JavaModelException {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public IInitializer createInitializer(String contents,
- IJavaElement sibling, IProgressMonitor monitor)
- throws JavaModelException {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public IMethod createMethod(String contents, IJavaElement sibling,
- boolean force, IProgressMonitor monitor) throws JavaModelException {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public IType createType(String contents, IJavaElement sibling,
- boolean force, IProgressMonitor monitor) throws JavaModelException {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public IMethod[] findMethods(IMethod method) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public IJavaElement[] getChildrenForCategory(String category)
- throws JavaModelException {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public String getElementName() {
- return getShortName(qualifiedName);
- }
-
- @Override
- public IField getField(String name) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public IField[] getFields() throws JavaModelException {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public String getFullyQualifiedName() {
- return qualifiedName;
- }
-
- @Override
- public String getFullyQualifiedName(char enclosingTypeSeparator) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public String getFullyQualifiedParameterizedName()
- throws JavaModelException {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public IInitializer getInitializer(int occurrenceCount) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public IInitializer[] getInitializers() throws JavaModelException {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public String getKey() {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public IMethod getMethod(String name, String[] parameterTypeSignatures) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public IMethod[] getMethods() throws JavaModelException {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public IPackageFragment getPackageFragment() {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public String getSuperclassName() throws JavaModelException {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public String getSuperclassTypeSignature() throws JavaModelException {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public String[] getSuperInterfaceTypeSignatures() throws JavaModelException {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public String[] getSuperInterfaceNames() throws JavaModelException {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public String[] getTypeParameterSignatures() throws JavaModelException {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public ITypeParameter[] getTypeParameters() throws JavaModelException {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public IType getType(String name) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public ITypeParameter getTypeParameter(String name) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public String getTypeQualifiedName() {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public String getTypeQualifiedName(char enclosingTypeSeparator) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public IType[] getTypes() throws JavaModelException {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public boolean isAnonymous() throws JavaModelException {
- // TODO Auto-generated method stub
- return false;
- }
-
- @Override
- public boolean isClass() throws JavaModelException {
- // TODO Auto-generated method stub
- return false;
- }
-
- @Override
- public boolean isEnum() throws JavaModelException {
- // TODO Auto-generated method stub
- return false;
- }
-
- @Override
- public boolean isInterface() throws JavaModelException {
- // TODO Auto-generated method stub
- return false;
- }
-
- @Override
- public boolean isAnnotation() throws JavaModelException {
- // TODO Auto-generated method stub
- return false;
- }
-
- @Override
- public boolean isLocal() throws JavaModelException {
- // TODO Auto-generated method stub
- return false;
- }
-
- @Override
- public boolean isMember() throws JavaModelException {
- // TODO Auto-generated method stub
- return false;
- }
-
- @Override
- public boolean isResolved() {
- // TODO Auto-generated method stub
- return false;
- }
-
- @Override
- public ITypeHierarchy loadTypeHierachy(InputStream input,
- IProgressMonitor monitor) throws JavaModelException {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public ITypeHierarchy newSupertypeHierarchy(IProgressMonitor monitor)
- throws JavaModelException {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public ITypeHierarchy newSupertypeHierarchy(
- ICompilationUnit[] workingCopies, IProgressMonitor monitor)
- throws JavaModelException {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public ITypeHierarchy newSupertypeHierarchy(IWorkingCopy[] workingCopies,
- IProgressMonitor monitor) throws JavaModelException {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public ITypeHierarchy newSupertypeHierarchy(WorkingCopyOwner owner,
- IProgressMonitor monitor) throws JavaModelException {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public ITypeHierarchy newTypeHierarchy(IJavaProject project,
- IProgressMonitor monitor) throws JavaModelException {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public ITypeHierarchy newTypeHierarchy(IJavaProject project,
- WorkingCopyOwner owner, IProgressMonitor monitor)
- throws JavaModelException {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public ITypeHierarchy newTypeHierarchy(IProgressMonitor monitor)
- throws JavaModelException {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public ITypeHierarchy newTypeHierarchy(ICompilationUnit[] workingCopies,
- IProgressMonitor monitor) throws JavaModelException {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public ITypeHierarchy newTypeHierarchy(IWorkingCopy[] workingCopies,
- IProgressMonitor monitor) throws JavaModelException {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public ITypeHierarchy newTypeHierarchy(WorkingCopyOwner owner,
- IProgressMonitor monitor) throws JavaModelException {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public String[][] resolveType(String typeName) throws JavaModelException {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public String[][] resolveType(String typeName, WorkingCopyOwner owner)
- throws JavaModelException {
- // TODO Auto-generated method stub
- return null;
- }
-
-}
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/CDIInjectionPoint.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/CDIInjectionPoint.java 2011-11-04
23:40:13 UTC (rev 36180)
+++
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/CDIInjectionPoint.java 2011-11-05
00:55:12 UTC (rev 36181)
@@ -153,7 +153,7 @@
@Override
public IBean getBean() {
- return null;
+ return bean;
}
@Override
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/CDIQualifier.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/CDIQualifier.java 2011-11-04
23:40:13 UTC (rev 36180)
+++
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/CDIQualifier.java 2011-11-05
00:55:12 UTC (rev 36181)
@@ -14,11 +14,11 @@
public class CDIQualifier implements IQualifier{
private ICDIProject project;
- private CDIClass cdiClass;
+ private Type cdiClass;
public CDIQualifier(ICDIProject project, String qualifiedName){
this.project = project;
- this.cdiClass = new CDIClass(qualifiedName);
+ this.cdiClass = new Type(qualifiedName);
}
@Override
Added:
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/File.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/File.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/File.java 2011-11-05
00:55:12 UTC (rev 36181)
@@ -0,0 +1,639 @@
+package org.jboss.tools.cdi.ui.test.testmodel;
+
+import java.io.InputStream;
+import java.io.Reader;
+import java.net.URI;
+import java.util.Map;
+
+import org.eclipse.core.resources.IContainer;
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IFileState;
+import org.eclipse.core.resources.IMarker;
+import org.eclipse.core.resources.IPathVariableManager;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IProjectDescription;
+import org.eclipse.core.resources.IResourceProxy;
+import org.eclipse.core.resources.IResourceProxyVisitor;
+import org.eclipse.core.resources.IResourceVisitor;
+import org.eclipse.core.resources.IWorkspace;
+import org.eclipse.core.resources.ResourceAttributes;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.QualifiedName;
+import org.eclipse.core.runtime.content.IContentDescription;
+import org.eclipse.core.runtime.jobs.ISchedulingRule;
+
+public class File implements IFile {
+ private Project project;
+
+ public File(){
+ project = new Project();
+ }
+
+ @Override
+ public void accept(IResourceProxyVisitor visitor, int memberFlags)
+ throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void accept(IResourceVisitor visitor) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void accept(IResourceVisitor visitor, int depth,
+ boolean includePhantoms) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void accept(IResourceVisitor visitor, int depth, int memberFlags)
+ throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void clearHistory(IProgressMonitor monitor) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void copy(IPath destination, boolean force, IProgressMonitor monitor)
+ throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void copy(IPath destination, int updateFlags,
+ IProgressMonitor monitor) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void copy(IProjectDescription description, boolean force,
+ IProgressMonitor monitor) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void copy(IProjectDescription description, int updateFlags,
+ IProgressMonitor monitor) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public IMarker createMarker(String type) throws CoreException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IResourceProxy createProxy() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public void delete(boolean force, IProgressMonitor monitor)
+ throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void delete(int updateFlags, IProgressMonitor monitor)
+ throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void deleteMarkers(String type, boolean includeSubtypes, int depth)
+ throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public boolean exists() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public IMarker findMarker(long id) throws CoreException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IMarker[] findMarkers(String type, boolean includeSubtypes, int depth)
+ throws CoreException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public int findMaxProblemSeverity(String type, boolean includeSubtypes,
+ int depth) throws CoreException {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ @Override
+ public String getFileExtension() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public long getLocalTimeStamp() {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ @Override
+ public IPath getLocation() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public URI getLocationURI() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IMarker getMarker(long id) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public long getModificationStamp() {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ @Override
+ public IPathVariableManager getPathVariableManager() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IContainer getParent() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public Map<QualifiedName, String> getPersistentProperties()
+ throws CoreException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public String getPersistentProperty(QualifiedName key) throws CoreException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IProject getProject() {
+ return project;
+ }
+
+ @Override
+ public IPath getProjectRelativePath() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IPath getRawLocation() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public URI getRawLocationURI() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public ResourceAttributes getResourceAttributes() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public Map<QualifiedName, Object> getSessionProperties()
+ throws CoreException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public Object getSessionProperty(QualifiedName key) throws CoreException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public int getType() {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ @Override
+ public IWorkspace getWorkspace() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public boolean isAccessible() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean isDerived() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean isDerived(int options) {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean isHidden() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean isHidden(int options) {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean isLinked() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean isVirtual() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean isLinked(int options) {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean isLocal(int depth) {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean isPhantom() {
+ return false;
+ }
+
+ @Override
+ public boolean isSynchronized(int depth) {
+ return true;
+ }
+
+ @Override
+ public boolean isTeamPrivateMember() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean isTeamPrivateMember(int options) {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public void move(IPath destination, boolean force, IProgressMonitor monitor)
+ throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void move(IPath destination, int updateFlags,
+ IProgressMonitor monitor) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void move(IProjectDescription description, boolean force,
+ boolean keepHistory, IProgressMonitor monitor) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void move(IProjectDescription description, int updateFlags,
+ IProgressMonitor monitor) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void refreshLocal(int depth, IProgressMonitor monitor)
+ throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void revertModificationStamp(long value) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void setDerived(boolean isDerived) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void setDerived(boolean isDerived, IProgressMonitor monitor)
+ throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void setHidden(boolean isHidden) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void setLocal(boolean flag, int depth, IProgressMonitor monitor)
+ throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public long setLocalTimeStamp(long value) throws CoreException {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ @Override
+ public void setPersistentProperty(QualifiedName key, String value)
+ throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void setReadOnly(boolean readOnly) {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void setResourceAttributes(ResourceAttributes attributes)
+ throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void setSessionProperty(QualifiedName key, Object value)
+ throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void setTeamPrivateMember(boolean isTeamPrivate)
+ throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void touch(IProgressMonitor monitor) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public Object getAdapter(Class adapter) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public boolean contains(ISchedulingRule rule) {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean isConflicting(ISchedulingRule rule) {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public void appendContents(InputStream source, boolean force,
+ boolean keepHistory, IProgressMonitor monitor) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void appendContents(InputStream source, int updateFlags,
+ IProgressMonitor monitor) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void create(InputStream source, boolean force,
+ IProgressMonitor monitor) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void create(InputStream source, int updateFlags,
+ IProgressMonitor monitor) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void createLink(IPath localLocation, int updateFlags,
+ IProgressMonitor monitor) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void createLink(URI location, int updateFlags,
+ IProgressMonitor monitor) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void delete(boolean force, boolean keepHistory,
+ IProgressMonitor monitor) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public String getCharset() throws CoreException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public String getCharset(boolean checkImplicit) throws CoreException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public String getCharsetFor(Reader reader) throws CoreException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IContentDescription getContentDescription() throws CoreException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public InputStream getContents() throws CoreException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public InputStream getContents(boolean force) throws CoreException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public int getEncoding() throws CoreException {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ @Override
+ public IPath getFullPath() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IFileState[] getHistory(IProgressMonitor monitor)
+ throws CoreException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public String getName() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public boolean isReadOnly() {
+ return false;
+ }
+
+ @Override
+ public void move(IPath destination, boolean force, boolean keepHistory,
+ IProgressMonitor monitor) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void setCharset(String newCharset) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void setCharset(String newCharset, IProgressMonitor monitor)
+ throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void setContents(InputStream source, boolean force,
+ boolean keepHistory, IProgressMonitor monitor) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void setContents(IFileState source, boolean force,
+ boolean keepHistory, IProgressMonitor monitor) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void setContents(InputStream source, int updateFlags,
+ IProgressMonitor monitor) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void setContents(IFileState source, int updateFlags,
+ IProgressMonitor monitor) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+}
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/File.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added:
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/JavaProject.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/JavaProject.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/JavaProject.java 2011-11-05
00:55:12 UTC (rev 36181)
@@ -0,0 +1,543 @@
+package org.jboss.tools.cdi.ui.test.testmodel;
+
+import java.util.Map;
+
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.jobs.ISchedulingRule;
+import org.eclipse.jdt.core.IBuffer;
+import org.eclipse.jdt.core.IClasspathEntry;
+import org.eclipse.jdt.core.IJavaElement;
+import org.eclipse.jdt.core.IJavaModel;
+import org.eclipse.jdt.core.IJavaProject;
+import org.eclipse.jdt.core.IOpenable;
+import org.eclipse.jdt.core.IPackageFragment;
+import org.eclipse.jdt.core.IPackageFragmentRoot;
+import org.eclipse.jdt.core.IRegion;
+import org.eclipse.jdt.core.IType;
+import org.eclipse.jdt.core.ITypeHierarchy;
+import org.eclipse.jdt.core.JavaModelException;
+import org.eclipse.jdt.core.WorkingCopyOwner;
+import org.eclipse.jdt.core.eval.IEvaluationContext;
+
+public class JavaProject implements IJavaProject {
+
+ @Override
+ public IJavaElement[] getChildren() throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public boolean hasChildren() throws JavaModelException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean exists() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public IJavaElement getAncestor(int ancestorType) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public String getAttachedJavadoc(IProgressMonitor monitor)
+ throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IResource getCorrespondingResource() throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public String getElementName() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public int getElementType() {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ @Override
+ public String getHandleIdentifier() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IJavaModel getJavaModel() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IJavaProject getJavaProject() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IOpenable getOpenable() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IJavaElement getParent() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IPath getPath() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IJavaElement getPrimaryElement() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IResource getResource() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public ISchedulingRule getSchedulingRule() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IResource getUnderlyingResource() throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public boolean isReadOnly() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean isStructureKnown() throws JavaModelException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public Object getAdapter(Class adapter) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public void close() throws JavaModelException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public String findRecommendedLineSeparator() throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IBuffer getBuffer() throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public boolean hasUnsavedChanges() throws JavaModelException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean isConsistent() throws JavaModelException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean isOpen() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public void makeConsistent(IProgressMonitor progress)
+ throws JavaModelException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void open(IProgressMonitor progress) throws JavaModelException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void save(IProgressMonitor progress, boolean force)
+ throws JavaModelException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public IClasspathEntry decodeClasspathEntry(String encodedEntry) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public String encodeClasspathEntry(IClasspathEntry classpathEntry) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IJavaElement findElement(IPath path) throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IJavaElement findElement(IPath path, WorkingCopyOwner owner)
+ throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IJavaElement findElement(String bindingKey, WorkingCopyOwner owner)
+ throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IPackageFragment findPackageFragment(IPath path)
+ throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IPackageFragmentRoot findPackageFragmentRoot(IPath path)
+ throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IPackageFragmentRoot[] findPackageFragmentRoots(IClasspathEntry entry) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IType findType(String fullyQualifiedName) throws JavaModelException {
+ // TODO Auto-generated method stub
+ return new Type("");
+ }
+
+ @Override
+ public IType findType(String fullyQualifiedName,
+ IProgressMonitor progressMonitor) throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IType findType(String fullyQualifiedName, WorkingCopyOwner owner)
+ throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IType findType(String fullyQualifiedName, WorkingCopyOwner owner,
+ IProgressMonitor progressMonitor) throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IType findType(String packageName, String typeQualifiedName)
+ throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IType findType(String packageName, String typeQualifiedName,
+ IProgressMonitor progressMonitor) throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IType findType(String packageName, String typeQualifiedName,
+ WorkingCopyOwner owner) throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IType findType(String packageName, String typeQualifiedName,
+ WorkingCopyOwner owner, IProgressMonitor progressMonitor)
+ throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IPackageFragmentRoot[] getAllPackageFragmentRoots()
+ throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public Object[] getNonJavaResources() throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public String getOption(String optionName, boolean inheritJavaCoreOptions) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public Map getOptions(boolean inheritJavaCoreOptions) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IPath getOutputLocation() throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IPackageFragmentRoot getPackageFragmentRoot(
+ String externalLibraryPath) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IPackageFragmentRoot getPackageFragmentRoot(IResource resource) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IPackageFragmentRoot[] getPackageFragmentRoots()
+ throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IPackageFragmentRoot[] getPackageFragmentRoots(IClasspathEntry entry) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IPackageFragment[] getPackageFragments() throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IProject getProject() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IClasspathEntry[] getRawClasspath() throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public String[] getRequiredProjectNames() throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IClasspathEntry[] getResolvedClasspath(boolean ignoreUnresolvedEntry)
+ throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public boolean hasBuildState() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean hasClasspathCycle(IClasspathEntry[] entries) {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean isOnClasspath(IJavaElement element) {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean isOnClasspath(IResource resource) {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public IEvaluationContext newEvaluationContext() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public ITypeHierarchy newTypeHierarchy(IRegion region,
+ IProgressMonitor monitor) throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public ITypeHierarchy newTypeHierarchy(IRegion region,
+ WorkingCopyOwner owner, IProgressMonitor monitor)
+ throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public ITypeHierarchy newTypeHierarchy(IType type, IRegion region,
+ IProgressMonitor monitor) throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public ITypeHierarchy newTypeHierarchy(IType type, IRegion region,
+ WorkingCopyOwner owner, IProgressMonitor monitor)
+ throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IPath readOutputLocation() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IClasspathEntry[] readRawClasspath() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public void setOption(String optionName, String optionValue) {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void setOptions(Map newOptions) {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void setOutputLocation(IPath path, IProgressMonitor monitor)
+ throws JavaModelException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void setRawClasspath(IClasspathEntry[] entries,
+ IPath outputLocation, boolean canModifyResources,
+ IProgressMonitor monitor) throws JavaModelException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void setRawClasspath(IClasspathEntry[] entries,
+ boolean canModifyResources, IProgressMonitor monitor)
+ throws JavaModelException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void setRawClasspath(IClasspathEntry[] entries,
+ IClasspathEntry[] referencedEntries, IPath outputLocation,
+ IProgressMonitor monitor) throws JavaModelException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public IClasspathEntry[] getReferencedClasspathEntries()
+ throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public void setRawClasspath(IClasspathEntry[] entries,
+ IProgressMonitor monitor) throws JavaModelException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void setRawClasspath(IClasspathEntry[] entries,
+ IPath outputLocation, IProgressMonitor monitor)
+ throws JavaModelException {
+ // TODO Auto-generated method stub
+
+ }
+
+}
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/JavaProject.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added:
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/Project.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/Project.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/Project.java 2011-11-05
00:55:12 UTC (rev 36181)
@@ -0,0 +1,808 @@
+package org.jboss.tools.cdi.ui.test.testmodel;
+
+import java.net.URI;
+import java.util.Map;
+
+import org.eclipse.core.resources.FileInfoMatcherDescription;
+import org.eclipse.core.resources.IBuildConfiguration;
+import org.eclipse.core.resources.IContainer;
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IFolder;
+import org.eclipse.core.resources.IMarker;
+import org.eclipse.core.resources.IPathVariableManager;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IProjectDescription;
+import org.eclipse.core.resources.IProjectNature;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.resources.IResourceFilterDescription;
+import org.eclipse.core.resources.IResourceProxy;
+import org.eclipse.core.resources.IResourceProxyVisitor;
+import org.eclipse.core.resources.IResourceVisitor;
+import org.eclipse.core.resources.IWorkspace;
+import org.eclipse.core.resources.ResourceAttributes;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.IPluginDescriptor;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.Path;
+import org.eclipse.core.runtime.QualifiedName;
+import org.eclipse.core.runtime.content.IContentTypeMatcher;
+import org.eclipse.core.runtime.jobs.ISchedulingRule;
+
+public class Project implements IProject {
+
+ @Override
+ public boolean exists(IPath path) {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public IResource findMember(String path) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IResource findMember(String path, boolean includePhantoms) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IResource findMember(IPath path) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IResource findMember(IPath path, boolean includePhantoms) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public String getDefaultCharset() throws CoreException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public String getDefaultCharset(boolean checkImplicit) throws CoreException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IFile getFile(IPath path) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IFolder getFolder(IPath path) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IResource[] members() throws CoreException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IResource[] members(boolean includePhantoms) throws CoreException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IResource[] members(int memberFlags) throws CoreException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IFile[] findDeletedMembersWithHistory(int depth,
+ IProgressMonitor monitor) throws CoreException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public void setDefaultCharset(String charset) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void setDefaultCharset(String charset, IProgressMonitor monitor)
+ throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public IResourceFilterDescription createFilter(int type,
+ FileInfoMatcherDescription matcherDescription, int updateFlags,
+ IProgressMonitor monitor) throws CoreException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IResourceFilterDescription[] getFilters() throws CoreException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public void accept(IResourceProxyVisitor visitor, int memberFlags)
+ throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void accept(IResourceVisitor visitor) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void accept(IResourceVisitor visitor, int depth,
+ boolean includePhantoms) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void accept(IResourceVisitor visitor, int depth, int memberFlags)
+ throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void clearHistory(IProgressMonitor monitor) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void copy(IPath destination, boolean force, IProgressMonitor monitor)
+ throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void copy(IPath destination, int updateFlags,
+ IProgressMonitor monitor) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void copy(IProjectDescription description, boolean force,
+ IProgressMonitor monitor) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void copy(IProjectDescription description, int updateFlags,
+ IProgressMonitor monitor) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public IMarker createMarker(String type) throws CoreException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IResourceProxy createProxy() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public void delete(boolean force, IProgressMonitor monitor)
+ throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void delete(int updateFlags, IProgressMonitor monitor)
+ throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void deleteMarkers(String type, boolean includeSubtypes, int depth)
+ throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public boolean exists() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public IMarker findMarker(long id) throws CoreException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IMarker[] findMarkers(String type, boolean includeSubtypes, int depth)
+ throws CoreException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public int findMaxProblemSeverity(String type, boolean includeSubtypes,
+ int depth) throws CoreException {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ @Override
+ public String getFileExtension() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IPath getFullPath() {
+ // TODO Auto-generated method stub
+ return new Path("");
+ }
+
+ @Override
+ public long getLocalTimeStamp() {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ @Override
+ public IPath getLocation() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public URI getLocationURI() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IMarker getMarker(long id) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public long getModificationStamp() {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ @Override
+ public String getName() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IPathVariableManager getPathVariableManager() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IContainer getParent() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public Map<QualifiedName, String> getPersistentProperties()
+ throws CoreException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public String getPersistentProperty(QualifiedName key) throws CoreException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IProject getProject() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IPath getProjectRelativePath() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IPath getRawLocation() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public URI getRawLocationURI() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public ResourceAttributes getResourceAttributes() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public Map<QualifiedName, Object> getSessionProperties()
+ throws CoreException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public Object getSessionProperty(QualifiedName key) throws CoreException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public int getType() {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ @Override
+ public IWorkspace getWorkspace() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public boolean isAccessible() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean isDerived() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean isDerived(int options) {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean isHidden() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean isHidden(int options) {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean isLinked() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean isVirtual() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean isLinked(int options) {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean isLocal(int depth) {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean isPhantom() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean isReadOnly() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean isSynchronized(int depth) {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean isTeamPrivateMember() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean isTeamPrivateMember(int options) {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public void move(IPath destination, boolean force, IProgressMonitor monitor)
+ throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void move(IPath destination, int updateFlags,
+ IProgressMonitor monitor) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void move(IProjectDescription description, boolean force,
+ boolean keepHistory, IProgressMonitor monitor) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void move(IProjectDescription description, int updateFlags,
+ IProgressMonitor monitor) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void refreshLocal(int depth, IProgressMonitor monitor)
+ throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void revertModificationStamp(long value) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void setDerived(boolean isDerived) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void setDerived(boolean isDerived, IProgressMonitor monitor)
+ throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void setHidden(boolean isHidden) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void setLocal(boolean flag, int depth, IProgressMonitor monitor)
+ throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public long setLocalTimeStamp(long value) throws CoreException {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ @Override
+ public void setPersistentProperty(QualifiedName key, String value)
+ throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void setReadOnly(boolean readOnly) {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void setResourceAttributes(ResourceAttributes attributes)
+ throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void setSessionProperty(QualifiedName key, Object value)
+ throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void setTeamPrivateMember(boolean isTeamPrivate)
+ throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void touch(IProgressMonitor monitor) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public Object getAdapter(Class adapter) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public boolean contains(ISchedulingRule rule) {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean isConflicting(ISchedulingRule rule) {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public void build(int kind, String builderName, Map<String, String> args,
+ IProgressMonitor monitor) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void build(int kind, IProgressMonitor monitor) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void build(IBuildConfiguration config, int kind,
+ IProgressMonitor monitor) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void close(IProgressMonitor monitor) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void create(IProjectDescription description, IProgressMonitor monitor)
+ throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void create(IProgressMonitor monitor) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void create(IProjectDescription description, int updateFlags,
+ IProgressMonitor monitor) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void delete(boolean deleteContent, boolean force,
+ IProgressMonitor monitor) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public IBuildConfiguration getActiveBuildConfig() throws CoreException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IBuildConfiguration getBuildConfig(String configName)
+ throws CoreException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IBuildConfiguration[] getBuildConfigs() throws CoreException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IContentTypeMatcher getContentTypeMatcher() throws CoreException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IProjectDescription getDescription() throws CoreException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IFile getFile(String name) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IFolder getFolder(String name) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IProjectNature getNature(String natureId) throws CoreException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IPath getPluginWorkingLocation(IPluginDescriptor plugin) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IPath getWorkingLocation(String id) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IProject[] getReferencedProjects() throws CoreException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IProject[] getReferencingProjects() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IBuildConfiguration[] getReferencedBuildConfigs(String configName,
+ boolean includeMissing) throws CoreException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public boolean hasBuildConfig(String configName) throws CoreException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean hasNature(String natureId) throws CoreException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean isNatureEnabled(String natureId) throws CoreException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean isOpen() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public void loadSnapshot(int options, URI snapshotLocation,
+ IProgressMonitor monitor) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void move(IProjectDescription description, boolean force,
+ IProgressMonitor monitor) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void open(int updateFlags, IProgressMonitor monitor)
+ throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void open(IProgressMonitor monitor) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void saveSnapshot(int options, URI snapshotLocation,
+ IProgressMonitor monitor) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void setDescription(IProjectDescription description,
+ IProgressMonitor monitor) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void setDescription(IProjectDescription description,
+ int updateFlags, IProgressMonitor monitor) throws CoreException {
+ // TODO Auto-generated method stub
+
+ }
+
+}
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/Project.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Copied:
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/Type.java
(from rev 36177,
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/CDIClass.java)
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/Type.java
(rev 0)
+++
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/Type.java 2011-11-05
00:55:12 UTC (rev 36181)
@@ -0,0 +1,657 @@
+package org.jboss.tools.cdi.ui.test.testmodel;
+
+import java.io.InputStream;
+
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.jobs.ISchedulingRule;
+import org.eclipse.jdt.core.CompletionRequestor;
+import org.eclipse.jdt.core.IAnnotation;
+import org.eclipse.jdt.core.IClassFile;
+import org.eclipse.jdt.core.ICompilationUnit;
+import org.eclipse.jdt.core.ICompletionRequestor;
+import org.eclipse.jdt.core.IField;
+import org.eclipse.jdt.core.IInitializer;
+import org.eclipse.jdt.core.IJavaElement;
+import org.eclipse.jdt.core.IJavaModel;
+import org.eclipse.jdt.core.IJavaProject;
+import org.eclipse.jdt.core.IMethod;
+import org.eclipse.jdt.core.IOpenable;
+import org.eclipse.jdt.core.IPackageFragment;
+import org.eclipse.jdt.core.ISourceRange;
+import org.eclipse.jdt.core.IType;
+import org.eclipse.jdt.core.ITypeHierarchy;
+import org.eclipse.jdt.core.ITypeParameter;
+import org.eclipse.jdt.core.ITypeRoot;
+import org.eclipse.jdt.core.IWorkingCopy;
+import org.eclipse.jdt.core.JavaModelException;
+import org.eclipse.jdt.core.WorkingCopyOwner;
+import org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants;
+
+public class Type extends CDIElement implements IType {
+ private String qualifiedName;
+ private JavaProject project;
+
+ public Type(String qualifiedName){
+ this.qualifiedName = qualifiedName;
+ project = new JavaProject();
+ }
+
+ @Override
+ public String[] getCategories() throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IClassFile getClassFile() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public ICompilationUnit getCompilationUnit() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IType getDeclaringType() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public int getFlags() throws JavaModelException {
+ return ClassFileConstants.AccPublic;
+ }
+
+ @Override
+ public ISourceRange getJavadocRange() throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public int getOccurrenceCount() {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ @Override
+ public ITypeRoot getTypeRoot() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IType getType(String name, int occurrenceCount) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public boolean isBinary() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean exists() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public IJavaElement getAncestor(int ancestorType) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public String getAttachedJavadoc(IProgressMonitor monitor)
+ throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IResource getCorrespondingResource() throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public int getElementType() {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ @Override
+ public String getHandleIdentifier() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IJavaModel getJavaModel() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IJavaProject getJavaProject() {
+ return project;
+ }
+
+ @Override
+ public IOpenable getOpenable() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IJavaElement getParent() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IPath getPath() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IJavaElement getPrimaryElement() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IResource getResource() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public ISchedulingRule getSchedulingRule() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IResource getUnderlyingResource() throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public boolean isReadOnly() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean isStructureKnown() throws JavaModelException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public Object getAdapter(Class adapter) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public String getSource() throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public ISourceRange getSourceRange() throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public ISourceRange getNameRange() throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public void copy(IJavaElement container, IJavaElement sibling,
+ String rename, boolean replace, IProgressMonitor monitor)
+ throws JavaModelException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void delete(boolean force, IProgressMonitor monitor)
+ throws JavaModelException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void move(IJavaElement container, IJavaElement sibling,
+ String rename, boolean replace, IProgressMonitor monitor)
+ throws JavaModelException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void rename(String name, boolean replace, IProgressMonitor monitor)
+ throws JavaModelException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public IJavaElement[] getChildren() throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public boolean hasChildren() throws JavaModelException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public IAnnotation getAnnotation(String name) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IAnnotation[] getAnnotations() throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public void codeComplete(char[] snippet, int insertion, int position,
+ char[][] localVariableTypeNames, char[][] localVariableNames,
+ int[] localVariableModifiers, boolean isStatic,
+ ICompletionRequestor requestor) throws JavaModelException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void codeComplete(char[] snippet, int insertion, int position,
+ char[][] localVariableTypeNames, char[][] localVariableNames,
+ int[] localVariableModifiers, boolean isStatic,
+ ICompletionRequestor requestor, WorkingCopyOwner owner)
+ throws JavaModelException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void codeComplete(char[] snippet, int insertion, int position,
+ char[][] localVariableTypeNames, char[][] localVariableNames,
+ int[] localVariableModifiers, boolean isStatic,
+ CompletionRequestor requestor) throws JavaModelException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void codeComplete(char[] snippet, int insertion, int position,
+ char[][] localVariableTypeNames, char[][] localVariableNames,
+ int[] localVariableModifiers, boolean isStatic,
+ CompletionRequestor requestor, IProgressMonitor monitor)
+ throws JavaModelException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void codeComplete(char[] snippet, int insertion, int position,
+ char[][] localVariableTypeNames, char[][] localVariableNames,
+ int[] localVariableModifiers, boolean isStatic,
+ CompletionRequestor requestor, WorkingCopyOwner owner)
+ throws JavaModelException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void codeComplete(char[] snippet, int insertion, int position,
+ char[][] localVariableTypeNames, char[][] localVariableNames,
+ int[] localVariableModifiers, boolean isStatic,
+ CompletionRequestor requestor, WorkingCopyOwner owner,
+ IProgressMonitor monitor) throws JavaModelException {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public IField createField(String contents, IJavaElement sibling,
+ boolean force, IProgressMonitor monitor) throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IInitializer createInitializer(String contents,
+ IJavaElement sibling, IProgressMonitor monitor)
+ throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IMethod createMethod(String contents, IJavaElement sibling,
+ boolean force, IProgressMonitor monitor) throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IType createType(String contents, IJavaElement sibling,
+ boolean force, IProgressMonitor monitor) throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IMethod[] findMethods(IMethod method) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IJavaElement[] getChildrenForCategory(String category)
+ throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public String getElementName() {
+ return getShortName(qualifiedName);
+ }
+
+ @Override
+ public IField getField(String name) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IField[] getFields() throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public String getFullyQualifiedName() {
+ return qualifiedName;
+ }
+
+ @Override
+ public String getFullyQualifiedName(char enclosingTypeSeparator) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public String getFullyQualifiedParameterizedName()
+ throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IInitializer getInitializer(int occurrenceCount) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IInitializer[] getInitializers() throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public String getKey() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IMethod getMethod(String name, String[] parameterTypeSignatures) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IMethod[] getMethods() throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IPackageFragment getPackageFragment() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public String getSuperclassName() throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public String getSuperclassTypeSignature() throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public String[] getSuperInterfaceTypeSignatures() throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public String[] getSuperInterfaceNames() throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public String[] getTypeParameterSignatures() throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public ITypeParameter[] getTypeParameters() throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IType getType(String name) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public ITypeParameter getTypeParameter(String name) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public String getTypeQualifiedName() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public String getTypeQualifiedName(char enclosingTypeSeparator) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public IType[] getTypes() throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public boolean isAnonymous() throws JavaModelException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean isClass() throws JavaModelException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean isEnum() throws JavaModelException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean isInterface() throws JavaModelException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean isAnnotation() throws JavaModelException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean isLocal() throws JavaModelException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean isMember() throws JavaModelException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public boolean isResolved() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ @Override
+ public ITypeHierarchy loadTypeHierachy(InputStream input,
+ IProgressMonitor monitor) throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public ITypeHierarchy newSupertypeHierarchy(IProgressMonitor monitor)
+ throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public ITypeHierarchy newSupertypeHierarchy(
+ ICompilationUnit[] workingCopies, IProgressMonitor monitor)
+ throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public ITypeHierarchy newSupertypeHierarchy(IWorkingCopy[] workingCopies,
+ IProgressMonitor monitor) throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public ITypeHierarchy newSupertypeHierarchy(WorkingCopyOwner owner,
+ IProgressMonitor monitor) throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public ITypeHierarchy newTypeHierarchy(IJavaProject project,
+ IProgressMonitor monitor) throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public ITypeHierarchy newTypeHierarchy(IJavaProject project,
+ WorkingCopyOwner owner, IProgressMonitor monitor)
+ throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public ITypeHierarchy newTypeHierarchy(IProgressMonitor monitor)
+ throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public ITypeHierarchy newTypeHierarchy(ICompilationUnit[] workingCopies,
+ IProgressMonitor monitor) throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public ITypeHierarchy newTypeHierarchy(IWorkingCopy[] workingCopies,
+ IProgressMonitor monitor) throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public ITypeHierarchy newTypeHierarchy(WorkingCopyOwner owner,
+ IProgressMonitor monitor) throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public String[][] resolveType(String typeName) throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public String[][] resolveType(String typeName, WorkingCopyOwner owner)
+ throws JavaModelException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+}
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/Type.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/wizard/AddQualifiersToBeanWizardTest.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/wizard/AddQualifiersToBeanWizardTest.java 2011-11-04
23:40:13 UTC (rev 36180)
+++
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/wizard/AddQualifiersToBeanWizardTest.java 2011-11-05
00:55:12 UTC (rev 36181)
@@ -5,7 +5,12 @@
import junit.framework.TestCase;
-import org.eclipse.jface.wizard.WizardDialog;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.ltk.core.refactoring.RefactoringStatus;
+import org.eclipse.ltk.core.refactoring.RefactoringStatusEntry;
+import org.eclipse.ltk.core.refactoring.participants.ProcessorBasedRefactoring;
+import org.eclipse.ltk.internal.ui.refactoring.RefactoringWizardDialog;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.PlatformUI;
import org.jboss.tools.cdi.core.CDIConstants;
@@ -14,6 +19,7 @@
import org.jboss.tools.cdi.core.IClassBean;
import org.jboss.tools.cdi.core.IInjectionPoint;
import org.jboss.tools.cdi.core.IQualifier;
+import org.jboss.tools.cdi.ui.marker.AddQualifiersToBeanProcessor;
import org.jboss.tools.cdi.ui.test.testmodel.CDIBean;
import org.jboss.tools.cdi.ui.test.testmodel.CDIInjectionPoint;
import org.jboss.tools.cdi.ui.test.testmodel.CDIProject;
@@ -22,11 +28,12 @@
public class AddQualifiersToBeanWizardTest extends TestCase{
- private AddQualifiersToBeanWizard wizard;
- private WizardDialog dialog;
private ICDIProject project;
private ArrayList<ValuedQualifier> availableCheck;
private ArrayList<ValuedQualifier> deployedCheck;
+ private AddQualifiersToBeanProcessor processor;
+ private AddQualifiersToBeanWizard wizard;
+ private Dialog dialog;
@Override
protected void setUp() throws Exception {
@@ -56,13 +63,24 @@
deployedCheck.add(new
ValuedQualifier(project.getQualifier(CDIConstants.ANY_QUALIFIER_TYPE_NAME)));
deployedCheck.add(new
ValuedQualifier(project.getQualifier(CDIConstants.DEFAULT_QUALIFIER_TYPE_NAME)));
+ processor = new AddQualifiersToBeanProcessor("", injectionPoint, beans,
bean);
+ ProcessorBasedRefactoring refactoring = new ProcessorBasedRefactoring(processor);
+ wizard = new AddQualifiersToBeanWizard(refactoring);
- Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
- wizard = null;//new AddQualifiersToBeanWizard(injectionPoint, beans, bean);
- dialog = new WizardDialog(shell, wizard);
-
- dialog.setBlockOnOpen(false);
- dialog.open();
+ Shell parent = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
+ RefactoringStatus fInitialConditions= processor.checkInitialConditions(new
NullProgressMonitor());
+ if (fInitialConditions.hasFatalError()) {
+ for(RefactoringStatusEntry entry : fInitialConditions.getEntries()){
+ if(entry.getSeverity() == RefactoringStatus.FATAL)
+ fail("Fatal Error - "+entry.getMessage());
+ }
+ } else {
+ wizard.setInitialConditionCheckingStatus(fInitialConditions);
+ dialog= new RefactoringWizardDialog(parent, wizard);
+ dialog.setBlockOnOpen(false);
+ dialog.create();
+ dialog.open();
+ }
}
@Override
@@ -94,100 +112,100 @@
}
public void testAddQualifier(){
-// List<IQualifier> available = wizard.getAvailableQualifiers();
-//
-// checkQualifierLists(availableCheck, available);
-//
-// List<ValuedQualifier> deployed = wizard.getDeployedQualifiers();
-//
-// checkValuedQualifierLists(deployedCheck, deployed);
-//
-// // Deploy qualifier
-// ValuedQualifier qualifier = new
ValuedQualifier(project.getQualifier(CDIProject.QUALIFIER1));
-// ValuedQualifier defaultQualifier = new
ValuedQualifier(project.getQualifier(CDIConstants.DEFAULT_QUALIFIER_TYPE_NAME));
-//
-// wizard.deploy(qualifier);
-//
-// available = wizard.getAvailableQualifiers();
-// availableCheck.remove(qualifier);
-//
-// checkQualifierLists(availableCheck, available);
-//
-// deployed = wizard.getDeployedQualifiers();
-//
-// deployedCheck.add(qualifier);
-// deployedCheck.remove(defaultQualifier);
-//
-// checkValuedQualifierLists(deployedCheck, deployed);
+ List<IQualifier> available = wizard.getAvailableQualifiers();
+
+ checkQualifierLists(availableCheck, available);
+
+ List<ValuedQualifier> deployed = wizard.getDeployedQualifiers();
+
+ checkValuedQualifierLists(deployedCheck, deployed);
+
+ // Deploy qualifier
+ ValuedQualifier qualifier = new
ValuedQualifier(project.getQualifier(CDIProject.QUALIFIER1));
+ ValuedQualifier defaultQualifier = new
ValuedQualifier(project.getQualifier(CDIConstants.DEFAULT_QUALIFIER_TYPE_NAME));
+
+ wizard.deploy(qualifier);
+
+ available = wizard.getAvailableQualifiers();
+ availableCheck.remove(qualifier);
+
+ checkQualifierLists(availableCheck, available);
+
+ deployed = wizard.getDeployedQualifiers();
+
+ deployedCheck.add(qualifier);
+ deployedCheck.remove(defaultQualifier);
+
+ checkValuedQualifierLists(deployedCheck, deployed);
}
public void testAddAndRemoveQualifier(){
-// List<IQualifier> available = wizard.getAvailableQualifiers();
-//
-// checkQualifierLists(availableCheck, available);
-//
-// List<ValuedQualifier> deployed = wizard.getDeployedQualifiers();
-//
-// checkValuedQualifierLists(deployedCheck, deployed);
-//
-// // Deploy qualifier
-// ValuedQualifier qualifier = new
ValuedQualifier(project.getQualifier(CDIProject.QUALIFIER2));
-// ValuedQualifier defaultQualifier = new
ValuedQualifier(project.getQualifier(CDIConstants.DEFAULT_QUALIFIER_TYPE_NAME));
-//
-// wizard.deploy(qualifier);
-//
-// available = wizard.getAvailableQualifiers();
-// availableCheck.remove(qualifier);
-//
-// checkQualifierLists(availableCheck, available);
-//
-// deployed = wizard.getDeployedQualifiers();
-//
-// deployedCheck.add(qualifier);
-// deployedCheck.remove(defaultQualifier);
-//
-// checkValuedQualifierLists(deployedCheck, deployed);
-//
-// // Remove qualifier
-// wizard.remove(qualifier);
-//
-// available = wizard.getAvailableQualifiers();
-// availableCheck.add(qualifier);
-//
-// checkQualifierLists(availableCheck, available);
-//
-// deployed = wizard.getDeployedQualifiers();
-//
-// deployedCheck.remove(qualifier);
-// deployedCheck.add(defaultQualifier);
-//
-// checkValuedQualifierLists(deployedCheck, deployed);
+ List<IQualifier> available = wizard.getAvailableQualifiers();
+
+ checkQualifierLists(availableCheck, available);
+
+ List<ValuedQualifier> deployed = wizard.getDeployedQualifiers();
+
+ checkValuedQualifierLists(deployedCheck, deployed);
+
+ // Deploy qualifier
+ ValuedQualifier qualifier = new
ValuedQualifier(project.getQualifier(CDIProject.QUALIFIER2));
+ ValuedQualifier defaultQualifier = new
ValuedQualifier(project.getQualifier(CDIConstants.DEFAULT_QUALIFIER_TYPE_NAME));
+
+ wizard.deploy(qualifier);
+
+ available = wizard.getAvailableQualifiers();
+ availableCheck.remove(qualifier);
+
+ checkQualifierLists(availableCheck, available);
+
+ deployed = wizard.getDeployedQualifiers();
+
+ deployedCheck.add(qualifier);
+ deployedCheck.remove(defaultQualifier);
+
+ checkValuedQualifierLists(deployedCheck, deployed);
+
+ // Remove qualifier
+ wizard.remove(qualifier);
+
+ available = wizard.getAvailableQualifiers();
+ availableCheck.add(qualifier);
+
+ checkQualifierLists(availableCheck, available);
+
+ deployed = wizard.getDeployedQualifiers();
+
+ deployedCheck.remove(qualifier);
+ deployedCheck.add(defaultQualifier);
+
+ checkValuedQualifierLists(deployedCheck, deployed);
}
public void testAddNamedQualifier(){
-// List<IQualifier> available = wizard.getAvailableQualifiers();
-//
-// checkQualifierLists(availableCheck, available);
-//
-// List<ValuedQualifier> deployed = wizard.getDeployedQualifiers();
-//
-// checkValuedQualifierLists(deployedCheck, deployed);
-//
-// // Deploy @Named qualifier
-// ValuedQualifier named = new
ValuedQualifier(project.getQualifier(CDIConstants.NAMED_QUALIFIER_TYPE_NAME));
-//
-// wizard.deploy(named);
-//
-// available = wizard.getAvailableQualifiers();
-// availableCheck.remove(named);
-//
-// checkQualifierLists(availableCheck, available);
-//
-// deployed = wizard.getDeployedQualifiers();
-//
-// deployedCheck.add(named);
-//
-// checkValuedQualifierLists(deployedCheck, deployed);
+ List<IQualifier> available = wizard.getAvailableQualifiers();
+
+ checkQualifierLists(availableCheck, available);
+
+ List<ValuedQualifier> deployed = wizard.getDeployedQualifiers();
+
+ checkValuedQualifierLists(deployedCheck, deployed);
+
+ // Deploy @Named qualifier
+ ValuedQualifier named = new
ValuedQualifier(project.getQualifier(CDIConstants.NAMED_QUALIFIER_TYPE_NAME));
+
+ wizard.deploy(named);
+
+ available = wizard.getAvailableQualifiers();
+ availableCheck.remove(named);
+
+ checkQualifierLists(availableCheck, available);
+
+ deployed = wizard.getDeployedQualifiers();
+
+ deployedCheck.add(named);
+
+ checkValuedQualifierLists(deployedCheck, deployed);
}
}