JBoss Tools SVN: r13763 - workspace/dart/plugins/org.jboss.tools.smooks.testui/src/org/smooks/tools/testui/views.
by jbosstools-commits@lists.jboss.org
Author: DartPeng
Date: 2009-02-24 09:57:53 -0500 (Tue, 24 Feb 2009)
New Revision: 13763
Added:
workspace/dart/plugins/org.jboss.tools.smooks.testui/src/org/smooks/tools/testui/views/TestResultView.java
Modified:
workspace/dart/plugins/org.jboss.tools.smooks.testui/src/org/smooks/tools/testui/views/ProjectNode.java
workspace/dart/plugins/org.jboss.tools.smooks.testui/src/org/smooks/tools/testui/views/TestProjectsView.java
Log:
Modified: workspace/dart/plugins/org.jboss.tools.smooks.testui/src/org/smooks/tools/testui/views/ProjectNode.java
===================================================================
--- workspace/dart/plugins/org.jboss.tools.smooks.testui/src/org/smooks/tools/testui/views/ProjectNode.java 2009-02-24 14:34:10 UTC (rev 13762)
+++ workspace/dart/plugins/org.jboss.tools.smooks.testui/src/org/smooks/tools/testui/views/ProjectNode.java 2009-02-24 14:57:53 UTC (rev 13763)
@@ -14,6 +14,7 @@
import org.eclipse.core.runtime.Path;
import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.core.JavaCore;
+import org.eclipse.jdt.core.JavaModelException;
/**
* @author Dart
@@ -50,7 +51,6 @@
}
return children;
}
-
public void reloadNodes() {
children.clear();
@@ -73,13 +73,23 @@
if ("smooks".equals(((IFile) resource).getFileExtension())) {
String name = ((IFile) resource).getName();
name += ".graph";
+
IContainer c = ((IFile) resource).getParent();
if (c != null) {
- IFile graphFile = c.getFile(new Path(name));
- if (graphFile != null && graphFile.exists()) {
- SmooksNode sn = new SmooksNode((IFile) resource,
- graphFile);
- list.add(sn);
+ try {
+ if (this.project.getOutputLocation().isPrefixOf(
+ c.getFullPath())) {
+
+ }else{
+ IFile graphFile = c.getFile(new Path(name));
+ if (graphFile != null && graphFile.exists()) {
+ SmooksNode sn = new SmooksNode((IFile) resource,
+ graphFile);
+ list.add(sn);
+ }
+ }
+ } catch (JavaModelException e) {
+ e.printStackTrace();
}
}
}
Modified: workspace/dart/plugins/org.jboss.tools.smooks.testui/src/org/smooks/tools/testui/views/TestProjectsView.java
===================================================================
--- workspace/dart/plugins/org.jboss.tools.smooks.testui/src/org/smooks/tools/testui/views/TestProjectsView.java 2009-02-24 14:34:10 UTC (rev 13762)
+++ workspace/dart/plugins/org.jboss.tools.smooks.testui/src/org/smooks/tools/testui/views/TestProjectsView.java 2009-02-24 14:57:53 UTC (rev 13763)
@@ -7,6 +7,7 @@
import org.eclipse.core.resources.IWorkspaceRoot;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.jdt.core.JavaCore;
import org.eclipse.jface.action.Action;
import org.eclipse.jface.action.IMenuListener;
import org.eclipse.jface.action.IMenuManager;
@@ -207,7 +208,19 @@
}
private boolean isJavaProject(IProject p){
- return true;
+ boolean isJavaProject =false;
+ if( p != null){
+ try{
+ if( p.hasNature(JavaCore.NATURE_ID)){
+ isJavaProject = true;
+ }
+ }catch(Exception e){
+
+ }finally{
+ return isJavaProject;
+ }
+ }
+ return isJavaProject;
}
private void hookContextMenu() {
@@ -254,11 +267,12 @@
private void makeActions() {
action1 = new Action() {
public void run() {
- showMessage("Action 1 executed");
+ viewer.setInput(loadResources());
+ viewer.refresh();
}
};
- action1.setText("Action 1");
- action1.setToolTipText("Action 1 tooltip");
+ action1.setText("Load Smooks issues");
+ action1.setToolTipText("Load Smooks issues and show them");
action1.setImageDescriptor(PlatformUI.getWorkbench().getSharedImages().
getImageDescriptor(ISharedImages.IMG_OBJS_INFO_TSK));
Added: workspace/dart/plugins/org.jboss.tools.smooks.testui/src/org/smooks/tools/testui/views/TestResultView.java
===================================================================
--- workspace/dart/plugins/org.jboss.tools.smooks.testui/src/org/smooks/tools/testui/views/TestResultView.java (rev 0)
+++ workspace/dart/plugins/org.jboss.tools.smooks.testui/src/org/smooks/tools/testui/views/TestResultView.java 2009-02-24 14:57:53 UTC (rev 13763)
@@ -0,0 +1,31 @@
+/**
+ *
+ */
+package org.smooks.tools.testui.views;
+
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.part.ViewPart;
+
+/**
+ * @author Dart
+ *
+ */
+public class TestResultView extends ViewPart {
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ui.part.WorkbenchPart#createPartControl(org.eclipse.swt.widgets.Composite)
+ */
+ @Override
+ public void createPartControl(Composite parent) {
+
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ui.part.WorkbenchPart#setFocus()
+ */
+ @Override
+ public void setFocus() {
+
+ }
+
+}
Property changes on: workspace/dart/plugins/org.jboss.tools.smooks.testui/src/org/smooks/tools/testui/views/TestResultView.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
15 years, 3 months
JBoss Tools SVN: r13762 - trunk/jsf/docs/userguide/en/modules.
by jbosstools-commits@lists.jboss.org
Author: msorokin
Date: 2009-02-24 09:34:10 -0500 (Tue, 24 Feb 2009)
New Revision: 13762
Modified:
trunk/jsf/docs/userguide/en/modules/editors.xml
Log:
https://jira.jboss.org/jira/browse/JBDS-596
The info about tabbed Page Design Option is updated.
Modified: trunk/jsf/docs/userguide/en/modules/editors.xml
===================================================================
--- trunk/jsf/docs/userguide/en/modules/editors.xml 2009-02-24 14:33:49 UTC (rev 13761)
+++ trunk/jsf/docs/userguide/en/modules/editors.xml 2009-02-24 14:34:10 UTC (rev 13762)
@@ -1222,10 +1222,38 @@
<title>Advanced Settings</title>
<para>In the left vertical pane of the Visual part there are three buttons: <emphasis>
- <property>Preferences</property>, </emphasis><emphasis>
+ <property>Preferences</property>, </emphasis>
+ (
+ <inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="images/visual_page/icon_1.png"/>
+ </imageobject>
+ </inlinemediaobject>
+ )
+
+
+
+
+ <emphasis>
<property>Refresh</property>
- </emphasis> and <emphasis>
- <property>Page Design Options</property>.</emphasis></para>
+ </emphasis>
+ (
+ <inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="images/visual_page/icon_2.png"/>
+ </imageobject>
+ </inlinemediaobject>
+ )
+ and <emphasis>
+ <property>Page Design Options</property> </emphasis>(
+ <inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="images/visual_page/icon_3.png"/>
+ </imageobject>
+ </inlinemediaobject>
+ )
+
+ .</para>
<figure>
<title>Buttons on the Visual Part of VPE</title>
@@ -1262,8 +1290,8 @@
<listitem>
<para><emphasis>
<property>Page Design Options</property>
- </emphasis> button leads to the window which helps you to specify necessary
- references to the resources. It is represented by a window with 4 tabs. The
+ </emphasis> button leads to a window which helps you specify necessary
+ references of the resources. It is represented by a window with 4 tabs. The
first one, <emphasis>
<property>Actual Run-Time folders</property>
</emphasis>, is used to replace absolute and relative path values when
@@ -1325,7 +1353,7 @@
<para>The first two tabs of the window let you define actual runtime folders.
- The example below will help you to clarify how this can be done.</para>
+ The example below will help you understand how this can be done.</para>
<para>Suppose you have the following project structure:</para>
15 years, 3 months
JBoss Tools SVN: r13761 - trunk/jsf/docs/userguide/en/images/visual_page.
by jbosstools-commits@lists.jboss.org
Author: msorokin
Date: 2009-02-24 09:33:49 -0500 (Tue, 24 Feb 2009)
New Revision: 13761
Modified:
trunk/jsf/docs/userguide/en/images/visual_page/visual_page_10.png
trunk/jsf/docs/userguide/en/images/visual_page/visual_page_10_2.png
trunk/jsf/docs/userguide/en/images/visual_page/visual_page_10_3.png
trunk/jsf/docs/userguide/en/images/visual_page/visual_page_10_4.png
Log:
https://jira.jboss.org/jira/browse/JBDS-596
The info about tabbed Page Design Option is updated.
Modified: trunk/jsf/docs/userguide/en/images/visual_page/visual_page_10.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/userguide/en/images/visual_page/visual_page_10_2.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/userguide/en/images/visual_page/visual_page_10_3.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/userguide/en/images/visual_page/visual_page_10_4.png
===================================================================
(Binary files differ)
15 years, 3 months
JBoss Tools SVN: r13760 - workspace/dart/plugins.
by jbosstools-commits@lists.jboss.org
Author: DartPeng
Date: 2009-02-24 08:21:09 -0500 (Tue, 24 Feb 2009)
New Revision: 13760
Added:
workspace/dart/plugins/org.jboss.tools.smooks.testui/
Removed:
workspace/dart/plugins/org.smooks.tools.testui/
Log:
Copied: workspace/dart/plugins/org.jboss.tools.smooks.testui (from rev 13759, workspace/dart/plugins/org.smooks.tools.testui)
15 years, 3 months
JBoss Tools SVN: r13759 - in trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4: properties and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: koen.aers(a)jboss.com
Date: 2009-02-24 07:59:01 -0500 (Tue, 24 Feb 2009)
New Revision: 13759
Modified:
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editpart/SequenceFlowGraphicalEditPart.java
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/NameSection.java
Log:
name changes through command stack
Modified: trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editpart/SequenceFlowGraphicalEditPart.java
===================================================================
--- trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editpart/SequenceFlowGraphicalEditPart.java 2009-02-24 12:58:16 UTC (rev 13758)
+++ trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editpart/SequenceFlowGraphicalEditPart.java 2009-02-24 12:59:01 UTC (rev 13759)
@@ -24,7 +24,8 @@
installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new ElementDirectEditPolicy());
}
- public void refreshVisuals() {
+ protected void refreshVisuals() {
+ super.refreshVisuals();
decorateFigure((PolylineConnection)getFigure(), ((Wrapper)getModel()).getElement());
}
Modified: trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/NameSection.java
===================================================================
--- trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/NameSection.java 2009-02-24 12:58:16 UTC (rev 13758)
+++ trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/properties/NameSection.java 2009-02-24 12:59:01 UTC (rev 13759)
@@ -19,6 +19,7 @@
import org.eclipse.ui.views.properties.IPropertySource;
import org.eclipse.ui.views.properties.tabbed.AbstractPropertySection;
import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage;
+import org.jboss.tools.flow.common.command.RenameElementCommand;
import org.jboss.tools.flow.common.properties.IPropertyId;
public class NameSection extends AbstractPropertySection implements IPropertyId {
@@ -32,7 +33,11 @@
private ModifyListener nameTextModifyListener = new ModifyListener() {
public void modifyText(ModifyEvent arg0) {
if (input != null) {
- input.setPropertyValue(NAME, nameText.getText());
+ RenameElementCommand rec = new RenameElementCommand();
+ rec.setSource(input);
+ rec.setOldName((String)input.getPropertyValue(NAME));
+ rec.setName(nameText.getText());
+ commandStack.execute(rec);
}
}
};
15 years, 3 months
JBoss Tools SVN: r13758 - in trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common: editpart and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: koen.aers(a)jboss.com
Date: 2009-02-24 07:58:16 -0500 (Tue, 24 Feb 2009)
New Revision: 13758
Modified:
trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/command/RenameElementCommand.java
trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/editpart/LabelEditPart.java
trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/wrapper/AbstractConnectionWrapper.java
trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/wrapper/AbstractWrapper.java
Log:
- rename source is IPropertySource ipv Wrapper
- removed duplicate listener list
- only take property changes into account for label editpart
Modified: trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/command/RenameElementCommand.java
===================================================================
--- trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/command/RenameElementCommand.java 2009-02-24 11:32:16 UTC (rev 13757)
+++ trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/command/RenameElementCommand.java 2009-02-24 12:58:16 UTC (rev 13758)
@@ -19,7 +19,6 @@
import org.eclipse.gef.commands.Command;
import org.eclipse.ui.views.properties.IPropertySource;
import org.jboss.tools.flow.common.properties.IPropertyId;
-import org.jboss.tools.flow.common.wrapper.Wrapper;
/**
* A command for renaming an element.
@@ -28,15 +27,14 @@
*/
public class RenameElementCommand extends Command {
- private Wrapper source;
+ private IPropertySource source;
private String name;
private String oldName;
public void execute() {
- IPropertySource propertySource = (IPropertySource)source.getAdapter(IPropertySource.class);
- if (propertySource != null) {
- propertySource.setPropertyValue(IPropertyId.NAME, name);
+ if (source != null) {
+ source.setPropertyValue(IPropertyId.NAME, name);
}
}
@@ -48,14 +46,13 @@
oldName = string;
}
- public void setSource(Wrapper action) {
- source = action;
+ public void setSource(IPropertySource propertySource) {
+ source = propertySource;
}
public void undo() {
- IPropertySource propertySource = (IPropertySource)source.getAdapter(IPropertySource.class);
- if (propertySource != null) {
- propertySource.setPropertyValue(IPropertyId.NAME, oldName);
+ if (source != null) {
+ source.setPropertyValue(IPropertyId.NAME, oldName);
}
}
}
Modified: trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/editpart/LabelEditPart.java
===================================================================
--- trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/editpart/LabelEditPart.java 2009-02-24 11:32:16 UTC (rev 13757)
+++ trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/editpart/LabelEditPart.java 2009-02-24 12:58:16 UTC (rev 13758)
@@ -106,7 +106,9 @@
}
public void modelChanged(ModelEvent event) {
- refreshVisuals();
+ if (event.getChange() == Wrapper.CHANGE_PROPERTY) {
+ refreshVisuals();
+ }
}
private class LabelConstraint implements Locator {
Modified: trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/wrapper/AbstractConnectionWrapper.java
===================================================================
--- trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/wrapper/AbstractConnectionWrapper.java 2009-02-24 11:32:16 UTC (rev 13757)
+++ trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/wrapper/AbstractConnectionWrapper.java 2009-02-24 12:58:16 UTC (rev 13758)
@@ -34,7 +34,6 @@
private NodeWrapper target;
private LabelWrapper label;
private transient List<Point> bendpoints = new ArrayList<Point>();
- private transient List<ModelListener> listeners = new ArrayList<ModelListener>();
public void localSetSource(NodeWrapper source) {
this.source = source;
@@ -127,19 +126,4 @@
return label;
}
- public void addListener(ModelListener listener) {
- listeners.add(listener);
- }
-
- public void removeListener(ModelListener listener) {
- listeners.remove(listener);
- }
-
- protected void notifyListeners(int change) {
- ModelEvent event = new ModelEvent(change);
- for (ModelListener listener : listeners) {
- listener.modelChanged(event);
- }
- }
-
}
Modified: trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/wrapper/AbstractWrapper.java
===================================================================
--- trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/wrapper/AbstractWrapper.java 2009-02-24 11:32:16 UTC (rev 13757)
+++ trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/wrapper/AbstractWrapper.java 2009-02-24 12:58:16 UTC (rev 13758)
@@ -34,6 +34,10 @@
listener.modelChanged(event);
}
}
+
+ public void notifyListeners(int change) {
+ notifyListeners(change, null);
+ }
public Object getEditableValue() {
if (getPropertySource() != null) {
15 years, 3 months
JBoss Tools SVN: r13757 - trunk/seam/plugins/org.jboss.tools.seam.pages.xml/resources/help.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2009-02-24 06:32:16 -0500 (Tue, 24 Feb 2009)
New Revision: 13757
Modified:
trunk/seam/plugins/org.jboss.tools.seam.pages.xml/resources/help/keys-seam-pages.properties
Log:
JBIDE-3854
Modified: trunk/seam/plugins/org.jboss.tools.seam.pages.xml/resources/help/keys-seam-pages.properties
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.pages.xml/resources/help/keys-seam-pages.properties 2009-02-24 11:21:15 UTC (rev 13756)
+++ trunk/seam/plugins/org.jboss.tools.seam.pages.xml/resources/help/keys-seam-pages.properties 2009-02-24 11:32:16 UTC (rev 13757)
@@ -1,5 +1,6 @@
FileSeamPage12.editorTitle=Seam Page Editor
FileSeamPage20.editorTitle=Seam Page Editor
+FileSeamPage21.editorTitle=Seam Page Editor
AddSeamPageException_Properties.Title=Add Exception
15 years, 3 months
JBoss Tools SVN: r13756 - in trunk/seam/plugins/org.jboss.tools.seam.xml: resources/meta and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2009-02-24 06:21:15 -0500 (Tue, 24 Feb 2009)
New Revision: 13756
Modified:
trunk/seam/plugins/org.jboss.tools.seam.xml/resources/help/keys-seam.properties
trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/seam-core.meta
trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/core-2.1.xsd
Log:
JBIDE-3854
Modified: trunk/seam/plugins/org.jboss.tools.seam.xml/resources/help/keys-seam.properties
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/resources/help/keys-seam.properties 2009-02-24 10:41:11 UTC (rev 13755)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/resources/help/keys-seam.properties 2009-02-24 11:21:15 UTC (rev 13756)
@@ -1,9 +1,11 @@
FileSeamComponents11.editorTitle=Seam Components 1.1 Editor
FileSeamComponents12.editorTitle=Seam Components 1.2 Editor
FileSeamComponents20.editorTitle=Seam Components 2.0 Editor
+FileSeamComponents21.editorTitle=Seam Components 2.1 Editor
FileSeamComponent11.editorTitle=Seam Component 1.1 Editor
FileSeamComponent12.editorTitle=Seam Component 1.2 Editor
FileSeamComponent20.editorTitle=Seam Component 2.0 Editor
+FileSeamComponent21.editorTitle=Seam Component 2.1 Editor
FileSeamComponent12_Rename.WindowTitle=Rename
FileSeamComponent12_Rename.Title=File Seam Component
Modified: trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/seam-core.meta
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/seam-core.meta 2009-02-24 10:41:11 UTC (rev 13755)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/seam-core.meta 2009-02-24 11:21:15 UTC (rev 13756)
@@ -768,6 +768,23 @@
<XModelAttributeReference
attributes="debug,jndi-pattern,transaction-management-enabled,user-transaction-name"
entity="SeamCoreInit20" name="init"/>
+ <XModelAttribute PROPERTIES="category=advanced" name="distributable" xmlname="distributable">
+ <Constraint loader="%ListEL%">
+ <value/>
+ <value name="true"/>
+ <value name="false"/>
+ </Constraint>
+ <Editor name="ListString"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=advanced"
+ name="security-enabled" xmlname="security-enabled">
+ <Constraint loader="%ListEL%">
+ <value/>
+ <value name="true"/>
+ <value name="false"/>
+ </Constraint>
+ <Editor name="ListString"/>
+ </XModelAttribute>
<XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
<Editor name="Note"/>
</XModelAttribute>
Modified: trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/core-2.1.xsd
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/core-2.1.xsd 2009-02-24 10:41:11 UTC (rev 13755)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/schemas/core-2.1.xsd 2009-02-24 11:21:15 UTC (rev 13756)
@@ -17,7 +17,7 @@
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="interceptors" type="components:multiValuedProperty">
<xs:annotation>
- <xs:documentation>A list of interceptors that should be enabled for all components. You must specify all built-in interceptors as well as any extras interceptors.
+ <xs:documentation>A list of interceptors that should be enabled for all components. You must specify all built-in interceptors as well as any additional interceptors. Execution order is determined by the around and within attributes on the @Interceptor annotation.
These interceptors are enabled by default:
org.jboss.seam.core.SynchronizationInterceptor
@@ -34,7 +34,9 @@
org.jboss.seam.transaction.RollbackInterceptor
org.jboss.seam.transaction.TransactionInterceptor
org.jboss.seam.webservice.WSSecurityInterceptor
- org.jboss.seam.security.SecurityInterceptor</xs:documentation>
+ org.jboss.seam.security.SecurityInterceptor
+
+The distributable flag appends the ManagedEntityInterceptor to this list (applies only to conversation-scoped components).</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
@@ -45,7 +47,9 @@
<xs:attributeGroup name="attlist.init">
<xs:attribute name="debug" type="components:boolean" />
+ <xs:attribute name="distributable" type="components:boolean" />
<xs:attribute name="jndi-pattern" type="components:string" />
+ <xs:attribute name="security-enabled" type="components:boolean" />
<xs:attribute name="transaction-management-enabled" type="components:boolean"/>
<xs:attribute name="user-transaction-name" type="components:string"/>
</xs:attributeGroup>
15 years, 3 months
JBoss Tools SVN: r13755 - trunk/common/tests/org.jboss.tools.common.kb.test/src/org/jboss/tools/common/kb/test.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2009-02-24 05:41:11 -0500 (Tue, 24 Feb 2009)
New Revision: 13755
Modified:
trunk/common/tests/org.jboss.tools.common.kb.test/src/org/jboss/tools/common/kb/test/TldTest.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-3701
Modified: trunk/common/tests/org.jboss.tools.common.kb.test/src/org/jboss/tools/common/kb/test/TldTest.java
===================================================================
--- trunk/common/tests/org.jboss.tools.common.kb.test/src/org/jboss/tools/common/kb/test/TldTest.java 2009-02-24 10:26:44 UTC (rev 13754)
+++ trunk/common/tests/org.jboss.tools.common.kb.test/src/org/jboss/tools/common/kb/test/TldTest.java 2009-02-24 10:41:11 UTC (rev 13755)
@@ -42,8 +42,8 @@
*/
public class TldTest extends TestCase {
- private static String A4J_TLD_PATH = "/RichFaces/richfaces-ui-3.1.3.GA.jar!/META-INF/ajax4jsf.tld";
- private static String RICHFACES_TLD_PATH = "/RichFaces/richfaces-ui-3.1.3.GA.jar!/META-INF/rich.tld";
+ private static String A4J_TLD_PATH = "/RichFaces3.3/richfaces-ui-3.3.0.GA.jar!/META-INF/ajax4jsf.tld";
+ private static String RICHFACES_TLD_PATH = "/RichFaces3.3/richfaces-ui-3.3.0.GA.jar!/META-INF/rich.tld";
private JspWtpKbConnector connector = new JspWtpKbConnector();
private String libFolderPath = null;
15 years, 3 months
JBoss Tools SVN: r13754 - in workspace/dart/plugins/org.smooks.tools.testui: .settings and 11 other directories.
by jbosstools-commits@lists.jboss.org
Author: DartPeng
Date: 2009-02-24 05:26:44 -0500 (Tue, 24 Feb 2009)
New Revision: 13754
Added:
workspace/dart/plugins/org.smooks.tools.testui/.classpath
workspace/dart/plugins/org.smooks.tools.testui/.project
workspace/dart/plugins/org.smooks.tools.testui/.settings/
workspace/dart/plugins/org.smooks.tools.testui/.settings/org.eclipse.jdt.core.prefs
workspace/dart/plugins/org.smooks.tools.testui/META-INF/
workspace/dart/plugins/org.smooks.tools.testui/META-INF/MANIFEST.MF
workspace/dart/plugins/org.smooks.tools.testui/build.properties
workspace/dart/plugins/org.smooks.tools.testui/contexts.xml
workspace/dart/plugins/org.smooks.tools.testui/icons/
workspace/dart/plugins/org.smooks.tools.testui/icons/sample.gif
workspace/dart/plugins/org.smooks.tools.testui/libs/
workspace/dart/plugins/org.smooks.tools.testui/libs/antlr-2.7.2.jar
workspace/dart/plugins/org.smooks.tools.testui/libs/commons-lang-2.1.jar
workspace/dart/plugins/org.smooks.tools.testui/libs/commons-logging-1.1.jar
workspace/dart/plugins/org.smooks.tools.testui/libs/flute-1.3.jar
workspace/dart/plugins/org.smooks.tools.testui/libs/freemarker-2.3.9.jar
workspace/dart/plugins/org.smooks.tools.testui/libs/groovy-all-1.0.jar
workspace/dart/plugins/org.smooks.tools.testui/libs/milyn-commons-1.0.jar
workspace/dart/plugins/org.smooks.tools.testui/libs/milyn-edisax-0.3.jar
workspace/dart/plugins/org.smooks.tools.testui/libs/milyn-edisax-model-0.3.jar
workspace/dart/plugins/org.smooks.tools.testui/libs/milyn-magger-0.1.3.jar
workspace/dart/plugins/org.smooks.tools.testui/libs/milyn-smooks-core-1.0.1.jar
workspace/dart/plugins/org.smooks.tools.testui/libs/milyn-smooks-css-1.0.1.jar
workspace/dart/plugins/org.smooks.tools.testui/libs/milyn-smooks-csv-1.0.1.jar
workspace/dart/plugins/org.smooks.tools.testui/libs/milyn-smooks-edi-1.0.1.jar
workspace/dart/plugins/org.smooks.tools.testui/libs/milyn-smooks-javabean-1.0.1.jar
workspace/dart/plugins/org.smooks.tools.testui/libs/milyn-smooks-misc-1.0.1.jar
workspace/dart/plugins/org.smooks.tools.testui/libs/milyn-smooks-routing-1.0.1.jar
workspace/dart/plugins/org.smooks.tools.testui/libs/milyn-smooks-scripting-1.0.1.jar
workspace/dart/plugins/org.smooks.tools.testui/libs/milyn-smooks-servlet-1.0.1.jar
workspace/dart/plugins/org.smooks.tools.testui/libs/milyn-smooks-templating-1.0.1.jar
workspace/dart/plugins/org.smooks.tools.testui/libs/milyn-tinak-0.8.1.jar
workspace/dart/plugins/org.smooks.tools.testui/libs/mockrunner-jdk1.5-j2ee1.3-0.4.jar
workspace/dart/plugins/org.smooks.tools.testui/libs/mvel-1.3.3-java1.5.jar
workspace/dart/plugins/org.smooks.tools.testui/libs/nekohtml-0.9.5.jar
workspace/dart/plugins/org.smooks.tools.testui/libs/ognl-2.6.9.jar
workspace/dart/plugins/org.smooks.tools.testui/libs/opencsv-1.8.jar
workspace/dart/plugins/org.smooks.tools.testui/libs/sac-1.3.jar
workspace/dart/plugins/org.smooks.tools.testui/libs/stringtemplate-2.2.jar
workspace/dart/plugins/org.smooks.tools.testui/libs/xbean-2.2.0.jar
workspace/dart/plugins/org.smooks.tools.testui/libs/xercesImpl-2.4.0.jar
workspace/dart/plugins/org.smooks.tools.testui/libs/xml-apis-1.0.b2.jar
workspace/dart/plugins/org.smooks.tools.testui/libs/xmlbeans-jsr173-api-2.0-dev.jar
workspace/dart/plugins/org.smooks.tools.testui/libs/xpp3_min-1.1.3.4.O.jar
workspace/dart/plugins/org.smooks.tools.testui/libs/xstream-1.2.2.jar
workspace/dart/plugins/org.smooks.tools.testui/plugin.xml
workspace/dart/plugins/org.smooks.tools.testui/src/
workspace/dart/plugins/org.smooks.tools.testui/src/org/
workspace/dart/plugins/org.smooks.tools.testui/src/org/smooks/
workspace/dart/plugins/org.smooks.tools.testui/src/org/smooks/tools/
workspace/dart/plugins/org.smooks.tools.testui/src/org/smooks/tools/testui/
workspace/dart/plugins/org.smooks.tools.testui/src/org/smooks/tools/testui/SmooksTestUIActivator.java
workspace/dart/plugins/org.smooks.tools.testui/src/org/smooks/tools/testui/views/
workspace/dart/plugins/org.smooks.tools.testui/src/org/smooks/tools/testui/views/AbstractNode.java
workspace/dart/plugins/org.smooks.tools.testui/src/org/smooks/tools/testui/views/Node.java
workspace/dart/plugins/org.smooks.tools.testui/src/org/smooks/tools/testui/views/ProjectNode.java
workspace/dart/plugins/org.smooks.tools.testui/src/org/smooks/tools/testui/views/SmooksNode.java
workspace/dart/plugins/org.smooks.tools.testui/src/org/smooks/tools/testui/views/TestProjectsView.java
workspace/dart/plugins/org.smooks.tools.testui/target/
workspace/dart/plugins/org.smooks.tools.testui/target/report/
workspace/dart/plugins/org.smooks.tools.testui/target/report/report.html
Log:
Added: workspace/dart/plugins/org.smooks.tools.testui/.classpath
===================================================================
--- workspace/dart/plugins/org.smooks.tools.testui/.classpath (rev 0)
+++ workspace/dart/plugins/org.smooks.tools.testui/.classpath 2009-02-24 10:26:44 UTC (rev 13754)
@@ -0,0 +1,41 @@
+<?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/JavaSE-1.6"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="lib" path="libs/antlr-2.7.2.jar"/>
+ <classpathentry kind="lib" path="libs/commons-lang-2.1.jar"/>
+ <classpathentry kind="lib" path="libs/commons-logging-1.1.jar"/>
+ <classpathentry kind="lib" path="libs/flute-1.3.jar"/>
+ <classpathentry kind="lib" path="libs/freemarker-2.3.9.jar"/>
+ <classpathentry kind="lib" path="libs/groovy-all-1.0.jar"/>
+ <classpathentry kind="lib" path="libs/milyn-commons-1.0.jar"/>
+ <classpathentry kind="lib" path="libs/milyn-edisax-0.3.jar"/>
+ <classpathentry kind="lib" path="libs/milyn-edisax-model-0.3.jar"/>
+ <classpathentry kind="lib" path="libs/milyn-magger-0.1.3.jar"/>
+ <classpathentry kind="lib" path="libs/milyn-smooks-core-1.0.1.jar"/>
+ <classpathentry kind="lib" path="libs/milyn-smooks-css-1.0.1.jar"/>
+ <classpathentry kind="lib" path="libs/milyn-smooks-csv-1.0.1.jar"/>
+ <classpathentry kind="lib" path="libs/milyn-smooks-edi-1.0.1.jar"/>
+ <classpathentry kind="lib" path="libs/milyn-smooks-javabean-1.0.1.jar"/>
+ <classpathentry kind="lib" path="libs/milyn-smooks-misc-1.0.1.jar"/>
+ <classpathentry kind="lib" path="libs/milyn-smooks-routing-1.0.1.jar"/>
+ <classpathentry kind="lib" path="libs/milyn-smooks-scripting-1.0.1.jar"/>
+ <classpathentry kind="lib" path="libs/milyn-smooks-servlet-1.0.1.jar"/>
+ <classpathentry kind="lib" path="libs/milyn-smooks-templating-1.0.1.jar"/>
+ <classpathentry kind="lib" path="libs/milyn-tinak-0.8.1.jar"/>
+ <classpathentry kind="lib" path="libs/mockrunner-jdk1.5-j2ee1.3-0.4.jar"/>
+ <classpathentry kind="lib" path="libs/mvel-1.3.3-java1.5.jar"/>
+ <classpathentry kind="lib" path="libs/nekohtml-0.9.5.jar"/>
+ <classpathentry kind="lib" path="libs/ognl-2.6.9.jar"/>
+ <classpathentry kind="lib" path="libs/opencsv-1.8.jar"/>
+ <classpathentry kind="lib" path="libs/sac-1.3.jar"/>
+ <classpathentry kind="lib" path="libs/stringtemplate-2.2.jar"/>
+ <classpathentry kind="lib" path="libs/xbean-2.2.0.jar"/>
+ <classpathentry kind="lib" path="libs/xercesImpl-2.4.0.jar"/>
+ <classpathentry kind="lib" path="libs/xml-apis-1.0.b2.jar"/>
+ <classpathentry kind="lib" path="libs/xmlbeans-jsr173-api-2.0-dev.jar"/>
+ <classpathentry kind="lib" path="libs/xpp3_min-1.1.3.4.O.jar"/>
+ <classpathentry kind="lib" path="libs/xstream-1.2.2.jar"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Property changes on: workspace/dart/plugins/org.smooks.tools.testui/.classpath
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: workspace/dart/plugins/org.smooks.tools.testui/.project
===================================================================
--- workspace/dart/plugins/org.smooks.tools.testui/.project (rev 0)
+++ workspace/dart/plugins/org.smooks.tools.testui/.project 2009-02-24 10:26:44 UTC (rev 13754)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.smooks.tools.testui</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>
Property changes on: workspace/dart/plugins/org.smooks.tools.testui/.project
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: workspace/dart/plugins/org.smooks.tools.testui/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- workspace/dart/plugins/org.smooks.tools.testui/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ workspace/dart/plugins/org.smooks.tools.testui/.settings/org.eclipse.jdt.core.prefs 2009-02-24 10:26:44 UTC (rev 13754)
@@ -0,0 +1,7 @@
+#Fri Feb 20 17:23:05 CST 2009
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.6
Property changes on: workspace/dart/plugins/org.smooks.tools.testui/.settings/org.eclipse.jdt.core.prefs
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: workspace/dart/plugins/org.smooks.tools.testui/META-INF/MANIFEST.MF
===================================================================
--- workspace/dart/plugins/org.smooks.tools.testui/META-INF/MANIFEST.MF (rev 0)
+++ workspace/dart/plugins/org.smooks.tools.testui/META-INF/MANIFEST.MF 2009-02-24 10:26:44 UTC (rev 13754)
@@ -0,0 +1,49 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: SmooksTestUIPlug-in
+Bundle-SymbolicName: org.smooks.tools.testui; singleton:=true
+Bundle-Version: 1.0.0
+Bundle-Activator: org.smooks.tools.testui.SmooksTestUIActivator
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime,
+ org.jboss.tools.smooks.core,
+ org.jboss.tools.smooks.ui,
+ org.eclipse.core.resources;bundle-version="3.4.1",
+ org.eclipse.jdt.core;bundle-version="3.4.2"
+Bundle-ActivationPolicy: lazy
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+Bundle-ClassPath: libs/antlr-2.7.2.jar,
+ libs/commons-lang-2.1.jar,
+ libs/commons-logging-1.1.jar,
+ libs/flute-1.3.jar,
+ libs/freemarker-2.3.9.jar,
+ libs/groovy-all-1.0.jar,
+ libs/milyn-commons-1.0.jar,
+ libs/milyn-edisax-0.3.jar,
+ libs/milyn-edisax-model-0.3.jar,
+ libs/milyn-magger-0.1.3.jar,
+ libs/milyn-smooks-core-1.0.1.jar,
+ libs/milyn-smooks-css-1.0.1.jar,
+ libs/milyn-smooks-csv-1.0.1.jar,
+ libs/milyn-smooks-edi-1.0.1.jar,
+ libs/milyn-smooks-javabean-1.0.1.jar,
+ libs/milyn-smooks-misc-1.0.1.jar,
+ libs/milyn-smooks-routing-1.0.1.jar,
+ libs/milyn-smooks-scripting-1.0.1.jar,
+ libs/milyn-smooks-servlet-1.0.1.jar,
+ libs/milyn-smooks-templating-1.0.1.jar,
+ libs/milyn-tinak-0.8.1.jar,
+ libs/mockrunner-jdk1.5-j2ee1.3-0.4.jar,
+ libs/mvel-1.3.3-java1.5.jar,
+ libs/nekohtml-0.9.5.jar,
+ libs/ognl-2.6.9.jar,
+ libs/opencsv-1.8.jar,
+ libs/sac-1.3.jar,
+ libs/stringtemplate-2.2.jar,
+ libs/xbean-2.2.0.jar,
+ libs/xercesImpl-2.4.0.jar,
+ libs/xml-apis-1.0.b2.jar,
+ libs/xmlbeans-jsr173-api-2.0-dev.jar,
+ libs/xpp3_min-1.1.3.4.O.jar,
+ libs/xstream-1.2.2.jar,
+ .
Property changes on: workspace/dart/plugins/org.smooks.tools.testui/META-INF/MANIFEST.MF
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: workspace/dart/plugins/org.smooks.tools.testui/build.properties
===================================================================
--- workspace/dart/plugins/org.smooks.tools.testui/build.properties (rev 0)
+++ workspace/dart/plugins/org.smooks.tools.testui/build.properties 2009-02-24 10:26:44 UTC (rev 13754)
@@ -0,0 +1,41 @@
+source.. = src/
+output.. = bin/
+bin.includes = plugin.xml,\
+ META-INF/,\
+ .,\
+ icons/,\
+ contexts.xml,\
+ libs/antlr-2.7.2.jar,\
+ libs/commons-lang-2.1.jar,\
+ libs/commons-logging-1.1.jar,\
+ libs/flute-1.3.jar,\
+ libs/freemarker-2.3.9.jar,\
+ libs/groovy-all-1.0.jar,\
+ libs/milyn-commons-1.0.jar,\
+ libs/milyn-edisax-0.3.jar,\
+ libs/milyn-edisax-model-0.3.jar,\
+ libs/milyn-magger-0.1.3.jar,\
+ libs/milyn-smooks-core-1.0.1.jar,\
+ libs/milyn-smooks-css-1.0.1.jar,\
+ libs/milyn-smooks-csv-1.0.1.jar,\
+ libs/milyn-smooks-edi-1.0.1.jar,\
+ libs/milyn-smooks-javabean-1.0.1.jar,\
+ libs/milyn-smooks-misc-1.0.1.jar,\
+ libs/milyn-smooks-routing-1.0.1.jar,\
+ libs/milyn-smooks-scripting-1.0.1.jar,\
+ libs/milyn-smooks-servlet-1.0.1.jar,\
+ libs/milyn-smooks-templating-1.0.1.jar,\
+ libs/milyn-tinak-0.8.1.jar,\
+ libs/mockrunner-jdk1.5-j2ee1.3-0.4.jar,\
+ libs/mvel-1.3.3-java1.5.jar,\
+ libs/nekohtml-0.9.5.jar,\
+ libs/ognl-2.6.9.jar,\
+ libs/opencsv-1.8.jar,\
+ libs/sac-1.3.jar,\
+ libs/stringtemplate-2.2.jar,\
+ libs/xbean-2.2.0.jar,\
+ libs/xercesImpl-2.4.0.jar,\
+ libs/xml-apis-1.0.b2.jar,\
+ libs/xmlbeans-jsr173-api-2.0-dev.jar,\
+ libs/xpp3_min-1.1.3.4.O.jar,\
+ libs/xstream-1.2.2.jar
Property changes on: workspace/dart/plugins/org.smooks.tools.testui/build.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: workspace/dart/plugins/org.smooks.tools.testui/contexts.xml
===================================================================
--- workspace/dart/plugins/org.smooks.tools.testui/contexts.xml (rev 0)
+++ workspace/dart/plugins/org.smooks.tools.testui/contexts.xml 2009-02-24 10:26:44 UTC (rev 13754)
@@ -0,0 +1,12 @@
+<contexts>
+ <context id="viewer" title="Sample View">
+ <description>This is the context help for the sample view with a tree viewer. It was generated by a PDE template.</description>
+ <topic href="/PLUGINS_ROOT/org.eclipse.platform.doc.isv/guide/ua_help_context.htm" label="Context-sensitive help">
+ <enablement>
+ <with variable="platform">
+ <test property="org.eclipse.core.runtime.isBundleInstalled" args="org.eclipse.platform.doc.isv"/>
+ </with>
+ </enablement>
+ </topic>
+ </context>
+</contexts>
Property changes on: workspace/dart/plugins/org.smooks.tools.testui/contexts.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: workspace/dart/plugins/org.smooks.tools.testui/icons/sample.gif
===================================================================
(Binary files differ)
Property changes on: workspace/dart/plugins/org.smooks.tools.testui/icons/sample.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dart/plugins/org.smooks.tools.testui/libs/antlr-2.7.2.jar
===================================================================
(Binary files differ)
Property changes on: workspace/dart/plugins/org.smooks.tools.testui/libs/antlr-2.7.2.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dart/plugins/org.smooks.tools.testui/libs/commons-lang-2.1.jar
===================================================================
(Binary files differ)
Property changes on: workspace/dart/plugins/org.smooks.tools.testui/libs/commons-lang-2.1.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dart/plugins/org.smooks.tools.testui/libs/commons-logging-1.1.jar
===================================================================
(Binary files differ)
Property changes on: workspace/dart/plugins/org.smooks.tools.testui/libs/commons-logging-1.1.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dart/plugins/org.smooks.tools.testui/libs/flute-1.3.jar
===================================================================
(Binary files differ)
Property changes on: workspace/dart/plugins/org.smooks.tools.testui/libs/flute-1.3.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dart/plugins/org.smooks.tools.testui/libs/freemarker-2.3.9.jar
===================================================================
(Binary files differ)
Property changes on: workspace/dart/plugins/org.smooks.tools.testui/libs/freemarker-2.3.9.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dart/plugins/org.smooks.tools.testui/libs/groovy-all-1.0.jar
===================================================================
(Binary files differ)
Property changes on: workspace/dart/plugins/org.smooks.tools.testui/libs/groovy-all-1.0.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dart/plugins/org.smooks.tools.testui/libs/milyn-commons-1.0.jar
===================================================================
(Binary files differ)
Property changes on: workspace/dart/plugins/org.smooks.tools.testui/libs/milyn-commons-1.0.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dart/plugins/org.smooks.tools.testui/libs/milyn-edisax-0.3.jar
===================================================================
(Binary files differ)
Property changes on: workspace/dart/plugins/org.smooks.tools.testui/libs/milyn-edisax-0.3.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dart/plugins/org.smooks.tools.testui/libs/milyn-edisax-model-0.3.jar
===================================================================
(Binary files differ)
Property changes on: workspace/dart/plugins/org.smooks.tools.testui/libs/milyn-edisax-model-0.3.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dart/plugins/org.smooks.tools.testui/libs/milyn-magger-0.1.3.jar
===================================================================
(Binary files differ)
Property changes on: workspace/dart/plugins/org.smooks.tools.testui/libs/milyn-magger-0.1.3.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dart/plugins/org.smooks.tools.testui/libs/milyn-smooks-core-1.0.1.jar
===================================================================
(Binary files differ)
Property changes on: workspace/dart/plugins/org.smooks.tools.testui/libs/milyn-smooks-core-1.0.1.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dart/plugins/org.smooks.tools.testui/libs/milyn-smooks-css-1.0.1.jar
===================================================================
(Binary files differ)
Property changes on: workspace/dart/plugins/org.smooks.tools.testui/libs/milyn-smooks-css-1.0.1.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dart/plugins/org.smooks.tools.testui/libs/milyn-smooks-csv-1.0.1.jar
===================================================================
(Binary files differ)
Property changes on: workspace/dart/plugins/org.smooks.tools.testui/libs/milyn-smooks-csv-1.0.1.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dart/plugins/org.smooks.tools.testui/libs/milyn-smooks-edi-1.0.1.jar
===================================================================
(Binary files differ)
Property changes on: workspace/dart/plugins/org.smooks.tools.testui/libs/milyn-smooks-edi-1.0.1.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dart/plugins/org.smooks.tools.testui/libs/milyn-smooks-javabean-1.0.1.jar
===================================================================
(Binary files differ)
Property changes on: workspace/dart/plugins/org.smooks.tools.testui/libs/milyn-smooks-javabean-1.0.1.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dart/plugins/org.smooks.tools.testui/libs/milyn-smooks-misc-1.0.1.jar
===================================================================
(Binary files differ)
Property changes on: workspace/dart/plugins/org.smooks.tools.testui/libs/milyn-smooks-misc-1.0.1.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dart/plugins/org.smooks.tools.testui/libs/milyn-smooks-routing-1.0.1.jar
===================================================================
(Binary files differ)
Property changes on: workspace/dart/plugins/org.smooks.tools.testui/libs/milyn-smooks-routing-1.0.1.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dart/plugins/org.smooks.tools.testui/libs/milyn-smooks-scripting-1.0.1.jar
===================================================================
(Binary files differ)
Property changes on: workspace/dart/plugins/org.smooks.tools.testui/libs/milyn-smooks-scripting-1.0.1.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dart/plugins/org.smooks.tools.testui/libs/milyn-smooks-servlet-1.0.1.jar
===================================================================
(Binary files differ)
Property changes on: workspace/dart/plugins/org.smooks.tools.testui/libs/milyn-smooks-servlet-1.0.1.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dart/plugins/org.smooks.tools.testui/libs/milyn-smooks-templating-1.0.1.jar
===================================================================
(Binary files differ)
Property changes on: workspace/dart/plugins/org.smooks.tools.testui/libs/milyn-smooks-templating-1.0.1.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dart/plugins/org.smooks.tools.testui/libs/milyn-tinak-0.8.1.jar
===================================================================
(Binary files differ)
Property changes on: workspace/dart/plugins/org.smooks.tools.testui/libs/milyn-tinak-0.8.1.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dart/plugins/org.smooks.tools.testui/libs/mockrunner-jdk1.5-j2ee1.3-0.4.jar
===================================================================
(Binary files differ)
Property changes on: workspace/dart/plugins/org.smooks.tools.testui/libs/mockrunner-jdk1.5-j2ee1.3-0.4.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dart/plugins/org.smooks.tools.testui/libs/mvel-1.3.3-java1.5.jar
===================================================================
(Binary files differ)
Property changes on: workspace/dart/plugins/org.smooks.tools.testui/libs/mvel-1.3.3-java1.5.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dart/plugins/org.smooks.tools.testui/libs/nekohtml-0.9.5.jar
===================================================================
(Binary files differ)
Property changes on: workspace/dart/plugins/org.smooks.tools.testui/libs/nekohtml-0.9.5.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dart/plugins/org.smooks.tools.testui/libs/ognl-2.6.9.jar
===================================================================
(Binary files differ)
Property changes on: workspace/dart/plugins/org.smooks.tools.testui/libs/ognl-2.6.9.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dart/plugins/org.smooks.tools.testui/libs/opencsv-1.8.jar
===================================================================
(Binary files differ)
Property changes on: workspace/dart/plugins/org.smooks.tools.testui/libs/opencsv-1.8.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dart/plugins/org.smooks.tools.testui/libs/sac-1.3.jar
===================================================================
(Binary files differ)
Property changes on: workspace/dart/plugins/org.smooks.tools.testui/libs/sac-1.3.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dart/plugins/org.smooks.tools.testui/libs/stringtemplate-2.2.jar
===================================================================
(Binary files differ)
Property changes on: workspace/dart/plugins/org.smooks.tools.testui/libs/stringtemplate-2.2.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dart/plugins/org.smooks.tools.testui/libs/xbean-2.2.0.jar
===================================================================
(Binary files differ)
Property changes on: workspace/dart/plugins/org.smooks.tools.testui/libs/xbean-2.2.0.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dart/plugins/org.smooks.tools.testui/libs/xercesImpl-2.4.0.jar
===================================================================
(Binary files differ)
Property changes on: workspace/dart/plugins/org.smooks.tools.testui/libs/xercesImpl-2.4.0.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dart/plugins/org.smooks.tools.testui/libs/xml-apis-1.0.b2.jar
===================================================================
(Binary files differ)
Property changes on: workspace/dart/plugins/org.smooks.tools.testui/libs/xml-apis-1.0.b2.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dart/plugins/org.smooks.tools.testui/libs/xmlbeans-jsr173-api-2.0-dev.jar
===================================================================
(Binary files differ)
Property changes on: workspace/dart/plugins/org.smooks.tools.testui/libs/xmlbeans-jsr173-api-2.0-dev.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dart/plugins/org.smooks.tools.testui/libs/xpp3_min-1.1.3.4.O.jar
===================================================================
(Binary files differ)
Property changes on: workspace/dart/plugins/org.smooks.tools.testui/libs/xpp3_min-1.1.3.4.O.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dart/plugins/org.smooks.tools.testui/libs/xstream-1.2.2.jar
===================================================================
(Binary files differ)
Property changes on: workspace/dart/plugins/org.smooks.tools.testui/libs/xstream-1.2.2.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dart/plugins/org.smooks.tools.testui/plugin.xml
===================================================================
--- workspace/dart/plugins/org.smooks.tools.testui/plugin.xml (rev 0)
+++ workspace/dart/plugins/org.smooks.tools.testui/plugin.xml 2009-02-24 10:26:44 UTC (rev 13754)
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.2"?>
+<plugin>
+
+ <extension
+ point="org.eclipse.ui.views">
+ <category
+ name="Sample Category"
+ id="org.smooks.tools.testui">
+ </category>
+ <view
+ name="Sample View"
+ icon="icons/sample.gif"
+ category="org.smooks.tools.testui"
+ class="org.smooks.tools.testui.views.TestProjectsView"
+ id="org.smooks.tools.testui.views.SampleView">
+ </view>
+ </extension>
+ <extension
+ point="org.eclipse.ui.perspectiveExtensions">
+ <perspectiveExtension
+ targetID="org.eclipse.jdt.ui.JavaPerspective">
+ <view
+ ratio="0.5"
+ relative="org.eclipse.ui.views.TaskList"
+ relationship="right"
+ id="org.smooks.tools.testui.views.SampleView">
+ </view>
+ </perspectiveExtension>
+ </extension>
+ <extension
+ point="org.eclipse.help.contexts">
+ <contexts
+ file="contexts.xml">
+ </contexts>
+ </extension>
+
+</plugin>
Property changes on: workspace/dart/plugins/org.smooks.tools.testui/plugin.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: workspace/dart/plugins/org.smooks.tools.testui/src/org/smooks/tools/testui/SmooksTestUIActivator.java
===================================================================
--- workspace/dart/plugins/org.smooks.tools.testui/src/org/smooks/tools/testui/SmooksTestUIActivator.java (rev 0)
+++ workspace/dart/plugins/org.smooks.tools.testui/src/org/smooks/tools/testui/SmooksTestUIActivator.java 2009-02-24 10:26:44 UTC (rev 13754)
@@ -0,0 +1,61 @@
+package org.smooks.tools.testui;
+
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class SmooksTestUIActivator extends AbstractUIPlugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.smooks.tools.testui";
+
+ // The shared instance
+ private static SmooksTestUIActivator plugin;
+
+ /**
+ * The constructor
+ */
+ public SmooksTestUIActivator() {
+ }
+
+ /*
+ * (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 SmooksTestUIActivator getDefault() {
+ return plugin;
+ }
+
+ /**
+ * Returns an image descriptor for the image file at the given
+ * plug-in relative path
+ *
+ * @param path the path
+ * @return the image descriptor
+ */
+ public static ImageDescriptor getImageDescriptor(String path) {
+ return imageDescriptorFromPlugin(PLUGIN_ID, path);
+ }
+}
Property changes on: workspace/dart/plugins/org.smooks.tools.testui/src/org/smooks/tools/testui/SmooksTestUIActivator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: workspace/dart/plugins/org.smooks.tools.testui/src/org/smooks/tools/testui/views/AbstractNode.java
===================================================================
--- workspace/dart/plugins/org.smooks.tools.testui/src/org/smooks/tools/testui/views/AbstractNode.java (rev 0)
+++ workspace/dart/plugins/org.smooks.tools.testui/src/org/smooks/tools/testui/views/AbstractNode.java 2009-02-24 10:26:44 UTC (rev 13754)
@@ -0,0 +1,72 @@
+/**
+ *
+ */
+package org.smooks.tools.testui.views;
+
+import java.beans.PropertyChangeListener;
+import java.beans.PropertyChangeSupport;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * @author Dart
+ *
+ */
+public class AbstractNode implements Node{
+
+ protected PropertyChangeSupport support = new PropertyChangeSupport(this);
+
+ private String name ;
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ protected List<Node> children = null;
+
+ public List<Node> getChildren() {
+ if (children == null) {
+ children = new ArrayList<Node>();
+ }
+ return children;
+ }
+
+ public void addChildNode(Node child) {
+ getChildren().add(child);
+ support.firePropertyChange(PRO_ADD_CHILD, null, child);
+ }
+
+ public void removeChildNode(Node child) {
+ getChildren().remove(child);
+ support.firePropertyChange(PRO_REMOVE_CHILD, child, null);
+ }
+
+ public void addPropertyChangeListener(PropertyChangeListener listener){
+ support.addPropertyChangeListener(listener);
+ }
+
+ public void removePropertyChangeListener(PropertyChangeListener listener){
+ support.removePropertyChangeListener(listener);
+ }
+
+ @Override
+ public Object adapte(Class type) {
+ return null;
+ }
+
+ @Override
+ public boolean hasChildren() {
+ return true;
+ }
+
+ @Override
+ public void refresh() {
+ // TODO Auto-generated method stub
+
+ }
+
+}
Property changes on: workspace/dart/plugins/org.smooks.tools.testui/src/org/smooks/tools/testui/views/AbstractNode.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: workspace/dart/plugins/org.smooks.tools.testui/src/org/smooks/tools/testui/views/Node.java
===================================================================
--- workspace/dart/plugins/org.smooks.tools.testui/src/org/smooks/tools/testui/views/Node.java (rev 0)
+++ workspace/dart/plugins/org.smooks.tools.testui/src/org/smooks/tools/testui/views/Node.java 2009-02-24 10:26:44 UTC (rev 13754)
@@ -0,0 +1,38 @@
+/**
+ *
+ */
+package org.smooks.tools.testui.views;
+
+import java.beans.PropertyChangeListener;
+import java.util.List;
+
+/**
+ * @author Dart
+ *
+ */
+public interface Node {
+
+ public static final String PRO_ADD_CHILD = "__add_child";
+
+ public static final String PRO_REMOVE_CHILD = "__remove_child";
+
+ public boolean hasChildren();
+
+ public void addChildNode(Node child) ;
+
+ public void removeChildNode(Node child);
+
+ public List<Node> getChildren();
+
+ public void addPropertyChangeListener(PropertyChangeListener listener);
+
+ public void removePropertyChangeListener(PropertyChangeListener listener);
+
+ public String getName();
+
+ public void setName(String name);
+
+ public Object adapte(Class type);
+
+ public void refresh();
+}
Property changes on: workspace/dart/plugins/org.smooks.tools.testui/src/org/smooks/tools/testui/views/Node.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: workspace/dart/plugins/org.smooks.tools.testui/src/org/smooks/tools/testui/views/ProjectNode.java
===================================================================
--- workspace/dart/plugins/org.smooks.tools.testui/src/org/smooks/tools/testui/views/ProjectNode.java (rev 0)
+++ workspace/dart/plugins/org.smooks.tools.testui/src/org/smooks/tools/testui/views/ProjectNode.java 2009-02-24 10:26:44 UTC (rev 13754)
@@ -0,0 +1,101 @@
+/**
+ *
+ */
+package org.smooks.tools.testui.views;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.core.resources.IContainer;
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.Path;
+import org.eclipse.jdt.core.IJavaProject;
+import org.eclipse.jdt.core.JavaCore;
+
+/**
+ * @author Dart
+ *
+ */
+public class ProjectNode extends AbstractNode {
+ private IJavaProject project;
+
+ public ProjectNode(IJavaProject project) {
+ this.project = project;
+ setName(project.getProject().getName());
+ }
+
+ public ProjectNode(IProject project) {
+ IJavaProject jp = JavaCore.create(project);
+ this.project = jp;
+ setName(project.getName());
+ }
+
+ @Override
+ public Object adapte(Class type) {
+ if (type == IResource.class) {
+ return this.project;
+ }
+ return super.adapte(type);
+ }
+
+ @Override
+ public List<Node> getChildren() {
+ if (children == null) {
+ List l = loadSmooksConfigFiles();
+ children = new ArrayList<Node>();
+ children.addAll(l);
+ }
+ return children;
+ }
+
+
+ public void reloadNodes() {
+ children.clear();
+ List l = loadSmooksConfigFiles();
+ children.addAll(l);
+ }
+
+ private List loadSmooksConfigFiles() {
+ if (project != null) {
+ IProject p = project.getProject();
+ List list = new ArrayList();
+ loadSmooksConfigFiles(list, p);
+ return list;
+ }
+ return null;
+ }
+
+ private void loadSmooksConfigFiles(List list, IResource resource) {
+ if (resource instanceof IFile) {
+ if ("smooks".equals(((IFile) resource).getFileExtension())) {
+ String name = ((IFile) resource).getName();
+ name += ".graph";
+ IContainer c = ((IFile) resource).getParent();
+ if (c != null) {
+ IFile graphFile = c.getFile(new Path(name));
+ if (graphFile != null && graphFile.exists()) {
+ SmooksNode sn = new SmooksNode((IFile) resource,
+ graphFile);
+ list.add(sn);
+ }
+ }
+ }
+ } else {
+ if (resource instanceof IContainer) {
+ try {
+ IResource[] resources = ((IContainer) resource).members();
+ for (int i = 0; i < resources.length; i++) {
+ IResource r = resources[i];
+ loadSmooksConfigFiles(list, r);
+ }
+ } catch (CoreException e) {
+ e.printStackTrace();
+ }
+ }
+ }
+ }
+
+}
Property changes on: workspace/dart/plugins/org.smooks.tools.testui/src/org/smooks/tools/testui/views/ProjectNode.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: workspace/dart/plugins/org.smooks.tools.testui/src/org/smooks/tools/testui/views/SmooksNode.java
===================================================================
--- workspace/dart/plugins/org.smooks.tools.testui/src/org/smooks/tools/testui/views/SmooksNode.java (rev 0)
+++ workspace/dart/plugins/org.smooks.tools.testui/src/org/smooks/tools/testui/views/SmooksNode.java 2009-02-24 10:26:44 UTC (rev 13754)
@@ -0,0 +1,55 @@
+/**
+ *
+ */
+package org.smooks.tools.testui.views;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.runtime.Assert;
+
+/**
+ * @author Dart
+ *
+ */
+public class SmooksNode extends AbstractNode{
+ private IFile configFile = null;
+
+ private IFile graphFile = null;
+
+ public SmooksNode(IFile configFile,IFile graphFile){
+ Assert.isNotNull(configFile);
+ Assert.isNotNull(graphFile);
+ this.configFile = configFile;
+ this.graphFile = graphFile;
+ setName(configFile.getName());
+ }
+
+ @Override
+ public Object adapte(Class type) {
+ if (type == IResource.class) {
+ return this.configFile;
+ }
+ return super.adapte(type);
+ }
+
+ public boolean hasChildren(){
+ return false;
+ }
+
+ public IFile getGraphFile() {
+ return graphFile;
+ }
+
+ public void setGraphFile(IFile graphFile) {
+ this.graphFile = graphFile;
+ }
+
+ public IFile getConfigFile() {
+ return configFile;
+ }
+
+ public void setConfigFile(IFile configFile) {
+ this.configFile = configFile;
+ }
+
+}
Property changes on: workspace/dart/plugins/org.smooks.tools.testui/src/org/smooks/tools/testui/views/SmooksNode.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: workspace/dart/plugins/org.smooks.tools.testui/src/org/smooks/tools/testui/views/TestProjectsView.java
===================================================================
--- workspace/dart/plugins/org.smooks.tools.testui/src/org/smooks/tools/testui/views/TestProjectsView.java (rev 0)
+++ workspace/dart/plugins/org.smooks.tools.testui/src/org/smooks/tools/testui/views/TestProjectsView.java 2009-02-24 10:26:44 UTC (rev 13754)
@@ -0,0 +1,303 @@
+package org.smooks.tools.testui.views;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IWorkspaceRoot;
+import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.jface.action.Action;
+import org.eclipse.jface.action.IMenuListener;
+import org.eclipse.jface.action.IMenuManager;
+import org.eclipse.jface.action.IToolBarManager;
+import org.eclipse.jface.action.MenuManager;
+import org.eclipse.jface.action.Separator;
+import org.eclipse.jface.dialogs.MessageDialog;
+import org.eclipse.jface.viewers.DoubleClickEvent;
+import org.eclipse.jface.viewers.IDoubleClickListener;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.jface.viewers.IStructuredContentProvider;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.jface.viewers.ITreeContentProvider;
+import org.eclipse.jface.viewers.LabelProvider;
+import org.eclipse.jface.viewers.TreeViewer;
+import org.eclipse.jface.viewers.Viewer;
+import org.eclipse.jface.viewers.ViewerSorter;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Menu;
+import org.eclipse.ui.IActionBars;
+import org.eclipse.ui.ISharedImages;
+import org.eclipse.ui.IWorkbenchActionConstants;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.part.DrillDownAdapter;
+import org.eclipse.ui.part.ViewPart;
+
+
+/**
+ * This sample class demonstrates how to plug-in a new
+ * workbench view. The view shows data obtained from the
+ * model. The sample creates a dummy model on the fly,
+ * but a real implementation would connect to the model
+ * available either in this or another plug-in (e.g. the workspace).
+ * The view is connected to the model using a content provider.
+ * <p>
+ * The view uses a label provider to define how model
+ * objects should be presented in the view. Each
+ * view can present the same model objects using
+ * different labels and icons, if needed. Alternatively,
+ * a single label provider can be shared between views
+ * in order to ensure that objects of the same type are
+ * presented in the same way everywhere.
+ * <p>
+ */
+
+public class TestProjectsView extends ViewPart {
+ private TreeViewer viewer;
+ private DrillDownAdapter drillDownAdapter;
+ private Action action1;
+ private Action action2;
+ private Action doubleClickAction;
+
+ /*
+ * The content provider class is responsible for
+ * providing objects to the view. It can wrap
+ * existing objects in adapters or simply return
+ * objects as-is. These objects may be sensitive
+ * to the current input of the view, or ignore
+ * it and always show the same content
+ * (like Task List, for example).
+ */
+
+ class TreeObject implements IAdaptable {
+ private String name;
+ private TreeParent parent;
+
+ public TreeObject(String name) {
+ this.name = name;
+ }
+ public String getName() {
+ return name;
+ }
+ public void setParent(TreeParent parent) {
+ this.parent = parent;
+ }
+ public TreeParent getParent() {
+ return parent;
+ }
+ public String toString() {
+ return getName();
+ }
+ public Object getAdapter(Class key) {
+ return null;
+ }
+ }
+
+ class TreeParent extends TreeObject {
+ private ArrayList children;
+ public TreeParent(String name) {
+ super(name);
+ children = new ArrayList();
+ }
+ public void addChild(TreeObject child) {
+ children.add(child);
+ child.setParent(this);
+ }
+ public void removeChild(TreeObject child) {
+ children.remove(child);
+ child.setParent(null);
+ }
+ public TreeObject [] getChildren() {
+ return (TreeObject [])children.toArray(new TreeObject[children.size()]);
+ }
+ public boolean hasChildren() {
+ return children.size()>0;
+ }
+ }
+
+ class ViewContentProvider implements IStructuredContentProvider,
+ ITreeContentProvider {
+ private TreeParent invisibleRoot;
+
+ public void inputChanged(Viewer v, Object oldInput, Object newInput) {
+ }
+ public void dispose() {
+ }
+ public Object[] getElements(Object parent) {
+ if(parent instanceof List){
+ return ((List)parent).toArray();
+ }
+ return new Object[0];
+ }
+ public Object getParent(Object child) {
+ return null;
+ }
+ public Object [] getChildren(Object parent) {
+ if (parent instanceof Node) {
+ return ((Node)parent).getChildren().toArray();
+ }
+ return new Object[0];
+ }
+ public boolean hasChildren(Object parent) {
+ if (parent instanceof Node)
+ return ((Node)parent).hasChildren();
+ return false;
+ }
+ }
+ class ViewLabelProvider extends LabelProvider {
+
+ public String getText(Object obj) {
+ if (obj instanceof Node)
+ {
+ return ((Node)obj).getName();
+ }
+ return obj.toString();
+ }
+ public Image getImage(Object obj) {
+ String imageKey = ISharedImages.IMG_OBJ_ELEMENT;
+ if (obj instanceof ProjectNode)
+ imageKey = ISharedImages.IMG_OBJ_FOLDER;
+ return PlatformUI.getWorkbench().getSharedImages().getImage(imageKey);
+ }
+ }
+ class NameSorter extends ViewerSorter {
+ }
+
+ /**
+ * The constructor.
+ */
+ public TestProjectsView() {
+ }
+
+ /**
+ * This is a callback that will allow us
+ * to create the viewer and initialize it.
+ */
+ public void createPartControl(Composite parent) {
+ viewer = new TreeViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL);
+ drillDownAdapter = new DrillDownAdapter(viewer);
+ viewer.setContentProvider(new ViewContentProvider());
+ viewer.setLabelProvider(new ViewLabelProvider());
+
+ viewer.setSorter(new NameSorter());
+ viewer.setInput(loadResources());
+
+ // Create the help context id for the viewer's control
+ PlatformUI.getWorkbench().getHelpSystem().setHelp(viewer.getControl(), "org.smooks.tools.testui.viewer");
+ makeActions();
+ hookContextMenu();
+ hookDoubleClickAction();
+ contributeToActionBars();
+ }
+
+ private List<Node> loadResources(){
+ IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
+ IProject[] projects = root.getProjects();
+ List<Node> list = new ArrayList<Node>();
+ for (int i = 0; i < projects.length; i++) {
+ IProject project = projects[i];
+ if(isJavaProject(project)){
+ ProjectNode pn = new ProjectNode(project);
+ list.add(pn);
+ }
+ }
+ return list;
+ }
+
+ private boolean isJavaProject(IProject p){
+ return true;
+ }
+
+ private void hookContextMenu() {
+ MenuManager menuMgr = new MenuManager("#PopupMenu");
+ menuMgr.setRemoveAllWhenShown(true);
+ menuMgr.addMenuListener(new IMenuListener() {
+ public void menuAboutToShow(IMenuManager manager) {
+ TestProjectsView.this.fillContextMenu(manager);
+ }
+ });
+ Menu menu = menuMgr.createContextMenu(viewer.getControl());
+ viewer.getControl().setMenu(menu);
+ getSite().registerContextMenu(menuMgr, viewer);
+ }
+
+ private void contributeToActionBars() {
+ IActionBars bars = getViewSite().getActionBars();
+ fillLocalPullDown(bars.getMenuManager());
+ fillLocalToolBar(bars.getToolBarManager());
+ }
+
+ private void fillLocalPullDown(IMenuManager manager) {
+ manager.add(action1);
+ manager.add(new Separator());
+ manager.add(action2);
+ }
+
+ private void fillContextMenu(IMenuManager manager) {
+ manager.add(action1);
+ manager.add(action2);
+ manager.add(new Separator());
+ drillDownAdapter.addNavigationActions(manager);
+ // Other plug-ins can contribute there actions here
+ manager.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS));
+ }
+
+ private void fillLocalToolBar(IToolBarManager manager) {
+ manager.add(action1);
+ manager.add(action2);
+ manager.add(new Separator());
+ drillDownAdapter.addNavigationActions(manager);
+ }
+
+ private void makeActions() {
+ action1 = new Action() {
+ public void run() {
+ showMessage("Action 1 executed");
+ }
+ };
+ action1.setText("Action 1");
+ action1.setToolTipText("Action 1 tooltip");
+ action1.setImageDescriptor(PlatformUI.getWorkbench().getSharedImages().
+ getImageDescriptor(ISharedImages.IMG_OBJS_INFO_TSK));
+
+ action2 = new Action() {
+ public void run() {
+ showMessage("Action 2 executed");
+ }
+ };
+ action2.setText("Action 2");
+ action2.setToolTipText("Action 2 tooltip");
+ action2.setImageDescriptor(PlatformUI.getWorkbench().getSharedImages().
+ getImageDescriptor(ISharedImages.IMG_OBJS_INFO_TSK));
+ doubleClickAction = new Action() {
+ public void run() {
+ ISelection selection = viewer.getSelection();
+ Object obj = ((IStructuredSelection)selection).getFirstElement();
+ showMessage("Double-click detected on "+obj.toString());
+ }
+ };
+ }
+
+ private void hookDoubleClickAction() {
+ viewer.addDoubleClickListener(new IDoubleClickListener() {
+ public void doubleClick(DoubleClickEvent event) {
+ doubleClickAction.run();
+ }
+ });
+ }
+ private void showMessage(String message) {
+ MessageDialog.openInformation(
+ viewer.getControl().getShell(),
+ "Sample View",
+ message);
+ }
+
+ /**
+ * Passing the focus request to the viewer's control.
+ */
+ public void setFocus() {
+ viewer.getControl().setFocus();
+ }
+}
\ No newline at end of file
Property changes on: workspace/dart/plugins/org.smooks.tools.testui/src/org/smooks/tools/testui/views/TestProjectsView.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: workspace/dart/plugins/org.smooks.tools.testui/target/report/report.html
===================================================================
--- workspace/dart/plugins/org.smooks.tools.testui/target/report/report.html (rev 0)
+++ workspace/dart/plugins/org.smooks.tools.testui/target/report/report.html 2009-02-24 10:26:44 UTC (rev 13754)
@@ -0,0 +1,934 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html lang="en">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+ <title>Smooks Execution Report</title>
+
+ <style type="text/css">
+ <!--
+
+/*--------------------------------------------------
+ REQUIRED to hide the non-active tab content.
+ But do not hide them in the print stylesheet!
+ --------------------------------------------------*/
+.tabberlive .tabbertabhide {
+ display: none;
+}
+
+/*--------------------------------------------------
+ .tabber = before the tabber interface is set up
+ .tabberlive = after the tabber interface is set up
+ --------------------------------------------------*/
+.tabber {
+}
+
+.tabberlive {
+ margin-top: 1em;
+}
+
+/*--------------------------------------------------
+ ul.tabbernav = the tab navigation list
+ li.tabberactive = the active tab
+ --------------------------------------------------*/
+ul.tabbernav {
+ margin: 0;
+ padding: 3px 0;
+ border-bottom: 1px solid #778;
+ font: bold 12px Verdana, sans-serif;
+}
+
+ul.tabbernav li {
+ list-style: none;
+ margin: 0;
+ display: inline;
+}
+
+ul.tabbernav li a {
+ padding: 3px 0.5em;
+ margin-left: 3px;
+ border: 1px solid #778;
+ border-bottom: none;
+ background: #DDE;
+ text-decoration: none;
+}
+
+ul.tabbernav li a:link {
+ color: #448;
+}
+
+ul.tabbernav li a:visited {
+ color: #667;
+}
+
+ul.tabbernav li a:hover {
+ color: #000;
+ background: #AAE;
+ border-color: #227;
+}
+
+ul.tabbernav li.tabberactive a {
+ background-color: #fff;
+ border-bottom: 1px solid #fff;
+}
+
+ul.tabbernav li.tabberactive a:hover {
+ color: #000;
+ background: white;
+ border-bottom: 1px solid white;
+}
+
+/*--------------------------------------------------
+ .tabbertab = the tab content
+ Add style only after the tabber interface is set up (.tabberlive)
+ --------------------------------------------------*/
+.tabberlive .tabbertab {
+ padding: 5px;
+ border: 1px solid #aaa;
+ border-top: 0;
+
+ /* If you don't want the tab size changing whenever a tab is changed
+you can set a fixed height */
+
+/* height:200px; */
+
+ /* If you set a fix height set overflow to auto and you will get a
+ scrollbar when necessary */
+
+/* overflow:auto; */
+}
+
+/* If desired, hide the heading since a heading is provided by the tab */
+.tabberlive .tabbertab h2 {
+ display: none;
+}
+
+.tabberlive .tabbertab h3 {
+ display: none;
+}
+
+/* Example of using an ID to set different styles for the tabs on the page */
+.tabberlive#tab1 {
+}
+
+.tabberlive#tab2 {
+}
+
+.tabberlive#outertab .tabbertab {
+ overflow: auto;
+}
+
+.tabberlive#outertab .tabbertab {
+ height: 650px;
+}
+
+.tabbertab {
+ position: relative;
+ background-color: rgb( 238, 233, 233 );
+}
+
+#left {
+ float: left;
+ height: 93%;
+ width: 25%;
+ margin: 1%;
+ border-style: groove;
+ background-color: white;
+ overflow: scroll;
+}
+
+#right {
+ position: relative;
+ float: right;
+ height: 93%;
+ margin: 1%;
+ width: 65%;
+}
+
+#righttop {
+ float: top;
+ height: 28%;
+ width: 97%;
+ border-style: groove;
+ background-color: white;
+ overflow: scroll;
+}
+
+#rightmiddle {
+ float: top;
+ height: 6%;
+ width: 97%;
+}
+
+#rightbottom {
+ float: bottom;
+ height: 65%;
+ width: 97%;
+ border-style: groove;
+ background-color: white;
+ overflow: scroll;
+}
+
+#result-summary {
+ float: top;
+ height: 10%;
+ border-style: groove;
+ background-color: white;
+ overflow: scroll;
+ margin: 1%;
+}
+
+
+#result-detail {
+ float: bottom;
+ height: 80%;
+ border-style: groove;
+ background-color: white;
+ overflow: scroll;
+ margin: 1%;
+}
+ -->
+ </style>
+ <script type="text/javascript">
+ <!--
+/*==================================================
+ $Id: tabber.js,v 1.9 2006/04/27 20:51:51 pat Exp $
+ tabber.js by Patrick Fitzgerald pat(a)barelyfitz.com
+
+ Documentation can be found at the following URL:
+ http://www.barelyfitz.com/projects/tabber/
+
+ License (http://www.opensource.org/licenses/mit-license.php)
+
+ Copyright (c) 2006 Patrick Fitzgerald
+
+ Permission is hereby granted, free of charge, to any person
+ obtaining a copy of this software and associated documentation files
+ (the "Software"), to deal in the Software without restriction,
+ including without limitation the rights to use, copy, modify, merge,
+ publish, distribute, sublicense, and/or sell copies of the Software,
+ and to permit persons to whom the Software is furnished to do so,
+ subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be
+ included in all copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ SOFTWARE.
+ ==================================================*/
+
+function tabberObj(argsObj)
+{
+ var arg; /* name of an argument to override */
+
+ /* Element for the main tabber div. If you supply this in argsObj,
+ then the init() method will be called.
+ */
+ this.div = null;
+
+ /* Class of the main tabber div */
+ this.classMain = "tabber";
+
+ /* Rename classMain to classMainLive after tabifying
+ (so a different style can be applied)
+ */
+ this.classMainLive = "tabberlive";
+
+ /* Class of each DIV that contains a tab */
+ this.classTab = "tabbertab";
+
+ /* Class to indicate which tab should be active on startup */
+ this.classTabDefault = "tabbertabdefault";
+
+ /* Class for the navigation UL */
+ this.classNav = "tabbernav";
+
+ /* When a tab is to be hidden, instead of setting display='none', we
+ set the class of the div to classTabHide. In your screen
+ stylesheet you should set classTabHide to display:none. In your
+ print stylesheet you should set display:block to ensure that all
+ the information is printed.
+ */
+ this.classTabHide = "tabbertabhide";
+
+ /* Class to set the navigation LI when the tab is active, so you can
+ use a different style on the active tab.
+ */
+ this.classNavActive = "tabberactive";
+
+ /* Elements that might contain the title for the tab, only used if a
+ title is not specified in the TITLE attribute of DIV classTab.
+ */
+ this.titleElements = ['h2','h3','h4','h5','h6'];
+
+ /* Should we strip out the HTML from the innerHTML of the title elements?
+ This should usually be true.
+ */
+ this.titleElementsStripHTML = true;
+
+ /* If the user specified the tab names using a TITLE attribute on
+ the DIV, then the browser will display a tooltip whenever the
+ mouse is over the DIV. To prevent this tooltip, we can remove the
+ TITLE attribute after getting the tab name.
+ */
+ this.removeTitle = true;
+
+ /* If you want to add an id to each link set this to true */
+ this.addLinkId = false;
+
+ /* If addIds==true, then you can set a format for the ids.
+ <tabberid> will be replaced with the id of the main tabber div.
+ <tabnumberzero> will be replaced with the tab number
+ (tab numbers starting at zero)
+ <tabnumberone> will be replaced with the tab number
+ (tab numbers starting at one)
+ <tabtitle> will be replaced by the tab title
+ (with all non-alphanumeric characters removed)
+ */
+ this.linkIdFormat = '<tabberid>nav<tabnumberone>';
+
+ /* You can override the defaults listed above by passing in an object:
+ var mytab = new tabber({property:value,property:value});
+ */
+ for (arg in argsObj) { this[arg] = argsObj[arg]; }
+
+ /* Create regular expressions for the class names; Note: if you
+ change the class names after a new object is created you must
+ also change these regular expressions.
+ */
+ this.REclassMain = new RegExp('\\b' + this.classMain + '\\b', 'gi');
+ this.REclassMainLive = new RegExp('\\b' + this.classMainLive + '\\b', 'gi');
+ this.REclassTab = new RegExp('\\b' + this.classTab + '\\b', 'gi');
+ this.REclassTabDefault = new RegExp('\\b' + this.classTabDefault + '\\b', 'gi');
+ this.REclassTabHide = new RegExp('\\b' + this.classTabHide + '\\b', 'gi');
+
+ /* Array of objects holding info about each tab */
+ this.tabs = new Array();
+
+ /* If the main tabber div was specified, call init() now */
+ if (this.div) {
+
+ this.init(this.div);
+
+ /* We don't need the main div anymore, and to prevent a memory leak
+ in IE, we must remove the circular reference between the div
+ and the tabber object. */
+ this.div = null;
+ }
+}
+
+
+/*--------------------------------------------------
+ Methods for tabberObj
+ --------------------------------------------------*/
+
+
+tabberObj.prototype.init = function(e)
+{
+ /* Set up the tabber interface.
+
+ e = element (the main containing div)
+
+ Example:
+ init(document.getElementById('mytabberdiv'))
+ */
+
+ var
+ childNodes, /* child nodes of the tabber div */
+ i, i2, /* loop indices */
+ t, /* object to store info about a single tab */
+ defaultTab=0, /* which tab to select by default */
+ DOM_ul, /* tabbernav list */
+ DOM_li, /* tabbernav list item */
+ DOM_a, /* tabbernav link */
+ aId, /* A unique id for DOM_a */
+ headingElement; /* searching for text to use in the tab */
+
+ /* Verify that the browser supports DOM scripting */
+ if (!document.getElementsByTagName) { return false; }
+
+ /* If the main DIV has an ID then save it. */
+ if (e.id) {
+ this.id = e.id;
+ }
+
+ /* Clear the tabs array (but it should normally be empty) */
+ this.tabs.length = 0;
+
+ /* Loop through an array of all the child nodes within our tabber element. */
+ childNodes = e.childNodes;
+ for(i=0; i < childNodes.length; i++) {
+
+ /* Find the nodes where class="tabbertab" */
+ if(childNodes[i].className &&
+ childNodes[i].className.match(this.REclassTab)) {
+
+ /* Create a new object to save info about this tab */
+ t = new Object();
+
+ /* Save a pointer to the div for this tab */
+ t.div = childNodes[i];
+
+ /* Add the new object to the array of tabs */
+ this.tabs[this.tabs.length] = t;
+
+ /* If the class name contains classTabDefault,
+ then select this tab by default.
+ */
+ if (childNodes[i].className.match(this.REclassTabDefault)) {
+ defaultTab = this.tabs.length-1;
+ }
+ }
+ }
+
+ /* Create a new UL list to hold the tab headings */
+ DOM_ul = document.createElement("ul");
+ DOM_ul.className = this.classNav;
+
+ /* Loop through each tab we found */
+ for (i=0; i < this.tabs.length; i++) {
+
+ t = this.tabs[i];
+
+ /* Get the label to use for this tab:
+ From the title attribute on the DIV,
+ Or from one of the this.titleElements[] elements,
+ Or use an automatically generated number.
+ */
+ t.headingText = t.div.title;
+
+ /* Remove the title attribute to prevent a tooltip from appearing */
+ if (this.removeTitle) { t.div.title = ''; }
+
+ if (!t.headingText) {
+
+ /* Title was not defined in the title of the DIV,
+ So try to get the title from an element within the DIV.
+ Go through the list of elements in this.titleElements
+ (typically heading elements ['h2','h3','h4'])
+ */
+ for (i2=0; i2<this.titleElements.length; i2++) {
+ headingElement = t.div.getElementsByTagName(this.titleElements[i2])[0];
+ if (headingElement) {
+ t.headingText = headingElement.innerHTML;
+ if (this.titleElementsStripHTML) {
+ t.headingText.replace(/<br>/gi," ");
+ t.headingText = t.headingText.replace(/<[^>]+>/g,"");
+ }
+ break;
+ }
+ }
+ }
+
+ if (!t.headingText) {
+ /* Title was not found (or is blank) so automatically generate a
+ number for the tab.
+ */
+ t.headingText = i + 1;
+ }
+
+ /* Create a list element for the tab */
+ DOM_li = document.createElement("li");
+
+ /* Save a reference to this list item so we can later change it to
+ the "active" class */
+ t.li = DOM_li;
+
+ /* Create a link to activate the tab */
+ DOM_a = document.createElement("a");
+ DOM_a.appendChild(document.createTextNode(t.headingText));
+ DOM_a.href = "javascript:void(null);";
+ DOM_a.title = t.headingText;
+ DOM_a.onclick = this.navClick;
+
+ /* Add some properties to the link so we can identify which tab
+ was clicked. Later the navClick method will need this.
+ */
+ DOM_a.tabber = this;
+ DOM_a.tabberIndex = i;
+
+ /* Do we need to add an id to DOM_a? */
+ if (this.addLinkId && this.linkIdFormat) {
+
+ /* Determine the id name */
+ aId = this.linkIdFormat;
+ aId = aId.replace(/<tabberid>/gi, this.id);
+ aId = aId.replace(/<tabnumberzero>/gi, i);
+ aId = aId.replace(/<tabnumberone>/gi, i+1);
+ aId = aId.replace(/<tabtitle>/gi, t.headingText.replace(/[^a-zA-Z0-9\-]/gi, ''));
+
+ DOM_a.id = aId;
+ }
+
+ /* Add the link to the list element */
+ DOM_li.appendChild(DOM_a);
+
+ /* Add the list element to the list */
+ DOM_ul.appendChild(DOM_li);
+ }
+
+ /* Add the UL list to the beginning of the tabber div */
+ e.insertBefore(DOM_ul, e.firstChild);
+
+ /* Make the tabber div "live" so different CSS can be applied */
+ e.className = e.className.replace(this.REclassMain, this.classMainLive);
+
+ /* Activate the default tab, and do not call the onclick handler */
+ this.tabShow(defaultTab);
+
+ /* If the user specified an onLoad function, call it now. */
+ if (typeof this.onLoad == 'function') {
+ this.onLoad({tabber:this});
+ }
+
+ return this;
+};
+
+
+tabberObj.prototype.navClick = function(event)
+{
+ /* This method should only be called by the onClick event of an <A>
+ element, in which case we will determine which tab was clicked by
+ examining a property that we previously attached to the <A>
+ element.
+
+ Since this was triggered from an onClick event, the variable
+ "this" refers to the <A> element that triggered the onClick
+ event (and not to the tabberObj).
+
+ When tabberObj was initialized, we added some extra properties
+ to the <A> element, for the purpose of retrieving them now. Get
+ the tabberObj object, plus the tab number that was clicked.
+ */
+
+ var
+ rVal, /* Return value from the user onclick function */
+ a, /* element that triggered the onclick event */
+ self, /* the tabber object */
+ tabberIndex, /* index of the tab that triggered the event */
+ onClickArgs; /* args to send the onclick function */
+
+ a = this;
+ if (!a.tabber) { return false; }
+
+ self = a.tabber;
+ tabberIndex = a.tabberIndex;
+
+ /* Remove focus from the link because it looks ugly.
+ I don't know if this is a good idea...
+ */
+ a.blur();
+
+ /* If the user specified an onClick function, call it now.
+ If the function returns false then do not continue.
+ */
+ if (typeof self.onClick == 'function') {
+
+ onClickArgs = {'tabber':self, 'index':tabberIndex, 'event':event};
+
+ /* IE uses a different way to access the event object */
+ if (!event) { onClickArgs.event = window.event; }
+
+ rVal = self.onClick(onClickArgs);
+ if (rVal === false) { return false; }
+ }
+
+ self.tabShow(tabberIndex);
+
+ return false;
+};
+
+
+tabberObj.prototype.tabHideAll = function()
+{
+ var i; /* counter */
+
+ /* Hide all tabs and make all navigation links inactive */
+ for (i = 0; i < this.tabs.length; i++) {
+ this.tabHide(i);
+ }
+};
+
+
+tabberObj.prototype.tabHide = function(tabberIndex)
+{
+ var div;
+
+ if (!this.tabs[tabberIndex]) { return false; }
+
+ /* Hide a single tab and make its navigation link inactive */
+ div = this.tabs[tabberIndex].div;
+
+ /* Hide the tab contents by adding classTabHide to the div */
+ if (!div.className.match(this.REclassTabHide)) {
+ div.className += ' ' + this.classTabHide;
+ }
+ this.navClearActive(tabberIndex);
+
+ return this;
+};
+
+
+tabberObj.prototype.tabShow = function(tabberIndex)
+{
+ /* Show the tabberIndex tab and hide all the other tabs */
+
+ var div;
+
+ if (!this.tabs[tabberIndex]) { return false; }
+
+ /* Hide all the tabs first */
+ this.tabHideAll();
+
+ /* Get the div that holds this tab */
+ div = this.tabs[tabberIndex].div;
+
+ /* Remove classTabHide from the div */
+ div.className = div.className.replace(this.REclassTabHide, '');
+
+ /* Mark this tab navigation link as "active" */
+ this.navSetActive(tabberIndex);
+
+ /* If the user specified an onTabDisplay function, call it now. */
+ if (typeof this.onTabDisplay == 'function') {
+ this.onTabDisplay({'tabber':this, 'index':tabberIndex});
+ }
+
+ return this;
+};
+
+tabberObj.prototype.navSetActive = function(tabberIndex)
+{
+ /* Note: this method does *not* enforce the rule
+ that only one nav item can be active at a time.
+ */
+
+ /* Set classNavActive for the navigation list item */
+ this.tabs[tabberIndex].li.className = this.classNavActive;
+
+ return this;
+};
+
+
+tabberObj.prototype.navClearActive = function(tabberIndex)
+{
+ /* Note: this method does *not* enforce the rule
+ that one nav should always be active.
+ */
+
+ /* Remove classNavActive from the navigation list item */
+ this.tabs[tabberIndex].li.className = '';
+
+ return this;
+};
+
+
+/*==================================================*/
+
+
+function tabberAutomatic(tabberArgs)
+{
+ /* This function finds all DIV elements in the document where
+ class=tabber.classMain, then converts them to use the tabber
+ interface.
+
+ tabberArgs = an object to send to "new tabber()"
+ */
+ var
+ tempObj, /* Temporary tabber object */
+ divs, /* Array of all divs on the page */
+ i; /* Loop index */
+
+ if (!tabberArgs) { tabberArgs = {}; }
+
+ /* Create a tabber object so we can get the value of classMain */
+ tempObj = new tabberObj(tabberArgs);
+
+ /* Find all DIV elements in the document that have class=tabber */
+
+ /* First get an array of all DIV elements and loop through them */
+ divs = document.getElementsByTagName("div");
+ for (i=0; i < divs.length; i++) {
+
+ /* Is this DIV the correct class? */
+ if (divs[i].className &&
+ divs[i].className.match(tempObj.REclassMain)) {
+
+ /* Now tabify the DIV */
+ tabberArgs.div = divs[i];
+ divs[i].tabber = new tabberObj(tabberArgs);
+ }
+ }
+
+ return this;
+}
+
+
+/*==================================================*/
+
+
+function tabberAutomaticOnLoad(tabberArgs)
+{
+ /* This function adds tabberAutomatic to the window.onload event,
+ so it will run after the document has finished loading.
+ */
+ var oldOnLoad;
+
+ if (!tabberArgs) { tabberArgs = {}; }
+
+ /* Taken from: http://simon.incutio.com/archive/2004/05/26/addLoadEvent */
+
+ oldOnLoad = window.onload;
+ if (typeof window.onload != 'function') {
+ window.onload = function() {
+ tabberAutomatic(tabberArgs);
+ };
+ } else {
+ window.onload = function() {
+ oldOnLoad();
+ tabberAutomatic(tabberArgs);
+ };
+ }
+}
+
+
+/*==================================================*/
+
+
+/* Run tabberAutomaticOnload() unless the "manualStartup" option was specified */
+
+if (typeof tabberOptions == 'undefined') {
+
+ tabberAutomaticOnLoad();
+
+} else {
+
+ if (!tabberOptions['manualStartup']) {
+ tabberAutomaticOnLoad(tabberOptions);
+ }
+
+}
+ -->
+ </script>
+ <script type="text/javascript">
+ <!--
+/*
+ Milyn - Copyright (C) 2006
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License (version 2.1) as published by the Free Software
+ Foundation.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU Lesser General Public License for more details:
+ http://www.gnu.org/licenses/lgpl.txt
+*/
+
+function selectElement(elementId) {
+ removeHighlight("left")
+ removeHighlight("righttop")
+ hideContent("righttop")
+ hideContent("rightbottom")
+
+ highlight("messageNode-" + elementId);
+ showContent("block-" + elementId);
+}
+
+function selectVisitor(elementId) {
+ removeHighlight("righttop")
+ hideContent("rightbottom")
+
+ highlight("block-details-link-" + elementId);
+ showContent("block-details-" + elementId);
+}
+
+function showContent(contentId) {
+ var contentElement = document.getElementById(contentId)
+ if(contentElement != null) {
+ contentElement.style.visibility = "visible";
+ contentElement.style.display = "block";
+ contentElement.setAttribute("visiblity", "set");
+ }
+}
+
+function highlight(contentId) {
+ var contentElement = document.getElementById(contentId)
+ if(contentElement != null) {
+ contentElement.style.backgroundColor = "yellow";
+ contentElement.setAttribute("highlight", "set");
+ }
+}
+
+function hideContent(contentContainerId) {
+ var contentContainer = document.getElementById(contentContainerId)
+
+ // Hide the currently selected content in that container...
+ if(contentContainer != null) {
+ var contentElements = contentContainer.getElementsByTagName("div");
+
+ for(var i = 0; i < contentElements.length; i++) {
+ if(contentElements.item(i).getAttribute("visiblity") == "set") {
+ contentElements.item(i).style.display = "none";
+ contentElements.item(i).style.visibility = "hidden";
+ contentElements.item(i).removeAttribute("visiblity");
+ }
+ }
+ } else {
+ alert("Page error. Unknown content container ID '" + contentContainerId + "'.");
+ }
+}
+
+function removeHighlight(contentContainerId) {
+ var contentContainer = document.getElementById(contentContainerId)
+
+ // Hide the currently selected content in that container...
+ if(contentContainer != null) {
+ var contentElements = contentContainer.getElementsByTagName("div");
+
+ for(var i = 0; i < contentElements.length; i++) {
+ if(contentElements.item(i).getAttribute("highlight") == "set") {
+ contentElements.item(i).style.backgroundColor = "white";
+ contentElements.item(i).removeAttribute("highlight");
+ }
+ }
+ } else {
+ alert("Page error. Unknown content container ID '" + contentContainerId + "'.");
+ }
+}
+
+ -->
+ </script>
+
+ </head>
+<body>
+ <h1>Smooks Execution Report</h1>
+ <div class="tabber" id="outertab">
+
+ <div class="tabbertab" title="Configuration">
+ TODO!!
+ </div>
+
+ <div id="executetab" class="tabbertab tabbertabdefault" title="Execution">
+ <div id="left">
+ STARTED<br/>
+ <div id="messageNode-0" style="margin-left: 0px;">
+ <projectDescription>
+ <a href='#' onclick="return selectElement('0');">*</a>
+ </div>
+ <div id="messageNode-1" style="margin-left: 20px;">
+ <name>
+ </div>
+ <div id="messageNode-2" style="margin-left: 20px;">
+ </name>
+ </div>
+ <div id="messageNode-3" style="margin-left: 20px;">
+ <comment>
+ </div>
+ <div id="messageNode-4" style="margin-left: 20px;">
+ </comment>
+ </div>
+ <div id="messageNode-5" style="margin-left: 20px;">
+ <projects>
+ </div>
+ <div id="messageNode-6" style="margin-left: 20px;">
+ </projects>
+ </div>
+ <div id="messageNode-7" style="margin-left: 20px;">
+ <buildSpec>
+ </div>
+ <div id="messageNode-8" style="margin-left: 40px;">
+ <buildCommand>
+ </div>
+ <div id="messageNode-9" style="margin-left: 60px;">
+ <name>
+ </div>
+ <div id="messageNode-10" style="margin-left: 60px;">
+ </name>
+ </div>
+ <div id="messageNode-11" style="margin-left: 60px;">
+ <arguments>
+ </div>
+ <div id="messageNode-12" style="margin-left: 60px;">
+ </arguments>
+ </div>
+ <div id="messageNode-13" style="margin-left: 40px;">
+ </buildCommand>
+ </div>
+ <div id="messageNode-14" style="margin-left: 20px;">
+ </buildSpec>
+ </div>
+ <div id="messageNode-15" style="margin-left: 20px;">
+ <natures>
+ </div>
+ <div id="messageNode-16" style="margin-left: 40px;">
+ <nature>
+ </div>
+ <div id="messageNode-17" style="margin-left: 40px;">
+ </nature>
+ </div>
+ <div id="messageNode-18" style="margin-left: 20px;">
+ </natures>
+ </div>
+ <div id="messageNode-19" style="margin-left: 0px;">
+ </projectDescription>
+ </div>
+ FINISHED
+ </div>
+ <div id="right">
+ <div id="righttop">
+ <div id="block-0" style="display:none;">
+ <div id="block-details-link-0">
+ <a href='#' onclick="return selectVisitor('0');">BeanInstanceCreator: Created <b>LineOrder</b> bean instance. Associated lifecycle if wired to another bean.</a>
+ </div>
+ </div>
+ </div>
+ <div id="rightmiddle">
+ </div>
+ <div id="rightbottom">
+ <div id="block-details-0" style="display:none;">
+ <b><u>Details:</u></b><br/>
+ Created bean <b>LineOrder</b>. Bean type: <b>example.trgmodel.LineOrder</b>.
+ <p/>
+ <b><u>Resource Configuration:</u></b>
+ <pre><resource-config selector="projectdescription"">
+ <resource type="">org.milyn.javabean.BeanInstanceCreator</resource>
+ <param name="beanId">LineOrder</param>
+ <param name="beanClass">example.trgmodel.LineOrder</param>
+</resource-config></pre>
+ <p/>
+ <b><u>Execution Context State:</u></b> (After Visitor Execution)
+ <pre>{org.milyn.payload.FilterResult#CONTEXT_KEY=LineOrder:
+<example.trgmodel.LineOrder/>
+
+, org.milyn.javabean.BeanAccessor#CONTEXT_KEY={LineOrder=Class: example.trgmodel.LineOrder
+ customerId: null
+ customerName: null
+}, org.milyn.payload.FilterSource#CONTEXT_KEY=javax.xml.transform.stream.StreamSource@2153fe}</pre></div>
+ </div>
+ </div>
+ </div>
+
+ <div class="tabbertab" title="Result">
+ <div id="result-summary">
+ This Smooks Filtering operation produced a JavaResult. The following is an XML serialization of the JavaResult bean Map entries.
+ </div>
+ <div id="result-detail">
+ <pre>LineOrder:
+<example.trgmodel.LineOrder/>
+
+</pre>
+ </div>
+ </div>
+ </div>
+
+ </body>
+</html>
Property changes on: workspace/dart/plugins/org.smooks.tools.testui/target/report/report.html
___________________________________________________________________
Name: svn:mime-type
+ text/plain
15 years, 3 months