JBoss Tools SVN: r5777 - in trunk/hibernatetools/tests/org.hibernate.eclipse.console.test: src/org/hibernate/eclipse/console/test and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2008-01-17 14:22:07 -0500 (Thu, 17 Jan 2008)
New Revision: 5777
Added:
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/xpl/
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/xpl/JavaProjectHelper.java
Modified:
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/META-INF/MANIFEST.MF
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/HibernateConsoleTest.java
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/HibernateConsoleTestPlugin.java
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/SimpleTestProject.java
Log:
various fixes to allow better tests
Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/META-INF/MANIFEST.MF 2008-01-17 19:21:30 UTC (rev 5776)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/META-INF/MANIFEST.MF 2008-01-17 19:22:07 UTC (rev 5777)
@@ -11,7 +11,8 @@
Bundle-Localization: plugin
Export-Package: org.hibernate.eclipse.console.test,
org.hibernate.eclipse.console.test.mapping,
- org.hibernate.eclipse.console.test.mappingproject
+ org.hibernate.eclipse.console.test.mappingproject,
+ org.hibernate.eclipse.console.test.xpl
Require-Bundle: org.junit,
org.eclipse.jdt.core,
org.eclipse.core.resources,
Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/HibernateConsoleTest.java
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/HibernateConsoleTest.java 2008-01-17 19:21:30 UTC (rev 5776)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/HibernateConsoleTest.java 2008-01-17 19:22:07 UTC (rev 5777)
@@ -24,8 +24,9 @@
protected void setUp() throws Exception {
super.setUp();
- this.project = new SimpleTestProject();
+ this.project = createTestProject();
+
waitForJobs();
PlatformUI.getWorkbench()
.getActiveWorkbenchWindow().getActivePage().setPerspective(
@@ -50,6 +51,10 @@
delay(2000);
}
+
+ protected SimpleTestProject createTestProject() {
+ return new SimpleTestProject();
+ }
protected void tearDown() throws Exception {
waitForJobs();
Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/HibernateConsoleTestPlugin.java
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/HibernateConsoleTestPlugin.java 2008-01-17 19:21:30 UTC (rev 5776)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/HibernateConsoleTestPlugin.java 2008-01-17 19:22:07 UTC (rev 5777)
@@ -1,8 +1,16 @@
package org.hibernate.eclipse.console.test;
+import java.io.File;
+import java.io.IOException;
+import java.net.URL;
import java.util.MissingResourceException;
import java.util.ResourceBundle;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.FileLocator;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;
@@ -82,4 +90,14 @@
public static ImageDescriptor getImageDescriptor(String path) {
return AbstractUIPlugin.imageDescriptorFromPlugin("org.hibernate.eclipse.console.test.test", path);
}
+
+ public File getFileInPlugin(IPath path) throws CoreException {
+ try {
+ URL installURL= new URL(getBundle().getEntry("/"), path.toString());
+ URL localURL= FileLocator.toFileURL(installURL);
+ return new File(localURL.getFile());
+ } catch (IOException e) {
+ throw new CoreException(new Status(IStatus.ERROR, "org.hibernate.eclipse.console.test", IStatus.ERROR, e.getMessage(), e));
+ }
+ }
}
Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/SimpleTestProject.java
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/SimpleTestProject.java 2008-01-17 19:21:30 UTC (rev 5776)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/SimpleTestProject.java 2008-01-17 19:22:07 UTC (rev 5777)
@@ -1,5 +1,7 @@
package org.hibernate.eclipse.console.test;
+import java.io.IOException;
+
import org.eclipse.core.resources.IFolder;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IProjectDescription;
@@ -22,13 +24,20 @@
IProject project;
IJavaProject javaProject;
- public static String PROJECT_NAME = "HibernateToolsTestProject";
+ final private String projectName;
+
public static String PACKAGE_NAME = "test";
public static String TYPE_NAME = "TestClass";
public static String FILE_NAME = "TestClass.java";
+ public SimpleTestProject(String projectName) {
+ this.projectName=projectName;
+ initialize();
+ }
+
public SimpleTestProject() {
+ projectName = "HibernateToolsTestProject";
initialize();
}
@@ -76,8 +85,8 @@
}
- private void buildSimpleTestProject() throws JavaModelException, CoreException {
- project = buildNewProject(PROJECT_NAME);
+ protected void buildSimpleTestProject() throws JavaModelException, CoreException, IOException {
+ project = buildNewProject(projectName);
javaProject = buildJavaProject(project);
buildType(buildPackage(PACKAGE_NAME, project, javaProject), FILE_NAME);
@@ -151,7 +160,7 @@
return sourceFolder.createPackageFragment(name, false, null);
}
- private IType buildType(IPackageFragment pack, String cuName)
+ protected IType buildType(IPackageFragment pack, String cuName)
throws JavaModelException {
//create empty ICompilationUnit
Added: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/xpl/JavaProjectHelper.java
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/xpl/JavaProjectHelper.java (rev 0)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/xpl/JavaProjectHelper.java 2008-01-17 19:22:07 UTC (rev 5777)
@@ -0,0 +1,606 @@
+/*******************************************************************************
+ * Copyright (c) 2000, 2007 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are 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
+ * (from org.eclipse.jdt.testplugin)
+ * Contributors:
+ * IBM Corporation - initial API and implementation
+ * Ferenc Hechler, ferenc_hechler(a)users.sourceforge.net - 83258 [jar exporter] Deploy java application as executable jar
+ * Max Rydahl Andersen, made more general for usage in Hibernate tests.
+ *******************************************************************************/
+package org.hibernate.eclipse.console.test.xpl;
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.lang.reflect.InvocationTargetException;
+import java.net.URL;
+import java.util.ArrayList;
+import java.util.Enumeration;
+import java.util.Map;
+import java.util.zip.ZipFile;
+
+import junit.framework.Assert;
+
+import org.eclipse.core.resources.IContainer;
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IFolder;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IProjectDescription;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.resources.IWorkspace;
+import org.eclipse.core.resources.IWorkspaceDescription;
+import org.eclipse.core.resources.IWorkspaceRoot;
+import org.eclipse.core.resources.IWorkspaceRunnable;
+import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.Path;
+import org.eclipse.jdt.core.IClasspathEntry;
+import org.eclipse.jdt.core.IJavaElement;
+import org.eclipse.jdt.core.IJavaProject;
+import org.eclipse.jdt.core.IPackageFragmentRoot;
+import org.eclipse.jdt.core.JavaCore;
+import org.eclipse.jdt.core.JavaModelException;
+import org.eclipse.jdt.core.search.IJavaSearchConstants;
+import org.eclipse.jdt.core.search.SearchEngine;
+import org.eclipse.jdt.core.search.SearchPattern;
+import org.eclipse.jdt.core.search.TypeNameRequestor;
+import org.eclipse.jdt.internal.ui.JavaPlugin;
+import org.eclipse.jdt.internal.ui.util.CoreUtility;
+import org.eclipse.ui.dialogs.IOverwriteQuery;
+import org.eclipse.ui.wizards.datatransfer.ImportOperation;
+import org.eclipse.ui.wizards.datatransfer.ZipFileStructureProvider;
+import org.hibernate.eclipse.console.HibernateConsolePlugin;
+import org.hibernate.eclipse.console.test.HibernateConsoleTestPlugin;
+
+/**
+ * Helper methods to set up a IJavaProject.
+ */
+public class JavaProjectHelper {
+
+
+ private static final int MAX_RETRY= 5;
+
+ /**
+ * Creates a IJavaProject.
+ * @param projectName The name of the project
+ * @param binFolderName Name of the output folder
+ * @return Returns the Java project handle
+ * @throws CoreException Project creation failed
+ */
+ public static IJavaProject createJavaProject(String projectName, String binFolderName) throws CoreException {
+ IWorkspaceRoot root= ResourcesPlugin.getWorkspace().getRoot();
+ IProject project= root.getProject(projectName);
+ if (!project.exists()) {
+ project.create(null);
+ } else {
+ project.refreshLocal(IResource.DEPTH_INFINITE, null);
+ }
+
+ if (!project.isOpen()) {
+ project.open(null);
+ }
+
+ IPath outputLocation;
+ if (binFolderName != null && binFolderName.length() > 0) {
+ IFolder binFolder= project.getFolder(binFolderName);
+ if (!binFolder.exists()) {
+ CoreUtility.createFolder(binFolder, false, true, null);
+ }
+ outputLocation= binFolder.getFullPath();
+ } else {
+ outputLocation= project.getFullPath();
+ }
+
+ if (!project.hasNature(JavaCore.NATURE_ID)) {
+ addNatureToProject(project, JavaCore.NATURE_ID, null);
+ }
+
+ IJavaProject jproject= JavaCore.create(project);
+
+ jproject.setOutputLocation(outputLocation, null);
+ jproject.setRawClasspath(new IClasspathEntry[0], null);
+
+ return jproject;
+ }
+
+ /**
+ * Sets the compiler options to 1.5 for the given project.
+ * @param project the java project
+ */
+ public static void set15CompilerOptions(IJavaProject project) {
+ Map options= project.getOptions(false);
+ JavaProjectHelper.set15CompilerOptions(options);
+ project.setOptions(options);
+ }
+
+ /**
+ * Sets the compiler options to 1.4 for the given project.
+ * @param project the java project
+ */
+ public static void set14CompilerOptions(IJavaProject project) {
+ Map options= project.getOptions(false);
+ JavaProjectHelper.set14CompilerOptions(options);
+ project.setOptions(options);
+ }
+
+ /**
+ * Sets the compiler options to 1.5
+ * @param options The compiler options to configure
+ */
+ public static void set15CompilerOptions(Map options) {
+ options.put(JavaCore.COMPILER_COMPLIANCE, JavaCore.VERSION_1_5);
+ options.put(JavaCore.COMPILER_PB_ASSERT_IDENTIFIER, JavaCore.ERROR);
+ options.put(JavaCore.COMPILER_PB_ENUM_IDENTIFIER, JavaCore.ERROR);
+ options.put(JavaCore.COMPILER_SOURCE, JavaCore.VERSION_1_5);
+ options.put(JavaCore.COMPILER_CODEGEN_TARGET_PLATFORM, JavaCore.VERSION_1_5);
+ }
+
+ /**
+ * Sets the compiler options to 1.4
+ * @param options The compiler options to configure
+ */
+ public static void set14CompilerOptions(Map options) {
+ options.put(JavaCore.COMPILER_COMPLIANCE, JavaCore.VERSION_1_4);
+ options.put(JavaCore.COMPILER_PB_ASSERT_IDENTIFIER, JavaCore.ERROR);
+ options.put(JavaCore.COMPILER_PB_ENUM_IDENTIFIER, JavaCore.WARNING);
+ options.put(JavaCore.COMPILER_SOURCE, JavaCore.VERSION_1_3);
+ options.put(JavaCore.COMPILER_CODEGEN_TARGET_PLATFORM, JavaCore.VERSION_1_2);
+ }
+
+ /**
+ * Sets the compiler options to 1.3
+ * @param options The compiler options to configure
+ */
+ public static void set13CompilerOptions(Map options) {
+ options.put(JavaCore.COMPILER_COMPLIANCE, JavaCore.VERSION_1_3);
+ options.put(JavaCore.COMPILER_PB_ASSERT_IDENTIFIER, JavaCore.WARNING);
+ options.put(JavaCore.COMPILER_PB_ENUM_IDENTIFIER, JavaCore.WARNING);
+ options.put(JavaCore.COMPILER_SOURCE, JavaCore.VERSION_1_3);
+ options.put(JavaCore.COMPILER_CODEGEN_TARGET_PLATFORM, JavaCore.VERSION_1_2);
+ }
+
+ /**
+ * Removes a IJavaElement
+ *
+ * @param elem The element to remove
+ * @throws CoreException Removing failed
+ * @see #ASSERT_NO_MIXED_LINE_DELIMIERS
+ */
+ public static void delete(final IJavaElement elem) throws CoreException {
+
+ IWorkspaceRunnable runnable= new IWorkspaceRunnable() {
+ public void run(IProgressMonitor monitor) throws CoreException {
+ performDummySearch();
+ if (elem instanceof IJavaProject) {
+ IJavaProject jproject= (IJavaProject) elem;
+ jproject.setRawClasspath(new IClasspathEntry[0], jproject.getProject().getFullPath(), null);
+ }
+ for (int i= 0; i < MAX_RETRY; i++) {
+ try {
+ elem.getResource().delete(true, null);
+ i= MAX_RETRY;
+ } catch (CoreException e) {
+ if (i == MAX_RETRY - 1) {
+ JavaPlugin.log(e);
+ throw e;
+ }
+ try {
+ Thread.sleep(1000); // sleep a second
+ } catch (InterruptedException e1) {
+ }
+ }
+ }
+ }
+ };
+ ResourcesPlugin.getWorkspace().run(runnable, null);
+
+ }
+
+ /**
+ * Removes all files in the project and sets the given classpath
+ * @param jproject The project to clear
+ * @param entries The default class path to set
+ * @throws CoreException Clearing the project failed
+ */
+ public static void clear(final IJavaProject jproject, final IClasspathEntry[] entries) throws CoreException {
+ performDummySearch();
+
+ IWorkspaceRunnable runnable= new IWorkspaceRunnable() {
+ public void run(IProgressMonitor monitor) throws CoreException {
+ jproject.setRawClasspath(entries, null);
+
+ IResource[] resources= jproject.getProject().members();
+ for (int i= 0; i < resources.length; i++) {
+ if (!resources[i].getName().startsWith(".")) {
+ resources[i].delete(true, null);
+ }
+ }
+ }
+ };
+ ResourcesPlugin.getWorkspace().run(runnable, null);
+ }
+
+
+ public static void performDummySearch() throws JavaModelException {
+ new SearchEngine().searchAllTypeNames(
+ null,
+ SearchPattern.R_EXACT_MATCH,
+ "XXXXXXXXX".toCharArray(), // make sure we search a concrete name. This is faster according to Kent
+ SearchPattern.R_EXACT_MATCH | SearchPattern.R_CASE_SENSITIVE,
+ IJavaSearchConstants.CLASS,
+ SearchEngine.createJavaSearchScope(new IJavaElement[0]),
+ new Requestor(),
+ IJavaSearchConstants.WAIT_UNTIL_READY_TO_SEARCH,
+ null);
+ }
+
+
+ /**
+ * Adds a source container to a IJavaProject.
+ * @param jproject The parent project
+ * @param containerName The name of the new source container
+ * @return The handle to the new source container
+ * @throws CoreException Creation failed
+ */
+ public static IPackageFragmentRoot addSourceContainer(IJavaProject jproject, String containerName) throws CoreException {
+ return addSourceContainer(jproject, containerName, new Path[0]);
+ }
+
+ /**
+ * Adds a source container to a IJavaProject.
+ * @param jproject The parent project
+ * @param containerName The name of the new source container
+ * @param exclusionFilters Exclusion filters to set
+ * @return The handle to the new source container
+ * @throws CoreException Creation failed
+ */
+ public static IPackageFragmentRoot addSourceContainer(IJavaProject jproject, String containerName, IPath[] exclusionFilters) throws CoreException {
+ return addSourceContainer(jproject, containerName, new Path[0], exclusionFilters);
+ }
+
+ /**
+ * Adds a source container to a IJavaProject.
+ * @param jproject The parent project
+ * @param containerName The name of the new source container
+ * @param inclusionFilters Inclusion filters to set
+ * @param exclusionFilters Exclusion filters to set
+ * @return The handle to the new source container
+ * @throws CoreException Creation failed
+ */
+ public static IPackageFragmentRoot addSourceContainer(IJavaProject jproject, String containerName, IPath[] inclusionFilters, IPath[] exclusionFilters) throws CoreException {
+ return addSourceContainer(jproject, containerName, inclusionFilters, exclusionFilters, null);
+ }
+
+ /**
+ * Adds a source container to a IJavaProject.
+ * @param jproject The parent project
+ * @param containerName The name of the new source container
+ * @param inclusionFilters Inclusion filters to set
+ * @param exclusionFilters Exclusion filters to set
+ * @param outputLocation The location where class files are written to, <b>null</b> for project output folder
+ * @return The handle to the new source container
+ * @throws CoreException Creation failed
+ */
+ public static IPackageFragmentRoot addSourceContainer(IJavaProject jproject, String containerName, IPath[] inclusionFilters, IPath[] exclusionFilters, String outputLocation) throws CoreException {
+ IProject project= jproject.getProject();
+ IContainer container= null;
+ if (containerName == null || containerName.length() == 0) {
+ container= project;
+ } else {
+ IFolder folder= project.getFolder(containerName);
+ if (!folder.exists()) {
+ CoreUtility.createFolder(folder, false, true, null);
+ }
+ container= folder;
+ }
+ IPackageFragmentRoot root= jproject.getPackageFragmentRoot(container);
+
+ IPath outputPath= null;
+ if (outputLocation != null) {
+ IFolder folder= project.getFolder(outputLocation);
+ if (!folder.exists()) {
+ CoreUtility.createFolder(folder, false, true, null);
+ }
+ outputPath= folder.getFullPath();
+ }
+ IClasspathEntry cpe= JavaCore.newSourceEntry(root.getPath(), inclusionFilters, exclusionFilters, outputPath);
+ addToClasspath(jproject, cpe);
+ return root;
+ }
+
+ /**
+ * Adds a source container to a IJavaProject and imports all files contained
+ * in the given ZIP file.
+ * @param jproject The parent project
+ * @param containerName Name of the source container
+ * @param zipFile Archive to import
+ * @param containerEncoding encoding for the generated source container
+ * @return The handle to the new source container
+ * @throws InvocationTargetException Creation failed
+ * @throws CoreException Creation failed
+ * @throws IOException Creation failed
+ */
+ public static IPackageFragmentRoot addSourceContainerWithImport(IJavaProject jproject, String containerName, File zipFile, String containerEncoding) throws InvocationTargetException, CoreException, IOException {
+ return addSourceContainerWithImport(jproject, containerName, zipFile, containerEncoding, new Path[0]);
+ }
+
+ /**
+ * Adds a source container to a IJavaProject and imports all files contained
+ * in the given ZIP file.
+ * @param jproject The parent project
+ * @param containerName Name of the source container
+ * @param zipFile Archive to import
+ * @param containerEncoding encoding for the generated source container
+ * @param exclusionFilters Exclusion filters to set
+ * @return The handle to the new source container
+ * @throws InvocationTargetException Creation failed
+ * @throws CoreException Creation failed
+ * @throws IOException Creation failed
+ */
+ public static IPackageFragmentRoot addSourceContainerWithImport(IJavaProject jproject, String containerName, File zipFile, String containerEncoding, IPath[] exclusionFilters) throws InvocationTargetException, CoreException, IOException {
+ ZipFile file= new ZipFile(zipFile);
+ try {
+ IPackageFragmentRoot root= addSourceContainer(jproject, containerName, exclusionFilters);
+ ((IContainer) root.getCorrespondingResource()).setDefaultCharset(containerEncoding, null);
+ importFilesFromZip(file, root.getPath(), null);
+ return root;
+ } finally {
+ file.close();
+ }
+ }
+
+ /**
+ * Removes a source folder from a IJavaProject.
+ * @param jproject The parent project
+ * @param containerName Name of the source folder to remove
+ * @throws CoreException Remove failed
+ */
+ public static void removeSourceContainer(IJavaProject jproject, String containerName) throws CoreException {
+ IFolder folder= jproject.getProject().getFolder(containerName);
+ removeFromClasspath(jproject, folder.getFullPath());
+ folder.delete(true, null);
+ }
+
+ /**
+ * Adds a library entry to a IJavaProject.
+ * @param jproject The parent project
+ * @param path The path of the library to add
+ * @return The handle of the created root
+ * @throws JavaModelException
+ */
+ public static IPackageFragmentRoot addLibrary(IJavaProject jproject, IPath path) throws JavaModelException {
+ return addLibrary(jproject, path, null, null);
+ }
+
+ /**
+ * Adds a library entry with source attachment to a IJavaProject.
+ * @param jproject The parent project
+ * @param path The path of the library to add
+ * @param sourceAttachPath The source attachment path
+ * @param sourceAttachRoot The source attachment root path
+ * @return The handle of the created root
+ * @throws JavaModelException
+ */
+ public static IPackageFragmentRoot addLibrary(IJavaProject jproject, IPath path, IPath sourceAttachPath, IPath sourceAttachRoot) throws JavaModelException {
+ IClasspathEntry cpe= JavaCore.newLibraryEntry(path, sourceAttachPath, sourceAttachRoot);
+ addToClasspath(jproject, cpe);
+ return jproject.getPackageFragmentRoot(path.toString());
+ }
+
+
+ /**
+ * Copies the library into the project and adds it as library entry.
+ * @param jproject The parent project
+ * @param jarPath
+ * @param sourceAttachPath The source attachment path
+ * @param sourceAttachRoot The source attachment root path
+ * @return The handle of the created root
+ * @throws IOException
+ * @throws CoreException
+ */
+ public static IPackageFragmentRoot addLibraryWithImport(IJavaProject jproject, IPath jarPath, IPath sourceAttachPath, IPath sourceAttachRoot) throws IOException, CoreException {
+ IProject project= jproject.getProject();
+ IFile newFile= project.getFile(jarPath.lastSegment());
+ InputStream inputStream= null;
+ try {
+ inputStream= new FileInputStream(jarPath.toFile());
+ newFile.create(inputStream, true, null);
+ } finally {
+ if (inputStream != null) {
+ try { inputStream.close(); } catch (IOException e) { }
+ }
+ }
+ return addLibrary(jproject, newFile.getFullPath(), sourceAttachPath, sourceAttachRoot);
+ }
+
+ /**
+ * Creates and adds a class folder to the class path.
+ * @param jproject The parent project
+ * @param containerName
+ * @param sourceAttachPath The source attachment path
+ * @param sourceAttachRoot The source attachment root path
+ * @return The handle of the created root
+ * @throws CoreException
+ */
+ public static IPackageFragmentRoot addClassFolder(IJavaProject jproject, String containerName, IPath sourceAttachPath, IPath sourceAttachRoot) throws CoreException {
+ IProject project= jproject.getProject();
+ IContainer container= null;
+ if (containerName == null || containerName.length() == 0) {
+ container= project;
+ } else {
+ IFolder folder= project.getFolder(containerName);
+ if (!folder.exists()) {
+ CoreUtility.createFolder(folder, false, true, null);
+ }
+ container= folder;
+ }
+ IClasspathEntry cpe= JavaCore.newLibraryEntry(container.getFullPath(), sourceAttachPath, sourceAttachRoot);
+ addToClasspath(jproject, cpe);
+ return jproject.getPackageFragmentRoot(container);
+ }
+
+ /**
+ * Creates and adds a class folder to the class path and imports all files
+ * contained in the given ZIP file.
+ * @param jproject The parent project
+ * @param containerName
+ * @param sourceAttachPath The source attachment path
+ * @param sourceAttachRoot The source attachment root path
+ * @param zipFile
+ * @return The handle of the created root
+ * @throws IOException
+ * @throws CoreException
+ * @throws InvocationTargetException
+ */
+ public static IPackageFragmentRoot addClassFolderWithImport(IJavaProject jproject, String containerName, IPath sourceAttachPath, IPath sourceAttachRoot, File zipFile) throws IOException, CoreException, InvocationTargetException {
+ ZipFile file= new ZipFile(zipFile);
+ try {
+ IPackageFragmentRoot root= addClassFolder(jproject, containerName, sourceAttachPath, sourceAttachRoot);
+ importFilesFromZip(file, root.getPath(), null);
+ return root;
+ } finally {
+ file.close();
+ }
+ }
+
+
+ /**
+ * Adds a variable entry with source attachment to a IJavaProject.
+ * Can return null if variable can not be resolved.
+ * @param jproject The parent project
+ * @param path The variable path
+ * @param sourceAttachPath The source attachment path (variable path)
+ * @param sourceAttachRoot The source attachment root path (variable path)
+ * @return The added package fragment root
+ * @throws JavaModelException
+ */
+ public static IPackageFragmentRoot addVariableEntry(IJavaProject jproject, IPath path, IPath sourceAttachPath, IPath sourceAttachRoot) throws JavaModelException {
+ IClasspathEntry cpe= JavaCore.newVariableEntry(path, sourceAttachPath, sourceAttachRoot);
+ addToClasspath(jproject, cpe);
+ IPath resolvedPath= JavaCore.getResolvedVariablePath(path);
+ if (resolvedPath != null) {
+ return jproject.getPackageFragmentRoot(resolvedPath.toString());
+ }
+ return null;
+ }
+
+
+
+ /**
+ * Adds a required project entry.
+ * @param jproject Parent project
+ * @param required Project to add to the build path
+ * @throws JavaModelException Creation failed
+ */
+ public static void addRequiredProject(IJavaProject jproject, IJavaProject required) throws JavaModelException {
+ IClasspathEntry cpe= JavaCore.newProjectEntry(required.getProject().getFullPath());
+ addToClasspath(jproject, cpe);
+ }
+
+ public static void removeFromClasspath(IJavaProject jproject, IPath path) throws JavaModelException {
+ IClasspathEntry[] oldEntries= jproject.getRawClasspath();
+ int nEntries= oldEntries.length;
+ ArrayList list= new ArrayList(nEntries);
+ for (int i= 0 ; i < nEntries ; i++) {
+ IClasspathEntry curr= oldEntries[i];
+ if (!path.equals(curr.getPath())) {
+ list.add(curr);
+ }
+ }
+ IClasspathEntry[] newEntries= (IClasspathEntry[])list.toArray(new IClasspathEntry[list.size()]);
+ jproject.setRawClasspath(newEntries, null);
+ }
+
+ /**
+ * Sets auto-building state for the test workspace.
+ * @param state The new auto building state
+ * @return The previous state
+ * @throws CoreException Change failed
+ */
+ public static boolean setAutoBuilding(boolean state) throws CoreException {
+ // disable auto build
+ IWorkspace workspace= ResourcesPlugin.getWorkspace();
+ IWorkspaceDescription desc= workspace.getDescription();
+ boolean result= desc.isAutoBuilding();
+ desc.setAutoBuilding(state);
+ workspace.setDescription(desc);
+ return result;
+ }
+
+ public static void addToClasspath(IJavaProject jproject, IClasspathEntry cpe) throws JavaModelException {
+ IClasspathEntry[] oldEntries= jproject.getRawClasspath();
+ for (int i= 0; i < oldEntries.length; i++) {
+ if (oldEntries[i].equals(cpe)) {
+ return;
+ }
+ }
+ int nEntries= oldEntries.length;
+ IClasspathEntry[] newEntries= new IClasspathEntry[nEntries + 1];
+ System.arraycopy(oldEntries, 0, newEntries, 0, nEntries);
+ newEntries[nEntries]= cpe;
+ jproject.setRawClasspath(newEntries, null);
+ }
+
+
+ private static void addNatureToProject(IProject proj, String natureId, IProgressMonitor monitor) throws CoreException {
+ IProjectDescription description = proj.getDescription();
+ String[] prevNatures= description.getNatureIds();
+ String[] newNatures= new String[prevNatures.length + 1];
+ System.arraycopy(prevNatures, 0, newNatures, 0, prevNatures.length);
+ newNatures[prevNatures.length]= natureId;
+ description.setNatureIds(newNatures);
+ proj.setDescription(description, monitor);
+ }
+
+ private static void importFilesFromZip(ZipFile srcZipFile, IPath destPath, IProgressMonitor monitor) throws InvocationTargetException {
+ ZipFileStructureProvider structureProvider= new ZipFileStructureProvider(srcZipFile);
+ try {
+ ImportOperation op= new ImportOperation(destPath, structureProvider.getRoot(), structureProvider, new ImportOverwriteQuery());
+ op.run(monitor);
+ } catch (InterruptedException e) {
+ // should not happen
+ }
+ }
+
+ /**
+ * Imports resources from <code>bundleSourcePath</code> to <code>importTarget</code>.
+ *
+ * @param importTarget the parent container
+ * @param bundleSourcePath the path to a folder containing resources
+ *
+ * @throws CoreException import failed
+ * @throws IOException import failed
+ */
+ public static void importResources(IContainer importTarget, String bundleSourcePath) throws CoreException, IOException {
+ Enumeration entryPaths= HibernateConsoleTestPlugin.getDefault().getBundle().getEntryPaths(bundleSourcePath);
+ while (entryPaths.hasMoreElements()) {
+ String path= (String) entryPaths.nextElement();
+ IPath name= new Path(path.substring(bundleSourcePath.length()));
+ if (path.endsWith("/")) {
+ IFolder folder= importTarget.getFolder(name);
+ folder.create(false, true, null);
+ importResources(folder, path);
+ } else {
+ URL url= HibernateConsoleTestPlugin.getDefault().getBundle().getEntry(path);
+ IFile file= importTarget.getFile(name);
+ file.create(url.openStream(), true, null);
+ }
+ }
+ }
+
+ private static class ImportOverwriteQuery implements IOverwriteQuery {
+ public String queryOverwrite(String file) {
+ return ALL;
+ }
+ }
+
+ private static class Requestor extends TypeNameRequestor{
+ }
+}
+
16 years, 8 months
JBoss Tools SVN: r5776 - trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2008-01-17 14:21:30 -0500 (Thu, 17 Jan 2008)
New Revision: 5776
Modified:
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/HibernateNatureAddTest.java
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/HibernateNatureRemoveTest.java
Log:
use standard methods for enabling hibernate
Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/HibernateNatureAddTest.java
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/HibernateNatureAddTest.java 2008-01-17 18:22:34 UTC (rev 5775)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/HibernateNatureAddTest.java 2008-01-17 19:21:30 UTC (rev 5776)
@@ -10,17 +10,13 @@
******************************************************************************/
package org.hibernate.eclipse.console.test.mappingproject;
-import org.eclipse.core.resources.ProjectScope;
+import junit.framework.TestCase;
+
import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.core.runtime.preferences.IScopeContext;
import org.eclipse.jdt.core.IJavaProject;
import org.hibernate.eclipse.console.utils.ProjectUtils;
import org.osgi.service.prefs.BackingStoreException;
-import org.osgi.service.prefs.Preferences;
-import junit.framework.TestCase;
-
/**
* @author Dmitry Geraskov
*
@@ -29,15 +25,7 @@
public void testHibernateNatureAdd() throws BackingStoreException, CoreException {
MappingTestProject project = MappingTestProject.getTestProject();
IJavaProject prj = project.getIJavaProject();
- IScopeContext scope = new ProjectScope(prj.getProject() );
- //fail("HibernateNatureAdd testfail");
- Preferences node = scope.getNode("org.hibernate.eclipse.console");
-
- node.putBoolean("hibernate3.enabled", true );
- node.put("default.configuration", "testcfg" );
- node.flush();
-
- ProjectUtils.addProjectNature(prj.getProject(), "org.hibernate.eclipse.console.hibernateNature", new NullProgressMonitor() );
- //ProjectUtils.removeProjectNature(prj.getProject(), "org.hibernate.eclipse.console.hibernateNature", new NullProgressMonitor() );
+
+ ProjectUtils.toggleHibernateOnProject(project.getIProject(), true, "testcfg");
}
}
Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/HibernateNatureRemoveTest.java
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/HibernateNatureRemoveTest.java 2008-01-17 18:22:34 UTC (rev 5775)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/HibernateNatureRemoveTest.java 2008-01-17 19:21:30 UTC (rev 5776)
@@ -13,8 +13,6 @@
import junit.framework.TestCase;
import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.jdt.core.IJavaProject;
import org.hibernate.eclipse.console.utils.ProjectUtils;
import org.osgi.service.prefs.BackingStoreException;
@@ -25,7 +23,6 @@
public class HibernateNatureRemoveTest extends TestCase {
public void testHibernateNatureRemove() throws BackingStoreException, CoreException {
MappingTestProject project = MappingTestProject.getTestProject();
- IJavaProject prj = project.getIJavaProject();
- ProjectUtils.removeProjectNature(prj.getProject(), "org.hibernate.eclipse.console.hibernateNature", new NullProgressMonitor() );
+ ProjectUtils.toggleHibernateOnProject(project.getIProject(), true, "testcfg");
}
}
16 years, 8 months
JBoss Tools SVN: r5775 - in trunk: jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/1615 and 3 other directories.
by jbosstools-commits@lists.jboss.org
Author: dsakovich
Date: 2008-01-17 13:22:34 -0500 (Thu, 17 Jan 2008)
New Revision: 5775
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/1615/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/1615/JBIDE-1615.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE1615Test.java
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/JsfAllTests.java
trunk/vpe/plugins/org.jboss.tools.vpe/templates/vpe-templates-jsf.xml
Log:
http://jira.jboss.com/jira/browse/JBIDE-1615
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/1615/JBIDE-1615.xhtml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/1615/JBIDE-1615.xhtml (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/1615/JBIDE-1615.xhtml 2008-01-17 18:22:34 UTC (rev 5775)
@@ -0,0 +1,63 @@
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich">
+
+ <style type="text/css">
+ .odd-row {
+ background-color: #ECF3FE;
+ }
+ .even-row {
+ background-color: #FCFFFE;
+ }
+ .active-row {
+ background-color: #FFEBDA;
+ }
+
+ </style>
+
+
+ <rich:separator lineType="solid" height="1" />
+
+ <h:outputText value="This demo shows how just four rich:jQuery queries allow to
+ add zebra-style to a table and highlight rows under the mouse cursor." />
+
+
+ <rich:dataTable width="483" id="carList" rows="15"
+ value="#{dataTableScrollerBean.allCars}" var="category">
+ <f:facet name="header">
+ <rich:columnGroup>
+ <h:column><h:outputText value="Make" /></h:column>
+ <h:column><h:outputText value="Model" /></h:column>
+ <h:column><h:outputText value="Price" /></h:column>
+ <h:column><h:outputText value="Mileage" /></h:column>
+ </rich:columnGroup>
+ </f:facet>
+
+ <h:column>
+ <h:outputText value="#{category.make}" />
+ </h:column>
+ <h:column>
+ <h:outputText value="#{category.model}" />
+ </h:column>
+ <h:column>
+ <h:outputText value="#{category.price}" />
+ </h:column>
+ <h:column>
+ <h:outputText value="#{category.mileage}" />
+ </h:column>
+
+ </rich:dataTable>
+
+ <rich:jQuery selector="#carList tr:odd" query="addClass('odd-row')" />
+ <rich:jQuery selector="#carList tr:even" query="addClass('even-row')" />
+ <rich:jQuery selector="#carList tr"
+ query="mouseover(function(){jQuery(this).addClass('active-row')})"/>
+ <rich:jQuery selector="#carList tr"
+ query="mouseout(function(){jQuery(this).removeClass('active-row')})"/>
+
+
+ <rich:separator height="1" style="padding-top:10px" />
+</ui:composition>
\ No newline at end of file
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/JsfAllTests.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/JsfAllTests.java 2008-01-17 17:08:11 UTC (rev 5774)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/JsfAllTests.java 2008-01-17 18:22:34 UTC (rev 5775)
@@ -17,6 +17,7 @@
import junit.framework.TestSuite;
import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE1484Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE1615Test;
import org.jboss.tools.jsf.vpe.jsf.test.jbide.JsfJbide1467Test;
import org.jboss.tools.jsf.vpe.jsf.test.jbide.JsfJbide1501Test;
import org.jboss.tools.jsf.vpe.jsf.test.jbide.JsfJbide1548Test;
@@ -43,6 +44,7 @@
suite.addTestSuite(JBIDE1484Test.class);
suite.addTestSuite(JsfJbide1548Test.class);
suite.addTestSuite(JsfJbide1568Test.class);
+ suite.addTestSuite(JBIDE1615Test.class);
// $JUnit-END$
//added by Max Areshkau
//add here projects which should be imported for junit tests
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE1615Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE1615Test.java (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE1615Test.java 2008-01-17 18:22:34 UTC (rev 5775)
@@ -0,0 +1,80 @@
+/*******************************************************************************
+ * Copyright (c) 2007 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
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.jsf.vpe.jsf.test.jbide;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.ui.IEditorInput;
+import org.eclipse.ui.part.FileEditorInput;
+import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.editor.util.HTML;
+import org.jboss.tools.vpe.ui.test.TestUtil;
+import org.jboss.tools.vpe.ui.test.VpeTest;
+import org.mozilla.interfaces.nsIDOMDocument;
+import org.mozilla.interfaces.nsIDOMElement;
+import org.mozilla.interfaces.nsIDOMNode;
+
+public class JBIDE1615Test extends VpeTest {
+
+ public static final String IMPORT_PROJECT_NAME = "jsfTest";
+
+ private static final String TEST_PAGE_NAME = "JBIDE/1615/JBIDE-1615.xhtml";
+
+ public JBIDE1615Test(String name) {
+
+ super(name);
+ }
+
+ //test method for JBIDE 1484
+ public void testJBIDE_1484() throws Throwable {
+ // wait
+ TestUtil.waitForJobs();
+ // set exception
+ setException(null);
+
+ // get test page path
+ IFile file = (IFile) TestUtil.getComponentPath(TEST_PAGE_NAME,
+ IMPORT_PROJECT_NAME);
+
+ assertNotNull("Could not open specified file " + file.getFullPath(),
+ file);
+
+ IEditorInput input = new FileEditorInput(file);
+
+ assertNotNull("Editor input is null", input);
+ // open and get editor
+ JSPMultiPageEditor part = openEditor(input);
+
+ // get dom document
+ nsIDOMDocument document = getVpeVisualDocument(part);
+ nsIDOMElement element = document.getDocumentElement();
+
+ //check that element is not null
+ assertNotNull(element);
+
+ // get root node
+ nsIDOMNode node = (nsIDOMNode) element
+ .queryInterface(nsIDOMNode.NS_IDOMNODE_IID);
+
+ List<nsIDOMNode> elements = new ArrayList<nsIDOMNode>();
+
+ // find "span" elements
+ TestUtil.findElementsByName(node, elements, HTML.TAG_SPAN);
+
+ assertEquals(13, elements.size());
+ if (getException() != null) {
+ throw getException();
+ }
+ }
+
+}
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/templates/vpe-templates-jsf.xml
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/templates/vpe-templates-jsf.xml 2008-01-17 17:08:11 UTC (rev 5774)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/templates/vpe-templates-jsf.xml 2008-01-17 18:22:34 UTC (rev 5775)
@@ -997,7 +997,7 @@
<vpe:column title="{tagstring()}"/>
</vpe:template>
</vpe:if>
- <vpe:if test="parentname()='rich:dataTable'">
+ <vpe:if test="parentname()='rich:columnGroup'|parentname()='rich:dataTable'">
<vpe:template children="yes" modify="yes" namespaceIdentifier="org.jboss.tools.jsf.vpe.richfaces" class="org.jboss.tools.jsf.vpe.richfaces.template.RichFacesColumnTemplate">
</vpe:template>
</vpe:if>
16 years, 8 months
JBoss Tools SVN: r5774 - trunk/as/docs/reference/en/modules.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2008-01-17 12:08:11 -0500 (Thu, 17 Jan 2008)
New Revision: 5774
Modified:
trunk/as/docs/reference/en/modules/runtimes_servers.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-199 - adding a table and rearranging a bit some data
Modified: trunk/as/docs/reference/en/modules/runtimes_servers.xml
===================================================================
--- trunk/as/docs/reference/en/modules/runtimes_servers.xml 2008-01-17 17:07:00 UTC (rev 5773)
+++ trunk/as/docs/reference/en/modules/runtimes_servers.xml 2008-01-17 17:08:11 UTC (rev 5774)
@@ -26,7 +26,7 @@
with creating our <property>runtime</property> and <property>server</property> instances.</para>
<section>
- <title>WTP Runtimes</title>
+ <title>Runtimes</title>
<para>In JBoss Tools, the main purpose of Server Runtimes is to point to a server installation
somewhere on disk. In our case, this will be a JBoss installation, and it can than be used for
two primary purposes:</para>
@@ -55,10 +55,8 @@
</imageobject>
</mediaobject>
</figure>
- <para>From this preference page you can see declared runtimes and their types as well. In the
- image shown above, there are two declared runtimes, including a JBoss 4.2 instance.</para>
-
- <para>Here, it's possible to edit or remove existing runtimes as well as add a new
+ <para>From this preference page you can see all declared runtimes and their types as well.
+ Figure above shows two declared runtimes that include a JBoss 4.2 instance. Here, it's possible to edit or remove existing runtimes as well as add a new
one.</para>
<para>To create a JBoss runtime click <emphasis>
@@ -94,10 +92,79 @@
</mediaobject>
</figure>
- <para>All you need here is to name chosen runtime (or you can leave offered name), browse to
+ <para>The following table describe all the available options of the wizard.</para>
+ <table>
+ <title>Server Runtime Wizard Parameters</title>
+ <tgroup cols="2">
+ <colspec colnum="1" colwidth="1*"/>
+ <colspec colnum="2" colwidth="3*"/>
+
+ <thead>
+ <row>
+ <entry align="center">
+ <para>Name</para>
+ </entry>
+
+ <entry align="center">
+ <para>Description</para>
+ </entry>
+ </row>
+ </thead>
+
+ <tbody>
+ <row>
+ <entry>
+ <para>Name</para>
+ </entry>
+ <entry>
+ <para>The name of a new Runtime for chosen server. We suggest that you
+ don't leave a default value. It's better to give descriptive
+ names that will help to distinguish one runtime from another.</para>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para>Home directory</para>
+ </entry>
+ <entry>
+ <para>The path to a directory where the runtime is installed.</para>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para>jRE</para>
+ </entry>
+ <entry>
+ <para>The proper Java Runtime Environment. Because of the open-source nature of
+ JBoss, a user is likely to want to modify and repackage some of the
+ configuration-specific jboss jars and create their own configuration. Thus, ruthe
+ than forcing the user to copy his entire JBoss installation, the structure of the
+ wizard allows to create only a new configuration instead.</para>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para>Configuration</para>
+ </entry>
+ <entry>
+ <para>The lists of configurations that is updated as soon as you browse to a valid
+ runtime installation folder. After the runtime is created the configuration
+ becomes an unchanging property of that runtime.</para>
+ </entry>
+ </row>
+
+ </tbody>
+ </tgroup>
+ </table>
+
+
+ <!--para>All you need here is to name chosen runtime, browse to
its install directory and select a Java Runtime Environment. As you browse to a valid
installation folder, the list of configurations will update allowing you to select the
- configuration of your choice.</para>
+ configuration of your choice.</para-->
@@ -109,15 +176,10 @@
compile against a different configuration's jars, you will need to create a new runtime from
that configuration.</para>
-
- <!--para>The user is likely to want to modify some of the configuration-specific
- jboss jars. In this case it's possible to create your own new configuration.</para-->
-
-
- <para>Also, because of the open-source nature of JBoss, it is likely that a user may want to
+ <!--para>Also, because of the open-source nature of JBoss, it is likely that a user may want to
modify and repackage some of the configuration-specific jboss jars and create their own
configuration using those modified jars. Rather than forcing the user to copy his entire
- JBoss installation, this structure allows them to create only a new configuration instead.</para>
+ JBoss installation, this structure allows them to create only a new configuration instead.</para-->
<para>As a result of having each runtime represent a specific configuration rather than the
server installation as a whole, it is very likely you'll create several different runtimes
@@ -125,6 +187,7 @@
your servers, are given descriptive names that help you remember which is which. It will do
no good to try to remember if "JBoss-runtime 5" is the 4.0 install with ejb3? Or the 4.2
install's custom configuration you decided to create.</para>
+
<para>Press <emphasis>
<property>Finish</property>
</emphasis> to see your new runtime in the list.</para>
@@ -144,10 +207,9 @@
<title>Creating a New Server</title>
<para>There are many ways to get to the new server wizard. One way is to use the old standard <emphasis>
<property>File > New > Other... </property>
- </emphasis>wizard, and type in <emphasis>
+ </emphasis> and then <emphasis>
<property>Server</property>
- </emphasis>. This should show the screen below, which does not look that different from the
- initial screen when creating a new runtime. </para>
+ </emphasis>. This should show the wizard like below.</para>
<figure>
<title>Adding a JBoss Server</title>
<mediaobject>
@@ -156,18 +218,22 @@
</imageobject>
</mediaobject>
</figure>
- <para>Because the server object is what keeps track of things like command line arguments when
- starting or stopping, and runtimes keep track of the location of the installation, each
- server instance must be backed by an appropriate runtime. </para>
- <para>Because there may be many runtimes of each type declared, the wizard allows you to
+ <para>A server object is that keeps track of things like command line arguments when starting
+ or stopping, and runtimes keep track of the location of the installation. Thus, each server
+ instance must be backed by an appropriate runtime. </para>
+
+ <para>The combo box below the view lets you select which runtime to use from the list of
+ already declared. If there is no runtime that match your needs just press <emphasis>
+ <property>Installed Runtimes... </property>
+ </emphasis> to bring up the familiar <link linkend="InstNewRuntime">preference page</link>.
+ Here, it becomes possible to edit already existing runtime or add a new one with necessary
+ configuration.</para>
+
+ <!--para>Because there may be many runtimes of each type declared, the wizard allows you to
select which runtime you want your server to be backed by. The combo box below the view lets
you select which declared runtime to use. For example, if there were already multiple JBoss
- 4.2 runtimes declared, the combo box would list all of the 4.2 runtimes available. </para>
- <para>If none of the runtimes declared are one you want to use, for example if you declared a
- default and a minimal runtime before but now want your server to be backed by the ALL
- configuration, then you can click on the <emphasis>
- <property>Installed Runtimes... </property>
- </emphasis> button to bring up the preference page shown at the beginning of this chapter.</para>
+ 4.2 runtimes declared, the combo box would list all of the 4.2 runtimes available. </para-->
+
<figure>
<title>Installed Server Runtime Environments</title>
<mediaobject>
16 years, 8 months
JBoss Tools SVN: r5773 - trunk/as/docs/reference/en/modules.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2008-01-17 12:07:00 -0500 (Thu, 17 Jan 2008)
New Revision: 5773
Modified:
trunk/as/docs/reference/en/modules/perspective.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-199 - adding a table
Modified: trunk/as/docs/reference/en/modules/perspective.xml
===================================================================
--- trunk/as/docs/reference/en/modules/perspective.xml 2008-01-17 16:59:07 UTC (rev 5772)
+++ trunk/as/docs/reference/en/modules/perspective.xml 2008-01-17 17:07:00 UTC (rev 5773)
@@ -1,362 +1,563 @@
<?xml version="1.0" encoding="UTF-8"?>
<chapter id="perspective" xreflabel="perspective">
<?dbhtml filename="perspective.html"?>
- <chapterinfo>
- <keywordset>
- <keyword>JBoss Developer Studio</keyword>
- <keyword>Eclipse</keyword>
- <keyword>Deploy</keyword>
- <keyword>Deployment</keyword>
- <keyword>JBoss</keyword>
- </keywordset>
- </chapterinfo>
+ <chapterinfo>
+ <keywordset>
+ <keyword>JBoss Developer Studio</keyword>
+ <keyword>Eclipse</keyword>
+ <keyword>Deploy</keyword>
+ <keyword>Deployment</keyword>
+ <keyword>JBoss</keyword>
+ </keywordset>
+ </chapterinfo>
<title>JBoss AS Perspective</title>
-
- <para>This chapter tells how to manage installed JBoss Servers via <property>JBoss AS Perspective</property>.</para>
- <para>The <property>JBoss AS</property> Perspective is similar to the Java perspective, but it contains a few additional views. Two of the additional views are standard views, specifically the <property>Console </property> view and the <property>Properties</property> view.
- The other two views that are added are the <property>Project archives</property> view and the <property>JBoss Servers View</property>.</para>
-
+ <para>This chapter tells how to manage installed JBoss Servers via <property>JBoss AS
+ Perspective</property>.</para>
+
+ <para>The <property>JBoss AS</property> Perspective is similar to the Java perspective, but it
+ contains a few additional views. Two of the additional views are standard views,
+ specifically the <property>Console </property> view and the <property>Properties</property>
+ view. The other two views that are added are the <property>Project archives</property> view
+ and the <property>JBoss Servers View</property>.</para>
+
<section id="JBossServerView">
- <?dbhtml filename="JBossServerView.html"?>
+ <?dbhtml filename="JBossServerView.html"?>
+ <title>The JBoss Servers View</title>
+ <para>This chapter will focus on the the JBoss Server's View. The JBoss Servers View is
+ based on the WTP view, Servers View. The top half of the JBoss Servers View essentially
+ embeds the original Servers View directly into it, making slight changes to the context
+ menu. A second half was added to provide additional information about the server
+ selected in the top half. In the image provided, categories in the second half include
+ which modules are currently deployed.</para>
+
+ <figure>
<title>The JBoss Servers View</title>
- <para>This chapter will focus on the the JBoss Server's View. The JBoss Servers View is based on the WTP view, Servers View. The top half of the JBoss Servers View essentially embeds the original Servers View directly into it, making slight changes to the context menu.
- A second half was added to provide additional information about the server selected in the top half. In the image provided, categories in the second half include which modules are currently deployed.</para>
-
- <figure>
- <title>The JBoss Servers View</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/perspective/perspective_1.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
-
- <para>In order to access the view's preferences, you should access <emphasis><property>Window > Preferences > JBoss Tools > JBoss Servers > View</property></emphasis>.
- This preference page allows you to select which view extensions you want on or off, the order they appear
- in the view, as well as any other extension-specific preferences that may be available.</para>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/perspective/perspective_1.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+
+ <para>In order to access the view's preferences, you should access <emphasis>
+ <property>Window > Preferences > JBoss Tools > JBoss Servers
+ > View</property>
+ </emphasis>. This preference page allows you to select which view extensions you want on
+ or off, the order they appear in the view, as well as any other extension-specific
+ preferences that may be available.</para>
+ <figure>
+ <title>View Preferences</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/perspective/perspective_2.png" scale="75"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>Extender is meant to provide additional functionality relevant to the server selected
+ in the top half of the view. If a standard server element is selected from above, some
+ of the extensions may still provide the additional information. Others may not. So,
+ let's look at the currently available extensions to the JBoss Server's View.</para>
+ <figure>
+ <title>View Extensions</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/perspective/perspective_3.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>The <property>Modules</property> section shows what modules are currently deployed to
+ the server, and allows you to remove them from the server, or force a full republish
+ upon them. It only shows which modules have been deployed through Eclipse, not any and
+ all modules that happen to be in the deploy directory.</para>
+ <figure>
+ <title>Modules Action</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/perspective/perspective_4.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>The <property>Event Log</property> will show relevant information to your server's
+ startup, shutdown, and publish processes. This allows you to keep an eye on what's going
+ on (such as automatic incremental deployment if you have it enabled). The only action
+ available is to clear the event log. However if the properties view is opened, you can
+ receive further information on each event log item (when available).</para>
+ <figure>
+ <title>Event Log Actions</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/perspective/perspective_5.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <figure>
+ <title>Stopping the Server</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/perspective/perspective_6.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>The <property>XML Configuration</property> category allows you to quickly browse to
+ descriptor files in your server's deploy directory and check or change the values. Its
+ use requires the Properties view. Basically, XML Configuration are XML XPaths where a
+ xpath is a path used to access some specific part of an xml document.</para>
+ <figure>
+ <title>XML Configuration and Properties View</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/perspective/perspective_7.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>The view itself contains only a list of categories. By right-clicking on <emphasis>
+ <property>XML Configuration</property>
+ </emphasis>, you can create a new category. Ports are provided by default and is filled
+ with many of the most commonly used ports in the JBoss Server.</para>
+ <figure>
+ <title>Adding New Category</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/perspective/perspective_8.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>By right-clicking on <emphasis>
+ <property>Ports</property>
+ </emphasis>, you can create a new XPaths.</para>
+ <figure>
+ <title>Adding New XPath</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/perspective/perspective_9.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>After that, the dialog shown below will appear.</para>
+ <figure>
+ <title>Adding New XPath</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/perspective/perspective_10.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>As you type, the fields autocomplete to help you locate exactly what xpath you're
+ looking for. The goal here is to get an end result where the xpath matches up with an
+ easily changed property. With that in mind, if the property you want to change is the
+ text of an element, then the final field Attribute Name should be left blank and your
+ xpath should end with port. If, on the other hand, your desired field is the port
+ attribute of <fieldName port="35">, then your xpath will end with
+ fieldName and your Attribute Name will be "port". When finished, you can click <emphasis>
+ <property>Preview</property>
+ </emphasis> to see how many matches you have for that particular xpath, as shown below.</para>
+ <figure>
+ <title>XPath Preview</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/perspective/perspective_11.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+ <para>As part of the JBoss Server view there is a <emphasis>
+ <property>JMX Console</property>
+ </emphasis> section which allows you to browse and use the JMX exposed beans on the server.</para>
<figure>
- <title>View Preferences</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/perspective/perspective_2.png" scale="75"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>Extender is meant to provide additional functionality relevant to the server selected in the top half of the view. If a standard server element is selected from above, some
- of the extensions may still provide the additional information. Others may not.
-
- So, let's look at the currently available extensions to the JBoss Server's View.</para>
- <figure>
- <title>View Extensions</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/perspective/perspective_3.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>The <property>Modules</property> section shows what modules are currently deployed to the server, and allows you to remove them
- from the server, or force a full republish upon them. It only shows which modules have been deployed through Eclipse,
- not any and all modules that happen to be in the deploy directory.</para>
- <figure>
- <title>Modules Action</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/perspective/perspective_4.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>The <property>Event Log</property> will show relevant information to your server's startup, shutdown, and publish processes. This allows
- you to keep an eye on what's going on (such as automatic incremental deployment if you have it enabled).
- The only action available is to clear the event log. However if the properties view is opened, you can receive further
- information on each event log item (when available).</para>
- <figure>
- <title>Event Log Actions</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/perspective/perspective_5.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <figure>
- <title>Stopping the Server</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/perspective/perspective_6.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>The <property>XML Configuration</property> category allows you to quickly browse to descriptor files in your server's deploy directory and
- check or change the values. Its use requires the Properties view. Basically, XML Configuration are XML XPaths where a xpath is a path used to access
- some specific part of an xml document.</para>
- <figure>
- <title>XML Configuration and Properties View</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/perspective/perspective_7.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>The view itself contains only a list of categories. By right-clicking on <emphasis><property>XML Configuration</property></emphasis>, you can create a new category.
- Ports are provided by default and is filled with many of the most commonly used ports in the JBoss Server.</para>
- <figure>
- <title>Adding New Category</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/perspective/perspective_8.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>By right-clicking on <emphasis><property>Ports</property></emphasis>, you can create a new XPaths.</para>
- <figure>
- <title>Adding New XPath</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/perspective/perspective_9.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>After that, the dialog shown below will appear.</para>
- <figure>
- <title>Adding New XPath</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/perspective/perspective_10.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>As you type, the fields autocomplete to help you locate exactly what xpath you're looking for. The goal here is to
- get an end result where the xpath matches up with an easily changed property. With that in mind, if the property
- you want to change is the text of an element, then the final field Attribute Name
- should be left blank and your xpath should end with port.
- If, on the other hand, your desired field is the port attribute of <fieldName port="35">, then your xpath will end
- with fieldName and your Attribute Name will be "port".
- When finished, you can click <emphasis><property>Preview</property></emphasis> to see how many matches you have for that particular xpath, as shown below.</para>
- <figure>
- <title>XPath Preview</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/perspective/perspective_11.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
- <para>As part of the JBoss Server view there is a <emphasis><property>JMX Console</property></emphasis> section which allows you to browse and use the JMX exposed beans on the server.</para>
- <figure>
<title>JMX Console</title>
- <mediaobject>
+ <mediaobject>
<imageobject>
<imagedata fileref="images/perspective/perspective_17.png" scale="75"/>
</imageobject>
</mediaobject>
</figure>
-
- <para>Also you can see the server's publish status in the JBoss Servers view that allows you to see if changes are awaiting (Republish), are being updated (Publishing...) or are in-sync (Synchronized).</para>
+
+ <para>Also you can see the server's publish status in the JBoss Servers view that allows you to
+ see if changes are awaiting (Republish), are being updated (Publishing...) or are in-sync
+ (Synchronized).</para>
<figure>
<title>Server's Publish Status</title>
- <mediaobject>
+ <mediaobject>
<imageobject>
<imagedata fileref="images/perspective/perspective_18.png"/>
</imageobject>
</mediaobject>
</figure>
- <para>The Server section of the view lists all declared servers and their current states, that is, whether they are started or stopped. By Double-clicking on each server, an editor window will appear allowing you to edit parts of that server.
- The editor will also link you to modify that server's launch configuration, set command line arguments, and other things that are relevant to launching the server.</para>
- <para>A username/password is available in the UI when configuring the server. If you get an SecurityException when trying to launch the server it is most likely because your server is protected and hence you need to fill the username/password fields with appropriate values.</para>
+ <para>The Server section of the view lists all declared servers and their current states, that
+ is, whether they are started or stopped. By Double-clicking on each server, an editor window
+ will appear allowing you to edit parts of that server. The editor will also link you to
+ modify that server's launch configuration, set command line arguments, and other things that
+ are relevant to launching the server.</para>
+ <para>A username/password is available in the UI when configuring the server. If you get an
+ SecurityException when trying to launch the server it is most likely because your server is
+ protected and hence you need to fill the username/password fields with appropriate values.</para>
<figure>
- <title></title>
- <mediaobject>
+ <title/>
+ <mediaobject>
<imageobject>
<imagedata fileref="images/perspective/perspective_20.png"/>
</imageobject>
</mediaobject>
</figure>
- <para>The view's toolbar shown below provides quick access to starting a server (in debug mode, run mode, or profile mode), restarting the server, stopping the server, or publishing to the server.</para>
+ <para>The view's toolbar shown below provides quick access to starting a server (in debug mode,
+ run mode, or profile mode), restarting the server, stopping the server, or publishing to the
+ server.</para>
<figure>
<title>The JBoss Server View Toolbar</title>
- <mediaobject>
+ <mediaobject>
<imageobject>
<imagedata fileref="images/perspective/perspective_19.png"/>
</imageobject>
</mediaobject>
</figure>
- <para>In order to debug your applications or EJB's that are deployed to the server, you must start the server in debug mode.
- By starting the server in debug mode, eclipse will allow you to set breakpoints on code in your workspace and step through the code.</para>
- <para>The publish icon, on the extreme right, will republish any modules where it has determined the workspace is out of sync with the server.
- It will attempt to do an incremental publish if it turns out that the module in question is capable of doing one.</para>
- <para>Because the JBoss servers have few properties to edit in the editor, a shortcut to the launch configuration has been provided in the context menu when right-clicking on a server.
- This menu also provides the functionality of starting the server in run or debug mode, stopping it, or synching the publish information between the server and workspace.</para>
+ <para>In order to debug your applications or EJB's that are deployed to the server, you must
+ start the server in debug mode. By starting the server in debug mode, eclipse will allow you
+ to set breakpoints on code in your workspace and step through the code.</para>
+ <para>The publish icon, on the extreme right, will republish any modules where it has determined
+ the workspace is out of sync with the server. It will attempt to do an incremental publish
+ if it turns out that the module in question is capable of doing one.</para>
+ <para>Because the JBoss servers have few properties to edit in the editor, a shortcut to the
+ launch configuration has been provided in the context menu when right-clicking on a
+ server.</para>
<figure>
<title>Launch Configuration</title>
- <mediaobject>
+ <mediaobject>
<imageobject>
<imagedata fileref="images/perspective/perspective_21.png"/>
</imageobject>
</mediaobject>
</figure>
- <para>Near the bottom you'll also see the Add and Remove Projects... item, which allows you to publish a new project to the server (if its type is supported).
- The last menu item is the one labeled Twiddle Server.</para>
- <para>The Twiddle Server item will open a dialog and allow you to run Twiddle commands against it.
- Twiddle is a JMX library that comes with JBoss, and you can use it to access any variables that exposed via the JBoss JMX interfaces.</para>
+
+ <para>The following table describes all those additional
+ properties.</para>
+ <table>
+ <title>Server Properties through the Context Menu</title>
+ <tgroup cols="2">
+ <colspec colnum="1" colwidth="1*"/>
+ <colspec colnum="2" colwidth="3*"/>
+
+ <thead>
+ <row>
+ <entry align="center">
+ <para>Name</para>
+ </entry>
+
+ <entry align="center">
+ <para>Description</para>
+ </entry>
+ </row>
+ </thead>
+
+ <tbody>
+ <row>
+ <entry>
+ <para>New Server</para>
+ </entry>
+ <entry>
+ <para>The option allows to define a new server.</para>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para>Delete</para>
+ </entry>
+ <entry>
+ <para>Standard option that allows to delete any existing server.</para>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para>Start</para>
+ </entry>
+ <entry>
+ <para>The action for stating a server in a run mode.</para>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para>Debug</para>
+ </entry>
+ <entry>
+ <para>The action for stating a server in a debug mode.</para>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para>Stop</para>
+ </entry>
+ <entry>
+ <para>The action for stopping a declared server.</para>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para>Publish</para>
+ </entry>
+ <entry>
+ <para>The action for synching the publish information
+ between the server and workspace.</para>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para>Clean</para>
+ </entry>
+ <entry>
+ <para>The option for complete redeploying.</para>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para>Twiddle Server</para>
+ </entry>
+ <entry>
+ <para>The option provides a dialog for running Twiddle commands against the Twiddle Server.</para>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para>Edit Launch Configuration</para>
+ </entry>
+ <entry>
+ <para>The option that provides an editor for editing launch configuration properties of the proper server.</para>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para>Add and Remove Projects</para>
+ </entry>
+ <entry>
+ <para>The option allows to publish a new project to the server (if its type is supported).</para>
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ <para>Mentioned above Twiddle is a JMX library that comes with JBoss, and you can use it to access any
+ variables that exposed via the JBoss JMX interfaces.</para>
+
<section id="Project_archivesView">
- <title>Project archives View</title>
- <para>Every application, whether plain old Java, J2EE, or some other language altogether, needs to be packaged in some way. In Java-related projects,
- many people use ANT. JBoss Tools comes with our own archives tool with a bit easier and less-verbose XML and a handy user interface.</para>
- <para>The Project Archives plugin consists primarily of a view to set up each packaging configuration. Each project can enable or disable its builder, or depend on the global setting.</para>
- <para>The packaging configuration for each project is stored in that project's root folder, and is in a file named <property>.packages</property>, which has a fairly simple XML
- structure. Modifying the file by hand is neither required nor recommended, and using the UI is the official way of modifying your packaging structure.</para>
- <para>Aside from the builder, the other preferences for the plugin are mostly cosmetic, allowing you to show full or truncated paths, show the project at the
- root, etc. None of these has any effect on the functionality of the packaging plugin.</para>
-
- <section id="Creating an archive">
- <title>Creating an Archive</title>
- <para>When creating a new archive, you have some different options at your disposal. If the project has no <property>.packages</property> file, your
- options will be presented to you all at once for you to choose from (as above). Otherwise you will right-click inside the view and select <emphasis><property>New Archive</property></emphasis>
- to see your archive type options.</para>
- <figure>
- <title>Create an Archive</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/perspective/perspective_12.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>JAR is the standard archive type, and does very little configuration, leaving most of the work up to you. You can customize the name, add folders,
- filesets, and inner jars to it.</para>
- <para>The other types, for the most part, simply start off with a default setting, usually the jar with some specific children based on an expected
- structure of the project. For example, if the project is a dynamic web project, and you create a WAR archive, the archive will be created with a few filesets relevant to the known structure of the project.</para>
-
- <para>Because the first page of all new archive wizards are the same, and it is also the only page in the New Jar Wizard, that page is shown below.</para>
- <figure>
- <title>New JAR Wizard</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/perspective/perspective_13.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>The page is pretty simple. All it asks is for the name of your new archive, a destination, which we'll get to in a moment, and whether the archive
- is exploded or packaged up.</para>
- <para>The destination of an archive can be anywhere on the filesystem, anywhere in the workspace, inside some other archive, or inside a folder
- declared inside an archive. You can browse to workspace or filesystem destinations by clicking on their respective buttons. To select a destination
- inside some other archive, you'll need to press the <property>Workspace...</property> button. At the bottom of the list, you'll see archives that have been declared in the
- workspace.</para>
- <section id="CreatingaFolder">
- <title>Creating a Folder</title>
- <para>Creating a folder is much easier. You simply right-click on an archive or folder you want your new folder to be a child under. The only piece of
- required information is naming the file.</para>
- </section>
- <section id="CreatingaFileSet">
- <title>Creating a FileSet</title>
- <para>To create a new fileset, you click on an available target location such as an archive, a nested archive, or a folder within an archive, and select
- New Fileset. The New Fileset Wizard requires a destination (where the files will go), and a root directory (or where the files are coming from).
- The source can be anywhere in the workspace or from the filesystem at large.</para>
- <para>Below that, the fileset requires only an includes pattern and an excludes pattern. As you type in either of these fields, the preview viewer should
- update itself with which files are matched.</para>
- </section>
- </section>
- <section id="View Actions">
- <title>View Actions</title>
- <figure>
- <title>Context Menu on the Item</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/perspective/perspective_14.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>The context menu on the items in the view is extendable, but there are several that come standard.</para>
-
- <table>
- <title>Context Menu on the Item</title>
- <tgroup cols="2">
- <colspec colnum="1" colwidth="1*"/>
- <colspec colnum="2" colwidth="3*"/>
-
-
- <thead>
- <row>
- <entry align="center">
- <para>Name</para>
- </entry>
-
- <entry align="center">
- <para>Description</para>
- </entry>
- </row>
- </thead>
-
- <tbody>
-
- <row>
- <entry><para>Build Archive (Full)</para></entry>
-
- <entry><para>The action enabled only on top-level archives, which initiates a full build on that archive</para></entry>
- </row>
-
- <row>
- <entry><para>Edit Archive</para></entry>
-
- <entry><para>Standard action that brings up the wizard associated with that particular node type and allows the details to be changed</para></entry>
- </row>
-
- <row>
- <entry><para>Delete Archive</para></entry>
-
- <entry><para>Deleting node is standard action with deletion not needing an explanation</para></entry>
- </row>
-
- <row>
- <entry><para>Publish To Server</para></entry>
-
- <entry><para>The action means the ability to publish to a declared server</para></entry>
- </row>
-
- </tbody>
- </tgroup>
- </table>
-
-
-
-
- </section>
- <section id="PublishToServer">
- <title>Publish to Server</title>
- <figure>
- <title>Context Menu on the Item</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/perspective/perspective_15.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>The dialog above appears after selecting <property>Publish To Server</property>. To simply publish once, you just select the server(s) that you want, and finish.
- If you want the Publish to Server action on that particular Archive to always publish to that set of servers, then check the appropriate checkbox.
- And finally, to enable automatic publishing upon build events, check the last checkbox.</para>
- <para>The automatic publishing feature is nice if, for example, your package's destination (where it is built) is a temporary folder and you want the
- archive published to several servers. If you only really want your archive published to one server, it might be easier to have the archive's destination
- folder be the deploy folder of the server.</para>
- </section>
+ <title>Project archives View</title>
+ <para>Every application, whether plain old Java, J2EE, or some other language altogether,
+ needs to be packaged in some way. In Java-related projects, many people use ANT. JBoss
+ Tools comes with our own archives tool with a bit easier and less-verbose XML and a
+ handy user interface.</para>
+ <para>The Project Archives plugin consists primarily of a view to set up each packaging
+ configuration. Each project can enable or disable its builder, or depend on the global
+ setting.</para>
+ <para>The packaging configuration for each project is stored in that project's root folder,
+ and is in a file named <property>.packages</property>, which has a fairly simple XML
+ structure. Modifying the file by hand is neither required nor recommended, and using the
+ UI is the official way of modifying your packaging structure.</para>
+ <para>Aside from the builder, the other preferences for the plugin are mostly cosmetic,
+ allowing you to show full or truncated paths, show the project at the root, etc. None of
+ these has any effect on the functionality of the packaging plugin.</para>
- </section>
-
+ <section id="Creating an archive">
+ <title>Creating an Archive</title>
+ <para>When creating a new archive, you have some different options at your disposal. If
+ the project has no <property>.packages</property> file, your options will be
+ presented to you all at once for you to choose from (as above). Otherwise you will
+ right-click inside the view and select <emphasis>
+ <property>New Archive</property>
+ </emphasis> to see your archive type options.</para>
+ <figure>
+ <title>Create an Archive</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/perspective/perspective_12.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>JAR is the standard archive type, and does very little configuration, leaving most
+ of the work up to you. You can customize the name, add folders, filesets, and inner
+ jars to it.</para>
+ <para>The other types, for the most part, simply start off with a default setting,
+ usually the jar with some specific children based on an expected structure of the
+ project. For example, if the project is a dynamic web project, and you create a WAR
+ archive, the archive will be created with a few filesets relevant to the known
+ structure of the project.</para>
+
+ <para>Because the first page of all new archive wizards are the same, and it is also the
+ only page in the New Jar Wizard, that page is shown below.</para>
+ <figure>
+ <title>New JAR Wizard</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/perspective/perspective_13.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>The page is pretty simple. All it asks is for the name of your new archive, a
+ destination, which we'll get to in a moment, and whether the archive is exploded or
+ packaged up.</para>
+ <para>The destination of an archive can be anywhere on the filesystem, anywhere in the
+ workspace, inside some other archive, or inside a folder declared inside an archive.
+ You can browse to workspace or filesystem destinations by clicking on their
+ respective buttons. To select a destination inside some other archive, you'll need
+ to press the <property>Workspace...</property> button. At the bottom of the list,
+ you'll see archives that have been declared in the workspace.</para>
+ <section id="CreatingaFolder">
+ <title>Creating a Folder</title>
+ <para>Creating a folder is much easier. You simply right-click on an archive or
+ folder you want your new folder to be a child under. The only piece of required
+ information is naming the file.</para>
+ </section>
+ <section id="CreatingaFileSet">
+ <title>Creating a FileSet</title>
+ <para>To create a new fileset, you click on an available target location such as an
+ archive, a nested archive, or a folder within an archive, and select New
+ Fileset. The New Fileset Wizard requires a destination (where the files will
+ go), and a root directory (or where the files are coming from). The source can
+ be anywhere in the workspace or from the filesystem at large.</para>
+ <para>Below that, the fileset requires only an includes pattern and an excludes
+ pattern. As you type in either of these fields, the preview viewer should update
+ itself with which files are matched.</para>
+ </section>
+ </section>
+ <section id="View Actions">
+ <title>View Actions</title>
+ <figure>
+ <title>Context Menu on the Item</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/perspective/perspective_14.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>The context menu on the items in the view is extendable, but there are several
+ that come standard.</para>
+
+ <table>
+ <title>Context Menu on the Item</title>
+ <tgroup cols="2">
+ <colspec colnum="1" colwidth="1*"/>
+ <colspec colnum="2" colwidth="3*"/>
+
+
+ <thead>
+ <row>
+ <entry align="center">
+ <para>Name</para>
+ </entry>
+
+ <entry align="center">
+ <para>Description</para>
+ </entry>
+ </row>
+ </thead>
+
+ <tbody>
+
+ <row>
+ <entry>
+ <para>Build Archive (Full)</para>
+ </entry>
+
+ <entry>
+ <para>The action enabled only on top-level archives, which initiates
+ a full build on that archive</para>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para>Edit Archive</para>
+ </entry>
+
+ <entry>
+ <para>Standard action that brings up the wizard associated with that
+ particular node type and allows the details to be changed</para>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para>Delete Archive</para>
+ </entry>
+
+ <entry>
+ <para>Deleting node is standard action with deletion not needing an
+ explanation</para>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para>Publish To Server</para>
+ </entry>
+
+ <entry>
+ <para>The action means the ability to publish to a declared
+ server</para>
+ </entry>
+ </row>
+
+ </tbody>
+ </tgroup>
+ </table>
+
+
+
+
+ </section>
+ <section id="PublishToServer">
+ <title>Publish to Server</title>
+ <figure>
+ <title>Context Menu on the Item</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/perspective/perspective_15.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>The dialog above appears after selecting <property>Publish To Server</property>.
+ To simply publish once, you just select the server(s) that you want, and finish. If
+ you want the Publish to Server action on that particular Archive to always publish
+ to that set of servers, then check the appropriate checkbox. And finally, to enable
+ automatic publishing upon build events, check the last checkbox.</para>
+ <para>The automatic publishing feature is nice if, for example, your package's
+ destination (where it is built) is a temporary folder and you want the archive
+ published to several servers. If you only really want your archive published to one
+ server, it might be easier to have the archive's destination folder be the deploy
+ folder of the server.</para>
+ </section>
+
+ </section>
+
<section id="Deploy to Server">
<?dbhtml filename="DeployToServer.html"?>
<title>Deploy to Server</title>
- <para>In the context menu of files there is a <property>Deploy To Server</property> option that allows a single file deployment. To deploy these non-WTP files/projects right click on the file (-ds.xml, .ear, .jar etc.) and select <emphasis><property>Deploy To server</property></emphasis> and it will be automatically deployed.</para>
+ <para>In the context menu of files there is a <property>Deploy To Server</property> option
+ that allows a single file deployment. To deploy these non-WTP files/projects right click
+ on the file (-ds.xml, .ear, .jar etc.) and select <emphasis>
+ <property>Deploy To server</property>
+ </emphasis> and it will be automatically deployed.</para>
<figure>
<title>Deploy to Sever</title>
- <mediaobject>
+ <mediaobject>
<imageobject>
<imagedata fileref="images/perspective/perspective_16.png"/>
</imageobject>
</mediaobject>
</figure>
- <para>The deployed files are listed side-by-side with other modules that are deployed to the server.</para>
+ <para>The deployed files are listed side-by-side with other modules that are deployed to the
+ server.</para>
-</section>
+ </section>
</chapter>
16 years, 8 months
JBoss Tools SVN: r5772 - trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor.
by jbosstools-commits@lists.jboss.org
Author: mareshkau
Date: 2008-01-17 11:59:07 -0500 (Thu, 17 Jan 2008)
New Revision: 5772
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java
Log:
code adjustment
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java 2008-01-17 16:57:05 UTC (rev 5771)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java 2008-01-17 16:59:07 UTC (rev 5772)
@@ -27,8 +27,6 @@
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.Path;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.graphics.Cursor;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.graphics.Rectangle;
import org.eclipse.ui.IEditorInput;
@@ -65,12 +63,10 @@
import org.jboss.tools.vpe.editor.util.HTML;
import org.jboss.tools.vpe.editor.util.TextUtil;
import org.jboss.tools.vpe.editor.util.VisualDomUtil;
-import org.jboss.tools.vpe.editor.util.VpeDebugUtil;
import org.jboss.tools.vpe.editor.util.VpeStyleUtil;
import org.jboss.tools.vpe.xulrunner.editor.XulRunnerEditor;
import org.jboss.tools.vpe.xulrunner.editor.XulRunnerVpeUtils;
import org.mozilla.interfaces.nsIDOMAttr;
-import org.mozilla.interfaces.nsIDOMChromeWindow;
import org.mozilla.interfaces.nsIDOMDocument;
import org.mozilla.interfaces.nsIDOMElement;
import org.mozilla.interfaces.nsIDOMHTMLInputElement;
@@ -371,12 +367,7 @@
VpeCreationData creationData = null;
//FIX FOR JBIDE-1568, added by Max Areshkau
try {
- if ( template.isHaveVisualPreview() ) {
creationData = template.create(getPageContext(), sourceNode, getVisualDocument());
- } else {
- nsIDOMElement tempHTMLElement = getVisualDocument().createElement(HTML.TAG_DIV);
- creationData = new VpeCreationData(tempHTMLElement);
- }
}catch (XPCOMException ex) {
VpePlugin.getPluginLog().logError(ex);
VpeTemplate defTemplate = templateManager.getDefTemplate();
@@ -863,7 +854,7 @@
if (visualText != null) {
String visualValue = TextUtil.visualText(sourceText.getNodeValue());
visualText.setNodeValue(visualValue);
- } else {
+ }else {
VpeNodeMapping nodeMapping = domMapping
.getNodeMapping(sourceParent);
if (nodeMapping != null
16 years, 8 months
JBoss Tools SVN: r5771 - in trunk/jsf/docs/userguide/en: modules and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: afedosik
Date: 2008-01-17 11:57:05 -0500 (Thu, 17 Jan 2008)
New Revision: 5771
Removed:
trunk/jsf/docs/userguide/en/modules/features_list.xml
trunk/jsf/docs/userguide/en/modules/jboss_tools.xml
Modified:
trunk/jsf/docs/userguide/en/master.xml
trunk/jsf/docs/userguide/en/modules/Visual_Web_Tools.xml
trunk/jsf/docs/userguide/en/modules/jsf_support.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-162 Guide structure and JSF support chapter updated according Sveta remarks
Modified: trunk/jsf/docs/userguide/en/master.xml
===================================================================
--- trunk/jsf/docs/userguide/en/master.xml 2008-01-17 16:05:19 UTC (rev 5770)
+++ trunk/jsf/docs/userguide/en/master.xml 2008-01-17 16:57:05 UTC (rev 5771)
@@ -4,7 +4,6 @@
[
<!ENTITY Visual_Web_Tools SYSTEM "modules/Visual_Web_Tools.xml">
-<!ENTITY features_list SYSTEM "modules/features_list.xml">
<!ENTITY jsf_support SYSTEM "modules/jsf_support.xml">
<!ENTITY struts_support SYSTEM "modules/struts_support.xml">
<!ENTITY editors SYSTEM "modules/editors.xml">
@@ -34,10 +33,8 @@
<toc/>
- &jsf_support;
&Visual_Web_Tools;
- &features_list;
-
+ &jsf_support;
&struts_support;
&editors;
&palette;
Modified: trunk/jsf/docs/userguide/en/modules/Visual_Web_Tools.xml
===================================================================
--- trunk/jsf/docs/userguide/en/modules/Visual_Web_Tools.xml 2008-01-17 16:05:19 UTC (rev 5770)
+++ trunk/jsf/docs/userguide/en/modules/Visual_Web_Tools.xml 2008-01-17 16:57:05 UTC (rev 5771)
@@ -11,8 +11,113 @@
</chapterinfo>
<title>Visual Web Tools</title>
- <para>In <property>JBoss Tools</property>
- there is an extensive collection of specialized wizards,
- editors and views that can be used in various scenarios while developing Web applications. The following
- chapters walksthrough these features.</para>
+
+ <para>This guide covers the usage of Visual Web Tools in <property>JBoss Developer Studio</property> and <property>JBoss Tools</property>. The difference
+ between these products is that JBoss Tools are just a set of Eclipse plugins and JBoss Developer Studio adds:</para>
+ <itemizedlist>
+ <listitem><para>an installer</para></listitem>
+ <listitem><para>Eclipse and Web Tools preconfigured</para></listitem>
+ <listitem><para>JBoss EAP with JBoss AS and Seam preconfigured</para></listitem>
+ <listitem><para>3rd party plugins bundled and configured</para></listitem>
+ <listitem><para>access to RHEL and Red Hat Network</para></listitem>
+ <listitem><para>access to the JBoss/Red Hat supported software</para></listitem>
+ </itemizedlist>
+
+ <para>You can find more information about JBoss Developer Studio <ulink url="http://www.jboss.com/products/devstudio">here</ulink>.</para>
+
+ <para>In JBoss Tools there is an extensive collection of specialized wizards, editors and views that can be used in various scenarios while developing Web
+ applications. The following chapters walk through these features.</para>
+
+ <section id="key_features">
+ <title>Key Features of Visual Web Tools</title>
+ <para>Here is the table of main features of Visual Web Tools:</para>
+ <table>
+ <title>Key Functionality for Visual Web Tools</title>
+ <tgroup cols="3">
+ <thead>
+ <row>
+ <entry>Feature</entry>
+ <entry>Benefit</entry>
+ <entry>Chapter</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>Visual Page Editor</entry>
+ <entry>Powerful and customizable visual page editor. Possibility to develop an application using any web technology: jsf, seam, struts, jsp, html and others. Developing using four tabs: visual/source, visual, source and preview.Fast and easy switching between these tabs. Split screen design of visual and source views. Full and instant synchronization between source and visual views. Integration with properties and outline views. Graphical toolbar to add inline styling to any tag.</entry>
+ <entry><link linkend="visual_page">visual page editor</link></entry>
+ </row>
+ <row>
+ <entry>JBoss Tools Palette</entry>
+ <entry>Organizing various tags by groups, inserting tags into a jsp or xhtml page with one click, adding custom or 3rd party tag libraries into the palette, easy controling the number of tag groups shown on the palette.</entry>
+ <entry><link linkend="palette">jboss tools palette</link></entry>
+ </row>
+ <row>
+ <entry>Web Projects View</entry>
+ <entry>Visualizing and displaying projects by function. Easy selecting of different kinds of items and dropping them into jsp pages. Using context menus to develop the application. Using icon shortcuts to create and import JSF and Struts projects. Expanding and inspecting tag library files. Selecting custom and third-party tag libraries to drag and drop onto the JBoss Tools Palette.</entry>
+ <entry><link linkend="web_projects">web projects view</link></entry>
+ </row>
+ <row>
+ <entry>JSF and Facelets support</entry>
+ <entry>Step-by-step wizards for creating new JSF and Facelets projects with a number of predefined templates, importing existing ones and adding JSF capabilities to non-jsf web projects.</entry>
+ <entry><link linkend="SupportForJSFEnvironmentsJSF_RIMyFacesFaceletsShaleOrAnyCustom442">jsf support</link></entry>
+ </row>
+
+ <row>
+ <entry>Flexible and customizable project template management</entry>
+ <entry>Jump-start development with out-of-the-box templates or easily customized templates
+ for re-use.</entry>
+ <entry><link linkend="WorkingWithProjects7844">working with projects</link></entry>
+ </row>
+ <row>
+ <entry>Support for Managed Beans</entry>
+ <entry>Adding new managed beans, generating code for attributes, properties and getter/setter methods.</entry>
+ <entry><link linkend="ManagedBeans96453">managed beans</link></entry>
+ </row>
+ <row>
+ <entry>OpenOn</entry>
+ <entry>Easy navigation between views and other parts of your projects.</entry>
+ <entry><link linkend="FaceletsSupport865">facelets support</link></entry>
+ </row>
+ <row>
+ <entry>Content Assist</entry>
+ <entry>Code completion proposals while working in java, xml, jsp, xhtml, xhtml, seam project and jsf configuration files. Content assist based on project data (dynamic code assist); with graphical editor. Code completion for values from property files, beans attributes and methods, navigation rule outcomes and jsf variables.</entry>
+ <entry><link linkend="ContentAssist976">content assist</link></entry>
+ </row>
+ <row>
+ <entry>Support for Custom Converters and Validators</entry>
+ <entry>Fast creating of custom converters and validators with tree view of faces-config.xml file.</entry>
+ <entry><link linkend="CreateAndRegisterACustomConverter94230">converters and validators</link></entry>
+ </row>
+ <row>
+ <entry>Verification and Validation</entry>
+ <entry>All occuring errors will be immediately reported by verification feature, no matter in what view you are working. Constant validation and errors checking allows to catch many of the errors during development process that significantly reduces development time.</entry>
+ <entry><link linkend="verif_valid">verification and validation</link></entry>
+ </row>
+ <row>
+ <entry>Drag-and-Drop</entry>
+ <entry>Possibility of inserting any tag onto the page you are editing by just drag-and-droping it from the palette to this page. Adding any properties, managed bean attributes, navigation rules, tag library file declarations, jsp files from web projects view by clicking them and draging to source code.</entry>
+ <entry><link linkend="visual_page">visual page editor</link> <link linkend="DragAndDrop">drag-and-drop</link></entry>
+ </row>
+ <row>
+ <entry>Struts Support</entry>
+ <entry>Step-by-step wizards for creating a new struts project with a number of predefined templates, importing existing ones and adding struts capabilities to non-struts web projects.</entry>
+ <entry><link linkend="struts1">struts support</link></entry>
+ </row>
+
+ <row>
+ <entry>Support for JSF and JSF Configuration Files</entry>
+ <entry>Working on files using three modes: diagram, tree and source. Synchronization between the modes and full control over the code. Easy moving around the diagram using the Diagram Navigator. Working with struts projects that have multiple modules. Possibility to use Struts configuration file debugger allowing to set break points on struts diagram and then launch the server in debug mode.</entry>
+ <entry><link linkend="GraphicalEditorAndViewingForJSFConfigurationFiles76331">graphical editor for jsf</link> <link linkend="GraphicalEditorForStrutsConfigurationFiles564">graphical editor for struts</link> </entry>
+ </row>
+ <row>
+ <entry>Rich Faces Support</entry>
+ <entry>Tight integration between JBDS and RichFaces frameworks. Easy managing RichFaces components in any web application.</entry>
+ <entry><link linkend="RichFacesSupport">rich faces support</link></entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ </section>
+
</chapter>
Deleted: trunk/jsf/docs/userguide/en/modules/features_list.xml
===================================================================
--- trunk/jsf/docs/userguide/en/modules/features_list.xml 2008-01-17 16:05:19 UTC (rev 5770)
+++ trunk/jsf/docs/userguide/en/modules/features_list.xml 2008-01-17 16:57:05 UTC (rev 5771)
@@ -1,94 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<chapter id="roadmap" xreflabel="roadmap">
- <?dbhtml filename="roadmap.html"?>
- <title>Key Features of Visual Web Tools</title>
- <para>Here is the table of main features of Visual Web Tools:</para>
- <table>
- <title>Key Functionality for Visual Web Tools</title>
- <tgroup cols="3">
- <thead>
- <row>
- <entry>Feature</entry>
- <entry>Benefit</entry>
- <entry>Chapter</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>Visual Page Editor</entry>
- <entry>Powerful and customizable visual page editor. Possibility to develop an application using any web technology: jsf, seam, struts, jsp, html and others. Developing using four tabs: visual/source, visual, source and preview.Fast and easy switching between these tabs. Split screen design of visual and source views. Full and instant synchronization between source and visual views. Integration with properties and outline views. Graphical toolbar to add inline styling to any tag.</entry>
- <entry><link linkend="visual_page">visual page editor</link></entry>
- </row>
- <row>
- <entry>JBoss Tools Palette</entry>
- <entry>Organizing various tags by groups, inserting tags into a jsp or xhtml page with one click, adding custom or 3rd party tag libraries into the palette, easy controling the number of tag groups shown on the palette.</entry>
- <entry><link linkend="palette">jboss tools palette</link></entry>
- </row>
- <row>
- <entry>Web Projects View</entry>
- <entry>Visualizing and displaying projects by function. Easy selecting of different kinds of items and dropping them into jsp pages. Using context menus to develop the application. Using icon shortcuts to create and import JSF and Struts projects. Expanding and inspecting tag library files. Selecting custom and third-party tag libraries to drag and drop onto the JBoss Tools Palette.</entry>
- <entry><link linkend="web_projects">web projects view</link></entry>
- </row>
- <row>
- <entry>JSF and Facelets support</entry>
- <entry>Step-by-step wizards for creating new JSF and Facelets projects with a number of predefined templates, importing existing ones and adding JSF capabilities to non-jsf web projects.</entry>
- <entry><link linkend="SupportForJSFEnvironmentsJSF_RIMyFacesFaceletsShaleOrAnyCustom442">jsf support</link></entry>
- </row>
-
- <row>
- <entry>Flexible and customizable project template management</entry>
- <entry>Jump-start development with out-of-the-box templates or easily customized templates
- for re-use.</entry>
- <entry><link linkend="WorkingWithProjects7844">working with projects</link></entry>
- </row>
- <row>
- <entry>Support for Managed Beans</entry>
- <entry>Adding new managed beans, generating code for attributes, properties and getter/setter methods.</entry>
- <entry><link linkend="ManagedBeans96453">managed beans</link></entry>
- </row>
- <row>
- <entry>OpenOn</entry>
- <entry>Easy navigation between views and other parts of your projects.</entry>
- <entry><link linkend="FaceletsSupport865">facelets support</link></entry>
- </row>
- <row>
- <entry>Content Assist</entry>
- <entry>Code completion proposals while working in java, xml, jsp, xhtml, xhtml, seam project and jsf configuration files. Content assist based on project data (dynamic code assist); with graphical editor. Code completion for values from property files, beans attributes and methods, navigation rule outcomes and jsf variables.</entry>
- <entry><link linkend="ContentAssist976">content assist</link></entry>
- </row>
- <row>
- <entry>Support for Custom Converters and Validators</entry>
- <entry>Fast creating of custom converters and validators with tree view of faces-config.xml file.</entry>
- <entry><link linkend="CreateAndRegisterACustomConverter94230">converters and validators</link></entry>
- </row>
- <row>
- <entry>Verification and Validation</entry>
- <entry>All occuring errors will be immediately reported by verification feature, no matter in what view you are working. Constant validation and errors checking allows to catch many of the errors during development process that significantly reduces development time.</entry>
- <entry><link linkend="verif_valid">verification and validation</link></entry>
- </row>
- <row>
- <entry>Drag-and-Drop</entry>
- <entry>Possibility of inserting any tag onto the page you are editing by just drag-and-droping it from the palette to this page. Adding any properties, managed bean attributes, navigation rules, tag library file declarations, jsp files from web projects view by clicking them and draging to source code.</entry>
- <entry><link linkend="visual_page">visual page editor</link> <link linkend="DragAndDrop">drag-and-drop</link></entry>
- </row>
- <row>
- <entry>Struts Support</entry>
- <entry>Step-by-step wizards for creating a new struts project with a number of predefined templates, importing existing ones and adding struts capabilities to non-struts web projects.</entry>
- <entry><link linkend="struts1">struts support</link></entry>
- </row>
-
- <row>
- <entry>Support for JSF and JSF Configuration Files</entry>
- <entry>Working on files using three modes: diagram, tree and source. Synchronization between the modes and full control over the code. Easy moving around the diagram using the Diagram Navigator. Working with struts projects that have multiple modules. Possibility to use Struts configuration file debugger allowing to set break points on struts diagram and then launch the server in debug mode.</entry>
- <entry><link linkend="GraphicalEditorAndViewingForJSFConfigurationFiles76331">graphical editor for jsf</link> <link linkend="GraphicalEditorForStrutsConfigurationFiles564">graphical editor for struts</link> </entry>
- </row>
- <row>
- <entry>Rich Faces Support</entry>
- <entry>Tight integration between JBDS and RichFaces frameworks. Easy managing RichFaces components in any web application.</entry>
- <entry><link linkend="RichFacesSupport">rich faces support</link></entry>
- </row>
- </tbody>
- </tgroup>
- </table>
-
- </chapter>
\ No newline at end of file
Deleted: trunk/jsf/docs/userguide/en/modules/jboss_tools.xml
===================================================================
--- trunk/jsf/docs/userguide/en/modules/jboss_tools.xml 2008-01-17 16:05:19 UTC (rev 5770)
+++ trunk/jsf/docs/userguide/en/modules/jboss_tools.xml 2008-01-17 16:57:05 UTC (rev 5771)
@@ -1,36 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<chapter id="jboss_tools" xreflabel="jboss_tools">
- <?dbhtml filename="jboss_tools.html"?>
- <chapterinfo>
- <keywordset>
- <keyword>JBoss Tools</keyword>
- <keyword>Eclipse</keyword>
- <keyword>Java</keyword>
- <keyword>Tomcat</keyword>
- </keywordset>
- </chapterinfo>
- <title>JBoss Tools</title>
-<para>JBoss Tools is an umbrella project for the JBoss developed plugins that will make it into JBoss Developer Studio. It includes the following Eclipse modules:</para>
-<itemizedlist>
- <listitem><para><emphasis><property>Seam Tools</property></emphasis> Will include support for seam-gen, RichFaces VE integration, Seam related code completion and refactoring and more.</para>
- <para>To read more on Seam, see <ulink url="http://docs.jboss.com/seam/2.0.0.GA/reference/en/html/index.html">Seam Reference Guide </ulink> or <ulink url="http://www.redhat.com/developers/jbds/Getting_Started/GetStartSeamGen.html">Getting Started Guide</ulink></para></listitem>
- <!--TODO link for Seam Guide -->
-
- <listitem><para><emphasis><property>RichFaces Support</property></emphasis>. <para>Rich Faces is an open source framework that adds Ajax capability into existing JSF applications without resorting to JavaScript.</para>
- <para>To read more on RF, see<ulink url="http://labs.jboss.com/jbossrichfaces/docs/index.html"> RF Developer Guide</ulink></para></listitem>
-
- <listitem><para><emphasis><property>Hibernate Tools</property></emphasis>Supporting mapping files, annotations and JPA with reverse engineering, code completion, project wizards, refactoring, interactive HQL/JPA-QL/Criteria execution and more.In short a merger of Hibernate Tools and Exadel ORM features.</para>
- <para>To read more on Hibernate Tools, see <ulink url="http://www.hibernate.org/hib_docs/tools/reference/en/html/">Hibernate Tools Reference Guide</ulink></para></listitem>
-
- <listitem><para><emphasis><property>JBoss AS Tools</property></emphasis> Easy start, stop and debug of JBoss AS 4+ servers from within Eclipse. Will also include features for efficient packaging and deployment of any type of Eclipse project.</para></listitem>
- <!-- TODO link for docs <para>To read more on AS Tools, see <ulink url="AS Tools">Hibernate Tools Reference Guide</ulink></listitem>-->
-
- <listitem><para><emphasis><property>Drools IDE</property></emphasis>Rules file editing, Rete View, working memory debugging/inspection and more.</para></listitem>
- <!-- TODO link for docs <para>To read more on AS Tools, see <ulink url="AS Tools">Hibernate Tools Reference Guide</ulink></listitem>-->
-
- <listitem><para><emphasis><property>JBPM Tools</property></emphasis>JBPM workflow editing, deployment and more.</para></listitem>
- <!-- TODO link for docs <para>To read more on AS Tools, see <ulink url="AS Tools">Hibernate Tools Reference Guide</ulink></listitem>-->
-
- </itemizedlist>
-
-</chapter>
Modified: trunk/jsf/docs/userguide/en/modules/jsf_support.xml
===================================================================
--- trunk/jsf/docs/userguide/en/modules/jsf_support.xml 2008-01-17 16:05:19 UTC (rev 5770)
+++ trunk/jsf/docs/userguide/en/modules/jsf_support.xml 2008-01-17 16:57:05 UTC (rev 5771)
@@ -85,13 +85,15 @@
<?dbhtml filename="FaceletsSupport.html"?>
<title>Facelets Support</title>
- <para><property>Facelets</property> extends JavaServer Faces by providing a
- lightweight framework that radically simplifies the design of presentation
- pages for JSF. JBoss Developer Studio provides support for Facelets in a
- variety of ways.</para>
+ <para>The <ulink url="https://facelets.dev.java.net/">Facelets</ulink> extends JavaServer Faces by providing a lightweight framework that radically simplifies the design
+ of presentation pages for JSF. JBoss Developer Studio provides support for Facelets in a variety of ways:</para>
+
+ <itemizedlist>
+ <listitem><para>The New JSF Project wizard contains templates for creating Facelets projects based on version 1.2 of the JSF Reference Implementation. Just select the
+ <property>JSF 1.2 with Facelets</property> in JSF Environment section.</para></listitem>
+ </itemizedlist>
- <para>The Create New JSF Project wizard contains templates for creating
- Faceletsprojects based on version 1.2 of the JSF Reference Implementation:</para>
+
<figure>
<title>Choosing Facelets Environment</title>
<mediaobject>
@@ -101,8 +103,7 @@
</mediaobject>
</figure>
- <para>Once you select the environment, you can select one of the six available
- templates:</para>
+ <para>Once you select the environment, you can select the one of three available templates.</para>
<figure>
<title>Choosing Facelets Template</title>
<mediaobject>
@@ -111,8 +112,13 @@
</imageobject>
</mediaobject>
</figure>
- <para>The JBoss Tools Palette comes with the Facelets components ready to use. A
- useful tip appears when you hover the mouse cursor over the tag - that includes a detailed description of the tag component, the syntax and available attributes:</para>
+
+ <itemizedlist>
+ <listitem><para>The JBoss Tools Palette comes with the Facelets components ready to use. A
+ useful tip appears when you hover the mouse cursor over the tag, the tip includes a detailed description of the tag component, the syntax and available attributes.</para></listitem>
+ </itemizedlist>
+
+
<!-- JBoss Developer Studio does not provide templates for MyFaces right out of the box, but you can easily do it
yourself with the "Save As Template" feature (available on the File submenu). Just create a small project
@@ -129,8 +135,11 @@
</imageobject>
</mediaobject>
</figure>
- <para>Code assist for <property>Facelets tags</property> is available when editing
- xhtml files:</para>
+
+ <itemizedlist>
+ <listitem><para>Code assist (ctrl + space) for <property>Facelets tags</property> is available when editing xhtml files.</para></listitem>
+ </itemizedlist>
+
<figure>
<title>XHTML File Code Assist</title>
<mediaobject>
@@ -140,16 +149,9 @@
</mediaobject>
</figure>
- <itemizedlist>
- <listitem>
- <para>Code assist is also available for <emphasis
- role="italic">
- <property>"jsfc"</property>
- </emphasis> attribute in any HTML tag</para>
- </listitem>
- </itemizedlist>
-
- <figure>
+ <para>Code assist is also available for <emphasis role="italic"><property>"jsfc"</property></emphasis> attribute in any HTML tag.</para>
+
+ <figure>
<title>Code Assist for Jsfc Attribute</title>
<mediaobject>
<imageobject>
@@ -158,14 +160,9 @@
</mediaobject>
</figure>
- <itemizedlist>
- <listitem>
- <para>Then you get the code assist for JSF components are available
- on the page</para>
- </listitem>
- </itemizedlist>
-
- <figure>
+ <para>After selecting <emphasis role="italic"><property>"jsfc"</property></emphasis> you get the code assist for JSF components available on a page.</para>
+
+ <figure>
<title>Code Assist for JSF Components</title>
<mediaobject>
<imageobject>
@@ -174,15 +171,10 @@
</mediaobject>
</figure>
- <itemizedlist>
- <listitem>
- <para>Then you will see all available attributes for the
- component.</para>
- </listitem>
- </itemizedlist>
-
+ <para>When a component is chosen you will see all available attributes for it.</para>
+
<figure>
- <title/>
+ <title>Available Attributes for the Component</title>
<mediaobject>
<imageobject>
<imagedata fileref="images/jsf_support/jsf_support_8.png" scale="80"/>
@@ -190,11 +182,14 @@
</mediaobject>
</figure>
- <para>JBDS provides Eclipse's <emphasis><property>OpenOn</property></emphasis> feature for editing Facelets files. Using this feature, you can easily navigate between
- the <property>Facelets templates</property> and other parts of your
- projects. Just by holding down the Control key while hovering the mouse
- cursor over a reference to a template, the reference becomes a hyperlink to
- open that template.</para>
+<itemizedlist>
+ <listitem> <para>JBDS provides Eclipse's <emphasis><property>OpenOn</property></emphasis> feature for editing Facelets files. Using this feature, you can easily navigate between
+ the <property>Facelets templates</property> and other parts of your
+ projects. Just by holding down the Control key while hovering the mouse
+ cursor over a reference to a template, the reference becomes a hyperlink to
+ open that template.</para></listitem>
+</itemizedlist>
+
<figure>
<title>Template Hyperlink</title>
<mediaobject>
16 years, 8 months
JBoss Tools SVN: r5770 - in trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test: resources/StrutsTest/WebContent/pages/components/form and 3 other directories.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2008-01-17 11:05:19 -0500 (Thu, 17 Jan 2008)
New Revision: 5770
Added:
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/bean/page.jsp
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/form/button.jsp
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/form/password.jsp
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/form/textarea.jsp
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/html/javascript.jsp
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/html/optionsCollection.jsp
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/html/xhtml.jsp
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/forward.jsp
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/messagesNotPresent.jsp
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/messagesPresent.jsp
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/notPresent.jsp
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/present.jsp
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/redirect.jsp
Modified:
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/src/org/jboss/tools/struts/vpe/struts/test/StrutsBeanComponentTest.java
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/src/org/jboss/tools/struts/vpe/struts/test/StrutsFormComponentTest.java
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/src/org/jboss/tools/struts/vpe/struts/test/StrutsHTMLComponentTest.java
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/src/org/jboss/tools/struts/vpe/struts/test/StrutsLogicComponentTest.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1565
Added: trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/bean/page.jsp
===================================================================
--- trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/bean/page.jsp (rev 0)
+++ trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/bean/page.jsp 2008-01-17 16:05:19 UTC (rev 5770)
@@ -0,0 +1,12 @@
+<%@ taglib uri="/WEB-INF/struts-html" prefix="html" %>
+<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
+<html:html>
+<head>
+ <title></title>
+</head>
+<body>
+ <html:form action="">
+ <bean:page id="id" property="prop1" />
+ </html:form>
+</body>
+</html:html>
Added: trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/form/button.jsp
===================================================================
--- trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/form/button.jsp (rev 0)
+++ trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/form/button.jsp 2008-01-17 16:05:19 UTC (rev 5770)
@@ -0,0 +1,11 @@
+<%@ taglib uri="/WEB-INF/struts-html" prefix="html" %>
+<html:html>
+<head>
+ <title></title>
+</head>
+<body>
+ <html:form action="">
+ <html:button property="prop1" value="Button" />
+ </html:form>
+</body>
+</html:html>
Added: trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/form/password.jsp
===================================================================
--- trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/form/password.jsp (rev 0)
+++ trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/form/password.jsp 2008-01-17 16:05:19 UTC (rev 5770)
@@ -0,0 +1,11 @@
+<%@ taglib uri="/WEB-INF/struts-html" prefix="html" %>
+<html:html>
+<head>
+ <title></title>
+</head>
+<body>
+ <html:form action="">
+ <html:password property="prop1" value="password"/>
+ </html:form>
+</body>
+</html:html>
Added: trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/form/textarea.jsp
===================================================================
--- trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/form/textarea.jsp (rev 0)
+++ trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/form/textarea.jsp 2008-01-17 16:05:19 UTC (rev 5770)
@@ -0,0 +1,11 @@
+<%@ taglib uri="/WEB-INF/struts-html" prefix="html" %>
+<html:html>
+<head>
+ <title></title>
+</head>
+<body>
+ <html:form action="">
+ <html:textarea property="prop1" rows="3" value="Very long text!" cols="40"/>
+ </html:form>
+</body>
+</html:html>
Added: trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/html/javascript.jsp
===================================================================
--- trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/html/javascript.jsp (rev 0)
+++ trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/html/javascript.jsp 2008-01-17 16:05:19 UTC (rev 5770)
@@ -0,0 +1,11 @@
+<%@ taglib uri="/WEB-INF/struts-html" prefix="html" %>
+<html:html>
+<head>
+ <title></title>
+</head>
+<body>
+ <html:form action="">
+ <html:javascript staticJavascript="script"/>
+ </html:form>
+</body>
+</html:html>
Added: trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/html/optionsCollection.jsp
===================================================================
--- trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/html/optionsCollection.jsp (rev 0)
+++ trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/html/optionsCollection.jsp 2008-01-17 16:05:19 UTC (rev 5770)
@@ -0,0 +1,11 @@
+<%@ taglib uri="/WEB-INF/struts-html" prefix="html" %>
+<html:html>
+<head>
+ <title></title>
+</head>
+<body>
+ <html:form action="">
+ <html:optionsCollection property="prop1"></html:optionsCollection>
+ </html:form>
+</body>
+</html:html>
Added: trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/html/xhtml.jsp
===================================================================
--- trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/html/xhtml.jsp (rev 0)
+++ trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/html/xhtml.jsp 2008-01-17 16:05:19 UTC (rev 5770)
@@ -0,0 +1,10 @@
+<%@ taglib uri="/WEB-INF/struts-html" prefix="html" %>
+<html:html xhtml="true">
+<head>
+ <title></title>
+</head>
+<body>
+ <html:form action="">
+ </html:form>
+</body>
+</html:html>
Added: trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/forward.jsp
===================================================================
--- trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/forward.jsp (rev 0)
+++ trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/forward.jsp 2008-01-17 16:05:19 UTC (rev 5770)
@@ -0,0 +1,12 @@
+<%@ taglib uri="/WEB-INF/struts-html" prefix="html" %>
+<%@ taglib uri="/WEB-INF/struts-logic" prefix="logic" %>
+<html:html>
+<head>
+ <title></title>
+</head>
+<body>
+ <html:form action="">
+ <logic:forward name="test.jsp"/>
+ </html:form>
+</body>
+</html:html>
Added: trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/messagesNotPresent.jsp
===================================================================
--- trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/messagesNotPresent.jsp (rev 0)
+++ trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/messagesNotPresent.jsp 2008-01-17 16:05:19 UTC (rev 5770)
@@ -0,0 +1,14 @@
+<%@ taglib uri="/WEB-INF/struts-html" prefix="html" %>
+<%@ taglib uri="/WEB-INF/struts-logic" prefix="logic" %>
+<html:html>
+<head>
+ <title></title>
+</head>
+<body>
+ <html:form action="">
+ <logic:messagesNotPresent property="noSuchMessage">
+ MessagesNotPresent
+ </logic:messagesNotPresent>
+ </html:form>
+</body>
+</html:html>
Added: trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/messagesPresent.jsp
===================================================================
--- trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/messagesPresent.jsp (rev 0)
+++ trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/messagesPresent.jsp 2008-01-17 16:05:19 UTC (rev 5770)
@@ -0,0 +1,14 @@
+<%@ taglib uri="/WEB-INF/struts-html" prefix="html" %>
+<%@ taglib uri="/WEB-INF/struts-logic" prefix="logic" %>
+<html:html>
+<head>
+ <title></title>
+</head>
+<body>
+ <html:form action="">
+ <logic:messagesPresent property="anyMessage">
+ MessagesPresent
+ </logic:messagesPresent>
+ </html:form>
+</body>
+</html:html>
Added: trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/notPresent.jsp
===================================================================
--- trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/notPresent.jsp (rev 0)
+++ trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/notPresent.jsp 2008-01-17 16:05:19 UTC (rev 5770)
@@ -0,0 +1,14 @@
+<%@ taglib uri="/WEB-INF/struts-html" prefix="html" %>
+<%@ taglib uri="/WEB-INF/struts-logic" prefix="logic" %>
+<html:html>
+<head>
+ <title></title>
+</head>
+<body>
+ <html:form action="">
+ <logic:notPresent name="name" scope="scope" property="prop">
+ NotPresent
+ </logic:notPresent>
+ </html:form>
+</body>
+</html:html>
Added: trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/present.jsp
===================================================================
--- trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/present.jsp (rev 0)
+++ trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/present.jsp 2008-01-17 16:05:19 UTC (rev 5770)
@@ -0,0 +1,14 @@
+<%@ taglib uri="/WEB-INF/struts-html" prefix="html" %>
+<%@ taglib uri="/WEB-INF/struts-logic" prefix="logic" %>
+<html:html>
+<head>
+ <title></title>
+</head>
+<body>
+ <html:form action="">
+ <logic:present name="name" scope="scope" property="prop">
+ Present
+ </logic:present>
+ </html:form>
+</body>
+</html:html>
Added: trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/redirect.jsp
===================================================================
--- trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/redirect.jsp (rev 0)
+++ trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/logic/redirect.jsp 2008-01-17 16:05:19 UTC (rev 5770)
@@ -0,0 +1,12 @@
+<%@ taglib uri="/WEB-INF/struts-html" prefix="html" %>
+<%@ taglib uri="/WEB-INF/struts-logic" prefix="logic" %>
+<html:html>
+<head>
+ <title></title>
+</head>
+<body>
+ <html:form action="">
+ <logic:redirect page="test.jsp"/>
+ </html:form>
+</body>
+</html:html>
Modified: trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/src/org/jboss/tools/struts/vpe/struts/test/StrutsBeanComponentTest.java
===================================================================
--- trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/src/org/jboss/tools/struts/vpe/struts/test/StrutsBeanComponentTest.java 2008-01-17 15:44:01 UTC (rev 5769)
+++ trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/src/org/jboss/tools/struts/vpe/struts/test/StrutsBeanComponentTest.java 2008-01-17 16:05:19 UTC (rev 5770)
@@ -72,4 +72,8 @@
public void testWrite() throws Throwable {
performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/bean/write.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
}
+
+ public void testPage() throws Throwable {
+ performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/bean/page.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ }
}
Modified: trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/src/org/jboss/tools/struts/vpe/struts/test/StrutsFormComponentTest.java
===================================================================
--- trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/src/org/jboss/tools/struts/vpe/struts/test/StrutsFormComponentTest.java 2008-01-17 15:44:01 UTC (rev 5769)
+++ trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/src/org/jboss/tools/struts/vpe/struts/test/StrutsFormComponentTest.java 2008-01-17 16:05:19 UTC (rev 5770)
@@ -84,4 +84,16 @@
public void testText() throws Throwable {
performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/form/text.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
}
+
+ public void testButton() throws Throwable {
+ performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/form/button.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ }
+
+ public void testPassword() throws Throwable {
+ performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/form/password.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ }
+
+ public void testTextarea() throws Throwable {
+ performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/form/textarea.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ }
}
Modified: trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/src/org/jboss/tools/struts/vpe/struts/test/StrutsHTMLComponentTest.java
===================================================================
--- trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/src/org/jboss/tools/struts/vpe/struts/test/StrutsHTMLComponentTest.java 2008-01-17 15:44:01 UTC (rev 5769)
+++ trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/src/org/jboss/tools/struts/vpe/struts/test/StrutsHTMLComponentTest.java 2008-01-17 16:05:19 UTC (rev 5770)
@@ -68,4 +68,16 @@
public void testMessages() throws Throwable {
performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/html/messages.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
}
+
+ public void testJavascript() throws Throwable {
+ performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/html/javascript.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ }
+
+ public void testOptionsCollection() throws Throwable {
+ performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/html/optionsCollection.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ }
+
+ public void testXHTML() throws Throwable {
+ performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/html/xhtml.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ }
}
Modified: trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/src/org/jboss/tools/struts/vpe/struts/test/StrutsLogicComponentTest.java
===================================================================
--- trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/src/org/jboss/tools/struts/vpe/struts/test/StrutsLogicComponentTest.java 2008-01-17 15:44:01 UTC (rev 5769)
+++ trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/src/org/jboss/tools/struts/vpe/struts/test/StrutsLogicComponentTest.java 2008-01-17 16:05:19 UTC (rev 5770)
@@ -76,4 +76,28 @@
public void testNotMatch() throws Throwable {
performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/logic/notMatch.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
}
+
+ public void testForward() throws Throwable {
+ performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/logic/forward.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ }
+
+ public void testMessagesNotPresent() throws Throwable {
+ performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/logic/messagesNotPresent.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ }
+
+ public void testMessagesPresent() throws Throwable {
+ performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/logic/messagesPresent.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ }
+
+ public void testNotPresent() throws Throwable {
+ performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/logic/notPresent.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ }
+
+ public void testPresent() throws Throwable {
+ performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/logic/present.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ }
+
+ public void testRedirect() throws Throwable {
+ performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/logic/redirect.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ }
}
16 years, 8 months
JBoss Tools SVN: r5769 - in trunk/jsf: plugins/org.jboss.tools.jsf.vpe.richfaces/templates and 4 other directories.
by jbosstools-commits@lists.jboss.org
Author: sdzmitrovich
Date: 2008-01-17 10:44:01 -0500 (Thu, 17 Jan 2008)
New Revision: 5769
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/JBIDE/1639/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/JBIDE/1639/JBIDE-1639.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/Jbide1639Test.java
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesSpacerTemplate.java
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/templates/vpe-templates-richfaces.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesAllTests.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1639
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesSpacerTemplate.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesSpacerTemplate.java 2008-01-17 15:19:49 UTC (rev 5768)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesSpacerTemplate.java 2008-01-17 15:44:01 UTC (rev 5769)
@@ -48,16 +48,9 @@
.createElement(HtmlComponentUtil.HTML_TAG_IMG);
ComponentUtil.setImg(img, IMAGE_NAME);
- if (sourceNode instanceof Element) {
- // ComponentUtil.copyAttributes(sourceNode, img);
- img.setAttribute("style", ((Element) sourceNode)
- .getAttribute("style"));
- img.setAttribute("class", ((Element) sourceNode)
- .getAttribute("styleClass"));
- img.setAttribute("width", getSize((Element) sourceNode, "width"));
- img.setAttribute("height", getSize((Element) sourceNode, "height"));
+ Element sourceElement = (Element) sourceNode;
- }
+ setData(sourceElement, img);
VpeCreationData creationData = new VpeCreationData(img);
@@ -88,11 +81,23 @@
nsIDOMElement img = (nsIDOMElement) visualNode
.queryInterface(nsIDOMElement.NS_IDOMELEMENT_IID);
- // ComponentUtil.copyAttributes(sourceElement, img);
- img.setAttribute("style", sourceElement.getAttribute("style"));
- img.setAttribute("class", sourceElement.getAttribute("styleClass"));
- img.setAttribute("width", getSize(sourceElement, "width"));
- img.setAttribute("height", getSize(sourceElement, "height"));
+ setData(sourceElement, img);
}
+
+ /**
+ *
+ * @param sourceElement
+ * @param visualElement
+ */
+ private void setData(Element sourceElement, nsIDOMElement visualElement) {
+
+ visualElement
+ .setAttribute("style", sourceElement.getAttribute("style"));
+ visualElement.setAttribute("class", sourceElement
+ .getAttribute("styleClass"));
+ visualElement.setAttribute("width", getSize(sourceElement, "width"));
+ visualElement.setAttribute("height", getSize(sourceElement, "height"));
+
+ }
}
\ No newline at end of file
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/templates/vpe-templates-richfaces.xml
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/templates/vpe-templates-richfaces.xml 2008-01-17 15:19:49 UTC (rev 5768)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/templates/vpe-templates-richfaces.xml 2008-01-17 15:44:01 UTC (rev 5769)
@@ -157,7 +157,7 @@
</vpe:tag>
<vpe:tag name="rich:spacer" case-sensitive="yes">
- <vpe:template children="no" modify="yes"
+ <vpe:template children="no" modify="yes"
class="org.jboss.tools.jsf.vpe.richfaces.template.RichFacesSpacerTemplate">
<vpe:resize>
<vpe:width width-attr="width" />
@@ -167,6 +167,12 @@
<vpe:drag start-enable="yes" />
<vpe:drop container="no" />
</vpe:dnd>
+ <vpe:textFormating>
+ <vpe:format type="BackgroundColorFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ </vpe:textFormating>
+
</vpe:template>
</vpe:tag>
@@ -730,7 +736,6 @@
</vpe:drop>
</vpe:dnd>
<vpe:textFormating>
- <vpe:format type="BlockFormat" addChildren="deny" />
<vpe:format type="UnderlineFormat">
<vpe:formatAttribute type="style" />
</vpe:format>
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/JBIDE/1639/JBIDE-1639.xhtml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/JBIDE/1639/JBIDE-1639.xhtml (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/JBIDE/1639/JBIDE-1639.xhtml 2008-01-17 15:44:01 UTC (rev 5769)
@@ -0,0 +1,21 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich">
+
+<head>
+<style type="text/css">
+.spacerStyle {
+ background: blue;
+}
+</style>
+</head>
+
+<body>
+<!-- Spacer component -->
+<rich:spacer width="720" height="50" styleClass="spacerStyle"/>
+</body>
+</html>
\ No newline at end of file
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesAllTests.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesAllTests.java 2008-01-17 15:19:49 UTC (rev 5768)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesAllTests.java 2008-01-17 15:44:01 UTC (rev 5769)
@@ -19,6 +19,7 @@
import org.jboss.tools.jsf.vpe.richfaces.test.jbide.JBIDE1613Test;
import org.jboss.tools.jsf.vpe.richfaces.test.jbide.Jbide1580Test;
import org.jboss.tools.jsf.vpe.richfaces.test.jbide.Jbide1614Test;
+import org.jboss.tools.jsf.vpe.richfaces.test.jbide.Jbide1639Test;
import org.jboss.tools.vpe.ui.test.VpeTestSetup;
import org.jboss.tools.vpe.ui.test.beans.ImportBean;
@@ -40,7 +41,8 @@
suite.addTestSuite(Jbide1580Test.class);
suite.addTestSuite(JBIDE1613Test.class);
suite.addTestSuite(Jbide1614Test.class);
-
+ suite.addTestSuite(Jbide1639Test.class);
+
// $JUnit-END$
List<ImportBean> projectToImport = new ArrayList<ImportBean>();
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/Jbide1639Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/Jbide1639Test.java (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/Jbide1639Test.java 2008-01-17 15:44:01 UTC (rev 5769)
@@ -0,0 +1,101 @@
+/*******************************************************************************
+ * Copyright (c) 2007 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
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+
+package org.jboss.tools.jsf.vpe.richfaces.test.jbide;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import junit.framework.Assert;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.ui.IEditorInput;
+import org.eclipse.ui.part.FileEditorInput;
+import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.editor.util.HTML;
+import org.jboss.tools.vpe.ui.test.TestUtil;
+import org.jboss.tools.vpe.ui.test.VpeTest;
+import org.mozilla.interfaces.nsIDOMDocument;
+import org.mozilla.interfaces.nsIDOMElement;
+import org.mozilla.interfaces.nsIDOMNamedNodeMap;
+import org.mozilla.interfaces.nsIDOMNode;
+
+/**
+ *
+ * @author sdzmitrovich
+ *
+ */
+public class Jbide1639Test extends VpeTest {
+
+ public static final String IMPORT_PROJECT_NAME = "richFacesTest";
+
+ public static final String FILE_NAME = "JBIDE/1639/JBIDE-1639.xhtml";
+
+ public Jbide1639Test(String name) {
+ super(name);
+ }
+
+ public void testStyleClass() throws Throwable {
+
+ // wait
+ TestUtil.waitForJobs();
+ // set exception
+ setException(null);
+
+ // get test page path
+ IFile file = (IFile) TestUtil.getComponentPath(FILE_NAME,
+ IMPORT_PROJECT_NAME);
+
+ IEditorInput input = new FileEditorInput(file);
+
+ // open and get editor
+ JSPMultiPageEditor part = openEditor(input);
+
+ // get dom document
+ nsIDOMDocument document = getVpeVisualDocument(part);
+ assertNotNull(document);
+
+ // get dom element
+ nsIDOMElement element = document.getDocumentElement();
+ assertNotNull(element);
+
+ // get root node
+ nsIDOMNode node = (nsIDOMNode) element
+ .queryInterface(nsIDOMNode.NS_IDOMNODE_IID);
+
+ List<nsIDOMNode> elements = new ArrayList<nsIDOMNode>();
+
+ // find "img" elements
+ TestUtil.findElementsByName(node, elements, HTML.TAG_IMG);
+
+ Assert.assertEquals(1, elements.size());
+
+ nsIDOMNode img = elements.get(0);
+
+ nsIDOMNamedNodeMap attributes = img.getAttributes();
+
+ // "img" must have attributes
+ assertNotNull(attributes);
+
+ // "img" must have "multiple" attribute
+ nsIDOMNode classAttribute = attributes.getNamedItem(HTML.ATTR_CLASS);
+ assertNotNull(classAttribute);
+ assertNotNull(classAttribute.getNodeValue());
+ assertEquals(true, classAttribute.getNodeValue().length() > 0);
+
+ // check exception
+ if (getException() != null) {
+ throw getException();
+ }
+
+ }
+
+}
16 years, 8 months
JBoss Tools SVN: r5768 - in trunk: jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/.settings and 9 other directories.
by jbosstools-commits@lists.jboss.org
Author: dsakovich
Date: 2008-01-17 10:19:49 -0500 (Thu, 17 Jan 2008)
New Revision: 5768
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/.settings/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/.settings/org.eclipse.jdt.core.prefs
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/.settings/org.eclipse.jst.common.project.facet.core.prefs
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/.settings/org.eclipse.wst.common.component
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/.settings/org.eclipse.wst.common.project.facet.core.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/.settings/org.jboss.tools.jst.web.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/JBIDE/1614/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/JBIDE/1614/JBIDE-1614-absolute.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/JBIDE/1614/JBIDE-1614-related.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/JBIDE/1614/sample.groovy
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/Jbide1614Test.java
Removed:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/META-INF/
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/.classpath
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/.project
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/WEB-INF/.faces-config.xml.jsfdia
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/WEB-INF/faces-config.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/WEB-INF/lib/jsf-tlds.jar
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/WEB-INF/web.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/index.jsp
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/ant/build.properties
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/ant/build.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesAllTests.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/HTML.java
Log:
Add junit test for http://jira.jboss.com/jira/browse/JBIDE-1614
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/.classpath
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/.classpath 2008-01-17 15:17:10 UTC (rev 5767)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/.classpath 2008-01-17 15:19:49 UTC (rev 5768)
@@ -1,8 +1,9 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="src" path="JavaSource"/>
- <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
- <classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v5.5"/>
- <classpathentry kind="output" path="WebContent/WEB-INF/classes"/>
-</classpath>
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="JavaSource"/>
+ <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
+ <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v6.0"/>
+ <classpathentry kind="output" path="WebContent/WEB-INF/classes"/>
+</classpath>
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/.project
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/.project 2008-01-17 15:17:10 UTC (rev 5767)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/.project 2008-01-17 15:19:49 UTC (rev 5768)
@@ -1,36 +1,36 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>test</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.wst.common.project.facet.core.builder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.wst.validation.validationbuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.jboss.tools.common.verification.verifybuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
- <nature>org.jboss.tools.jsf.jsfnature</nature>
- <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
- </natures>
-</projectDescription>
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>richFacesTest</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.wst.common.project.facet.core.builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.validation.validationbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.jboss.tools.common.verification.verifybuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
+ <nature>org.jboss.tools.jsf.jsfnature</nature>
+ <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
+ </natures>
+</projectDescription>
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/.settings/org.eclipse.jdt.core.prefs 2008-01-17 15:19:49 UTC (rev 5768)
@@ -0,0 +1,7 @@
+#Thu Jan 17 15:59:03 GMT+02:00 2008
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.5
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/.settings/org.eclipse.jst.common.project.facet.core.prefs
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/.settings/org.eclipse.jst.common.project.facet.core.prefs (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/.settings/org.eclipse.jst.common.project.facet.core.prefs 2008-01-17 15:19:49 UTC (rev 5768)
@@ -0,0 +1,4 @@
+#Thu Jan 17 15:59:04 GMT+02:00 2008
+classpath.helper/org.eclipse.jdt.launching.JRE_CONTAINER/owners=jst.java\:5.0
+classpath.helper/org.eclipse.jst.server.core.container\:\:org.eclipse.jst.server.tomcat.runtimeTarget\:\:Apache\ Tomcat\ v6.0/owners=jst.web\:2.4
+eclipse.preferences.version=1
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/.settings/org.eclipse.wst.common.component
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/.settings/org.eclipse.wst.common.component (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/.settings/org.eclipse.wst.common.component 2008-01-17 15:19:49 UTC (rev 5768)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project-modules id="moduleCoreId" project-version="1.5.0">
+<wb-module deploy-name="richFacesTest">
+<wb-resource deploy-path="/" source-path="/WebContent"/>
+<wb-resource deploy-path="/WEB-INF/classes" source-path="/JavaSource"/>
+<property name="context-root" value="richFacesTest"/>
+<property name="java-output-path" value="build/classes"/>
+</wb-module>
+</project-modules>
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/.settings/org.eclipse.wst.common.project.facet.core.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/.settings/org.eclipse.wst.common.project.facet.core.xml (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/.settings/org.eclipse.wst.common.project.facet.core.xml 2008-01-17 15:19:49 UTC (rev 5768)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<faceted-project>
+ <runtime name="Apache Tomcat v6.0"/>
+ <fixed facet="jst.java"/>
+ <fixed facet="jst.web"/>
+ <installed facet="jst.java" version="5.0"/>
+ <installed facet="jst.web" version="2.4"/>
+</faceted-project>
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/.settings/org.jboss.tools.jst.web.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/.settings/org.jboss.tools.jst.web.xml (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/.settings/org.jboss.tools.jst.web.xml 2008-01-17 15:19:49 UTC (rev 5768)
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<file-systems VERSION="2.0.0" application-name="richFacesTest"
+ model-entity="FileSystems" workspace-home="./WebContent/WEB-INF">
+ <file-system NAME="WEB-INF" location="%workspace.home%" model-entity="FileSystemFolder"/>
+ <file-system NAME="WEB-ROOT" info="Content-Type=Web"
+ location="%workspace.home%/.." model-entity="FileSystemFolder"/>
+ <file-system NAME="src" location="%workspace.home%/../../JavaSource" model-entity="FileSystemFolder"/>
+ <file-system NAME="lib" location="%workspace.home%/lib" model-entity="FileSystemFolder"/>
+ <file-system NAME="classes" location="%workspace.home%/classes" model-entity="FileSystemFolder"/>
+ <file-system NAME="build" location="%workspace.home%/../../ant" model-entity="FileSystemFolder"/>
+ <file-system NAME="lib-commons-collections.jar" info="hidden=yes"
+ location="%workspace.home%/lib/commons-collections.jar" model-entity="FileSystemJar"/>
+ <file-system NAME="lib-jsf-tlds.jar" info="hidden=yes"
+ location="%workspace.home%/lib/jsf-tlds.jar" model-entity="FileSystemJar"/>
+ <file-system NAME="lib-jstl.jar" info="hidden=yes"
+ location="%workspace.home%/lib/jstl.jar" model-entity="FileSystemJar"/>
+ <file-system NAME="lib-standard.jar" info="hidden=yes"
+ location="%workspace.home%/lib/standard.jar" model-entity="FileSystemJar"/>
+ <file-system NAME="lib-commons-logging.jar" info="hidden=yes"
+ location="%workspace.home%/lib/commons-logging.jar" model-entity="FileSystemJar"/>
+ <file-system NAME="lib-commons-digester.jar" info="hidden=yes"
+ location="%workspace.home%/lib/commons-digester.jar" model-entity="FileSystemJar"/>
+ <file-system NAME="lib-commons-beanutils.jar" info="hidden=yes"
+ location="%workspace.home%/lib/commons-beanutils.jar" model-entity="FileSystemJar"/>
+ <file-system NAME="lib-common-annotations.jar" info="hidden=yes"
+ location="%workspace.home%/lib/common-annotations.jar" model-entity="FileSystemJar"/>
+ <web SERVLET_VERSION="2.4" model-entity="JstWeb" model-path="/web.xml">
+ <module URI="/WEB-INF/faces-config.xml" model-entity="WebJSFModule"
+ model-path="/faces-config.xml" root="WEB-ROOT" src="src"/>
+ </web>
+</file-systems>
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/WEB-INF/.faces-config.xml.jsfdia
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/WEB-INF/.faces-config.xml.jsfdia 2008-01-17 15:17:10 UTC (rev 5767)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/WEB-INF/.faces-config.xml.jsfdia 2008-01-17 15:19:49 UTC (rev 5768)
@@ -1,2 +1,2 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<PROCESS ENTITY="JSFProcess"/>
+<?xml version="1.0" encoding="UTF-8"?>
+<PROCESS model-entity="JSFProcess"/>
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/WEB-INF/faces-config.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/WEB-INF/faces-config.xml 2008-01-17 15:17:10 UTC (rev 5767)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/WEB-INF/faces-config.xml 2008-01-17 15:19:49 UTC (rev 5768)
@@ -1,9 +1,16 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee"
- xmlns:xi="http://www.w3.org/2001/XInclude"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
-
- <application>
- <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
- </application>
-</faces-config>
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
+<faces-config>
+ <managed-bean>
+ <description>User Name Bean</description>
+ <managed-bean-name>user</managed-bean-name>
+ <managed-bean-class>demo.User</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ <managed-property>
+ <property-name>name</property-name>
+ <property-class>java.lang.String</property-class>
+ <value/>
+ </managed-property>
+ </managed-bean>
+ </faces-config>
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/WEB-INF/lib/jsf-tlds.jar
===================================================================
(Binary files differ)
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/WEB-INF/web.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/WEB-INF/web.xml 2008-01-17 15:17:10 UTC (rev 5767)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/WEB-INF/web.xml 2008-01-17 15:19:49 UTC (rev 5768)
@@ -1,56 +1,26 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
- <description>Facelets StarterKit</description>
- <display-name>test</display-name>
- <context-param>
- <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
- <param-value>.xhtml</param-value>
- </context-param>
- <context-param>
- <param-name>facelets.REFRESH_PERIOD</param-name>
- <param-value>2</param-value>
- </context-param>
- <context-param>
- <param-name>facelets.DEVELOPMENT</param-name>
- <param-value>true</param-value>
- </context-param>
- <context-param>
- <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
- <param-value>client</param-value>
- </context-param>
- <context-param>
- <param-name>com.sun.faces.validateXml</param-name>
- <param-value>true</param-value>
- </context-param>
- <context-param>
- <param-name>com.sun.faces.verifyObjects</param-name>
- <param-value>true</param-value>
- </context-param>
- <servlet>
- <servlet-name>Faces Servlet</servlet-name>
- <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
- <load-on-startup>1</load-on-startup>
- </servlet>
- <servlet-mapping>
- <servlet-name>Faces Servlet</servlet-name>
- <url-pattern>*.jsf</url-pattern>
- </servlet-mapping>
- <login-config>
- <auth-method>BASIC</auth-method>
- </login-config>
-
- <filter>
- <display-name>Ajax4jsf Filter</display-name>
- <filter-name>ajax4jsf</filter-name>
- <filter-class>org.ajax4jsf.Filter</filter-class>
- </filter>
- <filter-mapping>
- <filter-name>ajax4jsf</filter-name>
- <servlet-name>Faces Servlet</servlet-name>
- <dispatcher>REQUEST</dispatcher>
- <dispatcher>FORWARD</dispatcher>
- <dispatcher>INCLUDE</dispatcher>
- </filter-mapping>
-</web-app>
+<?xml version="1.0"?>
+<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+ <display-name>richFacesTest</display-name>
+ <context-param>
+ <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
+ <param-value>server</param-value>
+ </context-param>
+ <listener>
+ <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
+ </listener>
+ <!-- Faces Servlet -->
+ <servlet>
+ <servlet-name>Faces Servlet</servlet-name>
+ <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+ <!-- Faces Servlet Mapping -->
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>*.jsf</url-pattern>
+ </servlet-mapping>
+ <login-config>
+ <auth-method>BASIC</auth-method>
+ </login-config>
+</web-app>
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/index.jsp
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/index.jsp 2008-01-17 15:17:10 UTC (rev 5767)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/index.jsp 2008-01-17 15:19:49 UTC (rev 5768)
@@ -1,7 +1,7 @@
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+
<html>
-<head></head>
<body>
- <jsp:forward page="pages/richFacesTest.jsf" />
+ <jsp:forward page="/pages/inputUserName.jsf" />
</body>
</html>
\ No newline at end of file
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/JBIDE/1614/JBIDE-1614-absolute.xhtml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/JBIDE/1614/JBIDE-1614-absolute.xhtml (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/JBIDE/1614/JBIDE-1614-absolute.xhtml 2008-01-17 15:19:49 UTC (rev 5768)
@@ -0,0 +1,15 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich">
+
+<head>
+</head>
+
+<body>
+<rich:insert src="/pages/JBIDE/1614/sample.groovy" highlight="groovy" />
+</body>
+</html>
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/JBIDE/1614/JBIDE-1614-related.xhtml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/JBIDE/1614/JBIDE-1614-related.xhtml (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/JBIDE/1614/JBIDE-1614-related.xhtml 2008-01-17 15:19:49 UTC (rev 5768)
@@ -0,0 +1,15 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich">
+
+<head>
+</head>
+
+<body>
+<rich:insert src="./sample.groovy" highlight="groovy" />
+</body>
+</html>
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/JBIDE/1614/sample.groovy
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/JBIDE/1614/sample.groovy (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/JBIDE/1614/sample.groovy 2008-01-17 15:19:49 UTC (rev 5768)
@@ -0,0 +1,9 @@
+double[] values = new double[8]
+
+i = 0
+[1, 2, 3, 4, 5, 6, 7, 8].each {
+ println it
+ values[i++] = it
+ // uncomment the next line and it works fine!!
+ //println it
+}
\ No newline at end of file
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/ant/build.properties
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/ant/build.properties 2008-01-17 15:17:10 UTC (rev 5767)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/ant/build.properties 2008-01-17 15:19:49 UTC (rev 5768)
@@ -1,3 +1,3 @@
-#
-#Wed Sep 26 14:10:18 EEST 2007
-classpath.external=D\:\\workspaces\\runtime-New_configuration\\.metadata\\.plugins\\org.jboss.tools.common.projecttemplates\\lib\\servlet\\2.4\\jsp-api.jar;D\:\\workspaces\\runtime-New_configuration\\.metadata\\.plugins\\org.jboss.tools.common.projecttemplates\\lib\\servlet\\2.4\\servlet-api.jar;
+#
+#Thu Jan 17 15:59:03 GMT+02:00 2008
+classpath.external=/home/dsakovich/work/runtimeVpe/.metadata/.plugins/org.jboss.tools.common.projecttemplates/lib/servlet/2.4/servlet-api.jar;/home/dsakovich/work/runtimeVpe/.metadata/.plugins/org.jboss.tools.common.projecttemplates/lib/servlet/2.4/jsp-api.jar;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/ant/build.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/ant/build.xml 2008-01-17 15:17:10 UTC (rev 5767)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/ant/build.xml 2008-01-17 15:19:49 UTC (rev 5768)
@@ -1,88 +1,74 @@
-<project name="jsf12KickStart" basedir="../" default="deploy">
+<project name="KickStart" default="deploy" basedir="../">
+ <!-- Project settings -->
+ <property file="${basedir}/ant/build.properties" />
- <!-- define your folder for deployment -->
- <property name="deploy.dir" value="deploy"/>
+ <property name="project.name" value="KickStart" />
+ <property name="web.content.dir" value="${basedir}/WebContent" />
+ <property name="web-inf.dir" value="${web.content.dir}/WEB-INF" />
+ <property name="build.dir" value="build" />
+ <property name="war.name" value="${build.dir}/${project.name}.war" />
+ <!-- Define a folder for deployment -->
+ <property name="deploy.dir" value="deploy" />
- <!-- Project settings -->
- <property name="project.distname" value="jsf12KickStart"/>
+ <!-- Compile classpath -->
+ <path id="compile.classpath">
+ <fileset dir="${webinf.dir}/lib">
+ <include name="**/*.jar" />
+ </fileset>
+ <pathelement path="${classpath}" />
+ <pathelement path="${classpath.external}" />
+ <pathelement path="${webinf.dir}/classes" />
+ </path>
- <!-- Local system paths -->
- <property file="${basedir}/ant/build.properties"/>
- <property name="webroot.dir" value="${basedir}/WebContent"/>
- <property name="webinf.dir" value="${webroot.dir}/WEB-INF"/>
- <property name="build.dir" value="build"/>
+ <!-- Copy any resource or configuration files -->
+ <target name="copyResources">
+ <copy todir="${web-inf.dir}/classes" includeEmptyDirs="no">
+ <fileset dir="JavaSource">
+ <patternset>
+ <include name="**/*.*" />
+ <exclude name="**/*.java" />
+ </patternset>
+ </fileset>
+ </copy>
+ </target>
+ <!-- Check timestamp on files -->
+ <target name="prepare">
+ <tstamp />
+ </target>
- <!-- classpath for JSF 1.0 -->
- <path id="compile.classpath">
- <pathelement path ="${webinf.dir}/lib/commons-beanutils.jar"/>
- <pathelement path ="${webinf.dir}/lib/commons-collections.jar"/>
- <pathelement path ="${webinf.dir}/lib/commons-digester.jar"/>
- <pathelement path ="${webinf.dir}/lib/commons-logging.jar"/>
- <pathelement path ="${webinf.dir}/lib/jsf-api.jar"/>
- <pathelement path ="${webinf.dir}/lib/jsf-impl.jar"/>
- <pathelement path ="${webinf.dir}/lib/jstl.jar"/>
- <pathelement path ="${webinf.dir}/lib/standard.jar"/>
- <pathelement path ="${webinf.dir}/classes"/>
- <pathelement path ="${classpath}"/>
- </path>
+ <!-- Remove classes directory for clean build -->
+ <target name="clean" description="Prepare for clean build">
+ <delete dir="${web-inf.dir}/classes" failonerror="false"/>
+ <mkdir dir="${web-inf.dir}/classes" />
+ </target>
- <!-- Check timestamp on files -->
- <target name="prepare">
- <tstamp/>
- </target>
+ <!-- Normal build of application -->
+ <target name="compile" depends="prepare, copyResources">
+ <javac srcdir="JavaSource" destdir="${web-inf.dir}/classes">
+ <classpath refid="compile.classpath" />
+ </javac>
+ </target>
- <!-- Copy any resource or configuration files -->
- <target name="resources">
- <copy todir="${webinf.dir}/classes" includeEmptyDirs="no">
- <fileset dir="JavaSource">
- <patternset>
- <include name="**/*.conf"/>
- <include name="**/*.properties"/>
- <include name="**/*.xml"/>
- </patternset>
- </fileset>
- </copy>
- </target>
+ <!-- Build Project -->
+ <target name="build" depends="prepare, compile" />
- <!-- Normal build of application -->
- <target name="compile" depends="prepare,resources">
- <javac srcdir="JavaSource" destdir="${webinf.dir}/classes">
- <classpath refid="compile.classpath"/>
- </javac>
- </target>
+ <!-- Rebuild Project -->
+ <target name="rebuild" depends="clean, prepare, compile" />
- <!-- Remove classes directory for clean build -->
- <target name="clean"
- description="Prepare for clean build">
- <delete dir="${webinf.dir}/classes"/>
- <mkdir dir="${webinf.dir}/classes"/>
- </target>
+ <!-- Build WAR -->
+ <target name="war" depends="build">
+ <mkdir dir="${build.dir}" />
+ <war warfile="${war.name}" basedir="${web.content.dir}" webxml="${web-inf.dir}/web.xml">
+ <exclude name="WEB-INF/web.xml" />
+ </war>
+ </target>
- <!-- Build entire project -->
- <target name="build" depends="prepare,compile"/>
- <target name="rebuild" depends="clean,prepare,compile"/>
+ <target name="deploy" depends="war">
+ <delete dir="${deploy.dir}/${project.name}" failonerror="false"/>
+ <copy file="${war.name}" todir="${deploy.dir}" />
+ </target>
- <!-- Create binary distribution -->
- <target name="war" depends="build">
- <mkdir dir="${build.dir}"/>
- <war
- basedir="${webroot.dir}"
- warfile="${build.dir}/${project.distname}.war"
- webxml="${webinf.dir}/web.xml">
- <exclude name="WEB-INF/${build.dir}/**"/>
- <exclude name="WEB-INF/src/**"/>
- <exclude name="WEB-INF/web.xml"/>
- </war>
-
- </target>
-
- <target name="deploy" depends="war">
- <delete file="${deploy.dir}/${project.distname}.war"/>
- <delete dir="${deploy.dir}/${project.distname}"/>
- <copy file="${build.dir}/${project.distname}.war" todir="${deploy.dir}"/>
- </target>
-
-</project>
+</project>
\ No newline at end of file
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesAllTests.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesAllTests.java 2008-01-17 15:17:10 UTC (rev 5767)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesAllTests.java 2008-01-17 15:19:49 UTC (rev 5768)
@@ -18,10 +18,10 @@
import org.jboss.tools.jsf.vpe.richfaces.test.jbide.JBIDE1579Test;
import org.jboss.tools.jsf.vpe.richfaces.test.jbide.JBIDE1613Test;
import org.jboss.tools.jsf.vpe.richfaces.test.jbide.Jbide1580Test;
+import org.jboss.tools.jsf.vpe.richfaces.test.jbide.Jbide1614Test;
import org.jboss.tools.vpe.ui.test.VpeTestSetup;
import org.jboss.tools.vpe.ui.test.beans.ImportBean;
-
/**
* Class for testing all RichFaces components
*
@@ -29,29 +29,30 @@
*
*/
-public class RichFacesAllTests {
+public class RichFacesAllTests {
- public static Test suite() {
- TestSuite suite = new TestSuite("Tests for Vpe RichFaces components"); // $NON-NLS-1$
- // $JUnit-BEGIN$
+ public static Test suite() {
+ TestSuite suite = new TestSuite("Tests for Vpe RichFaces components"); // $NON-NLS-1$
+ // $JUnit-BEGIN$
- suite.addTestSuite(RichFacesComponentTest.class);
- suite.addTestSuite(JBIDE1579Test.class);
- suite.addTestSuite(Jbide1580Test.class);
- suite.addTestSuite(JBIDE1613Test.class);
+ suite.addTestSuite(RichFacesComponentTest.class);
+ suite.addTestSuite(JBIDE1579Test.class);
+ suite.addTestSuite(Jbide1580Test.class);
+ suite.addTestSuite(JBIDE1613Test.class);
+ suite.addTestSuite(Jbide1614Test.class);
- // $JUnit-END$
+ // $JUnit-END$
- List<ImportBean> projectToImport = new ArrayList<ImportBean>();
- ImportBean importBean = new ImportBean();
- importBean
- .setImportProjectName(RichFacesComponentTest.IMPORT_PROJECT_NAME);
- importBean.setImportProjectPath(RichFacesTestPlugin
- .getPluginResourcePath());
- projectToImport.add(importBean);
+ List<ImportBean> projectToImport = new ArrayList<ImportBean>();
+ ImportBean importBean = new ImportBean();
+ importBean
+ .setImportProjectName(RichFacesComponentTest.IMPORT_PROJECT_NAME);
+ importBean.setImportProjectPath(RichFacesTestPlugin
+ .getPluginResourcePath());
+ projectToImport.add(importBean);
- return new VpeTestSetup(suite, projectToImport);
+ return new VpeTestSetup(suite, projectToImport);
- }
+ }
}
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/Jbide1614Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/Jbide1614Test.java (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/Jbide1614Test.java 2008-01-17 15:19:49 UTC (rev 5768)
@@ -0,0 +1,131 @@
+/*******************************************************************************
+ * Copyright (c) 2007 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
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+
+package org.jboss.tools.jsf.vpe.richfaces.test.jbide;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import junit.framework.Assert;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.ui.IEditorInput;
+import org.eclipse.ui.part.FileEditorInput;
+import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.editor.util.HTML;
+import org.jboss.tools.vpe.ui.test.TestUtil;
+import org.jboss.tools.vpe.ui.test.VpeTest;
+import org.mozilla.interfaces.nsIDOMDocument;
+import org.mozilla.interfaces.nsIDOMElement;
+import org.mozilla.interfaces.nsIDOMNode;
+
+/**
+ *
+ *
+ * @author dsakovich(a)exadel.com
+ *
+ */
+public class Jbide1614Test extends VpeTest {
+
+ public static final String IMPORT_PROJECT_NAME = "richFacesTest";
+
+ public static final String FILE_NAME1 = "JBIDE/1614/JBIDE-1614-absolute.xhtml";
+ public static final String FILE_NAME2 = "JBIDE/1614/JBIDE-1614-related.xhtml";
+
+ public Jbide1614Test(String name) {
+ super(name);
+ }
+
+ public void testAbsolutePath() throws Throwable {
+
+ // wait
+ TestUtil.waitForJobs();
+ // set exception
+ setException(null);
+
+ // get test page path
+ IFile file = (IFile) TestUtil.getComponentPath(FILE_NAME1,
+ IMPORT_PROJECT_NAME);
+
+ IEditorInput input = new FileEditorInput(file);
+
+ // open and get editor
+ JSPMultiPageEditor part = openEditor(input);
+
+ // get dom document
+ nsIDOMDocument document = getVpeVisualDocument(part);
+ assertNotNull(document);
+
+ // get dom element
+ nsIDOMElement element = document.getDocumentElement();
+ assertNotNull(element);
+
+ // get root node
+ nsIDOMNode node = (nsIDOMNode) element
+ .queryInterface(nsIDOMNode.NS_IDOMNODE_IID);
+
+ List<nsIDOMNode> elements = new ArrayList<nsIDOMNode>();
+
+ // find "code" elements
+ TestUtil.findElementsByName(node, elements, HTML.TAG_CODE);
+
+ Assert.assertEquals(1, elements.size());
+
+ // check exception
+ if (getException() != null) {
+ throw getException();
+ }
+
+ }
+
+ public void testRelatedPath() throws Throwable {
+
+ // wait
+ TestUtil.waitForJobs();
+ // set exception
+ setException(null);
+
+ // get test page path
+ IFile file = (IFile) TestUtil.getComponentPath(FILE_NAME2,
+ IMPORT_PROJECT_NAME);
+
+ IEditorInput input = new FileEditorInput(file);
+
+ // open and get editor
+ JSPMultiPageEditor part = openEditor(input);
+
+ // get dom document
+ nsIDOMDocument document = getVpeVisualDocument(part);
+ assertNotNull(document);
+
+ // get dom element
+ nsIDOMElement element = document.getDocumentElement();
+ assertNotNull(element);
+
+ // get root node
+ nsIDOMNode node = (nsIDOMNode) element
+ .queryInterface(nsIDOMNode.NS_IDOMNODE_IID);
+
+ List<nsIDOMNode> elements = new ArrayList<nsIDOMNode>();
+
+ // find "code" elements
+ TestUtil.findElementsByName(node, elements, HTML.TAG_CODE);
+
+ Assert.assertEquals(1, elements.size());
+
+ // check exception
+ if (getException() != null) {
+ throw getException();
+ }
+
+ }
+
+}
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/HTML.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/HTML.java 2008-01-17 15:17:10 UTC (rev 5767)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/HTML.java 2008-01-17 15:19:49 UTC (rev 5768)
@@ -13,58 +13,58 @@
/**
* @author Sergey Vasilyev (svasilyev(a)exadel.com)
- *
+ *
*/
public final class HTML {
- private HTML() {}
+ private HTML() {
+ }
- public static final String TAG_HTML = "HTML";
- public static final String TAG_HEAD = "HEAD";
- public static final String TAG_BODY = "BODY";
- public static final String TAG_IMG = "IMG";
- public static final String TAG_LINK = "LINK";
- public static final String TAG_SELECT = "SELECT";
- public static final String TAG_OPTION = "OPTION";
- public static final String TAG_STYLE = "STYLE";
- public static final String TAG_TABLE = "TABLE";
- public static final String TAG_TBODY = "TBODY";
- public static final String TAG_THEAD = "THEAD";
- public static final String TAG_TFOOT = "TFOOT";
- public static final String TAG_TH = "TH";
- public static final String TAG_TR = "TR";
- public static final String TAG_TD = "TD";
- public static final String TAG_DL = "DL";
- public static final String TAG_DT = "DT";
- public static final String TAG_COL = "COL";
- public static final String TAG_COLS = "COLS";
- public static final String TAG_COLGROUP = "COLGROUP";
- public static final String TAG_BR = "BR";
- public static final String TAG_LI = "LI";
- public static final String TAG_DIV = "DIV";
- public static final String TAG_SPAN = "SPAN";
- public static final String TAG_P = "P";
- public static final String TAG_TEXTAREA = "TEXTAREA";
- public static final String TAG_INPUT = "INPUT";
- public static final String TAG_BUTTON = "BUTTON";
- public static final String TAG_OL = "OL";
- public static final String TAG_UL = "UL";
-
-
-
- public static final String ATTR_ID = "ID";
- public static final String ATTR_TYPE ="TYPE";
- public static final String ATTR_TEXT ="TEXT";
- public static final String ATTR_CLASS ="CLASS";
- public static final String ATTR_TITLE ="TITLE";
- public static final String ATTR_NAME ="NAME";
- public static final String ATTR_VALUE ="VALUE";
- public static final String ATTR_STYLE ="STYLE";
- public static final String ATTR_SIZE ="SIZE";
- public static final String ATTR_MULTIPLE = "MULTIPLE";
- public static final String ATTR_COLSPAN = "colspan";
- public static final String ATTR_CELLSPACING = "cellspacing";
- public static final String ATTR_CELLPADDING = "cellpadding";
- public static final String ATTR_WIDTH = "WIDTH";
- public static final String ATTR_HEIGHT = "HEIGHT";
+ public static final String TAG_HTML = "HTML";
+ public static final String TAG_HEAD = "HEAD";
+ public static final String TAG_BODY = "BODY";
+ public static final String TAG_IMG = "IMG";
+ public static final String TAG_LINK = "LINK";
+ public static final String TAG_SELECT = "SELECT";
+ public static final String TAG_OPTION = "OPTION";
+ public static final String TAG_STYLE = "STYLE";
+ public static final String TAG_TABLE = "TABLE";
+ public static final String TAG_TBODY = "TBODY";
+ public static final String TAG_THEAD = "THEAD";
+ public static final String TAG_TFOOT = "TFOOT";
+ public static final String TAG_TH = "TH";
+ public static final String TAG_TR = "TR";
+ public static final String TAG_TD = "TD";
+ public static final String TAG_DL = "DL";
+ public static final String TAG_DT = "DT";
+ public static final String TAG_COL = "COL";
+ public static final String TAG_COLS = "COLS";
+ public static final String TAG_COLGROUP = "COLGROUP";
+ public static final String TAG_BR = "BR";
+ public static final String TAG_LI = "LI";
+ public static final String TAG_DIV = "DIV";
+ public static final String TAG_SPAN = "SPAN";
+ public static final String TAG_P = "P";
+ public static final String TAG_TEXTAREA = "TEXTAREA";
+ public static final String TAG_INPUT = "INPUT";
+ public static final String TAG_BUTTON = "BUTTON";
+ public static final String TAG_OL = "OL";
+ public static final String TAG_UL = "UL";
+ public static final String TAG_CODE = "CODE";
+
+ public static final String ATTR_ID = "ID";
+ public static final String ATTR_TYPE = "TYPE";
+ public static final String ATTR_TEXT = "TEXT";
+ public static final String ATTR_CLASS = "CLASS";
+ public static final String ATTR_TITLE = "TITLE";
+ public static final String ATTR_NAME = "NAME";
+ public static final String ATTR_VALUE = "VALUE";
+ public static final String ATTR_STYLE = "STYLE";
+ public static final String ATTR_SIZE = "SIZE";
+ public static final String ATTR_MULTIPLE = "MULTIPLE";
+ public static final String ATTR_COLSPAN = "colspan";
+ public static final String ATTR_CELLSPACING = "cellspacing";
+ public static final String ATTR_CELLPADDING = "cellpadding";
+ public static final String ATTR_WIDTH = "WIDTH";
+ public static final String ATTR_HEIGHT = "HEIGHT";
}
\ No newline at end of file
16 years, 8 months