JBoss Tools SVN: r5928 - in trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces: src/org/jboss/tools/jsf/vpe/richfaces/template and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: sdzmitrovich
Date: 2008-01-24 06:37:07 -0500 (Thu, 24 Jan 2008)
New Revision: 5928
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/shuttle/shuttle.css
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesListShuttleTemplate.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1580
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/shuttle/shuttle.css
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/shuttle/shuttle.css 2008-01-24 11:29:57 UTC (rev 5927)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/shuttle/shuttle.css 2008-01-24 11:37:07 UTC (rev 5928)
@@ -59,13 +59,19 @@
border-color: #C0C0C0;
}
+.rich-shuttle-meta-button {
+ background: top left repeat-x;
+ background-color: #E3DED5;
+
+}
+
.rich-shuttle-button {
background: top left repeat-x;
padding: 2px;
cursor: pointer;
//background-color: #E3DED5;
color: #000;
- font-family: Arial, Verdana, sans-serif;
+ ont-family: Arial, Verdana, sans-serif;
font-size: 11px;
}
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesListShuttleTemplate.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesListShuttleTemplate.java 2008-01-24 11:29:57 UTC (rev 5927)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesListShuttleTemplate.java 2008-01-24 11:37:07 UTC (rev 5928)
@@ -662,7 +662,8 @@
metaButton.setAttribute(HTML.ATTR_STYLE, ComponentUtil
.getBackgoundImgStyle(BUTTON_IMG_PATH));
-
+ metaButton.setAttribute(HTML.ATTR_CLASS, "rich-shuttle-meta-button");
+
// button represent "div" element
nsIDOMElement button = visualDocument.createElement(HTML.TAG_DIV);
18 years, 2 months
JBoss Tools SVN: r5927 - trunk/common/plugins/org.jboss.tools.common.model/resources/help.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2008-01-24 06:29:57 -0500 (Thu, 24 Jan 2008)
New Revision: 5927
Modified:
trunk/common/plugins/org.jboss.tools.common.model/resources/help/keys-model.properties
Log:
JBIDE-1662
Modified: trunk/common/plugins/org.jboss.tools.common.model/resources/help/keys-model.properties
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/resources/help/keys-model.properties 2008-01-24 11:10:56 UTC (rev 5926)
+++ trunk/common/plugins/org.jboss.tools.common.model/resources/help/keys-model.properties 2008-01-24 11:29:57 UTC (rev 5927)
@@ -96,6 +96,9 @@
Property_Properties.Title=
Property_Edit=/model/FilePROPERTIES.html
+FilePROPERTIES_CreateProperty.WindowTitle=Add Property
+FilePROPERTIES_CreateProperty.Title=Property
+
##### File #####
FileAnyAuxiliary=/model/FileAny.html
18 years, 2 months
JBoss Tools SVN: r5926 - trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2008-01-24 06:10:56 -0500 (Thu, 24 Jan 2008)
New Revision: 5926
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamCoreValidator.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1675 Fixed
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamCoreValidator.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamCoreValidator.java 2008-01-24 11:07:26 UTC (rev 5925)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamCoreValidator.java 2008-01-24 11:10:56 UTC (rev 5926)
@@ -432,6 +432,7 @@
location = declaration;
}
addError(UNKNOWN_COMPONENT_CLASS_NAME_MESSAGE_ID, SeamPreferences.UNKNOWN_COMPONENT_CLASS_NAME, new String[]{className}, location, declaration.getResource());
+ return;
} else if(!type.isBinary()) {
validationContext.addLinkedCoreResource(componentName, type.getResource().getFullPath());
}
18 years, 2 months
JBoss Tools SVN: r5925 - trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/shuttle.
by jbosstools-commits@lists.jboss.org
Author: sdzmitrovich
Date: 2008-01-24 06:07:26 -0500 (Thu, 24 Jan 2008)
New Revision: 5925
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/shuttle/shuttle.css
Log:
http://jira.jboss.com/jira/browse/JBIDE-1580
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/shuttle/shuttle.css
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/shuttle/shuttle.css 2008-01-24 10:33:36 UTC (rev 5924)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/shuttle/shuttle.css 2008-01-24 11:07:26 UTC (rev 5925)
@@ -63,7 +63,7 @@
background: top left repeat-x;
padding: 2px;
cursor: pointer;
- background-color: #E3DED5;
+ //background-color: #E3DED5;
color: #000;
font-family: Arial, Verdana, sans-serif;
font-size: 11px;
18 years, 2 months
JBoss Tools SVN: r5924 - trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editor.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2008-01-24 05:33:36 -0500 (Thu, 24 Jan 2008)
New Revision: 5924
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editor/DeploySection.java
Log:
Tell the user which directory is actually the problem (the paths can be very long and not always visible)
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editor/DeploySection.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editor/DeploySection.java 2008-01-24 10:10:22 UTC (rev 5923)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editor/DeploySection.java 2008-01-24 10:33:36 UTC (rev 5924)
@@ -22,6 +22,7 @@
package org.jboss.ide.eclipse.as.ui.editor;
import java.util.ArrayList;
+import java.util.List;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Path;
@@ -198,14 +199,15 @@
public IStatus[] getSaveStatus() {
String error = "";
- ArrayList status = new ArrayList();
+ List status = new ArrayList();
if(!new Path(text.getText()).toFile().exists()) {
- String msg = "The path \"" + text.getText() + "\" does not exist.";
+ String msg = "The deploy directory \"" + text.getText() + "\" does not exist.";
status.add(new Status(IStatus.ERROR, JBossServerCorePlugin.PLUGIN_ID, msg));
error = msg + "\n";
}
+
if(!new Path(tempDeployText.getText()).toFile().exists()) {
- String msg = "The path \"" + tempDeployText.getText() + "\" does not exist.";
+ String msg = "The temporary deploy directory \"" + tempDeployText.getText() + "\" does not exist.";
status.add(new Status(IStatus.ERROR, JBossServerCorePlugin.PLUGIN_ID, msg));
error = error + msg + "\n";
}
18 years, 2 months
JBoss Tools SVN: r5922 - trunk/common/tests/org.jboss.tools.common.model.ui.test/src/org/jboss/tools/common/model/ui/test.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2008-01-24 01:13:39 -0500 (Thu, 24 Jan 2008)
New Revision: 5922
Modified:
trunk/common/tests/org.jboss.tools.common.model.ui.test/src/org/jboss/tools/common/model/ui/test/ModelUiAllTests.java
Log:
fix test error:
suite() method must be static
org.eclipse.test.EclipseTestRunner$TestFailedException: suite() method must be static
Modified: trunk/common/tests/org.jboss.tools.common.model.ui.test/src/org/jboss/tools/common/model/ui/test/ModelUiAllTests.java
===================================================================
--- trunk/common/tests/org.jboss.tools.common.model.ui.test/src/org/jboss/tools/common/model/ui/test/ModelUiAllTests.java 2008-01-24 02:18:58 UTC (rev 5921)
+++ trunk/common/tests/org.jboss.tools.common.model.ui.test/src/org/jboss/tools/common/model/ui/test/ModelUiAllTests.java 2008-01-24 06:13:39 UTC (rev 5922)
@@ -17,7 +17,7 @@
*
*/
public class ModelUiAllTests {
- public TestSuite suite() {
+ public static TestSuite suite() {
TestSuite suite = new TestSuite();
suite.addTestSuite(ModelUiPreferencesPageTest.class);
return suite;
18 years, 2 months
JBoss Tools SVN: r5921 - in trunk: common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/templates/preferences and 12 other directories.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2008-01-23 21:18:58 -0500 (Wed, 23 Jan 2008)
New Revision: 5921
Added:
trunk/common/tests/org.jboss.tools.common.model.ui.test/plugin.xml
trunk/common/tests/org.jboss.tools.common.model.ui.test/src/org/jboss/common/model/ui/test/preferences/
trunk/common/tests/org.jboss.tools.common.model.ui.test/src/org/jboss/tools/
trunk/common/tests/org.jboss.tools.common.model.ui.test/src/org/jboss/tools/common/
trunk/common/tests/org.jboss.tools.common.model.ui.test/src/org/jboss/tools/common/model/
trunk/common/tests/org.jboss.tools.common.model.ui.test/src/org/jboss/tools/common/model/ui/
trunk/common/tests/org.jboss.tools.common.model.ui.test/src/org/jboss/tools/common/model/ui/test/
trunk/common/tests/org.jboss.tools.common.model.ui.test/src/org/jboss/tools/common/model/ui/test/ModelNewWizardTest.java
trunk/common/tests/org.jboss.tools.common.model.ui.test/src/org/jboss/tools/common/model/ui/test/ModelUiAllTests.java
trunk/common/tests/org.jboss.tools.common.model.ui.test/src/org/jboss/tools/common/model/ui/test/ModelUiPreferencesPageTest.java
Removed:
trunk/common/tests/org.jboss.tools.common.model.ui.test/src/org/jboss/common/model/ui/test/ModelNewWizardTest.java
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/preferences/CompanyPreferencesPage.java
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/templates/preferences/GlobalTemplatePreferencePage.java
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/texteditors/preferences/EditorsPreferencesPage.java
trunk/common/tests/org.jboss.tools.common.model.ui.test/META-INF/MANIFEST.MF
trunk/common/tests/org.jboss.tools.common.model.ui.test/build.properties
trunk/jst/tests/org.jboss.tools.jst.web.ui.test/src/org/jboss/tools/jst/web/ui/test/WebWizardsTest.java
trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/test/util/ResourcesUtils.java
Log:
test for preference pages added
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/preferences/CompanyPreferencesPage.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/preferences/CompanyPreferencesPage.java 2008-01-24 01:43:11 UTC (rev 5920)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/preferences/CompanyPreferencesPage.java 2008-01-24 02:18:58 UTC (rev 5921)
@@ -22,6 +22,9 @@
import org.eclipse.ui.*;
public class CompanyPreferencesPage extends PreferencePage implements IWorkbenchPreferencePage {
+
+ public static final String WEB_PREFERENCES_ID = "org.jboss.tools.common.model.ui";
+
protected Control contents;
public void createControl(final Composite parent) {
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/templates/preferences/GlobalTemplatePreferencePage.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/templates/preferences/GlobalTemplatePreferencePage.java 2008-01-24 01:43:11 UTC (rev 5920)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/templates/preferences/GlobalTemplatePreferencePage.java 2008-01-24 02:18:58 UTC (rev 5921)
@@ -22,7 +22,10 @@
* @author au
*/
public class GlobalTemplatePreferencePage extends PreferencePage implements IWorkbenchPreferencePage {
- TemplateComponent templateComponent = new TemplateComponent();
+
+ public static final String GLOBAL_TEMPLATES_PREFERENCES_ID = "org.jboss.tools.common.model.ui.templates";
+
+ TemplateComponent templateComponent = new TemplateComponent();
protected Control createContents(Composite parent) {
return templateComponent.createContents(parent);
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/texteditors/preferences/EditorsPreferencesPage.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/texteditors/preferences/EditorsPreferencesPage.java 2008-01-24 01:43:11 UTC (rev 5920)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/texteditors/preferences/EditorsPreferencesPage.java 2008-01-24 02:18:58 UTC (rev 5921)
@@ -22,6 +22,9 @@
import org.jboss.tools.common.text.xml.ui.xpl.BasePreferenceConstants;
public class EditorsPreferencesPage extends XMOBasedPreferencesPage {
+
+ public static final String EDITOR_PREFERENCES_ID = "org.jboss.tools.common.xstudio.editors";
+
static String PATH = "%Options%/Struts Studio/Editors";
public EditorsPreferencesPage() {
Modified: trunk/common/tests/org.jboss.tools.common.model.ui.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/common/tests/org.jboss.tools.common.model.ui.test/META-INF/MANIFEST.MF 2008-01-24 01:43:11 UTC (rev 5920)
+++ trunk/common/tests/org.jboss.tools.common.model.ui.test/META-INF/MANIFEST.MF 2008-01-24 02:18:58 UTC (rev 5921)
@@ -1,7 +1,7 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Model UI Test Plug-in
-Bundle-SymbolicName: org.jboss.tools.common.model.ui.test
+Bundle-SymbolicName: org.jboss.tools.common.model.ui.test;singleton:=true
Bundle-Version: 1.0.0
Require-Bundle: org.junit;visibility:=reexport,
org.eclipse.jface,
@@ -9,4 +9,4 @@
org.eclipse.ui,
org.jboss.tools.common,
org.jboss.tools.common.model.ui
-Export-Package: org.jboss.common.model.ui.test
+Export-Package: org.jboss.tools.common.model.ui.test
Modified: trunk/common/tests/org.jboss.tools.common.model.ui.test/build.properties
===================================================================
--- trunk/common/tests/org.jboss.tools.common.model.ui.test/build.properties 2008-01-24 01:43:11 UTC (rev 5920)
+++ trunk/common/tests/org.jboss.tools.common.model.ui.test/build.properties 2008-01-24 02:18:58 UTC (rev 5921)
@@ -1,4 +1,5 @@
source.. = src/
output.. = bin/
bin.includes = META-INF/,\
- .
+ .,\
+ plugin.xml
Added: trunk/common/tests/org.jboss.tools.common.model.ui.test/plugin.xml
===================================================================
--- trunk/common/tests/org.jboss.tools.common.model.ui.test/plugin.xml (rev 0)
+++ trunk/common/tests/org.jboss.tools.common.model.ui.test/plugin.xml 2008-01-24 02:18:58 UTC (rev 5921)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.2"?>
+<plugin>
+ <extension
+ point="org.eclipse.ui.activities">
+ <defaultEnablement
+ id="org.jboss.tools.common.model.ui.templates">
+ </defaultEnablement>
+ </extension>
+
+</plugin>
Property changes on: trunk/common/tests/org.jboss.tools.common.model.ui.test/plugin.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Deleted: trunk/common/tests/org.jboss.tools.common.model.ui.test/src/org/jboss/common/model/ui/test/ModelNewWizardTest.java
===================================================================
--- trunk/common/tests/org.jboss.tools.common.model.ui.test/src/org/jboss/common/model/ui/test/ModelNewWizardTest.java 2008-01-24 01:43:11 UTC (rev 5920)
+++ trunk/common/tests/org.jboss.tools.common.model.ui.test/src/org/jboss/common/model/ui/test/ModelNewWizardTest.java 2008-01-24 02:18:58 UTC (rev 5921)
@@ -1,45 +0,0 @@
-/*******************************************************************************
- * 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.common.model.ui.test;
-
-import org.eclipse.jface.wizard.IWizard;
-import org.eclipse.jface.wizard.IWizardPage;
-import org.eclipse.jface.wizard.WizardDialog;
-import org.eclipse.ui.PlatformUI;
-import org.jboss.tools.common.model.ui.wizards.standard.DefaultStandardStep;
-import org.jboss.tools.common.util.WorkbenchUtils;
-
-import junit.framework.TestCase;
-
-
-/**
- * @author eskimo
- *
- */
-public class ModelNewWizardTest extends TestCase {
- protected void testNewWizardInstanceIsCreated(String id) {
- IWizard
- aWizard = WorkbenchUtils.findWizardByDefId(
- id);
-
- WizardDialog dialog = new WizardDialog(
- PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),
- aWizard);
- dialog.setBlockOnOpen(false);
- try {
- dialog.open();
- IWizardPage page = dialog.getCurrentPage();
- assertTrue("Start page is not loaded",page instanceof DefaultStandardStep);
- } finally {
- dialog.close();
- }
- }
-}
Copied: trunk/common/tests/org.jboss.tools.common.model.ui.test/src/org/jboss/tools/common/model/ui/test/ModelNewWizardTest.java (from rev 5900, trunk/common/tests/org.jboss.tools.common.model.ui.test/src/org/jboss/common/model/ui/test/ModelNewWizardTest.java)
===================================================================
--- trunk/common/tests/org.jboss.tools.common.model.ui.test/src/org/jboss/tools/common/model/ui/test/ModelNewWizardTest.java (rev 0)
+++ trunk/common/tests/org.jboss.tools.common.model.ui.test/src/org/jboss/tools/common/model/ui/test/ModelNewWizardTest.java 2008-01-24 02:18:58 UTC (rev 5921)
@@ -0,0 +1,45 @@
+/*******************************************************************************
+ * 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.common.model.ui.test;
+
+import org.eclipse.jface.wizard.IWizard;
+import org.eclipse.jface.wizard.IWizardPage;
+import org.eclipse.jface.wizard.WizardDialog;
+import org.eclipse.ui.PlatformUI;
+import org.jboss.tools.common.model.ui.wizards.standard.DefaultStandardStep;
+import org.jboss.tools.common.util.WorkbenchUtils;
+
+import junit.framework.TestCase;
+
+
+/**
+ * @author eskimo
+ *
+ */
+public class ModelNewWizardTest extends TestCase {
+ protected void testNewWizardInstanceIsCreated(String id) {
+ IWizard
+ aWizard = WorkbenchUtils.findWizardByDefId(
+ id);
+
+ WizardDialog dialog = new WizardDialog(
+ PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),
+ aWizard);
+ dialog.setBlockOnOpen(false);
+ try {
+ dialog.open();
+ IWizardPage page = dialog.getCurrentPage();
+ assertTrue("Start page is not loaded",page instanceof DefaultStandardStep);
+ } finally {
+ dialog.close();
+ }
+ }
+}
Property changes on: trunk/common/tests/org.jboss.tools.common.model.ui.test/src/org/jboss/tools/common/model/ui/test/ModelNewWizardTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/common/tests/org.jboss.tools.common.model.ui.test/src/org/jboss/tools/common/model/ui/test/ModelUiAllTests.java
===================================================================
--- trunk/common/tests/org.jboss.tools.common.model.ui.test/src/org/jboss/tools/common/model/ui/test/ModelUiAllTests.java (rev 0)
+++ trunk/common/tests/org.jboss.tools.common.model.ui.test/src/org/jboss/tools/common/model/ui/test/ModelUiAllTests.java 2008-01-24 02:18:58 UTC (rev 5921)
@@ -0,0 +1,25 @@
+/*******************************************************************************
+ * 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.common.model.ui.test;
+
+import junit.framework.TestSuite;
+
+/**
+ * @author eskimo
+ *
+ */
+public class ModelUiAllTests {
+ public TestSuite suite() {
+ TestSuite suite = new TestSuite();
+ suite.addTestSuite(ModelUiPreferencesPageTest.class);
+ return suite;
+ }
+}
Property changes on: trunk/common/tests/org.jboss.tools.common.model.ui.test/src/org/jboss/tools/common/model/ui/test/ModelUiAllTests.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/common/tests/org.jboss.tools.common.model.ui.test/src/org/jboss/tools/common/model/ui/test/ModelUiPreferencesPageTest.java
===================================================================
--- trunk/common/tests/org.jboss.tools.common.model.ui.test/src/org/jboss/tools/common/model/ui/test/ModelUiPreferencesPageTest.java (rev 0)
+++ trunk/common/tests/org.jboss.tools.common.model.ui.test/src/org/jboss/tools/common/model/ui/test/ModelUiPreferencesPageTest.java 2008-01-24 02:18:58 UTC (rev 5921)
@@ -0,0 +1,74 @@
+/*******************************************************************************
+ * 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.common.model.ui.test;
+
+import junit.framework.TestCase;
+
+import org.eclipse.jface.preference.PreferenceDialog;
+import org.jboss.tools.common.model.ui.preferences.CompanyPreferencesPage;
+import org.jboss.tools.common.model.ui.templates.preferences.GlobalTemplatePreferencePage;
+import org.jboss.tools.common.model.ui.texteditors.preferences.EditorsPreferencesPage;
+import org.jboss.tools.test.util.WorkbenchUtils;
+
+/**
+ * @author eskimo
+ *
+ */
+public class ModelUiPreferencesPageTest extends TestCase {
+
+ public void testWebPreferencesPage() {
+ PreferenceDialog prefDialog =
+ WorkbenchUtils.createPreferenceDialog(
+ CompanyPreferencesPage.WEB_PREFERENCES_ID);
+
+ try {
+ prefDialog.setBlockOnOpen(false);
+ prefDialog.open();
+
+ Object selectedPage = prefDialog.getSelectedPage();
+ assertTrue("Selected page is not an instance of CompanyPreferencesPage", selectedPage instanceof CompanyPreferencesPage);
+ } finally {
+ prefDialog.close();
+ }
+ }
+
+ public void testEditorsPreferencesPage() {
+ PreferenceDialog prefDialog =
+ WorkbenchUtils.createPreferenceDialog(
+ EditorsPreferencesPage.EDITOR_PREFERENCES_ID);
+
+ try {
+ prefDialog.setBlockOnOpen(false);
+ prefDialog.open();
+
+ Object selectedPage = prefDialog.getSelectedPage();
+ assertTrue("Selected page is not an instance of EditorsPreferencesPage", selectedPage instanceof EditorsPreferencesPage);
+ } finally {
+ prefDialog.close();
+ }
+ }
+
+ public void testGlobalTemplatesPreferencesPage() {
+ PreferenceDialog prefDialog =
+ WorkbenchUtils.createPreferenceDialog(
+ GlobalTemplatePreferencePage.GLOBAL_TEMPLATES_PREFERENCES_ID);
+
+ try {
+ prefDialog.setBlockOnOpen(false);
+ prefDialog.open();
+
+ Object selectedPage = prefDialog.getSelectedPage();
+ assertTrue("Selected page is not an instance of GlobalTemplatePreferencePage", selectedPage instanceof GlobalTemplatePreferencePage);
+ } finally {
+ prefDialog.close();
+ }
+ }
+}
Property changes on: trunk/common/tests/org.jboss.tools.common.model.ui.test/src/org/jboss/tools/common/model/ui/test/ModelUiPreferencesPageTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/jst/tests/org.jboss.tools.jst.web.ui.test/src/org/jboss/tools/jst/web/ui/test/WebWizardsTest.java
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.ui.test/src/org/jboss/tools/jst/web/ui/test/WebWizardsTest.java 2008-01-24 01:43:11 UTC (rev 5920)
+++ trunk/jst/tests/org.jboss.tools.jst.web.ui.test/src/org/jboss/tools/jst/web/ui/test/WebWizardsTest.java 2008-01-24 02:18:58 UTC (rev 5921)
@@ -16,7 +16,7 @@
import org.eclipse.jface.wizard.IWizardPage;
import org.eclipse.jface.wizard.WizardDialog;
import org.eclipse.ui.PlatformUI;
-import org.jboss.common.model.ui.test.ModelNewWizardTest;
+import org.jboss.tools.common.model.ui.test.ModelNewWizardTest;
import org.jboss.tools.common.model.ui.wizard.newfile.NewHTMLFileWizard;
import org.jboss.tools.common.model.ui.wizard.newfile.NewJSPFileWizard;
import org.jboss.tools.common.model.ui.wizard.newfile.NewPropertiesFileWizard;
Modified: trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/test/util/ResourcesUtils.java
===================================================================
--- trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/test/util/ResourcesUtils.java 2008-01-24 01:43:11 UTC (rev 5920)
+++ trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/test/util/ResourcesUtils.java 2008-01-24 02:18:58 UTC (rev 5921)
@@ -135,8 +135,20 @@
* @throws IOException
*/
public static IProject importProject(String bundleName, String templatePath,
- NullProgressMonitor monitor) throws IOException, CoreException, InvocationTargetException, InterruptedException {
+ IProgressMonitor monitor) throws IOException, CoreException, InvocationTargetException, InterruptedException {
// TODO Auto-generated method stub
- return importProject(Platform.getBundle(bundleName), templatePath, monitor);
+ return importProject(Platform.getBundle(bundleName), templatePath, monitor==null?new NullProgressMonitor():monitor);
}
+
+ public static IProject importProject(String bundleName, String templatePath) throws IOException, CoreException, InvocationTargetException, InterruptedException {
+ // TODO Auto-generated method stub
+ return importProject(Platform.getBundle(bundleName), templatePath, null);
+ }
+
+ public static void deleteProject(String projectName) throws CoreException {
+ IResource member = ResourcesPlugin.getWorkspace().getRoot().findMember(projectName);
+ if (member != null) {
+ member.getProject().delete(true, true, null);
+ }
+ }
}
18 years, 2 months
JBoss Tools SVN: r5920 - trunk/jst/plugins/org.jboss.tools.jst.web.ui.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2008-01-23 20:43:11 -0500 (Wed, 23 Jan 2008)
New Revision: 5920
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/plugin.xml
Log:
fix test error:
testNewTldWizardInstanceIsCreated Error N/A
java.lang.NullPointerException
at org.jboss.tools.common.util.WorkbenchUtils.findWizardByDefId(WorkbenchUtils.java:35)
at org.jboss.common.model.ui.test.ModelNewWizardTest.testNewWizardInstanceIsCreated(ModelNewWizardTest.java:30)
at org.jboss.tools.jst.web.ui.test.WebWizardsTest.testNewTldWizardInstanceIsCreated(WebWizardsTest.java:66)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:354)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:206)
Modified: trunk/jst/plugins/org.jboss.tools.jst.web.ui/plugin.xml
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.ui/plugin.xml 2008-01-24 01:34:47 UTC (rev 5919)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.ui/plugin.xml 2008-01-24 01:43:11 UTC (rev 5920)
@@ -215,7 +215,7 @@
class="org.jboss.tools.jst.web.ui.wizards.newfile.NewTLDFileWizard"
finalPerspective="org.jboss.tools.jst.web.ui.WebDevelopmentPerspective"
icon="images/xstudio/wizards/new_taglibs_file.gif"
- id="org.jboss.tools.jst.web.ui.wizard.newfile.NewTLDFileWizard"
+ id="org.jboss.tools.jst.web.ui.wizards.newfile.NewTLDFileWizard"
name="TLD File"
preferredPerspectives="org.jboss.tools.jst.web.ui.WebDevelopmentPerspective"
project="false">
18 years, 2 months
JBoss Tools SVN: r5919 - trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2008-01-23 20:34:47 -0500 (Wed, 23 Jan 2008)
New Revision: 5919
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/param.xhtml
Log:
fix JUnit test error
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/param.xhtml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/param.xhtml 2008-01-24 01:25:48 UTC (rev 5918)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/resources/faceletsTest/WebContent/pages/components/param.xhtml 2008-01-24 01:34:47 UTC (rev 5919)
@@ -10,7 +10,7 @@
<body bgcolor="#ffffff">
<ui:include src="insert.xhtml">
- <ui:param name="user" value="#{currentUser}" />
+ <ui:param name="user" value="#{user}" />
</ui:include>
</body>
</html>
\ No newline at end of file
18 years, 2 months