JBoss Tools SVN: r18616 - in trunk/esb/plugins/org.jboss.tools.esb.ui: META-INF and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2009-11-11 09:06:35 -0500 (Wed, 11 Nov 2009)
New Revision: 18616
Added:
trunk/esb/plugins/org.jboss.tools.esb.ui/src/org/jboss/tools/esb/ui/editor/attribute/ActionClassValueFilter.java
Modified:
trunk/esb/plugins/org.jboss.tools.esb.ui/META-INF/MANIFEST.MF
trunk/esb/plugins/org.jboss.tools.esb.ui/plugin.xml
Log:
https://jira.jboss.org/jira/browse/JBIDE-2023
Modified: trunk/esb/plugins/org.jboss.tools.esb.ui/META-INF/MANIFEST.MF
===================================================================
--- trunk/esb/plugins/org.jboss.tools.esb.ui/META-INF/MANIFEST.MF 2009-11-11 14:02:28 UTC (rev 18615)
+++ trunk/esb/plugins/org.jboss.tools.esb.ui/META-INF/MANIFEST.MF 2009-11-11 14:06:35 UTC (rev 18616)
@@ -7,6 +7,7 @@
Bundle-Vendor: %providerName
Export-Package: org.jboss.tools.esb.ui,
org.jboss.tools.esb.ui.editor.form,
+ org.jboss.tools.esb.ui.editor.attribute,
org.jboss.tools.esb.ui.wizard.newfile
Bundle-SymbolicName: org.jboss.tools.esb.ui; singleton:=true
Bundle-Localization: plugin
Modified: trunk/esb/plugins/org.jboss.tools.esb.ui/plugin.xml
===================================================================
--- trunk/esb/plugins/org.jboss.tools.esb.ui/plugin.xml 2009-11-11 14:02:28 UTC (rev 18615)
+++ trunk/esb/plugins/org.jboss.tools.esb.ui/plugin.xml 2009-11-11 14:06:35 UTC (rev 18616)
@@ -35,6 +35,8 @@
<extension point="org.jboss.tools.common.model.classes">
<xclass id="org.jboss.tools.esb.ui.editor.form.ESBXMLFormLayoutData"
class="org.jboss.tools.esb.ui.editor.form.ESBXMLFormLayoutData"/>
+ <xclass id="org.jboss.tools.esb.ui.editor.attribute.ActionClassValueFilter"
+ class="org.jboss.tools.esb.ui.editor.attribute.ActionClassValueFilter"/>
</extension>
<extension point="org.jboss.tools.common.model.ui.attributeAdapter">
Added: trunk/esb/plugins/org.jboss.tools.esb.ui/src/org/jboss/tools/esb/ui/editor/attribute/ActionClassValueFilter.java
===================================================================
--- trunk/esb/plugins/org.jboss.tools.esb.ui/src/org/jboss/tools/esb/ui/editor/attribute/ActionClassValueFilter.java (rev 0)
+++ trunk/esb/plugins/org.jboss.tools.esb.ui/src/org/jboss/tools/esb/ui/editor/attribute/ActionClassValueFilter.java 2009-11-11 14:06:35 UTC (rev 18616)
@@ -0,0 +1,58 @@
+/*******************************************************************************
+ * 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.esb.ui.editor.attribute;
+
+import org.eclipse.core.resources.IProject;
+import org.eclipse.jdt.core.JavaModelException;
+import org.jboss.tools.common.meta.XAttribute;
+import org.jboss.tools.common.model.XModelObject;
+import org.jboss.tools.common.model.ui.attribute.IValueFilter;
+import org.jboss.tools.common.model.util.EclipseJavaUtil;
+import org.jboss.tools.common.model.util.EclipseResourceUtil;
+
+/**
+ *
+ * @author Viacheslav Kabanovich
+ *
+ */
+public class ActionClassValueFilter implements IValueFilter {
+ IProject project;
+
+ static String AbstractActionLifecycle = "org.jboss.soa.esb.actions.AbstractActionLifecycle";
+ static String AbstractActionPipelineProcessor = "org.jboss.soa.esb.actions.AbstractActionPipelineProcessor";
+
+ public boolean accept(String value) {
+ if(value.startsWith("java.")
+ || value.startsWith("javax.")
+ || value.startsWith("com.sun.")
+ || value.startsWith("sun.")
+ || value.startsWith("org.apache.")
+ ) {
+ return false;
+ }
+ boolean b = value.startsWith("org.jboss.soa.esb.actions.")
+ || EclipseJavaUtil.isDerivedClass(value, AbstractActionLifecycle, project)
+ || EclipseJavaUtil.isDerivedClass(value, AbstractActionPipelineProcessor, project);
+
+
+ return b;
+ }
+
+ public boolean init(XModelObject context, XAttribute attribute) {
+ project = EclipseResourceUtil.getProject(context);
+ try {
+ return (EclipseJavaUtil.findType(EclipseResourceUtil.getJavaProject(project), AbstractActionLifecycle) != null);
+ } catch (JavaModelException e) {
+ return false;
+ }
+ }
+
+}
Property changes on: trunk/esb/plugins/org.jboss.tools.esb.ui/src/org/jboss/tools/esb/ui/editor/attribute/ActionClassValueFilter.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
15 years, 1 month
JBoss Tools SVN: r18615 - trunk/esb/plugins/org.jboss.tools.esb.core/resources/meta.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2009-11-11 09:02:28 -0500 (Wed, 11 Nov 2009)
New Revision: 18615
Modified:
trunk/esb/plugins/org.jboss.tools.esb.core/resources/meta/esb.meta
Log:
https://jira.jboss.org/jira/browse/JBIDE-2023
Modified: trunk/esb/plugins/org.jboss.tools.esb.core/resources/meta/esb.meta
===================================================================
--- trunk/esb/plugins/org.jboss.tools.esb.core/resources/meta/esb.meta 2009-11-11 14:01:42 UTC (rev 18614)
+++ trunk/esb/plugins/org.jboss.tools.esb.core/resources/meta/esb.meta 2009-11-11 14:02:28 UTC (rev 18615)
@@ -67,7 +67,8 @@
</XModelAttribute>
<XModelAttribute PROPERTIES="category=general;id=true;save=always"
name="name" xmlname="name"/>
- <XModelAttribute PROPERTIES="category=general;save=always"
+ <XModelAttribute
+ PROPERTIES="category=general;save=always;valueFilter=org.jboss.tools.esb.ui.editor.attribute.ActionClassValueFilter"
name="class" xmlname="class">
<Editor name="AccessibleJava"/>
</XModelAttribute>
15 years, 1 month
JBoss Tools SVN: r18614 - in trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute: adapter and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2009-11-11 09:01:42 -0500 (Wed, 11 Nov 2009)
New Revision: 18614
Added:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/IValueFilter.java
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/adapter/DefaultValueAdapter.java
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/adapter/JavaClassContentAssistProvider.java
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/JavaEclipseChoicerEditor.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-2023
Added: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/IValueFilter.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/IValueFilter.java (rev 0)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/IValueFilter.java 2009-11-11 14:01:42 UTC (rev 18614)
@@ -0,0 +1,24 @@
+/*******************************************************************************
+ * 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.attribute;
+
+import org.jboss.tools.common.meta.XAttribute;
+import org.jboss.tools.common.model.XModelObject;
+
+/**
+ *
+ * @author Viacheslav Kabanovich
+ *
+ */
+public interface IValueFilter {
+ public boolean init(XModelObject context, XAttribute attribute);
+ public boolean accept(String value);
+}
Property changes on: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/IValueFilter.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/adapter/DefaultValueAdapter.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/adapter/DefaultValueAdapter.java 2009-11-11 13:37:31 UTC (rev 18613)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/adapter/DefaultValueAdapter.java 2009-11-11 14:01:42 UTC (rev 18614)
@@ -18,7 +18,10 @@
import org.jboss.tools.common.model.ui.IAttributeErrorProvider;
import org.jboss.tools.common.model.ui.IValueChangeListener;
import org.jboss.tools.common.model.ui.IValueProvider;
+import org.jboss.tools.common.model.ui.ModelUIPlugin;
+import org.jboss.tools.common.model.ui.attribute.IValueFilter;
import org.jboss.tools.common.model.ui.attribute.editor.IPropertyEditor;
+import org.jboss.tools.common.model.util.ModelFeatureFactory;
import org.jboss.tools.common.meta.XAttribute;
import org.jboss.tools.common.meta.action.XAttributeData;
@@ -51,6 +54,9 @@
protected String lastCorrectValue = null;
protected String currentError = null;
+ boolean valueFilterChecked = false;
+ IValueFilter valueFilter = null;
+
public DefaultValueAdapter() {}
public void store() {
@@ -158,6 +164,27 @@
if(adapter == IAttributeErrorProvider.class) {
return this;
}
+ if(adapter == IValueFilter.class) {
+ if(valueFilterChecked) return valueFilter;
+ valueFilterChecked = true;
+ if(valueFilter == null) {
+ XAttribute a = (attribute != null) ? attribute : attributeData != null ? attributeData.getAttribute() : null;
+ if(a == null) return null;
+ String cls = a.getProperty("valueFilter");
+ if(cls == null || cls.length() == 0) return null;
+ try {
+ valueFilter = (IValueFilter)ModelFeatureFactory.getInstance().createFeatureInstance(cls);
+ } catch (ClassCastException exc) {
+ ModelUIPlugin.getPluginLog().logError(exc);
+ }
+ if(valueFilter != null) {
+ if(!valueFilter.init(getModelObject(), a)) {
+ valueFilter = null;
+ }
+ }
+ return valueFilter;
+ }
+ }
return null;
}
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/adapter/JavaClassContentAssistProvider.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/adapter/JavaClassContentAssistProvider.java 2009-11-11 13:37:31 UTC (rev 18613)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/adapter/JavaClassContentAssistProvider.java 2009-11-11 14:01:42 UTC (rev 18614)
@@ -28,17 +28,21 @@
import org.jboss.tools.common.meta.XAttribute;
import org.jboss.tools.common.meta.action.XEntityData;
import org.jboss.tools.common.model.XModelObject;
+import org.jboss.tools.common.model.ui.ModelUIPlugin;
import org.jboss.tools.common.model.ui.attribute.IAttributeContentProposalProvider;
+import org.jboss.tools.common.model.ui.attribute.IValueFilter;
import org.jboss.tools.common.model.ui.attribute.editor.JavaHyperlinkCueLabelProvider;
+import org.jboss.tools.common.model.util.ModelFeatureFactory;
public class JavaClassContentAssistProvider implements
IAttributeContentProposalProvider {
XModelObject object;
XAttribute attribute;
+ IValueFilter valueFilter = null;
public IContentProposalProvider getContentProposalProvider() {
IProject project = (IProject)object.getModel().getProperties().get("project"); //$NON-NLS-1$
- return (project == null) ? null : new TypeContentProposalProvider(project, IJavaSearchConstants.TYPE);
+ return (project == null) ? null : new TypeContentProposalProvider(project, IJavaSearchConstants.TYPE, valueFilter);
}
public int getProposalAcceptanceStyle() {
@@ -48,8 +52,25 @@
public void init(XModelObject object, XEntityData data, XAttribute attribute) {
this.object = object;
this.attribute = attribute;
+ createValueFilter();
}
+ void createValueFilter() {
+ if(attribute == null) return;
+ String cls = attribute.getProperty("valueFilter");
+ if(cls == null || cls.length() == 0) return;
+ try {
+ valueFilter = (IValueFilter)ModelFeatureFactory.getInstance().createFeatureInstance(cls);
+ } catch (ClassCastException exc) {
+ ModelUIPlugin.getPluginLog().logError(exc);
+ }
+ if(valueFilter != null) {
+ if(!valueFilter.init(object, attribute)) {
+ valueFilter = null;
+ }
+ }
+ }
+
public boolean isRelevant(XModelObject object, XAttribute attribute) {
if(object == null || attribute == null) return false;
String editorName = attribute.getEditor().getName();
@@ -77,13 +98,17 @@
private String fInitialContent;
private Comparator fComparator;
+ IValueFilter valueFilter;
+
/**
*
*/
- public TypeContentProposalProvider(IProject project, int scope) {
+ public TypeContentProposalProvider(IProject project, int scope, IValueFilter valueFilter) {
fProject = project;
fTypeScope = scope;
fComparator = new TypeComparator();
+
+ this.valueFilter = valueFilter;
reset();
}
@@ -139,8 +164,11 @@
// characters in the field causing new characters to be appended to
// the initial field contents
currentContentProposals = filterContentProposals(contents);
+
}
+ currentContentProposals = filterContentProposalsByValueFilter(currentContentProposals);
+
return convertResultsToSortedProposals(currentContentProposals);
}
@@ -211,6 +239,7 @@
*/
private ArrayList filterContentProposals(String currentContent) {
String lowerCaseCurrentContent = currentContent.toLowerCase();
+
ListIterator iterator = fInitialContentProposals.listIterator();
// Maintain a list of filtered search results
ArrayList filteredContentProposals = new ArrayList();
@@ -233,7 +262,25 @@
filteredContentProposals.add(proposal);
}
}
+
return filteredContentProposals;
}
+ private ArrayList filterContentProposalsByValueFilter(ArrayList filteredContentProposals) {
+ if(valueFilter != null && filteredContentProposals != null && filteredContentProposals.size() < 200) {
+ ArrayList filteredContentProposals2 = new ArrayList();
+ ListIterator iterator = filteredContentProposals.listIterator();
+ while (iterator.hasNext()) {
+ Object object = iterator.next();
+ IContentProposal proposal = (IContentProposal) object;
+ String value = proposal.getContent();
+ if(valueFilter.accept(value)) {
+ filteredContentProposals2.add(proposal);
+ }
+ }
+ filteredContentProposals = filteredContentProposals2;
+ }
+ return filteredContentProposals;
+ }
+
}
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/JavaEclipseChoicerEditor.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/JavaEclipseChoicerEditor.java 2009-11-11 13:37:31 UTC (rev 18613)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/JavaEclipseChoicerEditor.java 2009-11-11 14:01:42 UTC (rev 18614)
@@ -12,12 +12,16 @@
import java.text.MessageFormat;
import org.eclipse.core.resources.IProject;
+import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.jdt.core.IJavaElement;
import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.core.IType;
import org.eclipse.jdt.core.search.IJavaSearchConstants;
import org.eclipse.jdt.core.search.SearchEngine;
import org.eclipse.jdt.internal.ui.dialogs.FilteredTypesSelectionDialog;
+import org.eclipse.jdt.ui.dialogs.ITypeInfoFilterExtension;
+import org.eclipse.jdt.ui.dialogs.ITypeInfoRequestor;
+import org.eclipse.jdt.ui.dialogs.TypeSelectionExtension;
import org.eclipse.jface.resource.JFaceResources;
import org.eclipse.jface.viewers.CellEditor;
import org.eclipse.swt.SWT;
@@ -29,6 +33,7 @@
import org.jboss.tools.common.model.XModelObject;
import org.jboss.tools.common.model.ui.IValueProvider;
import org.jboss.tools.common.model.ui.ModelUIPlugin;
+import org.jboss.tools.common.model.ui.attribute.IValueFilter;
import org.jboss.tools.common.model.ui.attribute.adapter.DefaultValueAdapter;
import org.jboss.tools.common.model.ui.widgets.IWidgetSettings;
import org.jboss.tools.common.model.util.EclipseResourceUtil;
@@ -38,7 +43,7 @@
protected JavaHyperlinkCellEditor cellEditor;
//protected JavaChoicerFieldEditor fieldEditor;
protected JavaHyperlinkLineFieldEditor fieldEditor;
-
+
public JavaEclipseChoicerEditor() {}
public JavaEclipseChoicerEditor(IWidgetSettings settings) {
@@ -105,7 +110,7 @@
ModelUIPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow(),
jp == null ? SearchEngine.createWorkspaceScope()
: SearchEngine.createJavaSearchScope(new IJavaElement[]{jp}),
- IJavaSearchConstants.TYPE);
+ IJavaSearchConstants.TYPE, createTypeSelectionExtension());
dialog.setTitle(title);
IValueProvider valueProvider = (IValueProvider)adapter.getAdapter(IValueProvider.class);
String v = valueProvider.getStringValue(true);
@@ -120,4 +125,36 @@
return null;
}
+ TypeSelectionExtension createTypeSelectionExtension() {
+ final ITypeInfoFilterExtension filter = createFilterExtension();
+ if(filter == null) return null;
+ return new TypeSelectionExtension() {
+ public ITypeInfoFilterExtension getFilterExtension() {
+ return filter;
+ }
+ };
+ }
+
+ ITypeInfoFilterExtension createFilterExtension() {
+ if(getInput() instanceof IAdaptable) {
+ IValueFilter filter = (IValueFilter)((IAdaptable)getInput()).getAdapter(IValueFilter.class);
+ if(filter != null) {
+ return new FilterExtension(filter);
+ }
+ }
+ return null;
+ }
+
+ class FilterExtension implements ITypeInfoFilterExtension {
+ IValueFilter filter;
+ public FilterExtension(IValueFilter filter) {
+ this.filter = filter;
+ }
+ public boolean select(ITypeInfoRequestor typeInfoRequestor) {
+ String pkg = typeInfoRequestor.getPackageName();
+ String cls = typeInfoRequestor.getTypeName();
+ String q = pkg == null || pkg.length() == 0 ? cls : pkg + "." + cls;
+ return filter.accept(q);
+ }
+ }
}
15 years, 1 month
JBoss Tools SVN: r18613 - in trunk/hibernatetools/docs/reference/en: modules and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: smukhina
Date: 2009-11-11 08:37:31 -0500 (Wed, 11 Nov 2009)
New Revision: 18613
Modified:
trunk/hibernatetools/docs/reference/en/images/plugins/plugins_2.png
trunk/hibernatetools/docs/reference/en/modules/plugins.xml
Log:
https://jira.jboss.org/jira/browse/JBDS-930 Select Persistence Unit - browse button is implemented - scrren is updated, mentioned in guide
Modified: trunk/hibernatetools/docs/reference/en/images/plugins/plugins_2.png
===================================================================
(Binary files differ)
Modified: trunk/hibernatetools/docs/reference/en/modules/plugins.xml
===================================================================
--- trunk/hibernatetools/docs/reference/en/modules/plugins.xml 2009-11-11 11:46:27 UTC (rev 18612)
+++ trunk/hibernatetools/docs/reference/en/modules/plugins.xml 2009-11-11 13:37:31 UTC (rev 18613)
@@ -306,7 +306,7 @@
<entry>
<para>No default value (lets Hibernate Entity Manager find the persistence
- unit)</para>
+ unit or it can be defined manually using Browse button)</para>
</entry>
</row>
15 years, 1 month
JBoss Tools SVN: r18612 - trunk/jst/tests/org.jboss.tools.jst.ui.bot.test/src/org/jboss/tools/ui/bot/test.
by jbosstools-commits@lists.jboss.org
Author: vpakan(a)redhat.com
Date: 2009-11-11 06:46:27 -0500 (Wed, 11 Nov 2009)
New Revision: 18612
Modified:
trunk/jst/tests/org.jboss.tools.jst.ui.bot.test/src/org/jboss/tools/ui/bot/test/JBTSWTBotTestCase.java
Log:
Added some common constants and common methods openServerView() and openWebProjects().
Modified: trunk/jst/tests/org.jboss.tools.jst.ui.bot.test/src/org/jboss/tools/ui/bot/test/JBTSWTBotTestCase.java
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.ui.bot.test/src/org/jboss/tools/ui/bot/test/JBTSWTBotTestCase.java 2009-11-11 11:45:59 UTC (rev 18611)
+++ trunk/jst/tests/org.jboss.tools.jst.ui.bot.test/src/org/jboss/tools/ui/bot/test/JBTSWTBotTestCase.java 2009-11-11 11:46:27 UTC (rev 18612)
@@ -21,6 +21,9 @@
protected static final String BUILDING_WS = "Building workspace";
protected static final String VISUAL_UPDATE = "Visual Editor View Update";
protected static final String VISUAL_REFRESH = "Visual Editor Refresh";
+ protected static final String UPDATING_INDEXES = "Updating indexes";
+ protected static final String STARTING_JBOSS_EAP_43_RUNTIME = "Starting JBoss EAP 4.3 Runtime Serve";
+ protected static final String STOPPING_JBOSS_EAP_43_RUNTIME = "Stoppig JBoss EAP 4.3 Runtime Server";
private static Properties SWT_BOT_PROPERTIES;
private volatile Throwable exception;
public static final String PATH_TO_SWT_BOT_PROPERTIES = "SWTBot.properties";
@@ -226,7 +229,40 @@
bot.button("OK").click();
}
}
+
+ /**
+ * Open and activate Web Projects view if it hadn't been opened before
+ */
+ protected void openWebProjects() {
+ try {
+ bot.viewByTitle(WidgetVariables.WEB_PROJECTS).setFocus();
+ } catch (WidgetNotFoundException e) {
+ bot.menu("Window").menu("Show View").menu("Other...").click();
+ SWTBotTree viewTree = bot.tree();
+ delay();
+ viewTree.expandNode("Java").expandNode(
+ WidgetVariables.WEB_PROJECTS).select();
+ bot.button("OK").click();
+ }
+ }
+
+ /**
+ * Open and activate Server View if it hadn't been opened before
+ */
+
+ protected void openServerView() {
+ try {
+ bot.viewByTitle(WidgetVariables.SERVERS).setFocus();
+ } catch (WidgetNotFoundException e) {
+ bot.menu("Window").menu("Show View").menu("Other...").click();
+ SWTBotTree viewTree = bot.tree();
+ delay();
+ viewTree.expandNode("Server").expandNode(
+ WidgetVariables.SERVERS).select();
+ bot.button("OK").click();
+ }
+ }
// protected void openProgressStatus() {
// try {
// bot.viewByTitle(WidgetVariables.PROGRESS_STATUS);
15 years, 1 month
JBoss Tools SVN: r18611 - trunk/jst/tests/org.jboss.tools.jst.ui.bot.test/src/org/jboss/tools/ui/bot/test.
by jbosstools-commits@lists.jboss.org
Author: vpakan(a)redhat.com
Date: 2009-11-11 06:45:59 -0500 (Wed, 11 Nov 2009)
New Revision: 18611
Modified:
trunk/jst/tests/org.jboss.tools.jst.ui.bot.test/src/org/jboss/tools/ui/bot/test/WidgetVariables.java
Log:
Added some common constants.
Modified: trunk/jst/tests/org.jboss.tools.jst.ui.bot.test/src/org/jboss/tools/ui/bot/test/WidgetVariables.java
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.ui.bot.test/src/org/jboss/tools/ui/bot/test/WidgetVariables.java 2009-11-11 11:36:59 UTC (rev 18610)
+++ trunk/jst/tests/org.jboss.tools.jst.ui.bot.test/src/org/jboss/tools/ui/bot/test/WidgetVariables.java 2009-11-11 11:45:59 UTC (rev 18611)
@@ -8,10 +8,17 @@
public class WidgetVariables {
-
public static final String ERROR_LOG = "Error Log";
public static final String PACKAGE_EXPLORER = "Package Explorer";
public static final String WELCOME = "Welcome";
public static final String PROGRESS_STATUS = "Progress";
public static final String PALETTE = "JBoss Tools Palette";
+ public static final String WEB_PROJECTS = "Web Projects";
+ public static final String SERVERS = "Servers";
+ public static final String OK_BUTTON = "OK";
+ public static final String NEXT_BUTTON = "Next >";
+ public static final String BACK_BUTTON = "< Back";
+ public static final String FINISH_BUTTON = "Finish";
+ public static final String CONTINUE_BUTTON = "Continue";
+ public static final String NEW_BUTTON = "New...";
}
15 years, 1 month
JBoss Tools SVN: r18610 - trunk/documentation/qa/docs/Test_Cases.
by jbosstools-commits@lists.jboss.org
Author: vpakan(a)redhat.com
Date: 2009-11-11 06:36:59 -0500 (Wed, 11 Nov 2009)
New Revision: 18610
Modified:
trunk/documentation/qa/docs/Test_Cases/SmokeTests.doc
Log:
Mark JSF Tests as SWTBot Automated.
Modified: trunk/documentation/qa/docs/Test_Cases/SmokeTests.doc
===================================================================
(Binary files differ)
15 years, 1 month
JBoss Tools SVN: r18609 - trunk/jst/tests/org.jboss.tools.ui.bot.ext/META-INF.
by jbosstools-commits@lists.jboss.org
Author: vpakan(a)redhat.com
Date: 2009-11-11 06:10:27 -0500 (Wed, 11 Nov 2009)
New Revision: 18609
Modified:
trunk/jst/tests/org.jboss.tools.ui.bot.ext/META-INF/MANIFEST.MF
Log:
Added org.jboss.tools.ui.bot.ext.helper t oexported packages
Modified: trunk/jst/tests/org.jboss.tools.ui.bot.ext/META-INF/MANIFEST.MF
===================================================================
--- trunk/jst/tests/org.jboss.tools.ui.bot.ext/META-INF/MANIFEST.MF 2009-11-11 10:21:55 UTC (rev 18608)
+++ trunk/jst/tests/org.jboss.tools.ui.bot.ext/META-INF/MANIFEST.MF 2009-11-11 11:10:27 UTC (rev 18609)
@@ -20,5 +20,6 @@
Eclipse-RegisterBuddy: org.apache.log4j
Export-Package: org.jboss.tools.ui.bot.ext,
org.jboss.tools.ui.bot.ext.entity,
+ org.jboss.tools.ui.bot.ext.helper,
org.jboss.tools.ui.bot.ext.types
15 years, 1 month
JBoss Tools SVN: r18607 - trunk/jst/tests.
by jbosstools-commits@lists.jboss.org
Author: jpeterka
Date: 2009-11-11 05:04:02 -0500 (Wed, 11 Nov 2009)
New Revision: 18607
Removed:
trunk/jst/tests/tmp/
Log:
delete testing folder
15 years, 1 month
JBoss Tools SVN: r18606 - trunk/jst/tests.
by jbosstools-commits@lists.jboss.org
Author: jpeterka
Date: 2009-11-11 05:03:12 -0500 (Wed, 11 Nov 2009)
New Revision: 18606
Added:
trunk/jst/tests/tmp/
Log:
Only for testing purpose
15 years, 1 month