JBoss Tools SVN: r16264 - workspace/yzhishko/org.jboss.tools.jsf.ui.auto.test/src/org/jboss/tools/jsf/ui/auto/test/cssdialog/jbide.
by jbosstools-commits@lists.jboss.org
Author: yzhishko
Date: 2009-06-29 12:50:29 -0400 (Mon, 29 Jun 2009)
New Revision: 16264
Modified:
workspace/yzhishko/org.jboss.tools.jsf.ui.auto.test/src/org/jboss/tools/jsf/ui/auto/test/cssdialog/jbide/JBIDE3890Test.java
Log:
Small test fixing
Modified: workspace/yzhishko/org.jboss.tools.jsf.ui.auto.test/src/org/jboss/tools/jsf/ui/auto/test/cssdialog/jbide/JBIDE3890Test.java
===================================================================
--- workspace/yzhishko/org.jboss.tools.jsf.ui.auto.test/src/org/jboss/tools/jsf/ui/auto/test/cssdialog/jbide/JBIDE3890Test.java 2009-06-29 16:49:02 UTC (rev 16263)
+++ workspace/yzhishko/org.jboss.tools.jsf.ui.auto.test/src/org/jboss/tools/jsf/ui/auto/test/cssdialog/jbide/JBIDE3890Test.java 2009-06-29 16:50:29 UTC (rev 16264)
@@ -28,6 +28,7 @@
editor.insertText("<body id=\"bodyId\">");
delay();
editor.save();
+ delay();
SWTBotMultiPageEditor multiPageEditor = bot.multiPageEditorByTitle("hello.jsp");
performContentTest("test.xml", multiPageEditor);
}
15 years, 6 months
JBoss Tools SVN: r16263 - workspace/yzhishko/org.jboss.tools.ui.auto.test/resources.
by jbosstools-commits@lists.jboss.org
Author: yzhishko
Date: 2009-06-29 12:49:02 -0400 (Mon, 29 Jun 2009)
New Revision: 16263
Modified:
workspace/yzhishko/org.jboss.tools.ui.auto.test/resources/SWTBot.properties
Log:
Time off is returned to previous value. Speed was increased
Modified: workspace/yzhishko/org.jboss.tools.ui.auto.test/resources/SWTBot.properties
===================================================================
--- workspace/yzhishko/org.jboss.tools.ui.auto.test/resources/SWTBot.properties 2009-06-29 16:48:00 UTC (rev 16262)
+++ workspace/yzhishko/org.jboss.tools.ui.auto.test/resources/SWTBot.properties 2009-06-29 16:49:02 UTC (rev 16263)
@@ -1,2 +1,2 @@
SWTBotPreferences.PLAYBACK_DELAY=25
-SWTBotPreferences.TIMEOUT=3000
+SWTBotPreferences.TIMEOUT=1000
15 years, 6 months
JBoss Tools SVN: r16262 - workspace/yzhishko/org.jboss.tools.ui.auto.test/src/org/jboss/tools/ui/auto/test.
by jbosstools-commits@lists.jboss.org
Author: yzhishko
Date: 2009-06-29 12:48:00 -0400 (Mon, 29 Jun 2009)
New Revision: 16262
Modified:
workspace/yzhishko/org.jboss.tools.ui.auto.test/src/org/jboss/tools/ui/auto/test/JBTSWTBotTestCase.java
Log:
Update test case. Nothing special
Modified: workspace/yzhishko/org.jboss.tools.ui.auto.test/src/org/jboss/tools/ui/auto/test/JBTSWTBotTestCase.java
===================================================================
--- workspace/yzhishko/org.jboss.tools.ui.auto.test/src/org/jboss/tools/ui/auto/test/JBTSWTBotTestCase.java 2009-06-29 16:43:33 UTC (rev 16261)
+++ workspace/yzhishko/org.jboss.tools.ui.auto.test/src/org/jboss/tools/ui/auto/test/JBTSWTBotTestCase.java 2009-06-29 16:48:00 UTC (rev 16262)
@@ -71,9 +71,6 @@
@Override
protected void setUp() throws Exception {
activePerspective();
- deleteLog();
- setException(null);
- Platform.addLogListener(this);
try {
bot.viewByTitle(WidgetVariables.WELCOME).close();
} catch (WidgetNotFoundException e) {
@@ -81,6 +78,10 @@
openErrorLog();
openPackageExplorer();
openProgressStatus();
+ deleteLog();
+ setException(null);
+ Platform.addLogListener(this);
+ delay();
}
@Override
15 years, 6 months
JBoss Tools SVN: r16261 - in trunk: jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: mareshkau
Date: 2009-06-29 12:43:33 -0400 (Mon, 29 Jun 2009)
New Revision: 16261
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE4534Test.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/src/org/jboss/tools/vpe/editor/VpeController.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/TestUtil.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4534, calls of revalidate tlf hasbeen removed from vpe initialization code
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 2009-06-29 15:49:41 UTC (rev 16260)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/JsfAllTests.java 2009-06-29 16:43:33 UTC (rev 16261)
@@ -62,6 +62,7 @@
import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE4373Test;
import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE4509Test;
import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE4510Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE4534Test;
import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE675Test;
import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE788Test;
import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE924Test;
@@ -151,6 +152,7 @@
suite.addTestSuite(JBIDE4179Test.class);
suite.addTestSuite(JBIDE4509Test.class);
suite.addTestSuite(JBIDE4510Test.class);
+ suite.addTestSuite(JBIDE4534Test.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/JBIDE4534Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE4534Test.java (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE4534Test.java 2009-06-29 16:43:33 UTC (rev 16261)
@@ -0,0 +1,131 @@
+/*******************************************************************************
+ * Copyright (c) 2007-2009 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributor:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.jsf.vpe.jsf.test.jbide;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.core.runtime.jobs.Job;
+import org.eclipse.ui.IEditorInput;
+import org.eclipse.ui.part.FileEditorInput;
+import org.jboss.tools.common.model.XModel;
+import org.jboss.tools.common.model.project.IModelNature;
+import org.jboss.tools.common.model.util.EclipseResourceUtil;
+import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
+import org.jboss.tools.jsf.vpe.jsf.test.JsfTestPlugin;
+import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.jst.web.project.WebProject;
+import org.jboss.tools.jst.web.tld.TaglibMapping;
+import org.jboss.tools.vpe.editor.VpeController;
+import org.jboss.tools.vpe.ui.test.TestUtil;
+import org.jboss.tools.vpe.ui.test.VpeTest;
+
+/**
+ * @author mareshkau
+ *
+ */
+public class JBIDE4534Test extends VpeTest{
+
+ private VpeController vpeController;
+ private Job nonUIJob;
+ private IProject project;
+ /* (non-Javadoc)
+ * @see org.jboss.tools.vpe.ui.test.VpeTest#setUp()
+ */
+ @Override
+ protected void setUp() throws Exception {
+ super.setUp();
+ setVpeController(null);
+ this.project = ResourcesPlugin.getWorkspace().getRoot().getProject(
+ JsfAllTests.IMPORT_JBIDE3247_PROJECT_NAME);
+ this.nonUIJob = new Job("Revalidate Taglibs Test Job name"){ //$NON-NLS-1$
+ @SuppressWarnings("synthetic-access")
+ @Override
+ protected IStatus run(IProgressMonitor monitor) {
+ XModel xm = null;
+ IModelNature mn = EclipseResourceUtil.getModelNature(JBIDE4534Test.this.project);
+ if (mn != null) {
+ xm = mn.getModel();
+ }
+ TaglibMapping taglibMapping = WebProject.getInstance(xm).getTaglibMapping();
+ final long timeOfEndExecution = System.currentTimeMillis()+TestUtil.MAX_IDLE;
+ synchronized (taglibMapping) {
+ while(getVpeController()==null) {
+ if(timeOfEndExecution<System.currentTimeMillis()) {
+ return new Status(IStatus.ERROR, JsfTestPlugin.PLUGIN_ID, "Visual page editor hasn't been initialized in time, possibly it's sleeped");//$NON-NLS-1$
+ }
+ if(monitor.isCanceled()) {
+ return new Status(IStatus.CANCEL, JsfTestPlugin.PLUGIN_ID, "Job Execution has been canceled");//$NON-NLS-1$
+ }
+ try {
+ Thread.sleep(5);
+ } catch (InterruptedException e) {
+ fail(e.getStackTrace()+""); //$NON-NLS-1$
+ }
+ }
+ }
+ return Status.OK_STATUS;
+ }};
+ }
+
+ /* (non-Javadoc)
+ * @see org.jboss.tools.vpe.ui.test.VpeTest#tearDown()
+ */
+ @Override
+ protected void tearDown() throws Exception {
+ this.nonUIJob.cancel();
+ setVpeController(null);
+ super.tearDown();
+ }
+
+ public JBIDE4534Test(String name) {
+ super(name);
+ }
+
+ public void testJBIDE4534Test() throws Throwable {
+
+ this.nonUIJob.schedule();
+ while(this.nonUIJob.getState()!=Job.RUNNING) {
+ TestUtil.delay(4);
+ }
+ IFile file = (IFile) TestUtil.getComponentPath("index.xhtml", //$NON-NLS-1$
+ JsfAllTests.IMPORT_JBIDE3247_PROJECT_NAME);
+
+ IEditorInput input = new FileEditorInput(file);
+ // open and get editor
+ final JSPMultiPageEditor part = openEditor(input);
+ setVpeController(TestUtil.getVpeController(part));
+ TestUtil.waitForIdle();
+ IStatus result = this.nonUIJob.getResult();
+ if(result==null
+ ||result.matches(IStatus.ERROR)
+ ||result.matches(IStatus.CANCEL)){
+ fail("Test failed becouse "+result); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @return the vpeController
+ */
+ private VpeController getVpeController() {
+ return this.vpeController;
+ }
+
+ /**
+ * @param vpeControllerParam the vpeController to set
+ */
+ private void setVpeController(VpeController vpeControllerParam) {
+ this.vpeController = vpeControllerParam;
+ }
+}
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java 2009-06-29 15:49:41 UTC (rev 16260)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java 2009-06-29 16:43:33 UTC (rev 16261)
@@ -255,19 +255,20 @@
sourceModel.addModelLifecycleListener(this);
IEditorInput editorInput = pageContext.getEditPart().getEditorInput();
- if(editorInput instanceof IFileEditorInput) {
- XModel xm = null;
- IProject project = ((IFileEditorInput) editorInput).getFile()
- .getProject();
- IModelNature mn = EclipseResourceUtil.getModelNature(project);
- if (mn != null) {
- xm = mn.getModel();
- }
- if (xm != null) {
- WebProject.getInstance(xm).getTaglibMapping().revalidate(
- WebAppHelper.getWebApp(xm));
- }
- }
+ //commented by Maksim Areshkau, as fix for https://jira.jboss.org/jira/browse/JBIDE-4534
+// if(editorInput instanceof IFileEditorInput) {
+// XModel xm = null;
+// IProject project = ((IFileEditorInput) editorInput).getFile()
+// .getProject();
+// IModelNature mn = EclipseResourceUtil.getModelNature(project);
+// if (mn != null) {
+// xm = mn.getModel();
+// }
+// if (xm != null) {
+// WebProject.getInstance(xm).getTaglibMapping().revalidate(
+// WebAppHelper.getWebApp(xm));
+// }
+// }
IDOMDocument sourceDocument = sourceModel.getDocument();
// FIXED FOR JBIDE-3799 by sdzmitrovich, moved calling of this method to buid dom
Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/TestUtil.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/TestUtil.java 2009-06-29 15:49:41 UTC (rev 16260)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/TestUtil.java 2009-06-29 16:43:33 UTC (rev 16261)
@@ -61,7 +61,7 @@
protected final static String EDITOR_ID = "org.jboss.tools.jst.jsp.jspeditor.JSPTextEditor"; //$NON-NLS-1$
/** The Constant MAX_IDLE. */
- private static final long MAX_IDLE = 15*1000L;
+ public static final long MAX_IDLE = 15*1000L;
/**
15 years, 6 months
JBoss Tools SVN: r16260 - workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test.
by jbosstools-commits@lists.jboss.org
Author: yzhishko
Date: 2009-06-29 11:49:41 -0400 (Mon, 29 Jun 2009)
New Revision: 16260
Modified:
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/TestControl.java
Log:
Modified: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/TestControl.java
===================================================================
--- workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/TestControl.java 2009-06-29 15:38:36 UTC (rev 16259)
+++ workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/TestControl.java 2009-06-29 15:49:41 UTC (rev 16260)
@@ -257,4 +257,9 @@
}*/
}
+ @Override
+ protected void activePerspective() {
+
+ }
+
}
15 years, 6 months
JBoss Tools SVN: r16259 - in workspace/yzhishko: org.jboss.tools.seam.ui.auto.test and 22 other directories.
by jbosstools-commits@lists.jboss.org
Author: anis
Date: 2009-06-29 11:38:36 -0400 (Mon, 29 Jun 2009)
New Revision: 16259
Added:
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/.classpath
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/.project
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/.settings/
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/.settings/org.eclipse.jdt.core.prefs
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/META-INF/
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/META-INF/MANIFEST.MF
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/jbossEAPRuntime.properties
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/org/
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/org/jboss/
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/org/jboss/tools/
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/org/jboss/tools/seam/
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/org/jboss/tools/seam/ui/
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/org/jboss/tools/seam/ui/auto/
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/org/jboss/tools/seam/ui/auto/test/
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/org/jboss/tools/seam/ui/auto/test/Activator.class
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/org/jboss/tools/seam/ui/auto/test/SeamTestLauncher.class
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/org/jboss/tools/seam/ui/auto/test/TestControl.class
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/org/jboss/tools/seam/ui/auto/test/create/
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/org/jboss/tools/seam/ui/auto/test/create/CreateActions.class
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/org/jboss/tools/seam/ui/auto/test/create/CreateConversations.class
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/org/jboss/tools/seam/ui/auto/test/create/CreateEntities.class
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/org/jboss/tools/seam/ui/auto/test/create/CreateForms.class
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/org/jboss/tools/seam/ui/auto/test/create/CreateProjectWizard.class
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/org/jboss/tools/seam/ui/auto/test/create/CreateSeamProjects.class
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/org/jboss/tools/seam/ui/auto/test/create/CreateSeamRuntimes.class
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/org/jboss/tools/seam/ui/auto/test/create/CreateServerRuntimes.class
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/org/jboss/tools/seam/ui/auto/test/create/DeleteSeamProjects.class
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/projectProperties.properties
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/seam12Settings.properties
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/seam21Settings.properties
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/seam2fpSettings.properties
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/build.properties
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/resources/
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/resources/jbossEAPRuntime.properties
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/resources/projectProperties.properties
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/resources/seam12Settings.properties
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/resources/seam21Settings.properties
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/resources/seam2fpSettings.properties
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/screenshots/
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/screenshots/Thumbs.db
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/Activator.java
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/SeamTestLauncher.java
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/TestControl.java
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/create/
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/create/CreateActions.java
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/create/CreateConversations.java
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/create/CreateEntities.java
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/create/CreateForms.java
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/create/CreateProjectWizard.java
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/create/CreateSeamProjects.java
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/create/CreateSeamRuntimes.java
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/create/CreateServerRuntimes.java
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/create/DeleteSeamProjects.java
Log:
Added Seam tests
Added: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/.classpath
===================================================================
--- workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/.classpath (rev 0)
+++ workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/.classpath 2009-06-29 15:38:36 UTC (rev 16259)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="src" path="resources"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Added: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/.project
===================================================================
--- workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/.project (rev 0)
+++ workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/.project 2009-06-29 15:38:36 UTC (rev 16259)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.seam.ui.auto.test</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Added: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/.settings/org.eclipse.jdt.core.prefs 2009-06-29 15:38:36 UTC (rev 16259)
@@ -0,0 +1,8 @@
+#Thu Jun 18 13:29:27 EEST 2009
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+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: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/META-INF/MANIFEST.MF
===================================================================
--- workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/META-INF/MANIFEST.MF (rev 0)
+++ workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/META-INF/MANIFEST.MF 2009-06-29 15:38:36 UTC (rev 16259)
@@ -0,0 +1,21 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: SWTBotTests
+Bundle-SymbolicName: org.jboss.tools.seam.ui.auto.test
+Bundle-Version: 1.0.0.qualifier
+Bundle-Activator: org.jboss.tools.seam.ui.auto.test.Activator
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime,
+ org.jboss.tools.ui.auto.test;bundle-version="1.0.0",
+ org.eclipse.swtbot.eclipse.core;bundle-version="2.0.0",
+ org.eclipse.swtbot.eclipse.finder;bundle-version="2.0.0",
+ org.eclipse.swtbot.eclipse.spy;bundle-version="2.0.0",
+ org.eclipse.swtbot.eclipse.ui;bundle-version="2.0.0",
+ org.eclipse.swtbot.junit4_x;bundle-version="2.0.0",
+ org.eclipse.swtbot.swt.finder;bundle-version="2.0.0",
+ org.junit4;bundle-version="4.5.0",
+ org.apache.log4j;bundle-version="1.2.13"
+Eclipse-RegisterBuddy: org.apache.log4j
+Bundle-ActivationPolicy: lazy
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+Import-Package: junit.framework
Added: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/jbossEAPRuntime.properties
===================================================================
--- workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/jbossEAPRuntime.properties (rev 0)
+++ workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/jbossEAPRuntime.properties 2009-06-29 15:38:36 UTC (rev 16259)
@@ -0,0 +1,5 @@
+runtimeGroup=JBoss Enterprise Middleware
+runtimeItem=JBoss Enterprise Application Platform 4.3
+runtimeName=jboss-eap Runtime
+runtimePath=D\:\\EclipseJBDS\\jboss-eap\\jboss-as
+serverName=jboss-eap
\ No newline at end of file
Added: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/org/jboss/tools/seam/ui/auto/test/Activator.class
===================================================================
(Binary files differ)
Property changes on: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/org/jboss/tools/seam/ui/auto/test/Activator.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/org/jboss/tools/seam/ui/auto/test/SeamTestLauncher.class
===================================================================
(Binary files differ)
Property changes on: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/org/jboss/tools/seam/ui/auto/test/SeamTestLauncher.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/org/jboss/tools/seam/ui/auto/test/TestControl.class
===================================================================
(Binary files differ)
Property changes on: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/org/jboss/tools/seam/ui/auto/test/TestControl.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/org/jboss/tools/seam/ui/auto/test/create/CreateActions.class
===================================================================
(Binary files differ)
Property changes on: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/org/jboss/tools/seam/ui/auto/test/create/CreateActions.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/org/jboss/tools/seam/ui/auto/test/create/CreateConversations.class
===================================================================
(Binary files differ)
Property changes on: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/org/jboss/tools/seam/ui/auto/test/create/CreateConversations.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/org/jboss/tools/seam/ui/auto/test/create/CreateEntities.class
===================================================================
(Binary files differ)
Property changes on: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/org/jboss/tools/seam/ui/auto/test/create/CreateEntities.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/org/jboss/tools/seam/ui/auto/test/create/CreateForms.class
===================================================================
(Binary files differ)
Property changes on: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/org/jboss/tools/seam/ui/auto/test/create/CreateForms.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/org/jboss/tools/seam/ui/auto/test/create/CreateProjectWizard.class
===================================================================
(Binary files differ)
Property changes on: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/org/jboss/tools/seam/ui/auto/test/create/CreateProjectWizard.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/org/jboss/tools/seam/ui/auto/test/create/CreateSeamProjects.class
===================================================================
(Binary files differ)
Property changes on: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/org/jboss/tools/seam/ui/auto/test/create/CreateSeamProjects.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/org/jboss/tools/seam/ui/auto/test/create/CreateSeamRuntimes.class
===================================================================
(Binary files differ)
Property changes on: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/org/jboss/tools/seam/ui/auto/test/create/CreateSeamRuntimes.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/org/jboss/tools/seam/ui/auto/test/create/CreateServerRuntimes.class
===================================================================
(Binary files differ)
Property changes on: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/org/jboss/tools/seam/ui/auto/test/create/CreateServerRuntimes.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/org/jboss/tools/seam/ui/auto/test/create/DeleteSeamProjects.class
===================================================================
(Binary files differ)
Property changes on: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/org/jboss/tools/seam/ui/auto/test/create/DeleteSeamProjects.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/projectProperties.properties
===================================================================
--- workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/projectProperties.properties (rev 0)
+++ workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/projectProperties.properties 2009-06-29 15:38:36 UTC (rev 16259)
@@ -0,0 +1,4 @@
+connName=DefaultDS
+jbossServerView=JBoss Server View
+
+
Added: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/seam12Settings.properties
===================================================================
--- workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/seam12Settings.properties (rev 0)
+++ workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/seam12Settings.properties 2009-06-29 15:38:36 UTC (rev 16259)
@@ -0,0 +1,4 @@
+seamRuntimeName=Seam 1.2.AP
+seamRuntimePath=D\:\\EclipseJBDS\\jboss-eap\\seam
+testProjectName=seamTest12
+configName=Dynamic Web Project with Seam 1.2
Added: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/seam21Settings.properties
===================================================================
--- workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/seam21Settings.properties (rev 0)
+++ workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/seam21Settings.properties 2009-06-29 15:38:36 UTC (rev 16259)
@@ -0,0 +1,4 @@
+seamRuntimeName=Seam 2.1.1.GA
+seamRuntimePath=D\:\\EclipseJBDS\\jboss-seam-2.1.1.GA
+testProjectName=seamTest21
+configName=Dynamic Web Project with Seam 2.1 (technology preview)
Added: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/seam2fpSettings.properties
===================================================================
--- workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/seam2fpSettings.properties (rev 0)
+++ workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/bin/seam2fpSettings.properties 2009-06-29 15:38:36 UTC (rev 16259)
@@ -0,0 +1,4 @@
+seamRuntimeName=Seam 2FP
+seamRuntimePath=D\:\\EclipseJBDS\\jboss-eap\\seamfp
+testProjectName=seamTest2fp
+configName=Dynamic Web Project with Seam 2.0
Added: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/build.properties
===================================================================
--- workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/build.properties (rev 0)
+++ workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/build.properties 2009-06-29 15:38:36 UTC (rev 16259)
@@ -0,0 +1,4 @@
+source.. = src/,resources/
+output.. = bin/
+bin.includes = META-INF/,\
+ .
Added: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/resources/jbossEAPRuntime.properties
===================================================================
--- workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/resources/jbossEAPRuntime.properties (rev 0)
+++ workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/resources/jbossEAPRuntime.properties 2009-06-29 15:38:36 UTC (rev 16259)
@@ -0,0 +1,5 @@
+runtimeGroup=JBoss Enterprise Middleware
+runtimeItem=JBoss Enterprise Application Platform 4.3
+runtimeName=jboss-eap Runtime
+runtimePath=D\:\\EclipseJBDS\\jboss-eap\\jboss-as
+serverName=jboss-eap
\ No newline at end of file
Added: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/resources/projectProperties.properties
===================================================================
--- workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/resources/projectProperties.properties (rev 0)
+++ workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/resources/projectProperties.properties 2009-06-29 15:38:36 UTC (rev 16259)
@@ -0,0 +1,4 @@
+connName=DefaultDS
+jbossServerView=JBoss Server View
+
+
Added: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/resources/seam12Settings.properties
===================================================================
--- workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/resources/seam12Settings.properties (rev 0)
+++ workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/resources/seam12Settings.properties 2009-06-29 15:38:36 UTC (rev 16259)
@@ -0,0 +1,4 @@
+seamRuntimeName=Seam 1.2.AP
+seamRuntimePath=D\:\\EclipseJBDS\\jboss-eap\\seam
+testProjectName=seamTest12
+configName=Dynamic Web Project with Seam 1.2
Added: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/resources/seam21Settings.properties
===================================================================
--- workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/resources/seam21Settings.properties (rev 0)
+++ workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/resources/seam21Settings.properties 2009-06-29 15:38:36 UTC (rev 16259)
@@ -0,0 +1,4 @@
+seamRuntimeName=Seam 2.1.1.GA
+seamRuntimePath=D\:\\EclipseJBDS\\jboss-seam-2.1.1.GA
+testProjectName=seamTest21
+configName=Dynamic Web Project with Seam 2.1 (technology preview)
Added: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/resources/seam2fpSettings.properties
===================================================================
--- workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/resources/seam2fpSettings.properties (rev 0)
+++ workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/resources/seam2fpSettings.properties 2009-06-29 15:38:36 UTC (rev 16259)
@@ -0,0 +1,4 @@
+seamRuntimeName=Seam 2FP
+seamRuntimePath=D\:\\EclipseJBDS\\jboss-eap\\seamfp
+testProjectName=seamTest2fp
+configName=Dynamic Web Project with Seam 2.0
Added: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/screenshots/Thumbs.db
===================================================================
(Binary files differ)
Property changes on: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/screenshots/Thumbs.db
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/Activator.java
===================================================================
--- workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/Activator.java (rev 0)
+++ workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/Activator.java 2009-06-29 15:38:36 UTC (rev 16259)
@@ -0,0 +1,50 @@
+package org.jboss.tools.seam.ui.auto.test;
+
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class Activator extends AbstractUIPlugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.jboss.tools.seam.ui.auto.test";
+
+ // The shared instance
+ private static Activator plugin;
+
+ /**
+ * The constructor
+ */
+ public Activator() {
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static Activator getDefault() {
+ return plugin;
+ }
+
+}
Added: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/SeamTestLauncher.java
===================================================================
--- workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/SeamTestLauncher.java (rev 0)
+++ workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/SeamTestLauncher.java 2009-06-29 15:38:36 UTC (rev 16259)
@@ -0,0 +1,35 @@
+package org.jboss.tools.seam.ui.auto.test;
+
+import org.eclipse.swtbot.swt.finder.SWTBotTestCase;
+import org.jboss.tools.seam.ui.auto.test.create.CreateSeamRuntimes;
+import org.jboss.tools.seam.ui.auto.test.create.CreateSeamProjects;
+import org.jboss.tools.seam.ui.auto.test.create.CreateForms;
+import org.jboss.tools.seam.ui.auto.test.create.CreateActions;
+import org.jboss.tools.seam.ui.auto.test.create.CreateConversations;
+import org.jboss.tools.seam.ui.auto.test.create.CreateEntities;
+import org.jboss.tools.seam.ui.auto.test.create.DeleteSeamProjects;
+
+import junit.extensions.TestSetup;
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+
+
+/**
+ *
+ * This is a sample swtbot testcase for an eclipse application.
+ *
+ */
+public class SeamTestLauncher extends SWTBotTestCase{
+ public static Test suite(){
+ TestSuite suite = new TestSuite("Seam tests");
+ suite.addTestSuite(CreateSeamRuntimes.class);
+ suite.addTestSuite(CreateSeamProjects.class);
+ suite.addTestSuite(CreateForms.class);
+ suite.addTestSuite(CreateActions.class);
+ suite.addTestSuite(CreateConversations.class);
+ suite.addTestSuite(CreateEntities.class);
+ suite.addTestSuite(DeleteSeamProjects.class);
+ return new TestSetup(suite);
+ }
+}
\ No newline at end of file
Added: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/TestControl.java
===================================================================
--- workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/TestControl.java (rev 0)
+++ workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/TestControl.java 2009-06-29 15:38:36 UTC (rev 16259)
@@ -0,0 +1,260 @@
+package org.jboss.tools.seam.ui.auto.test;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.util.Properties;
+import org.eclipse.core.runtime.Platform;
+import org.eclipse.swtbot.swt.finder.SWTBot;
+import org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotTree;
+import org.jboss.tools.ui.auto.test.JBTSWTBotTestCase;
+import org.jboss.tools.ui.auto.test.WidgetVariables;
+
+public abstract class TestControl extends JBTSWTBotTestCase{
+
+/*Properties here:*/
+
+ protected static Properties projectProperties;
+ protected static Properties jbossEAPRuntime;
+ protected static Properties seam12Settings;
+ protected static Properties seam2fpSettings;
+ protected static Properties seam21Settings;
+
+ private static String PROJECT_PROPERTIES = "projectProperties.properties";
+ private static String EAP_RUNTIME = "jbossEAPRuntime.properties";
+ private static String SEAM_SET_12 = "seam12Settings.properties";
+ private static String SEAM_SET_2FP = "seam2fpSettings.properties";
+ private static String SEAM_SET_21 = "seam21Settings.properties";
+
+ /* Practically all runtimes exist on Hudson try to rebuild your tests and replace
+ * rantimePath*** property to the next constants. I don't know keys from configuration
+ * on Hudson, but whey will be clear soon
+ */
+
+ public static String JBOSS_EAP_HOME;
+ public static String SEAM_12_SETTINGS_HOME;
+ public static String SEAM_21_SETTINGS_HOME;
+ public static String SEAM_2FP_SETTINGS_HOME;
+
+ static {
+ try {
+ InputStream is = Platform.getBundle(Activator.PLUGIN_ID).getResource(PROJECT_PROPERTIES).openStream();
+ projectProperties = new Properties();
+ projectProperties.load(is);
+ } catch (IOException e) {
+ fail("Can't load properties from " + PROJECT_PROPERTIES + " file");
+ }
+ catch (IllegalStateException e) {
+ fail("Property file " + PROJECT_PROPERTIES + " was not found");
+ }
+ try {
+ InputStream is = Platform.getBundle(Activator.PLUGIN_ID).getResource(EAP_RUNTIME).openStream();
+ jbossEAPRuntime = new Properties();
+ jbossEAPRuntime.load(is);
+ } catch (IOException e) {
+ fail("Can't load properties from " + EAP_RUNTIME + " file");
+ }
+ catch (IllegalStateException e) {
+ fail("Property file " + EAP_RUNTIME + " was not found");
+ }
+ try {
+ InputStream is = Platform.getBundle(Activator.PLUGIN_ID).getResource(SEAM_SET_12).openStream();
+ seam12Settings = new Properties();
+ seam12Settings.load(is);
+ } catch (IOException e) {
+ fail("Can't load properties from " + SEAM_SET_12 + " file");
+ }
+ catch (IllegalStateException e) {
+ fail("Property file " + SEAM_SET_12 + " was not found");
+ }
+ try {
+ InputStream is = Platform.getBundle(Activator.PLUGIN_ID).getResource(SEAM_SET_2FP).openStream();
+ seam2fpSettings = new Properties();
+ seam2fpSettings.load(is);
+ } catch (IOException e) {
+ fail("Can't load properties from " + SEAM_SET_2FP + " file");
+ }
+ catch (IllegalStateException e) {
+ fail("Property file " + SEAM_SET_2FP + " was not found");
+ }
+ try {
+ InputStream is = Platform.getBundle(Activator.PLUGIN_ID).getResource(SEAM_SET_21).openStream();
+ seam21Settings = new Properties();
+ seam21Settings.load(is);
+ } catch (IOException e) {
+ fail("Can't load properties from " + SEAM_SET_21 + " file");
+ }
+ catch (IllegalStateException e) {
+ fail("Property file " + SEAM_SET_21 + " was not found");
+ }
+ JBOSS_EAP_HOME = System.getProperty("jbosstools.test.jboss.home.eap",jbossEAPRuntime.getProperty("runtimePath"));
+ SEAM_12_SETTINGS_HOME = System.getProperty("jbosstools.test.seam.home.1.2",seam12Settings.getProperty("seamRuntimePath"));
+ SEAM_21_SETTINGS_HOME = System.getProperty("jbosstools.test.seam.home.2.1",seam21Settings.getProperty("seamRuntimePath"));
+ SEAM_2FP_SETTINGS_HOME = System.getProperty("jbosstools.test.seam.home.2.fp",seam2fpSettings.getProperty("seamRuntimePath"));
+ }
+
+
+
+
+/*Pre-launch operations here:*/
+
+ /*protected void setUp() throws Exception {
+ super.setUp();
+ bot.viewByTitle(projectProperties.getProperty("jbossServerView")).setFocus();
+ SWTBot innerBot = bot.viewByTitle(projectProperties.getProperty("jbossServerView")).bot();
+ SWTBotTree tree = innerBot.tree();
+ try {
+ tree.getTreeItem(jbossEAPRuntime.getProperty("serverName")+" [Stopped]");
+ } catch (WidgetNotFoundException e) {
+ createServerRuntime(jbossEAPRuntime);
+ }
+ }*/
+
+/*Predefined methods here:*/
+
+public static String TYPE_WAR = "WAR";
+public static String TYPE_EAR = "EAR";
+
+/**Checks for independent tests run. Under Construction. */
+ protected void creationCheck(Integer mode, Properties serverType,
+ Properties runtimeSet, String unitType, String type){
+ if (mode > 1) {
+ bot.viewByTitle(projectProperties.getProperty("jbossServerView")).setFocus();
+ SWTBot innerBot = bot.viewByTitle(projectProperties.getProperty("jbossServerView")).bot();
+ SWTBotTree tree = innerBot.tree();
+ try {
+ tree.getTreeItem(jbossEAPRuntime.getProperty("serverName")+" [Stopped]");
+ } catch (WidgetNotFoundException e) {
+ createServerRuntime(jbossEAPRuntime);
+ }
+ }
+ if (mode > 2) {
+
+ try {
+
+ } catch (WidgetNotFoundException e) {
+ createSeamRuntime(runtimeSet);
+ }
+ }
+ if (mode > 3) {
+
+ try {
+
+ } catch (WidgetNotFoundException e) {
+ createSeamProject(runtimeSet, serverType, type);
+ }
+ }
+ if (mode > 4) {
+
+ try {
+
+ } catch (WidgetNotFoundException e) {
+ createSeamUnit(unitType, runtimeSet, type);
+ }
+ }
+
+ }
+
+/**Creates any Server Runtime + Server. */
+ protected void createServerRuntime(Properties serverType){
+ bot.menu("File").menu("New").menu("Other...").click();
+ SWTBotTree tree = bot.tree();
+ tree.expandNode("Server").select("Server");
+ bot.button("Next >").click();
+ SWTBotTree tree2 = bot.tree();
+ tree2.expandNode(serverType.getProperty("runtimeGroup")).select(serverType.getProperty("runtimeItem"));
+ bot.textWithLabel("Server name:").setText(serverType.getProperty("serverName"));
+ bot.button("Next >").click();
+ bot.textWithLabel("Name").setText(serverType.getProperty("runtimeName"));
+ bot.textWithLabel("Home Directory").setText(serverType.getProperty("runtimePath"));
+ bot.button("Finish").click();
+ }
+
+/** Creates any Seam runtime. */
+ protected void createSeamRuntime(Properties runtimeSet){
+ bot.menu("Window").menu("Preferences").click();
+ SWTBotTree tree = bot.tree();
+ tree.expandNode("JBoss Tools").expandNode("Web").select("Seam");
+ bot.button("Add").click();
+ bot.textWithLabel("Home Folder:").setText(runtimeSet.getProperty("seamRuntimePath"));
+ bot.textWithLabel("Name:").setText(runtimeSet.getProperty("seamRuntimeName"));
+ bot.button("Finish").click();
+ bot.button("OK").click();
+ }
+
+/**Creates any Seam project. */
+ protected void createSeamProject(Properties runtimeSet, Properties serverType,
+ String type ){
+ bot.menu("File").menu("New").menu("Seam Web Project").click();
+ bot.textWithLabel("Project name:").setText(runtimeSet.getProperty("testProjectName")+ type);
+ bot.comboBoxInGroup("Target runtime").setSelection(serverType.getProperty("runtimeName"));
+ bot.comboBoxInGroup("Target Server").setSelection(serverType.getProperty("serverName"));
+ bot.comboBoxInGroup("Configuration").setSelection(runtimeSet.getProperty("configName"));
+ bot.button("Next >").click();
+ bot.button("Next >").click();
+ bot.button("Next >").click();
+ bot.button("Next >").click();
+ bot.comboBoxWithLabel("Seam Runtime:").setSelection(runtimeSet.getProperty("seamRuntimeName"));
+ bot.radio(type).click();
+ bot.comboBoxWithLabel("Connection profile:").setSelection(projectProperties.getProperty("connName"));
+ bot.button("Finish").click();
+ }
+
+/**Creates any Seam Action, Form etc. */
+ protected void createSeamUnit(String unitType,
+ Properties runtimeSet, String type){
+ bot.menu("File").menu("New").menu("Seam " +unitType).click();
+ bot.textWithLabel("Seam Project:").setText(runtimeSet.getProperty("testProjectName")+ type);
+ if (unitType == "Entity") {
+ bot.textWithLabel("Seam entity class name:").setText("seam"+unitType);
+ } else {
+ bot.textWithLabel("Seam component name:").setText("seam"+unitType);
+ }
+ bot.button("Finish").click();
+ }
+
+/**Deletes any Seam project. */
+ protected void deleteSeamProject(Properties runtimeSet, String type){
+ SWTBot innerBot = bot.viewByTitle(WidgetVariables.PACKAGE_EXPLORER).bot();
+ SWTBotTree tree = innerBot.tree();
+ if (type == "WAR") {
+ tree.getTreeItem(runtimeSet.getProperty("testProjectName")+ type).contextMenu("Delete").click();
+ bot.button("OK").click();
+ bot.sleep(1000);
+ tree.getTreeItem(runtimeSet.getProperty("testProjectName")+ type+"-test").contextMenu("Delete").click();
+ bot.button("OK").click();
+ bot.sleep(1000);
+ } else {
+ tree.getTreeItem(runtimeSet.getProperty("testProjectName")+ type).contextMenu("Delete").click();
+ bot.button("OK").click();
+ bot.sleep(1000);
+ tree.getTreeItem(runtimeSet.getProperty("testProjectName")+ type+"-ear").contextMenu("Delete").click();
+ bot.button("OK").click();
+ bot.sleep(1000);
+ tree.getTreeItem(runtimeSet.getProperty("testProjectName")+ type+"-ejb").contextMenu("Delete").click();
+ bot.button("OK").click();
+ bot.sleep(1000);
+ tree.getTreeItem(runtimeSet.getProperty("testProjectName")+ type+"-test").contextMenu("Delete").click();
+ bot.button("OK").click();
+ bot.sleep(1000);
+ }
+ }
+
+
+/**Builder job delay. Ugly delay script here right now. */
+ protected void timeStop(){
+ bot.sleep(38000);
+ /*boolean check = true;
+ bot.menu("Window").menu("Show View").menu("Other...").click();
+ bot.tree().expandNode("General").expandNode("Progress").select();
+ bot.viewByTitle("Progress").setFocus();
+ SWTBot progressBot = bot.viewByTitle("Progress").bot();
+ while (check = true) {
+ bot.sleep(1000);
+ bot.viewByTitle("Progress").setFocus();
+ SWTBotTree proTree = progressBot.tree();
+ check = proTree.hasItems();
+ }*/
+ }
+
+}
Added: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/create/CreateActions.java
===================================================================
--- workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/create/CreateActions.java (rev 0)
+++ workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/create/CreateActions.java 2009-06-29 15:38:36 UTC (rev 16259)
@@ -0,0 +1,33 @@
+package org.jboss.tools.seam.ui.auto.test.create;
+
+import org.jboss.tools.seam.ui.auto.test.TestControl;
+
+public class CreateActions extends TestControl{
+
+ private static String TEST_TYPE = "Action";
+
+ public void testCreateActionFor12war(){
+ createSeamUnit(TEST_TYPE, seam12Settings, TYPE_WAR);
+ }
+
+/* public void testCreateActionFor12ear(){
+ createSeamUnit(TEST_TYPE, seam12Settings, TYPE_EAR);
+ }
+
+ public void testCreateActionFor2fpwar(){
+ createSeamUnit(TEST_TYPE, seam2fpSettings, TYPE_WAR);
+ }
+
+ public void testCreateActionFor2fpear(){
+ createSeamUnit(TEST_TYPE, seam2fpSettings, TYPE_EAR);
+ }
+
+ public void testCreateActionFor21war(){
+ createSeamUnit(TEST_TYPE, seam21Settings, TYPE_WAR);
+ }
+
+ public void testCreateActionFor21ear(){
+ createSeamUnit(TEST_TYPE, seam21Settings, TYPE_EAR);
+ }*/
+}
+
\ No newline at end of file
Added: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/create/CreateConversations.java
===================================================================
--- workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/create/CreateConversations.java (rev 0)
+++ workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/create/CreateConversations.java 2009-06-29 15:38:36 UTC (rev 16259)
@@ -0,0 +1,33 @@
+package org.jboss.tools.seam.ui.auto.test.create;
+
+import org.jboss.tools.seam.ui.auto.test.TestControl;
+
+public class CreateConversations extends TestControl{
+
+ private static String TEST_TYPE = "Conversation";
+
+ public void testCreateConversationFor12war(){
+ createSeamUnit(TEST_TYPE, seam12Settings, TYPE_WAR);
+ }
+
+/* public void testCreateConversationFor12ear(){
+ createSeamUnit(TEST_TYPE, seam12Settings, TYPE_EAR);
+ }
+
+ public void testCreateConversationFor2fpwar(){
+ createSeamUnit(TEST_TYPE, seam2fpSettings, TYPE_WAR);
+ }
+
+ public void testCreateConversationFor2fpear(){
+ createSeamUnit(TEST_TYPE, seam2fpSettings, TYPE_EAR);
+ }
+
+ public void testCreateConversationFor21war(){
+ createSeamUnit(TEST_TYPE, seam21Settings, TYPE_WAR);
+ }
+
+ public void testCreateConversationFor21ear(){
+ createSeamUnit(TEST_TYPE, seam21Settings, TYPE_EAR);
+ }*/
+}
+
\ No newline at end of file
Added: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/create/CreateEntities.java
===================================================================
--- workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/create/CreateEntities.java (rev 0)
+++ workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/create/CreateEntities.java 2009-06-29 15:38:36 UTC (rev 16259)
@@ -0,0 +1,33 @@
+package org.jboss.tools.seam.ui.auto.test.create;
+
+import org.jboss.tools.seam.ui.auto.test.TestControl;
+
+public class CreateEntities extends TestControl{
+
+ private static String TEST_TYPE = "Entity";
+
+ public void testCreateConversationFor12war(){
+ createSeamUnit(TEST_TYPE, seam12Settings, TYPE_WAR);
+ }
+
+/* public void testCreateEntityFor12ear(){
+ createSeamUnit(TEST_TYPE, seam12Settings, TYPE_EAR);
+ }
+
+ public void testCreateEntityFor2fpwar(){
+ createSeamUnit(TEST_TYPE, seam2fpSettings, TYPE_WAR);
+ }
+
+ public void testCreateEntityFor2fpear(){
+ createSeamUnit(TEST_TYPE, seam2fpSettings, TYPE_EAR);
+ }
+
+ public void testCreateEntityFor21war(){
+ createSeamUnit(TEST_TYPE, seam21Settings, TYPE_WAR);
+ }
+
+ public void testCreateEntityFor21ear(){
+ createSeamUnit(TEST_TYPE, seam21Settings, TYPE_EAR);
+ }*/
+}
+
\ No newline at end of file
Added: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/create/CreateForms.java
===================================================================
--- workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/create/CreateForms.java (rev 0)
+++ workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/create/CreateForms.java 2009-06-29 15:38:36 UTC (rev 16259)
@@ -0,0 +1,33 @@
+package org.jboss.tools.seam.ui.auto.test.create;
+
+import org.jboss.tools.seam.ui.auto.test.TestControl;
+
+public class CreateForms extends TestControl{
+
+ private static String TEST_TYPE = "Form";
+
+ public void testCreateFormFor12war(){
+ createSeamUnit(TEST_TYPE, seam12Settings, TYPE_WAR);
+ }
+
+/* public void testCreateFormFor12ear(){
+ createSeamUnit(TEST_TYPE, seam12Settings, TYPE_EAR);
+ }
+
+ public void testCreateFormFor2fpwar(){
+ createSeamUnit(TEST_TYPE, seam2fpSettings, TYPE_WAR);
+ }
+
+ public void testCreateFormFor2fpear(){
+ createSeamUnit(TEST_TYPE, seam2fpSettings, TYPE_EAR);
+ }
+
+ public void testCreateFormFor21war(){
+ createSeamUnit(TEST_TYPE, seam21Settings, TYPE_WAR);
+ }
+
+ public void testCreateFormFor21ear(){
+ createSeamUnit(TEST_TYPE, seam21Settings, TYPE_EAR);
+ }*/
+}
+
\ No newline at end of file
Added: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/create/CreateProjectWizard.java
===================================================================
--- workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/create/CreateProjectWizard.java (rev 0)
+++ workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/create/CreateProjectWizard.java 2009-06-29 15:38:36 UTC (rev 16259)
@@ -0,0 +1,5 @@
+package org.jboss.tools.seam.ui.auto.test.create;
+
+public class CreateProjectWizard {
+
+}
Added: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/create/CreateSeamProjects.java
===================================================================
--- workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/create/CreateSeamProjects.java (rev 0)
+++ workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/create/CreateSeamProjects.java 2009-06-29 15:38:36 UTC (rev 16259)
@@ -0,0 +1,37 @@
+package org.jboss.tools.seam.ui.auto.test.create;
+
+import org.jboss.tools.seam.ui.auto.test.TestControl;
+
+public class CreateSeamProjects extends TestControl{
+
+ public void testCreateSeamProject12war(){
+ createSeamProject(seam12Settings, jbossEAPRuntime, TYPE_WAR);
+ timeStop();
+ }
+
+/* public void testCreateSeamProject12ear(){
+ createSeamProject(seam12Settings, jbossEAPRuntime, TYPE_EAR);
+ timeStop();
+ }
+
+ public void testCreateSeamProject2fpwar(){
+ createSeamProject(seam2fpSettings, jbossEAPRuntime, TYPE_WAR);
+ timeStop();
+ }
+
+ public void testCreateSeamProject2fpear(){
+ createSeamProject(seam2fpSettings, jbossEAPRuntime, TYPE_EAR);
+ timeStop();
+ }
+
+ public void testCreateSeamProject21war(){
+ createSeamProject(seam21Settings, jbossEAPRuntime, TYPE_WAR);
+ timeStop();
+ }
+
+ public void testCreateSeamProject21ear(){
+ createSeamProject(seam21Settings, jbossEAPRuntime, TYPE_EAR);
+ timeStop();
+ }*/
+
+}
\ No newline at end of file
Added: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/create/CreateSeamRuntimes.java
===================================================================
--- workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/create/CreateSeamRuntimes.java (rev 0)
+++ workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/create/CreateSeamRuntimes.java 2009-06-29 15:38:36 UTC (rev 16259)
@@ -0,0 +1,18 @@
+package org.jboss.tools.seam.ui.auto.test.create;
+
+import org.jboss.tools.seam.ui.auto.test.TestControl;
+
+public class CreateSeamRuntimes extends TestControl{
+
+ public void testCreateSeamRuntime12(){
+ createSeamRuntime(seam12Settings);
+ }
+
+ public void testCreateSeamRuntime2fp(){
+ createSeamRuntime(seam2fpSettings);
+ }
+
+ public void testCreateSeamRuntime21(){
+ createSeamRuntime(seam21Settings);
+ }
+}
Added: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/create/CreateServerRuntimes.java
===================================================================
--- workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/create/CreateServerRuntimes.java (rev 0)
+++ workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/create/CreateServerRuntimes.java 2009-06-29 15:38:36 UTC (rev 16259)
@@ -0,0 +1,10 @@
+package org.jboss.tools.seam.ui.auto.test.create;
+
+import org.jboss.tools.seam.ui.auto.test.TestControl;
+
+public class CreateServerRuntimes extends TestControl{
+
+ public void testCreateEAPServerRuntime(){
+ createServerRuntime(jbossEAPRuntime);
+ }
+}
\ No newline at end of file
Added: workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/create/DeleteSeamProjects.java
===================================================================
--- workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/create/DeleteSeamProjects.java (rev 0)
+++ workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/src/org/jboss/tools/seam/ui/auto/test/create/DeleteSeamProjects.java 2009-06-29 15:38:36 UTC (rev 16259)
@@ -0,0 +1,31 @@
+package org.jboss.tools.seam.ui.auto.test.create;
+
+import org.jboss.tools.seam.ui.auto.test.TestControl;
+
+public class DeleteSeamProjects extends TestControl{
+
+ public void testDeleteSeamProject12war(){
+ deleteSeamProject(seam12Settings, TYPE_WAR);
+ }
+
+/* public void testDeleteSeamProject12ear(){
+ deleteSeamProject(seam12Settings, TYPE_EAR);
+ }
+
+ public void testDeleteSeamProject2fpwar(){
+ deleteSeamProject(seam2fpSettings, TYPE_WAR);
+ }
+
+ public void testDeleteSeamProject2fpear(){
+ deleteSeamProject(seam2fpSettings, TYPE_EAR);
+ }
+
+ public void testDeleteSeamProject21war(){
+ deleteSeamProject(seam21Settings, TYPE_WAR);
+ }
+
+ public void testDeleteSeamProject21ear(){
+ deleteSeamProject(seam21Settings, TYPE_EAR);
+ }*/
+
+}
15 years, 6 months
JBoss Tools SVN: r16258 - workspace/yzhishko.
by jbosstools-commits@lists.jboss.org
Author: anis
Date: 2009-06-29 11:34:58 -0400 (Mon, 29 Jun 2009)
New Revision: 16258
Removed:
workspace/yzhishko/org.jboss.tools.seam.ui.auto.test/
Log:
Removed file/folder
15 years, 6 months
JBoss Tools SVN: r16257 - trunk/jsf/docs/userguide/en/modules.
by jbosstools-commits@lists.jboss.org
Author: abogachuk
Date: 2009-06-29 11:22:02 -0400 (Mon, 29 Jun 2009)
New Revision: 16257
Modified:
trunk/jsf/docs/userguide/en/modules/editors.xml
Log:
https://jira.jboss.org/jira/browse/JBDS-752 - section 3.2.2 updated: page styling re-written
Modified: trunk/jsf/docs/userguide/en/modules/editors.xml
===================================================================
--- trunk/jsf/docs/userguide/en/modules/editors.xml 2009-06-29 15:21:11 UTC (rev 16256)
+++ trunk/jsf/docs/userguide/en/modules/editors.xml 2009-06-29 15:22:02 UTC (rev 16257)
@@ -1023,13 +1023,13 @@
</mediaobject>
</figure>
- <para id="css_dialog"><property>CSS Dialog</property> has four tabs where css
+ <para id="css_dialog"><property>CSS Style Dialog</property> has several tabs where css
properties for text, background, borders and others can be specified. A simple
- preview which is generated at the top of the <property>CSS Dialog</property>
+ preview which is generated at the top of the <property>CSS Style Dialog</property>
allows you to see the changes before you apply them.</para>
<figure>
- <title>CSS Dialog</title>
+ <title>CSS Style Dialog</title>
<mediaobject>
<imageobject>
<imagedata fileref="images/visual_page/visual_page_7.png"/>
@@ -1042,16 +1042,15 @@
<title>External Stylesheets</title>
<para>The pages you are working with in <property>VPE</property> can use external
stylesheets. <property>VPE</property> allows you to create new style classes in
- existing stylesheets and/or edit them as well. For these purposes <property>CSS
- Style Class Dialog</property> is provided (hot keys - <emphasis>
- <property>CTRL+SHIT+C</property>).</emphasis></para>
+ existing stylesheets and/or edit them as well. For these purposes <property>Edit
+ Style Class Dialog</property> is provided.</para>
<para>Select the element for which you need to create or edit style class and press
button next to <emphasis>
<property>styleClass</property>
</emphasis> field in <property>Properties view</property>.</para>
<figure>
- <title>Calling the CSS Style Class Dialog</title>
+ <title>Calling the Edit Style Class Dialog</title>
<mediaobject>
<imageobject>
<imagedata fileref="images/visual_page/visual_page_17.png"/>
@@ -1059,32 +1058,37 @@
</mediaobject>
</figure>
- <para>It'll pick up the <property>CSS Style Class Dialog</property> which
- looks like on the figure below.</para>
+ <para>It'll pick up the <property>Edit Style Class Dialog</property> which
+ looks like on the figure below:</para>
<figure>
- <title>CSS Style Class Dialog</title>
+ <title>Edit Style Class Dialog</title>
<mediaobject>
<imageobject>
<imagedata fileref="images/visual_page/visual_page_18.png"/>
</imageobject>
</mediaobject>
</figure>
- <para>First, you should specify the CSS file where you are going to put your style
- class. Do this by pressing the button next to the <emphasis>
- <property>CSS file</property>
- </emphasis> field.</para>
- <figure>
- <title>CSS File Selection</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/visual_page/visual_page_19.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>To create new CSS class write its name in the <emphasis>
- <property>Style class</property>
- </emphasis> field and then configure style settings switching between the tabs: <emphasis>
+
+ <para>Choose a style class from the variants provided and click on the <property>Ok</property> button to apply the changes.</para>
+
+ <para>To open a CSS dialog based on the active CSS file click on <inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="images/visual_page/visual_page_19.png"/>
+ </imageobject>
+ </inlinemediaobject> in the top panel or use hot-keys (<property>Shift+Ctrl+C</property>). </para>
+
+ <para>To create a new CSS class for the file click on the <property>Add CSS Class</property> button, write its name in the field appeared and click on the <property>Ok</property> button:</para>
+
+ <figure>
+ <title>Add CSS Class</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/visual_page/visual_page_20_b.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Then you can configure style settings switching between the tabs: <emphasis>
<property>Text/Font</property>, </emphasis>
<emphasis>
<property>Background</property>, </emphasis>
@@ -1095,7 +1099,7 @@
the chosen element just point to the
necessary one. Each time you select any class it is displayed in the Preview tab. Click on the <emphasis><property>Apply</property></emphasis> button will apply the changes without closing the window.</para>
- <figure>
+ <figure>
<title>Style Class Selection</title>
<mediaobject>
<imageobject>
@@ -1104,6 +1108,9 @@
</mediaobject>
</figure>
+
+
+
<para>The <emphasis>
<property>Edited properties</property>
</emphasis> tab gives a preview of the properties which are set for the existing
@@ -1142,7 +1149,7 @@
</mediaobject>
</figure>
- <para>At the top of the <property>CSS Style Class Dialog</property>
+ <para>At the top of the <property>CSS Class Dialog</property>
you can see a preview box which visualizes the result. To edit the preview you should double click in the box. To leave the focus, use <emphasis>
<property>Ctrl + Tab</property>.</emphasis></para>
@@ -1157,7 +1164,7 @@
<para>The dialog for creating a new CSS class, which is called from <emphasis>
<property>New > Other... > JBoss Tools Web > CSS Class</property>,
- </emphasis> looks the same.</para>
+ </emphasis> looks this way:</para>
<figure>
<title>New CSS Class Dialog</title>
@@ -1167,6 +1174,18 @@
</imageobject>
</mediaobject>
</figure>
+ <para>Click on the <property>Browse</property> button to open a dialog to select the CSS file to create a CSS class for:</para>
+ <figure>
+ <title>CSS File Selection</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/visual_page/visual_page_22_b.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>Choose the necessary CSS file and click on the <property>Ok</property> button.</para>
+
+
</section>
</section>
15 years, 6 months
JBoss Tools SVN: r16256 - trunk/jsf/docs/userguide/en/images/visual_page.
by jbosstools-commits@lists.jboss.org
Author: abogachuk
Date: 2009-06-29 11:21:11 -0400 (Mon, 29 Jun 2009)
New Revision: 16256
Added:
trunk/jsf/docs/userguide/en/images/visual_page/visual_page_20_b.png
trunk/jsf/docs/userguide/en/images/visual_page/visual_page_22_b.png
Log:
https://jira.jboss.org/jira/browse/JBDS-752 - new screenshots added
Added: trunk/jsf/docs/userguide/en/images/visual_page/visual_page_20_b.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/userguide/en/images/visual_page/visual_page_20_b.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/userguide/en/images/visual_page/visual_page_22_b.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/userguide/en/images/visual_page/visual_page_22_b.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
15 years, 6 months
JBoss Tools SVN: r16255 - trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2009-06-29 11:21:04 -0400 (Mon, 29 Jun 2009)
New Revision: 16255
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/AbstractXMLContentAssistProcessor.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-2808
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/AbstractXMLContentAssistProcessor.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/AbstractXMLContentAssistProcessor.java 2009-06-29 15:20:14 UTC (rev 16254)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/AbstractXMLContentAssistProcessor.java 2009-06-29 15:21:04 UTC (rev 16255)
@@ -692,8 +692,12 @@
}
int inValueOffset = getOffset() - startOffset;
- if (text.length() < inValueOffset) // probably, the attribute value ends before the document position
+ if (text.length() < inValueOffset) { // probably, the attribute value ends before the document position
return null;
+ }
+ if (inValueOffset<0) {
+ return null;
+ }
String matchString = text.substring(0, inValueOffset);
15 years, 6 months