JBoss Tools SVN: r36183 - in trunk/as/docs/reference/en-US: images/runtimes_servers and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: irooskov(a)redhat.com
Date: 2011-11-06 20:52:22 -0500 (Sun, 06 Nov 2011)
New Revision: 36183
Added:
trunk/as/docs/reference/en-US/images/runtimes_servers/runtimes_servers_8.png
Modified:
trunk/as/docs/reference/en-US/Book_Info.xml
trunk/as/docs/reference/en-US/runtimes_servers.xml
Log:
updated for JBIDE-9243
Modified: trunk/as/docs/reference/en-US/Book_Info.xml
===================================================================
--- trunk/as/docs/reference/en-US/Book_Info.xml 2011-11-05 10:39:21 UTC (rev 36182)
+++ trunk/as/docs/reference/en-US/Book_Info.xml 2011-11-07 01:52:22 UTC (rev 36183)
@@ -7,7 +7,7 @@
<productname>JBoss Developer Studio</productname>
<productnumber>5.0</productnumber>
<edition>5.0.0</edition>
- <pubsnumber>3</pubsnumber>
+ <pubsnumber>4</pubsnumber>
<abstract>
<para>The JBoss Server Manager Reference Guide explains how to use the JBoss Server Manager to configure, start, stop the server, to know deployment and archiving processes.</para>
</abstract>
Added: trunk/as/docs/reference/en-US/images/runtimes_servers/runtimes_servers_8.png
===================================================================
(Binary files differ)
Property changes on: trunk/as/docs/reference/en-US/images/runtimes_servers/runtimes_servers_8.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Modified: trunk/as/docs/reference/en-US/runtimes_servers.xml
===================================================================
--- trunk/as/docs/reference/en-US/runtimes_servers.xml 2011-11-05 10:39:21 UTC (rev 36182)
+++ trunk/as/docs/reference/en-US/runtimes_servers.xml 2011-11-07 01:52:22 UTC (rev 36183)
@@ -380,6 +380,19 @@
<!-- <para>
We hope this guide helped you to get started with the JBoss Tools server manager. For additional information you are welcome on <ulink url="http://www.jboss.com/index.html?module=bb&op=viewforum&f=201">JBoss forum</ulink>.
</para> -->
+ <important>
+ <para>
+ It is not recommended to run two servers on the same host, at the same time as you may experience a conflict in ports. If a server is already running on the same host a warning will appear indicating this and will ask if you wish to <guilabel>Set the server adapter to 'started', but do not launch</guilabel> or <guilabel>Launch a new instance anyway</guilabel>
+ </para>
+ <figure>
+ <title>Multiple server adaptors warning</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/runtimes_servers/runtimes_servers_8.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </important>
</section>
<!-- <section id="remote_system_deployment">
<title>Creating a new remote server</title>
@@ -388,6 +401,4 @@
</para>
</section> -->
</section>
-
-
</chapter>
13 years, 1 month
JBoss Tools SVN: r36182 - in trunk/openshift: tests and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2011-11-05 06:39:21 -0400 (Sat, 05 Nov 2011)
New Revision: 36182
Modified:
trunk/openshift/plugins/pom.xml
trunk/openshift/tests/pom.xml
Log:
[JBIDE-10068] removed openshift express client modules from plugin- and test-poms
Modified: trunk/openshift/plugins/pom.xml
===================================================================
--- trunk/openshift/plugins/pom.xml 2011-11-05 00:55:12 UTC (rev 36181)
+++ trunk/openshift/plugins/pom.xml 2011-11-05 10:39:21 UTC (rev 36182)
@@ -13,7 +13,8 @@
<modules>
<module>org.jboss.tools.openshift.egit.core</module>
<module>org.jboss.tools.openshift.egit.ui</module>
- <module>org.jboss.tools.openshift.express.client</module>
+ <!-- JBIDE-10068
+ <module>org.jboss.tools.openshift.express.client</module> -->
<module>org.jboss.tools.openshift.express.ui</module>
</modules>
</project>
Modified: trunk/openshift/tests/pom.xml
===================================================================
--- trunk/openshift/tests/pom.xml 2011-11-05 00:55:12 UTC (rev 36181)
+++ trunk/openshift/tests/pom.xml 2011-11-05 10:39:21 UTC (rev 36182)
@@ -12,7 +12,8 @@
<packaging>pom</packaging>
<modules>
<module>org.jboss.tools.openshift.egit.test</module>
- <module>org.jboss.tools.openshift.express.client.test</module>
+ <!-- JBIDE-10068
+ <module>org.jboss.tools.openshift.express.client.test</module> -->
</modules>
</project>
13 years, 1 month
JBoss Tools SVN: r36181 - in trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test: wizard and 1 other directory.
by jbosstools-commits@lists.jboss.org
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);
}
}
13 years, 1 month
JBoss Tools SVN: r36180 - trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2011-11-04 19:40:13 -0400 (Fri, 04 Nov 2011)
New Revision: 36180
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/richfaces-palette.xml
Log:
https://issues.jboss.org/browse/JBIDE-10075 Update Richfaces components in Palette to the latest 4.1.M3
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/richfaces-palette.xml
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/richfaces-palette.xml 2011-11-04 20:34:20 UTC (rev 36179)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/richfaces-palette.xml 2011-11-04 23:40:13 UTC (rev 36180)
@@ -8,6 +8,26 @@
SCOPE="project" URI="http://richfaces.org/rich" add_taglib="true"
library-version="" model-entity="SharableGroupHTML">
<MacroHTML
+ DESCRIPTION="<b>Syntax:</b><br><code>&lt;rich:editor&gt;</code><br><code>&lt;/rich:editor&gt;</code><br><b>Attributes:</b><br><code></code>"
+ ENDTEXT="</editor>" ICON="" NAME="editor" REFORMAT="yes"
+ SCOPE="project" STARTTEXT="<editor>" large-icon="" model-entity="SharableMacroHTML"/>
+ <MacroHTML
+ DESCRIPTION="<b>Syntax:</b><br><code>&lt;rich:notifyMessages&gt;</code><br><code>&lt;/rich:notifyMessages&gt;</code><br><b>Attributes:</b><br><code></code>"
+ ENDTEXT="</notifyMessages>" ICON="" NAME="notifyMessages"
+ REFORMAT="yes" SCOPE="project" STARTTEXT="<notifyMessages>"
+ large-icon="" model-entity="SharableMacroHTML"/>
+ <MacroHTML
+ DESCRIPTION="<b>Syntax:</b><br><code>&lt;rich:orderingList&gt;</code><br><code>&lt;/rich:orderingList&gt;</code><br><b>Attributes:</b><br><code>activeItem, ajaxKeys, binding, bottomControlLabel, captionLabel, columnClasses, componentState, controlsHorizontalAlign, controlsType, controlsVerticalAlign, converter, downControlLabel, fastOrderControlsVisible, id, immediate, listHeight, listWidth, onbottomclick, onclick, ondblclick, ondownclick, onheaderclick, onmousemove, onmouseout, onmouseover, onorderchanged, ontopclick, onupclick, orderControlsVisible, rendered, required, rowClasses, rowKeyConverter, rowKeyVar, rows, selection, showButtonLabels, style, styleClass, topControlLabel, upControlLabel, validator, value, valueChangeListener, var</code>"
+ ENDTEXT="</orderingList>"
+ ICON="%Icons%/JBoss RichFaces/orderingList" NAME="orderingList"
+ REFORMAT="yes" SCOPE="project" STARTTEXT="<orderingList>"
+ large-icon="" model-entity="SharableMacroHTML"/>
+ <MacroHTML
+ DESCRIPTION="<b>Syntax:</b><br><code>&lt;rich:pickList&gt;</code><br><code>&lt;/rich:pickList&gt;</code><br><b>Attributes:</b><br><code>binding, controlClass, converter, converterMessage, copyAllControlLabel, copyControlLabel, disabled, disabledStyle, disabledStyleClass, enabledStyle, enabledStyleClass, id, immediate, listClass, listsHeight, moveControlsVerticalAlign, onblur, onclick, ondblclick, onfocus, onkeydown, onkeypress, onkeyup, onlistchanged, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, removeAllControlLabel, removeControlLabel, rendered, required, requiredMessage, showButtonsLabel, sourceListWidth, style, styleClass, switchByClick, targetListWidth, title, validator, validatorMessage, value, valueChangeListener</code>"
+ ENDTEXT="</pickList>" ICON="%Icons%/JBoss RichFaces/pickList"
+ NAME="pickList" REFORMAT="yes" SCOPE="project"
+ STARTTEXT="<pickList>" large-icon="" model-entity="SharableMacroHTML"/>
+ <MacroHTML
DESCRIPTION="<b>Syntax:</b><br><code>&lt;rich:treeModelAdaptor&gt;</code><br><code>&lt;/rich:treeModelAdaptor&gt;</code><br><b>Attributes:</b><br><code></code>"
ENDTEXT="</treeModelAdaptor>" ICON="" NAME="treeModelAdaptor"
REFORMAT="yes" SCOPE="project" STARTTEXT="<treeModelAdaptor>"
13 years, 1 month
JBoss Tools SVN: r36179 - trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests.
by jbosstools-commits@lists.jboss.org
Author: ldimaggio
Date: 2011-11-04 16:34:20 -0400 (Fri, 04 Nov 2011)
New Revision: 36179
Modified:
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/CreateRuntimeFromESB.java
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/CreateRuntimeFromSOA.java
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/Editing.java
Log:
Correct test for Notifcations (tests/Editing.java), added trivial test for tests/CreateRuntimeFromESB.java, tests/CreateRuntimeFromSOA.java
Modified: trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/CreateRuntimeFromESB.java
===================================================================
--- trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/CreateRuntimeFromESB.java 2011-11-04 20:30:16 UTC (rev 36178)
+++ trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/CreateRuntimeFromESB.java 2011-11-04 20:34:20 UTC (rev 36179)
@@ -17,8 +17,18 @@
bot.shell(IDELabel.Shell.NEW_ESB_RUNTIME).activate();
assertFalse("Finish button must not be enabled when no home dir is defined",bot.button(IDELabel.Button.FINISH).isEnabled());
bot.text(1).setText(TestConfigurator.currentConfig.getEsb().runtimeHome);
- assertTrue("Version was not automaticly selected by setting ESB home dir",bot.comboBox().selection().equals(TestConfigurator.currentConfig.getEsb().version));
- bot.text(0).setText("runtime");
+
+ bot.sleep (3000l, "3 sleeping - " + TestConfigurator.currentConfig.getEsb().runtimeHome + " " + TestConfigurator.currentConfig.getEsb().version + " " + bot.comboBox().selection().toString());
+
+ /* ldimaggi - Oct 2011 - https://issues.jboss.org/browse/JBDS-1886 - this test fails for ESB 4.10 */
+ //assertTrue("JBDS-1886 - Version was not automatically selected by setting ESB home dir",bot.comboBox().selection().equals(TestConfigurator.currentConfig.getEsb().version));
+
+ /* ldimaggi - Oct 2011 */
+ bot.text(0).setText("123_TheName");
+ //System.out.println ("[" + bot.textWithLabel("JBoss ESB Runtime").getText() +"]");
+ assertTrue ("Runtime name cannot start with a number", bot.textWithLabel("JBoss ESB Runtime").getText().equals(" Runtime name is not correct") );
+
+ bot.text(0).setText("runtime");
String name = bot.text(0).getText();
assertFalse("Runtime name was not automaticly set by setting ESB home dir",name.equals(""));
assertTrue("Finish button must be enabled when valid home dir is defined",bot.button(IDELabel.Button.FINISH).isEnabled());
Modified: trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/CreateRuntimeFromSOA.java
===================================================================
--- trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/CreateRuntimeFromSOA.java 2011-11-04 20:30:16 UTC (rev 36178)
+++ trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/CreateRuntimeFromSOA.java 2011-11-04 20:34:20 UTC (rev 36179)
@@ -18,7 +18,18 @@
bot.shell(IDELabel.Shell.NEW_ESB_RUNTIME).activate();
assertFalse("Finish button must not be enabled when no home dir is defined",bot.button(IDELabel.Button.FINISH).isEnabled());
bot.text(1).setText(TestConfigurator.currentConfig.getServer().runtimeHome);
- assertTrue("Version was not automaticly selected by setting ESB home dir",bot.comboBox().selection().equals(configuredState.getServer().bundledESBVersion));
+
+ bot.sleep (3000l, "3 sleeping - " + TestConfigurator.currentConfig.getEsb().runtimeHome + " " + TestConfigurator.currentConfig.getEsb().version + " " + bot.comboBox().selection().toString());
+ System.out.println ("DEBUG - " + configuredState.getServer().bundledESBVersion);
+ System.out.println ("DEBUG - " + TestConfigurator.currentConfig.getServer().version);
+
+ assertTrue("Version was not automatically selected by setting ESB home dir",bot.comboBox().selection().equals(configuredState.getServer().bundledESBVersion));
+
+ /* ldimaggi - Oct 2011 */
+ bot.text(0).setText("123_TheName");
+ //System.out.println ("[" + bot.textWithLabel("JBoss ESB Runtime").getText() +"]");
+ assertTrue ("Runtime name cannot start with a number", bot.textWithLabel("JBoss ESB Runtime").getText().equals(" Runtime name is not correct") );
+
bot.text(0).setText("esb-runtime");
String name = bot.text(0).getText();
assertFalse("Runtime name was not automaticly set by setting ESB home dir",name.equals(""));
Modified: trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/Editing.java
===================================================================
--- trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/Editing.java 2011-11-04 20:30:16 UTC (rev 36178)
+++ trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/Editing.java 2011-11-04 20:34:20 UTC (rev 36179)
@@ -159,7 +159,7 @@
ESBAction action = (ESBAction) m.invoke(null, new Object[]{});
action.setService(service);
action.create(getEditor(), actionPath);
- action.edit(getEditor(), actionPath);
+ //action.edit(getEditor(), actionPath); /* Why is this here??? ldimaggi Nov 4 2011 */
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
13 years, 1 month
JBoss Tools SVN: r36178 - trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/editor.
by jbosstools-commits@lists.jboss.org
Author: ldimaggio
Date: 2011-11-04 16:30:16 -0400 (Fri, 04 Nov 2011)
New Revision: 36178
Modified:
trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/editor/ESBActionFactory.java
Log:
Added code for special case - Sync Service Invoker
Modified: trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/editor/ESBActionFactory.java
===================================================================
--- trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/editor/ESBActionFactory.java 2011-11-04 18:06:36 UTC (rev 36177)
+++ trunk/esb/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/editor/ESBActionFactory.java 2011-11-04 20:30:16 UTC (rev 36178)
@@ -382,10 +382,24 @@
}
@Override
protected void doFillForm(SWTBotShell shell) {
- Assertions.assertButtonEnabled(shell.bot().button(getFinishButton()), false);
- shell.bot().text(0).setText(this.uiName);
- shell.bot().text(1).setText("Category");
- shell.bot().text(2).setText("HelloService");
+ Assertions.assertButtonEnabled(shell.bot().button(getFinishButton()), false);
+ shell.bot().text(0).setText(this.uiName);
+
+ System.out.println ("DEBUG - this.uiName " + this.uiName);
+
+ org.jboss.tools.ui.bot.ext.SWTUtilExt.displayAllBotWidgets(shell.bot());
+
+ /* ldimaggi - Nov 4 2011 - need this to avoid an error where an array
+ * out of bounds is hit - as the Sync Service Invoker has combo boxes, not text fields */
+ if (this.uiName.equals("Sync Service Invoker")) {
+ shell.bot().comboBox(0).setSelection(0);
+ shell.bot().comboBox(1).setSelection(0);
+ }
+ else {
+ shell.bot().text(1).setText("Category");
+ shell.bot().text(2).setText("HelloService");
+ }
+
Assertions.assertButtonEnabled(shell.bot().button(getFinishButton()), true);
}
};
13 years, 1 month
JBoss Tools SVN: r36177 - trunk/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/editor.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2011-11-04 14:06:36 -0400 (Fri, 04 Nov 2011)
New Revision: 36177
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/editor/XulRunnerEditor.java
Log:
fix for null pointer exception in VPE
java.lang.NullPointerException
at org.jboss.tools.vpe.xulrunner.util.XPCOM.queryInterface(XPCOM.java:90)
at org.jboss.tools.vpe.xulrunner.editor.XulRunnerEditor.getElementForNode(XulRunnerEditor.java:456)
at org.jboss.tools.vpe.xulrunner.editor.XulRunnerEditor.prepareFlasherData(XulRunnerEditor.java:412)
at org.jboss.tools.vpe.xulrunner.editor.XulRunnerEditor.redrawSelectionRectangle(XulRunnerEditor.java:406)
at org.jboss.tools.vpe.editor.VpeController$7.run(VpeController.java:2019)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
... 22 more
Modified: trunk/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/editor/XulRunnerEditor.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/editor/XulRunnerEditor.java 2011-11-04 17:01:13 UTC (rev 36176)
+++ trunk/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/editor/XulRunnerEditor.java 2011-11-04 18:06:36 UTC (rev 36177)
@@ -452,7 +452,7 @@
if (node != null) {
if (node.getNodeType() == nsIDOMNode.ELEMENT_NODE) {
return XPCOM.queryInterface(node, nsIDOMElement.class);
- } else if (node.getNodeType() == nsIDOMNode.TEXT_NODE) {
+ } else if (node.getNodeType() == nsIDOMNode.TEXT_NODE && node.getParentNode() != null) {
return XPCOM.queryInterface(node.getParentNode(), nsIDOMElement.class);
}
}
13 years, 1 month
JBoss Tools SVN: r36176 - workspace/yradtsevich/browsersim/swt-webkit-browsersim/org.jboss.tools.browsersim/src/org/jboss/tools/browsersim.
by jbosstools-commits@lists.jboss.org
Author: yradtsevich
Date: 2011-11-04 13:01:13 -0400 (Fri, 04 Nov 2011)
New Revision: 36176
Added:
workspace/yradtsevich/browsersim/swt-webkit-browsersim/org.jboss.tools.browsersim/src/org/jboss/tools/browsersim/DevicesList.java
Modified:
workspace/yradtsevich/browsersim/swt-webkit-browsersim/org.jboss.tools.browsersim/src/org/jboss/tools/browsersim/BrowserSim.java
workspace/yradtsevich/browsersim/swt-webkit-browsersim/org.jboss.tools.browsersim/src/org/jboss/tools/browsersim/Device.java
workspace/yradtsevich/browsersim/swt-webkit-browsersim/org.jboss.tools.browsersim/src/org/jboss/tools/browsersim/DevicesManager.java
workspace/yradtsevich/browsersim/swt-webkit-browsersim/org.jboss.tools.browsersim/src/org/jboss/tools/browsersim/ManageDevicesDialog.java
Log:
https://issues.jboss.org/browse/JBIDE-9539 : Browsersim app for testing mobile/desktop web apps
- creating model for storing devices is in progress
Modified: workspace/yradtsevich/browsersim/swt-webkit-browsersim/org.jboss.tools.browsersim/src/org/jboss/tools/browsersim/BrowserSim.java
===================================================================
--- workspace/yradtsevich/browsersim/swt-webkit-browsersim/org.jboss.tools.browsersim/src/org/jboss/tools/browsersim/BrowserSim.java 2011-11-04 15:56:49 UTC (rev 36175)
+++ workspace/yradtsevich/browsersim/swt-webkit-browsersim/org.jboss.tools.browsersim/src/org/jboss/tools/browsersim/BrowserSim.java 2011-11-04 17:01:13 UTC (rev 36176)
@@ -170,8 +170,8 @@
}
});
- if (!DevicesManager.getInstance().getDevices().isEmpty()) {
- setDevice(DevicesManager.getInstance().getDevices().get(0));
+ if (!DevicesManager.getInstance().getDevicesList().getDevices().isEmpty()) {
+ setDevice(DevicesManager.getInstance().getDevicesList().getDevices().get(0));
}
shell.open();
browser.setUrl(initialUrl);
@@ -267,7 +267,7 @@
});
Menu devicesMenu = createDropDownMenu(appMenuBar, "Devices");
- for (Device device : DevicesManager.getInstance().getDevices()) {
+ for (Device device : DevicesManager.getInstance().getDevicesList().getDevices()) {
MenuItem deviceMenuItem = new MenuItem(devicesMenu, SWT.RADIO);
deviceMenuItem.setText(device.getName());
deviceMenuItem.setData(device);
Modified: workspace/yradtsevich/browsersim/swt-webkit-browsersim/org.jboss.tools.browsersim/src/org/jboss/tools/browsersim/Device.java
===================================================================
--- workspace/yradtsevich/browsersim/swt-webkit-browsersim/org.jboss.tools.browsersim/src/org/jboss/tools/browsersim/Device.java 2011-11-04 15:56:49 UTC (rev 36175)
+++ workspace/yradtsevich/browsersim/swt-webkit-browsersim/org.jboss.tools.browsersim/src/org/jboss/tools/browsersim/Device.java 2011-11-04 17:01:13 UTC (rev 36176)
@@ -32,31 +32,15 @@
return width;
}
- public void setWidth(int width) {
- this.width = width;
- }
-
public int getHeight() {
return height;
}
- public void setHeight(int height) {
- this.height = height;
- }
-
public String getUserAgent() {
return userAgent;
}
- public void setUserAgent(String userAgent) {
- this.userAgent = userAgent;
- }
-
public String getName() {
return name;
}
-
- public void setName(String name) {
- this.name = name;
- }
}
Added: workspace/yradtsevich/browsersim/swt-webkit-browsersim/org.jboss.tools.browsersim/src/org/jboss/tools/browsersim/DevicesList.java
===================================================================
--- workspace/yradtsevich/browsersim/swt-webkit-browsersim/org.jboss.tools.browsersim/src/org/jboss/tools/browsersim/DevicesList.java (rev 0)
+++ workspace/yradtsevich/browsersim/swt-webkit-browsersim/org.jboss.tools.browsersim/src/org/jboss/tools/browsersim/DevicesList.java 2011-11-04 17:01:13 UTC (rev 36176)
@@ -0,0 +1,44 @@
+/*******************************************************************************
+ * Copyright (c) 2007-2011 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributor:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.browsersim;
+
+import java.util.List;
+import java.util.Observable;
+
+/**
+ * An unmodifiable list of {@link Device}s, with modifiable {@link #currentDeviceIndex}.
+ *
+ * @author Yahor Radtsevich (yradtsevich)
+ */
+public class DevicesList extends Observable {
+ private List<Device> devices;
+ private int currentDeviceIndex;
+
+ public DevicesList(List<Device> devices, int currentDeviceIndex) {
+ this.devices = devices;
+ this.currentDeviceIndex = currentDeviceIndex;
+ }
+
+ public List<Device> getDevices() {
+ return devices;
+ }
+
+ public int getCurrentDeviceIndex() {
+ return currentDeviceIndex;
+ }
+
+ public void setCurrentDeviceIndex(int currentDeviceIndex) {
+ if (this.currentDeviceIndex != currentDeviceIndex) {
+ this.currentDeviceIndex = currentDeviceIndex;
+ setChanged();
+ }
+ }
+}
Modified: workspace/yradtsevich/browsersim/swt-webkit-browsersim/org.jboss.tools.browsersim/src/org/jboss/tools/browsersim/DevicesManager.java
===================================================================
--- workspace/yradtsevich/browsersim/swt-webkit-browsersim/org.jboss.tools.browsersim/src/org/jboss/tools/browsersim/DevicesManager.java 2011-11-04 15:56:49 UTC (rev 36175)
+++ workspace/yradtsevich/browsersim/swt-webkit-browsersim/org.jboss.tools.browsersim/src/org/jboss/tools/browsersim/DevicesManager.java 2011-11-04 17:01:13 UTC (rev 36176)
@@ -12,22 +12,18 @@
import java.util.ArrayList;
import java.util.List;
+import java.util.Observable;
/**
* @author Yahor Radtsevich (yradtsevich)
*/
-public class DevicesManager {
+public class DevicesManager extends Observable {
private static DevicesManager instance;
- private List<Device> devices;
+ private DevicesList devicesList;
public static final String IPHONE_OS_4_0_USER_AGENT = "Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_0 like Mac OS X; en-us) AppleWebKit/532.9 (KHTML, like Gecko) Version/4.0.5 Mobile/8A293 Safari/6531.22.7";
- protected DevicesManager() {
- devices = new ArrayList<Device>();
- devices.add(new Device("iPhone 3", 320, 480, IPHONE_OS_4_0_USER_AGENT));
- devices.add(new Device("iPhone 4", 640, 960, IPHONE_OS_4_0_USER_AGENT));
- devices.add(new Device("BlackBerry Bold Touch 9900", 640, 480, "Mozilla/5.0 (BlackBerry; U; BlackBerry 9900; en-US) AppleWebKit/534.1+ (KHTML, like Gecko) Version/6.0.0.246 Mobile Safari/534.1+"));
- devices.add(new Device("Samsung GT-I9100 (Galaxy S II)", 640, 800, "Mozilla/5.0 (Linux; U; Android 2.3; en-us; GT-I9100 Build/GRH78) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1"));
+ protected DevicesManager() {
}
public static DevicesManager getInstance() {
@@ -36,8 +32,25 @@
}
return instance;
}
+
+ public DevicesList getDevicesList() {
+ if (devicesList == null) {
+ List<Device> devices = new ArrayList<Device>();
+ devices.add(new Device("Apple iPhone 3", 320, 480, IPHONE_OS_4_0_USER_AGENT));
+ devices.add(new Device("Apple iPhone 4", 640, 960, IPHONE_OS_4_0_USER_AGENT));
+ devices.add(new Device("BlackBerry Bold Touch 9900", 640, 480, "Mozilla/5.0 (BlackBerry; U; BlackBerry 9900; en-US) AppleWebKit/534.1+ (KHTML, like Gecko) Version/6.0.0.246 Mobile Safari/534.1+"));
+ devices.add(new Device("Samsung Galaxy S II", 640, 800, "Mozilla/5.0 (Linux; U; Android 2.3; en-us; GT-I9100 Build/GRH78) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1"));
+
+ devicesList = new DevicesList(devices, 0);
+ }
+
+ return devicesList;
+ }
- public List<Device> getDevices() {
- return devices;
+ public void setDevicesList(DevicesList devicesList) {
+ if (this.devicesList != devicesList) {
+ this.devicesList = devicesList;
+ setChanged();
+ }
}
}
Modified: workspace/yradtsevich/browsersim/swt-webkit-browsersim/org.jboss.tools.browsersim/src/org/jboss/tools/browsersim/ManageDevicesDialog.java
===================================================================
--- workspace/yradtsevich/browsersim/swt-webkit-browsersim/org.jboss.tools.browsersim/src/org/jboss/tools/browsersim/ManageDevicesDialog.java 2011-11-04 15:56:49 UTC (rev 36175)
+++ workspace/yradtsevich/browsersim/swt-webkit-browsersim/org.jboss.tools.browsersim/src/org/jboss/tools/browsersim/ManageDevicesDialog.java 2011-11-04 17:01:13 UTC (rev 36176)
@@ -102,7 +102,7 @@
public void widgetSelected(SelectionEvent e) {
Device newDevice = (Device) new EditDevicesDialog(shell, SWT.APPLICATION_MODAL | SWT.SHELL_TRIM).open();
if (newDevice != null) {
- DevicesManager.getInstance().getDevices().add(newDevice);
+ DevicesManager.getInstance().getDevicesList().getDevices().add(newDevice);
updateDevices();
}
}
@@ -139,7 +139,7 @@
public void updateDevices() {
table.removeAll();
- for (Device device : DevicesManager.getInstance().getDevices()) {
+ for (Device device : DevicesManager.getInstance().getDevicesList().getDevices()) {
TableItem tableItem = new TableItem(table, SWT.NONE);
tableItem.setText(new String[] {device.getName(), String.valueOf(device.getWidth()), String.valueOf(device.getHeight()), device.getUserAgent()});
}
13 years, 1 month
JBoss Tools SVN: r36175 - in trunk/openshift: plugins/org.jboss.tools.openshift.express.ui/META-INF and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2011-11-04 11:56:49 -0400 (Fri, 04 Nov 2011)
New Revision: 36175
Removed:
trunk/openshift/plugins/org.jboss.tools.openshift.express.client/
trunk/openshift/tests/org.jboss.tools.openshift.express.client.test/
Modified:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/META-INF/MANIFEST.MF
Log:
[JBIDE-10068] moved openshift express client to github. removing from tools svn
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/META-INF/MANIFEST.MF
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/META-INF/MANIFEST.MF 2011-11-04 15:18:00 UTC (rev 36174)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/META-INF/MANIFEST.MF 2011-11-04 15:56:49 UTC (rev 36175)
@@ -4,7 +4,9 @@
Bundle-SymbolicName: org.jboss.tools.openshift.express.ui;singleton:=true
Bundle-Version: 2.3.0.qualifier
Bundle-Activator: org.jboss.tools.openshift.express.internal.ui.OpenShiftUIActivator
-Require-Bundle: org.eclipse.egit.ui;bundle-version="[1.0.0,2.0.0)",
+Require-Bundle: org.jboss.tools.openshift.express.client;bundle-version="[2.3.0,3.0.0)",
+ org.jboss.tools.openshift.egit.core;bundle-version="[2.3.0,3.0.0)",
+ org.eclipse.egit.ui;bundle-version="[1.0.0,2.0.0)",
org.eclipse.egit.core;bundle-version="[1.1.0,2.0.0)",
org.eclipse.jgit;bundle-version="[1.1.0,2.1.0)",
com.jcraft.jsch;bundle-version="0.1.44",
@@ -24,8 +26,6 @@
org.eclipse.ui.ide;bundle-version="3.7.0",
org.eclipse.m2e.core.ui;bundle-version="1.0.100",
org.eclipse.wst.common.modulecore;bundle-version="1.2.100",
- org.jboss.tools.openshift.express.client,
- org.jboss.tools.openshift.egit.core,
org.eclipse.team.ui;bundle-version="3.6.100"
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
13 years, 1 month
JBoss Tools SVN: r36174 - branches/jbosstools-3.2.x/modeshape/plugins/org.jboss.tools.modeshape.rest.
by jbosstools-commits@lists.jboss.org
Author: elvisisking
Date: 2011-11-04 11:18:00 -0400 (Fri, 04 Nov 2011)
New Revision: 36174
Modified:
branches/jbosstools-3.2.x/modeshape/plugins/org.jboss.tools.modeshape.rest/modeshape-client.jar
Log:
JBDS-1875: Updated JBT ModeShape Tools to EDS ER6 ModeShape client jar.
Modified: branches/jbosstools-3.2.x/modeshape/plugins/org.jboss.tools.modeshape.rest/modeshape-client.jar
===================================================================
(Binary files differ)
13 years, 1 month