Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/commands/WSDLElementCommand.java')
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/commands/WSDLElementCommand.java19
1 files changed, 0 insertions, 19 deletions
diff --git a/bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/commands/WSDLElementCommand.java b/bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/commands/WSDLElementCommand.java
deleted file mode 100644
index a01805165..000000000
--- a/bundles/org.eclipse.wst.wsdl.ui/src-asd-wsdl11/org/eclipse/wst/wsdl/ui/internal/commands/WSDLElementCommand.java
+++ /dev/null
@@ -1,19 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2006 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.wsdl.ui.internal.commands;
-
-import org.eclipse.wst.wsdl.WSDLElement;
-
-public abstract class WSDLElementCommand
-{
- public abstract WSDLElement getWSDLElement();
- public abstract void run();
-}

Back to the top

> -rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/ResourceSelectionBlock.java599
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLDebugUIConstants.java48
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLDebugUILaunchListener.java140
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLDebugUIPlugin.java182
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLLaunchConfigurationTab.java127
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLLaunchShortcut.java332
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLTTabGroup.java58
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/AbstractParameterAction.java112
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/AbstractStylesheetAction.java182
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/AddExternalFileAction.java84
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/AddParameterAction.java63
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/AddWorkspaceFileAction.java115
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/ControlAccessibleListener.java52
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/MoveDownAction.java72
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/MoveUpAction.java74
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/MultipleInputDialog.java418
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/OpenDialogAction.java66
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/RemoveAction.java57
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/RemoveParameterAction.java50
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/breakpoint/XSLBreakpointProvider.java154
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/messages.properties129
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/model/XSLBreakpointAdapterFactory.java41
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/model/XSLLineBreakpointAdapter.java102
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/model/XSLModelPresentation.java134
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/IParametersChangedListener.java15
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/IStylesheetEntriesChangedListener.java15
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/InputFileBlock.java128
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/ParameterViewer.java94
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/ParametersBlock.java235
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/ParametersContentProvider.java72
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/ParametersLabelProvider.java46
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/StylesheetContentProvider.java64
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/StylesheetLabelProvider.java75
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/StylesheetViewer.java105
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/TransformsBlock.java204
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/XSLMainTab.java206
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/output/OutputFileBlock.java304
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/output/OutputTab.java83
-rw-r--r--bundles/org.eclipse.wst.xsl.exslt.core/.classpath7
-rw-r--r--bundles/org.eclipse.wst.xsl.exslt.core/.project34
-rw-r--r--bundles/org.eclipse.wst.xsl.exslt.core/.settings/org.eclipse.jdt.core.prefs8
-rw-r--r--bundles/org.eclipse.wst.xsl.exslt.core/META-INF/MANIFEST.MF14
-rw-r--r--bundles/org.eclipse.wst.xsl.exslt.core/about.html34
-rw-r--r--bundles/org.eclipse.wst.xsl.exslt.core/build.properties7
-rw-r--r--bundles/org.eclipse.wst.xsl.exslt.core/plugin.properties13
-rw-r--r--bundles/org.eclipse.wst.xsl.exslt.core/plugin.xml12
-rw-r--r--bundles/org.eclipse.wst.xsl.exslt.core/schemas/common.xsd48
-rw-r--r--bundles/org.eclipse.wst.xsl.exslt.core/src/org/eclipse/wst/xsl/exslt/core/internal/EXSLTCore.java72
-rw-r--r--bundles/org.eclipse.wst.xsl.exslt.core/src/org/eclipse/wst/xsl/exslt/core/internal/resolver/EXSLTResolverExtension.java40
-rw-r--r--bundles/org.eclipse.wst.xsl.exslt.ui/.classpath7
-rw-r--r--bundles/org.eclipse.wst.xsl.exslt.ui/.project34
-rw-r--r--bundles/org.eclipse.wst.xsl.exslt.ui/.settings/org.eclipse.jdt.core.prefs8
-rw-r--r--bundles/org.eclipse.wst.xsl.exslt.ui/META-INF/MANIFEST.MF20
-rw-r--r--bundles/org.eclipse.wst.xsl.exslt.ui/about.html34
-rw-r--r--bundles/org.eclipse.wst.xsl.exslt.ui/build.properties13
-rw-r--r--bundles/org.eclipse.wst.xsl.exslt.ui/plugin.properties13
-rw-r--r--bundles/org.eclipse.wst.xsl.exslt.ui/plugin.xml11
-rw-r--r--bundles/org.eclipse.wst.xsl.exslt.ui/src/org/eclipse/wst/xsl/exslt/ui/internal/EXSLTUIPlugin.java60
-rw-r--r--bundles/org.eclipse.wst.xsl.exslt.ui/src/org/eclipse/wst/xsl/exslt/ui/internal/contentassist/CommonSelectContentAssistRequest.java112
-rw-r--r--bundles/org.eclipse.wst.xsl.exslt.ui/src/org/eclipse/wst/xsl/exslt/ui/internal/contentassist/CommonTestContentAssistRequest.java43
-rw-r--r--bundles/org.eclipse.wst.xsl.exslt.ui/src/org/eclipse/wst/xsl/exslt/ui/internal/contentassist/EXSLTCommonContentAssistProcessor.java87
-rw-r--r--bundles/org.eclipse.wst.xsl.exslt.ui/src/org/eclipse/wst/xsl/exslt/ui/internal/contentassist/EXSLTContentAssistRequestFactory.java117
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/.classpath12
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/.project34
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/.settings/org.eclipse.jdt.core.prefs82
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/META-INF/MANIFEST.MF29
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/about.html34
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/build.properties8
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/icons/xslt_processor.gifbin161 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/plugin.properties5
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/plugin.xml70
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/JAXPDebugUIPlugin.java52
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/AddProcessorDialog.java384
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/BasePreferencePage.java30
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/InstalledProcessorsBlock.java646
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/Messages.java51
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/ProcessorLibraryBlock.java344
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/ProcessorsPreferencePage.java162
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/messages.properties31
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/AttributeDialog.java161
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/AttributesBlock.java367
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/InstallStandin.java29
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/JarContentProvider.java34
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/JarLabelProvider.java26
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/Messages.java22
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/OutputPropertiesBlock.java378
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/OutputPropertyDialog.java160
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/ProcessorBlock.java373
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/ProcessorDescriptor.java16
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/ProcessorDetailsDialog.java113
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/ProcessorMessages.java37
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/ProcessorMessages.properties14
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/XSLProcessorTab2.java98
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/messages.properties26
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/views/Messages.java15
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/views/ResultRunnable.java83
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/views/ResultView.java110
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/views/ResultViewJob.java66
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/views/messages.properties1
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug/.classpath7
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug/.project34
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug/.settings/org.eclipse.jdt.core.prefs87
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug/META-INF/MANIFEST.MF13
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug/about.html34
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug/build.properties6
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug/plugin.properties3
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug/src/log4j.properties10
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/debugger/AbstractDebugger.java364
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/debugger/BreakPoint.java77
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/debugger/DebugConstants.java70
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/debugger/DebugRunner.java396
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/debugger/IXSLDebugger.java148
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/debugger/StyleFrame.java129
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/debugger/Variable.java160
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/IProcessorInvoker.java62
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/Messages.java48
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/PipelineDefinition.java335
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/TransformDefinition.java251
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/TransformationException.java42
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/TypedValue.java112
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/internal/ConfigurationException.java32
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/internal/CreationException.java42
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/internal/JAXPSAXProcessorInvoker.java228
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/internal/Main.java86
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/internal/Messages.java48
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/internal/messages.properties12
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/messages.properties25
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/.classpath7
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/.project34
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/.settings/org.eclipse.jdt.core.prefs87
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/JREDefaultAttributes.properties10
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/JREDefaultOutputProperties.properties40
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/META-INF/MANIFEST.MF23
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/about.html34
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/build.properties10
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/log4j.debug.properties10
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/plugin.properties9
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/plugin.xml51
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/schema/debugger.exsd145
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/schema/invoke.exsd93
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/schema/processor.exsd147
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/schema/processorType.exsd167
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/IAttribute.java89
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/IDebugger.java56
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/IOutputProperty.java31
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/IProcessorInstall.java69
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/IProcessorInvoker.java20
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/IProcessorJar.java36
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/IProcessorType.java40
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/ITransformerFactory.java7
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/JAXPLaunchConfigurationConstants.java28
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/JAXPRuntime.java331
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/LaunchAttributes.java104
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/LaunchProperties.java90
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/ProcessorInstall.java148
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/Attribute.java85
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/DebuggerDescriptor.java67
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/FeaturePreferences.java122
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/JAXPJavaLaunchConfigurationDelegate.java471
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/JAXPLaunchingPlugin.java64
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/LaunchHelper.java239
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/Messages.java73
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/OutputProperty.java36
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/OutputPropertyPreferences.java119
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/PluginProcessorJar.java78
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/PreferenceInitializer.java67
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/ProcessorInvokerDescriptor.java85
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/ProcessorJar.java56
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/ProcessorPreferences.java169
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/ProcessorType.java192
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/TransformerFactory.java27
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/Utils.java57
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/messages.properties53
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/registry/AbstractRegistryReader.java126
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/registry/DebuggerRegistry.java43
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/registry/DebuggerRegistryReader.java97
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/registry/InvokerRegistry.java42
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/registry/InvokerRegistryReader.java79
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/registry/ProcessorRegistry.java181
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/registry/ProcessorRegistryReader.java90
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/registry/ProcessorTypeRegistry.java146
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/registry/ProcessorTypeRegistryReader.java82
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/model/JAXPDebugTarget.java583
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/.classpath7
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/.cvsignore4
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/.project34
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/.settings/org.eclipse.core.resources.prefs3
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/.settings/org.eclipse.jdt.core.prefs87
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/.settings/org.eclipse.pde.prefs24
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/META-INF/MANIFEST.MF24
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/about.html34
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/build.properties8
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/plugin.properties9
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/plugin.xml50
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/LaunchingPlugin.java71
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/Messages.java21
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/Utils.java57
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/XSLPropertyTester.java21
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/XSLTSourceLookupDirector.java22
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/XSLTSourceLookupParticipant.java30
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/XSLTSourcePathComputerDelegate.java105
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/messages.properties4
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/XSLLaunchConfigurationConstants.java41
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/XSLTRuntime.java46
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/config/BaseLaunchHelper.java204
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/config/LaunchAttribute.java55
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/config/LaunchPipeline.java133
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/config/LaunchTransform.java205
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/config/PreferenceUtil.java159
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/IXSLConstants.java19
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/IXSLDebugTarget.java21
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/NodeListVariable.java92
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/XSLDebugElement.java53
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/XSLLineBreakpoint.java79
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/XSLStackFrame.java249
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/XSLThread.java182
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/XSLValue.java157
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/XSLVariable.java99
-rw-r--r--bundles/org.eclipse.wst.xsl.saxon/.classpath7
-rw-r--r--bundles/org.eclipse.wst.xsl.saxon/.project34
-rw-r--r--bundles/org.eclipse.wst.xsl.saxon/.settings/org.eclipse.jdt.core.prefs15
-rw-r--r--bundles/org.eclipse.wst.xsl.saxon/META-INF/MANIFEST.MF8
-rw-r--r--bundles/org.eclipse.wst.xsl.saxon/SaxonAttributes.properties89
-rw-r--r--bundles/org.eclipse.wst.xsl.saxon/SaxonOutputProperties.properties27
-rw-r--r--bundles/org.eclipse.wst.xsl.saxon/about.html34
-rw-r--r--bundles/org.eclipse.wst.xsl.saxon/build.properties9
-rw-r--r--bundles/org.eclipse.wst.xsl.saxon/plugin.properties7
-rw-r--r--bundles/org.eclipse.wst.xsl.saxon/plugin.xml28
-rw-r--r--bundles/org.eclipse.wst.xsl.saxon/src-debugger/README.txt1
-rw-r--r--bundles/org.eclipse.wst.xsl.xalan/.classpath7
-rw-r--r--bundles/org.eclipse.wst.xsl.xalan/.cvsignore4
-rw-r--r--bundles/org.eclipse.wst.xsl.xalan/.project34
-rw-r--r--bundles/org.eclipse.wst.xsl.xalan/.settings/org.eclipse.core.resources.prefs3
-rw-r--r--bundles/org.eclipse.wst.xsl.xalan/.settings/org.eclipse.jdt.core.prefs12
-rw-r--r--bundles/org.eclipse.wst.xsl.xalan/.settings/org.eclipse.pde.prefs24
-rw-r--r--bundles/org.eclipse.wst.xsl.xalan/META-INF/MANIFEST.MF17
-rw-r--r--bundles/org.eclipse.wst.xsl.xalan/XalanAttributes.properties21
-rw-r--r--bundles/org.eclipse.wst.xsl.xalan/XalanOutputProperties.properties37
-rw-r--r--bundles/org.eclipse.wst.xsl.xalan/about.html34
-rw-r--r--bundles/org.eclipse.wst.xsl.xalan/build.properties10
-rw-r--r--bundles/org.eclipse.wst.xsl.xalan/plugin.properties8
-rw-r--r--bundles/org.eclipse.wst.xsl.xalan/plugin.xml45
-rw-r--r--bundles/org.eclipse.wst.xsl.xalan/src-debugger/org/eclipse/wst/xsl/xalan/debugger/XalanDebugger.java93
-rw-r--r--bundles/org.eclipse.wst.xsl.xalan/src-debugger/org/eclipse/wst/xsl/xalan/debugger/XalanPrintTraceListener.java104
-rw-r--r--bundles/org.eclipse.wst.xsl.xalan/src-debugger/org/eclipse/wst/xsl/xalan/debugger/XalanRootStyleFrame.java78
-rw-r--r--bundles/org.eclipse.wst.xsl.xalan/src-debugger/org/eclipse/wst/xsl/xalan/debugger/XalanStyleFrame.java200
-rw-r--r--bundles/org.eclipse.wst.xsl.xalan/src-debugger/org/eclipse/wst/xsl/xalan/debugger/XalanTraceListener.java167
-rw-r--r--bundles/org.eclipse.wst.xsl.xalan/src-debugger/org/eclipse/wst/xsl/xalan/debugger/XalanVariable.java220
-rw-r--r--bundles/org.eclipse.wst.xsl/.project22
-rw-r--r--bundles/org.eclipse.wst.xsl/META-INF/MANIFEST.MF7
-rw-r--r--bundles/org.eclipse.wst.xsl/about.html34
-rw-r--r--bundles/org.eclipse.wst.xsl/about.ini11
-rw-r--r--bundles/org.eclipse.wst.xsl/about.mappings6
-rw-r--r--bundles/org.eclipse.wst.xsl/about.properties20
-rw-r--r--bundles/org.eclipse.wst.xsl/build.properties7
-rw-r--r--bundles/org.eclipse.wst.xsl/icons/WTP_icon_x32_v2.pngbin5616 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.xsl/plugin.properties3
-rw-r--r--docs/org.eclipse.wst.xsl.doc/.cvsignore2
-rw-r--r--docs/org.eclipse.wst.xsl.doc/.project27
-rw-r--r--docs/org.eclipse.wst.xsl.doc/.settings/org.eclipse.jdt.core.prefs7
-rw-r--r--docs/org.eclipse.wst.xsl.doc/.settings/org.eclipse.wst.validation.prefs15
-rw-r--r--docs/org.eclipse.wst.xsl.doc/META-INF/MANIFEST.MF10
-rw-r--r--docs/org.eclipse.wst.xsl.doc/about.html34
-rw-r--r--docs/org.eclipse.wst.xsl.doc/build.properties9
-rw-r--r--docs/org.eclipse.wst.xsl.doc/build.xml46
-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/.cvsignore1
-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/concepts/RescuingXSLTfromNicheStatus.xml494
-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/concepts/concepts.xml41
-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/concepts/gettingstarted.xml22
-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/editor/editor.xml382
-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/general/general.xml62
-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/images/editor/ExcludeContentAssist1.pngbin58353 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/images/editor/ExcludeContentAssist2.pngbin60069 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/images/editor/calltemplate.pngbin26069 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/images/editor/hrefAssistance.pngbin24019 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/images/editor/modeAssistance.pngbin25596 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/images/editor/namedTemplate.pngbin42870 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/images/editor/override1.pngbin8801 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/images/editor/override2.pngbin8848 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/images/editor/syntaxColoring.pngbin35022 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/images/editor/templatesView.pngbin34095 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/images/editor/xslproposals.pngbin39002 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/images/launching/XSLDebugging.pngbin166572 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/images/launching/XSLOutputTab.pngbin24781 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/images/launching/XSLProcessorTab.pngbin31930 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/images/launching/XSLRunDebugConfigurations.pngbin74395 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/images/launching/launchShortct.pngbin52144 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/images/launching/nodesetVariable.pngbin45509 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/images/launching/resultView.pngbin38017 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/XPathTemplates.pngbin52055 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/projectLevelValidation.pngbin65981 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/xm_template_xslnewfile.pngbin51651 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/xslSyntaxColoring.pngbin50885 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/xsl_InstalledProcessors.pngbin19110 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/xsl_outputproperties.pngbin35947 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/xslfeatures.pngbin15952 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/xslpreferences.pngbin34200 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/launching/launching.xml346
-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/legal.xml20
-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/preferences/preferences.xml197
-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/samples/samples.xml35
-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/xslhelp.dbk25
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/about.html34
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/book.css214
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/concepts/concepts.html411
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/concepts/resources.html5
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor.html12
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_coloring.html11
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_contentassist.html19
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_contentassist_calltemplate.html9
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_contentassist_exclude.html21
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_contentassist_include.html15
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_contentassist_modeassist.html17
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_contentassist_namedtemplate.html7
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_contentassist_selecttest.html27
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_debugging.html15
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_markers.html12
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_templates.html11
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_validation.html36
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/general/general.html27
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/images/editor/ExcludeContentAssist1.pngbin58353 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/images/editor/ExcludeContentAssist2.pngbin60069 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/images/editor/calltemplate.pngbin26069 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/images/editor/hrefAssistance.pngbin24019 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/images/editor/modeAssistance.pngbin25596 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/images/editor/namedTemplate.pngbin42870 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/images/editor/override1.pngbin8801 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/images/editor/override2.pngbin8848 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/images/editor/syntaxColoring.pngbin35022 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/images/editor/templatesView.pngbin34095 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/images/editor/xslproposals.pngbin39002 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/images/general/xinclude.pngbin2834 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/images/launching/XSLDebugging.pngbin166572 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/images/launching/XSLOutputTab.pngbin24781 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/images/launching/XSLProcessorTab.pngbin31930 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/images/launching/XSLRunDebugConfigurations.pngbin74395 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/images/launching/launchShortct.pngbin52144 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/images/launching/nodesetVariable.pngbin45509 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/images/launching/resultView.pngbin38017 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/images/preferences/XPathTemplates.pngbin52055 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/images/preferences/projectLevelValidation.pngbin65981 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/images/preferences/xm_template_xslnewfile.pngbin51651 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/images/preferences/xslSyntaxColoring.pngbin50885 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/images/preferences/xsl_InstalledProcessors.pngbin19110 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/images/preferences/xsl_outputproperties.pngbin35947 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/images/preferences/xslfeatures.pngbin15952 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/images/preferences/xslpreferences.pngbin34200 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/index.html5
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/index.xml1
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/introduction/gettingstarted.html6
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/launching/debugging.html21
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/launching/debugging_common.html22
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/launching/debugging_processors.html25
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/launching/debugging_variablesview.html15
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/launching/debuglaunching.html3
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/launching/launching.html52
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/legal.html11
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/preferences/syntaxColoring.html8
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/preferences/validation.html8
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/preferences/xpathexport.html1
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/preferences/xpathimport.html1
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/preferences/xpathtemplates.html25
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/preferences/xsloutputproperties.html6
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/preferences/xslpreferences.html18
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/preferences/xslprocessors.html4
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/reference/maintopic.html13
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/reference/subtopic.html13
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/reference/subtopic2.html13
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/samples/samples.html11
-rw-r--r--docs/org.eclipse.wst.xsl.doc/plugin.properties3
-rw-r--r--docs/org.eclipse.wst.xsl.doc/plugin.xml5
-rw-r--r--docs/org.eclipse.wst.xsl.doc/toc.xml1
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/.classpath7
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/.project33
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/.settings/org.eclipse.jdt.core.prefs7
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/.settings/org.eclipse.wst.validation.prefs17
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/META-INF/MANIFEST.MF12
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/ReadMe.txt6
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/about.html34
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/build.properties12
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/build.xml82
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/.cvsignore299
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/.cvsignore1
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/extension_point/org_eclipse_wst_xsl_jaxp_launching_debugger.html61
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/extension_point/org_eclipse_wst_xsl_jaxp_launching_invoke.html41
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/extension_point/org_eclipse_wst_xsl_jaxp_launching_processor.html63
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/extension_point/org_eclipse_wst_xsl_jaxp_launching_processorType.html73
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/extension_point/org_eclipse_wst_xsl_ui_contentAssistProcessor.html59
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.core.XPathCorePlugin.html17
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.core.util.XPath20Helper.html9
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.core.util.XSLTXPathHelper.html119
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.ui.XPathUIMessages.html53
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.ui.XPathViewPlugin.html63
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.ui.views.DOMNodeLabelProvider.html11
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.ui.views.DOMTreeContentProvider.html33
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.ui.views.DOMViewerFilter.html17
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.ui.views.EditNamespacePrefixDialog.html37
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.ui.views.XPathNavigator.EditorReferenceLabelProvider.html15
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.ui.views.XPathNavigator.RefreshAction.html9
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.ui.views.XPathNavigator.ShowInSourceAction.html9
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.ui.views.XPathNavigator.XMLEditorsContentProvider.html21
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.ui.views.XPathNavigator.XPathAction.html9
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.ui.views.XPathNavigator.html45
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xsl.core.Messages.html71
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xsl.core.ValidationPreferences.html95
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xsl.core.XSLCore.html52
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xsl.core.resolver.ResolverExtension.html21
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xsl.core.resolver.StopParsingException.html7
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xsl.core.resolver.XSLVersionHandler.html67
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xsl.xalan.debugger.XalanDebugger.html17
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xsl.xalan.debugger.XalanPrintTraceListener.html17
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xsl.xalan.debugger.XalanRootStyleFrame.html13
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xsl.xalan.debugger.XalanStyleFrame.html35
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xsl.xalan.debugger.XalanTraceListener.html23
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xsl.xalan.debugger.XalanVariable.html29
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/toc.html13
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/jeltohtml.xsl393
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/jeltotoc.xsl40
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/schema.css71
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/lib/.cvsignore2
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/plugin.properties14
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/plugin.xml13
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/src/org/eclipse/wst/xsl/sdk/documentation/Activator.java50
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/toc.xml47
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/tocExtension.xml19
-rw-r--r--features/org.eclipse.wst.xsl.feature/.cvsignore1
-rw-r--r--features/org.eclipse.wst.xsl.feature/.project15
-rw-r--r--features/org.eclipse.wst.xsl.feature/.settings/org.eclipse.core.resources.prefs3
-rw-r--r--features/org.eclipse.wst.xsl.feature/.settings/org.eclipse.pde.prefs16
-rw-r--r--features/org.eclipse.wst.xsl.feature/build.properties5
-rw-r--r--features/org.eclipse.wst.xsl.feature/epl-v10.html328
-rw-r--r--features/org.eclipse.wst.xsl.feature/feature.properties138
-rw-r--r--features/org.eclipse.wst.xsl.feature/feature.xml177
-rw-r--r--features/org.eclipse.wst.xsl.feature/license.html96
-rw-r--r--features/org.eclipse.wst.xsl.feature/sourceTemplateBundle/about.html34
-rw-r--r--features/org.eclipse.wst.xsl.feature/sourceTemplateBundle/about.ini31
-rw-r--r--features/org.eclipse.wst.xsl.feature/sourceTemplateBundle/about.mappings6
-rw-r--r--features/org.eclipse.wst.xsl.feature/sourceTemplateBundle/about.properties17
-rw-r--r--features/org.eclipse.wst.xsl.feature/sourceTemplateBundle/build.properties3
-rw-r--r--features/org.eclipse.wst.xsl.feature/sourceTemplateBundle/plugin.properties2
-rw-r--r--features/org.eclipse.wst.xsl.feature/sourceTemplateBundle/wtp_prod32.gifbin1752 -> 0 bytes-rw-r--r--features/org.eclipse.wst.xsl.feature/sourceTemplateBundle/wtp_prod32.pngbin2672 -> 0 bytes-rw-r--r--features/org.eclipse.wst.xsl.feature/sourceTemplateFeature/build.properties16
-rw-r--r--features/org.eclipse.wst.xsl.feature/sourceTemplateFeature/eclipse_update_120.jpgbin21695 -> 0 bytes-rw-r--r--features/org.eclipse.wst.xsl.feature/sourceTemplateFeature/epl-v10.html328
-rw-r--r--features/org.eclipse.wst.xsl.feature/sourceTemplateFeature/feature.properties138
-rw-r--r--features/org.eclipse.wst.xsl.feature/sourceTemplateFeature/license.html82
-rw-r--r--features/org.eclipse.wst.xsl.feature/sourceTemplatePlugin/about.html34
-rw-r--r--features/org.eclipse.wst.xsl.feature/sourceTemplatePlugin/about.ini31
-rw-r--r--features/org.eclipse.wst.xsl.feature/sourceTemplatePlugin/about.mappings6
-rw-r--r--features/org.eclipse.wst.xsl.feature/sourceTemplatePlugin/about.properties27
-rw-r--r--features/org.eclipse.wst.xsl.feature/sourceTemplatePlugin/build.properties3
-rw-r--r--features/org.eclipse.wst.xsl.feature/sourceTemplatePlugin/plugin.properties2
-rw-r--r--features/org.eclipse.wst.xsl.feature/sourceTemplatePlugin/wtp_prod32.gifbin1752 -> 0 bytes-rw-r--r--features/org.eclipse.wst.xsl.feature/sourceTemplatePlugin/wtp_prod32.pngbin2672 -> 0 bytes-rw-r--r--features/org.eclipse.wst.xsl_sdk.feature/.project17
-rw-r--r--features/org.eclipse.wst.xsl_sdk.feature/.settings/org.eclipse.core.resources.prefs3
-rw-r--r--features/org.eclipse.wst.xsl_sdk.feature/.settings/org.eclipse.pde.prefs16
-rw-r--r--features/org.eclipse.wst.xsl_sdk.feature/build.properties7
-rw-r--r--features/org.eclipse.wst.xsl_sdk.feature/eclipse_update_120.jpgbin21695 -> 0 bytes-rw-r--r--features/org.eclipse.wst.xsl_sdk.feature/epl-v10.html328
-rw-r--r--features/org.eclipse.wst.xsl_sdk.feature/feature.properties138
-rw-r--r--features/org.eclipse.wst.xsl_sdk.feature/feature.xml44
-rw-r--r--features/org.eclipse.wst.xsl_sdk.feature/license.html96
486 files changed, 0 insertions, 30618 deletions
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/.classpath b/bundles/org.eclipse.wst.xsl.debug.ui/.classpath
deleted file mode 100644
index 304e861..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/.classpath
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/.cvsignore b/bundles/org.eclipse.wst.xsl.debug.ui/.cvsignore
deleted file mode 100644
index ac6029b..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/.cvsignore
+++ /dev/null
@@ -1,4 +0,0 @@
-javaCompiler...args
-build.xml
-@dot
-temp.folder
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/.project b/bundles/org.eclipse.wst.xsl.debug.ui/.project
deleted file mode 100644
index ded342e..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/.project
+++ /dev/null
@@ -1,34 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.wst.xsl.debug.ui</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>
- <buildCommand>
- <name>org.eclipse.pde.api.tools.apiAnalysisBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- <nature>org.eclipse.pde.api.tools.apiAnalysisNature</nature>
- </natures>
-</projectDescription>
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/.settings/org.eclipse.core.resources.prefs b/bundles/org.eclipse.wst.xsl.debug.ui/.settings/org.eclipse.core.resources.prefs
deleted file mode 100644
index 0a7bb6d..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/.settings/org.eclipse.core.resources.prefs
+++ /dev/null
@@ -1,3 +0,0 @@
-#Thu Jan 03 22:24:01 EST 2008
-eclipse.preferences.version=1
-encoding/<project>=ISO-8859-1
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/.settings/org.eclipse.jdt.core.prefs b/bundles/org.eclipse.wst.xsl.debug.ui/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 5398188..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,87 +0,0 @@
-#Thu Jun 11 01:33:30 GMT 2009
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
-org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=1.5
-org.eclipse.jdt.core.compiler.debug.lineNumber=generate
-org.eclipse.jdt.core.compiler.debug.localVariable=generate
-org.eclipse.jdt.core.compiler.debug.sourceFile=generate
-org.eclipse.jdt.core.compiler.doc.comment.support=enabled
-org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
-org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning
-org.eclipse.jdt.core.compiler.problem.deadCode=warning
-org.eclipse.jdt.core.compiler.problem.deprecation=warning
-org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
-org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled
-org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
-org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore
-org.eclipse.jdt.core.compiler.problem.fatalOptionalError=enabled
-org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
-org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
-org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
-org.eclipse.jdt.core.compiler.problem.forbiddenReference=error
-org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
-org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
-org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore
-org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore
-org.eclipse.jdt.core.compiler.problem.invalidJavadoc=warning
-org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=enabled
-org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=disabled
-org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=disabled
-org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=public
-org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
-org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
-org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore
-org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore
-org.eclipse.jdt.core.compiler.problem.missingJavadocComments=ignore
-org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=disabled
-org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=public
-org.eclipse.jdt.core.compiler.problem.missingJavadocTagDescription=return_tag
-org.eclipse.jdt.core.compiler.problem.missingJavadocTags=warning
-org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled
-org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=public
-org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
-org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
-org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore
-org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
-org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
-org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=error
-org.eclipse.jdt.core.compiler.problem.nullReference=warning
-org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
-org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
-org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore
-org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore
-org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning
-org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore
-org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore
-org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
-org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
-org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
-org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
-org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
-org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning
-org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
-org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
-org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
-org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore
-org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
-org.eclipse.jdt.core.compiler.problem.unusedImport=warning
-org.eclipse.jdt.core.compiler.problem.unusedLabel=warning
-org.eclipse.jdt.core.compiler.problem.unusedLocal=warning
-org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
-org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
-org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
-org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
-org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
-org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
-org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
-org.eclipse.jdt.core.compiler.source=1.5
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/.settings/org.eclipse.jdt.ui.prefs b/bundles/org.eclipse.wst.xsl.debug.ui/.settings/org.eclipse.jdt.ui.prefs
deleted file mode 100644
index bf7b476..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/.settings/org.eclipse.jdt.ui.prefs
+++ /dev/null
@@ -1,3 +0,0 @@
-#Fri May 09 15:32:34 BST 2008
-eclipse.preferences.version=1
-org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates/>
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/.settings/org.eclipse.pde.prefs b/bundles/org.eclipse.wst.xsl.debug.ui/.settings/org.eclipse.pde.prefs
deleted file mode 100644
index fdd8568..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/.settings/org.eclipse.pde.prefs
+++ /dev/null
@@ -1,16 +0,0 @@
-#Fri Jan 04 09:04:43 EST 2008
-compilers.incompatible-environment=1
-compilers.p.build=0
-compilers.p.deprecated=1
-compilers.p.missing-bundle-classpath-entries=0
-compilers.p.missing-packages=2
-compilers.p.no-required-att=0
-compilers.p.not-externalized-att=0
-compilers.p.unknown-attribute=0
-compilers.p.unknown-class=1
-compilers.p.unknown-element=0
-compilers.p.unknown-resource=1
-compilers.p.unresolved-ex-points=0
-compilers.p.unresolved-import=0
-compilers.use-project=true
-eclipse.preferences.version=1
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/META-INF/MANIFEST.MF b/bundles/org.eclipse.wst.xsl.debug.ui/META-INF/MANIFEST.MF
deleted file mode 100644
index 95d2f16..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,30 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: %Bundle-Name.0
-Bundle-SymbolicName: org.eclipse.wst.xsl.debug.ui;singleton:=true
-Bundle-Version: 1.0.100.qualifier
-Bundle-Activator: org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIPlugin
-Require-Bundle: org.eclipse.ui;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.core.filesystem;bundle-version="[1.2.0,2.0.0)",
- org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.core.variables;bundle-version="[3.2.0,4.0.0)",
- org.eclipse.debug.ui;bundle-version="[3.5.0,4.0.0)",
- org.eclipse.jface.text;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.ui.ide;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.ui.workbench.texteditor;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.wst.sse.ui;bundle-version="[1.1.0,2.0.0)",
- org.eclipse.wst.xsl.launching;bundle-version="[1.0.0,2.0.0)",
- org.eclipse.wst.xsl.core;bundle-version="[1.0.0,2.0.0)",
- org.eclipse.wst.xml.ui;bundle-version="[1.0.0,2.0.0)",
- org.eclipse.osgi.util;bundle-version="[3.2.0,4.0.0)"
-Bundle-ActivationPolicy: lazy
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Bundle-Localization: plugin
-Bundle-Vendor: %Bundle-Vendor.0
-Export-Package: org.eclipse.wst.xsl.debug.internal.util;x-friends:="org.eclipse.wst.xsl.jaxp.debug,org.eclipse.wst.jaxp.debug.ui,org.eclipse.wst.xsl.jaxp.launching",
- org.eclipse.wst.xsl.internal.debug.ui;x-friends:="org.eclipse.wst.xsl.jaxp.debug,org.eclipse.wst.jaxp.debug.ui,org.eclipse.wst.xsl.jaxp.launching",
- org.eclipse.wst.xsl.internal.debug.ui.actions;x-friends:="org.eclipse.wst.xsl.jaxp.debug,org.eclipse.wst.jaxp.debug.ui,org.eclipse.wst.xsl.jaxp.launching",
- org.eclipse.wst.xsl.internal.debug.ui.breakpoint;x-friends:="org.eclipse.wst.xsl.jaxp.debug,org.eclipse.wst.jaxp.debug.ui,org.eclipse.wst.xsl.jaxp.launching",
- org.eclipse.wst.xsl.internal.debug.ui.model;x-friends:="org.eclipse.wst.xsl.jaxp.debug,org.eclipse.wst.jaxp.debug.ui,org.eclipse.wst.xsl.jaxp.launching",
- org.eclipse.wst.xsl.internal.debug.ui.tabs.main;x-friends:="org.eclipse.wst.xsl.jaxp.debug,org.eclipse.wst.jaxp.debug.ui,org.eclipse.wst.xsl.jaxp.launching",
- org.eclipse.wst.xsl.internal.debug.ui.tabs.output;x-friends:="org.eclipse.wst.xsl.jaxp.debug,org.eclipse.wst.jaxp.debug.ui,org.eclipse.wst.xsl.jaxp.launching"
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/about.html b/bundles/org.eclipse.wst.xsl.debug.ui/about.html
deleted file mode 100644
index 2199df3..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/about.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<HTML>
-
-<head>
-<title>About</title>
-<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
-</head>
-
-<BODY lang="EN-US">
-
-<H3>About This Content</H3>
-
-<P>June, 2008</P>
-
-<H3>License</H3>
-
-<P>The Eclipse Foundation makes available all content in this plug-in
-("Content"). Unless otherwise indicated below, the Content is provided to you
-under the terms and conditions of the Eclipse Public License Version 1.0
-("EPL"). A copy of the EPL is available at
-<A href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/org/documents/epl-v10.php</A>.
-For purposes of the EPL, "Program" will mean the Content.</P>
-
-<P>If you did not receive this Content directly from the Eclipse Foundation, the
-Content is being redistributed by another party ("Redistributor") and different
-terms and conditions may apply to your use of any object code in the Content.
-Check the Redistributor’s license that was provided with the Content. If no such
-license exists, contact the Redistributor. Unless otherwise indicated below, the
-terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at
-<A href="http://www.eclipse.org/">http://www.eclipse.org/</A>.</P>
-
-</BODY>
-</HTML>
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/build.properties b/bundles/org.eclipse.wst.xsl.debug.ui/build.properties
deleted file mode 100644
index 878da21..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/build.properties
+++ /dev/null
@@ -1,8 +0,0 @@
-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- plugin.xml,\
- about.html,\
- plugin.properties,\
- icons/
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/icons/brkp_obj.gif b/bundles/org.eclipse.wst.xsl.debug.ui/icons/brkp_obj.gif
deleted file mode 100644
index a831fe7..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/icons/brkp_obj.gif
+++ /dev/null
Binary files differ
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/icons/localvariable_obj.gif b/bundles/org.eclipse.wst.xsl.debug.ui/icons/localvariable_obj.gif
deleted file mode 100644
index 3244b26..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/icons/localvariable_obj.gif
+++ /dev/null
Binary files differ
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/icons/operation.gif b/bundles/org.eclipse.wst.xsl.debug.ui/icons/operation.gif
deleted file mode 100644
index b55d9e3..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/icons/operation.gif
+++ /dev/null
Binary files differ
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/icons/sample.gif b/bundles/org.eclipse.wst.xsl.debug.ui/icons/sample.gif
deleted file mode 100644
index 34fb3c9..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/icons/sample.gif
+++ /dev/null
Binary files differ
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/icons/xslt_launch.gif b/bundles/org.eclipse.wst.xsl.debug.ui/icons/xslt_launch.gif
deleted file mode 100644
index bfe15f8..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/icons/xslt_launch.gif
+++ /dev/null
Binary files differ
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/icons/xslt_output.gif b/bundles/org.eclipse.wst.xsl.debug.ui/icons/xslt_output.gif
deleted file mode 100644
index 45fb08d..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/icons/xslt_output.gif
+++ /dev/null
Binary files differ
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/plugin.properties b/bundles/org.eclipse.wst.xsl.debug.ui/plugin.properties
deleted file mode 100644
index 6bb5a1a..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/plugin.properties
+++ /dev/null
@@ -1,12 +0,0 @@
-#Properties file for org.eclipse.wst.xsl.debug.ui
-Bundle-Name.0 = XSL Debugger UI
-launchMode.description.0 = Create a configuration to debug an XSLT transformation
-launchMode.description.1 = Create a configuration to run an XSLT transformation
-context.description.0 = Context for debugging XSLT
-context.name.0 = XSLT Debugging
-shortcut.label.0 = XSL Transformation
-shortcut.label.1 = XSLT Transformation
-Bundle-Vendor.0 = Eclipse.org
-description.description.0 = Run an XSLT transformation using the selected file(s)
-description.description.1 = Debug an XSLT transformation using the selected file(s)
-description.description.2 = Profile an XSLT transformation using the selected file(s) \ No newline at end of file
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/plugin.xml b/bundles/org.eclipse.wst.xsl.debug.ui/plugin.xml
deleted file mode 100644
index 12740ff..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/plugin.xml
+++ /dev/null
@@ -1,116 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.2"?>
-<plugin>
-
- <extension point="org.eclipse.ui.perspectiveExtensions">
- <perspectiveExtension
- targetID="org.eclipse.wst.xml.perspective">
- <actionSet id="org.eclipse.debug.ui.debugActionSet" />
- <actionSet id="org.eclipse.debug.ui.launchActionSet" />
- <actionSet id="org.eclipse.debug.ui.breakpointActionSet" />
- <actionSet id="org.eclipse.debug.ui.profileActionSet" />
- </perspectiveExtension>
- </extension>
-
- <extension
- point="org.eclipse.debug.ui.launchConfigurationTypeImages">
- <launchConfigurationTypeImage icon="icons/xslt_launch.gif"
- configTypeID="org.eclipse.wst.xsl.launching.launchConfigurationType"
- id="org.eclipse.wst.xsl.internal.debug.ui.launchConfigurationTypeImage" />
- </extension>
-
- <extension
- point="org.eclipse.debug.ui.launchConfigurationTabGroups">
- <launchConfigurationTabGroup
- class="org.eclipse.wst.xsl.internal.debug.ui.XSLTTabGroup"
- id="org.eclipse.wst.xsl.internal.debug.ui.launchConfigurationTabGroup.xslt"
- type="org.eclipse.wst.xsl.launching.launchConfigurationType">
- <launchMode description="%launchMode.description.0"
- mode="debug" perspective="org.eclipse.debug.ui.DebugPerspective" />
- <launchMode description="%launchMode.description.1"
- mode="run" perspective="org.eclipse.wst.xml.perspective" />
- </launchConfigurationTabGroup>
- </extension>
-
- <extension point="org.eclipse.ui.contexts">
- <context description="%context.description.0"
- id="org.eclipse.wst.xsl.debug.ui.context" name="%context.name.0"
- parentId="org.eclipse.debug.ui.debugging">
- </context>
- </extension>
-
- <extension point="org.eclipse.debug.ui.debugModelPresentations">
- <debugModelPresentation
- class="org.eclipse.wst.xsl.internal.debug.ui.model.XSLModelPresentation"
- id="org.eclipse.wst.xsl.launching.XSLDebugModel">
- </debugModelPresentation>
- </extension>
-
- <extension point="org.eclipse.debug.ui.launchShortcuts">
- <shortcut
- class="org.eclipse.wst.xsl.internal.debug.ui.XSLLaunchShortcut"
- icon="icons/xslt_launch.gif"
- id="org.eclipse.wst.xsl.debug.ui.launchshortcut"
- label="%shortcut.label.0"
- modes="run, debug, profile">
- <contextualLaunch>
- <enablement>
- <with variable="selection">
- <iterate>
- <adapt
- type="org.eclipse.core.resources.IFile">
- <or>
- <test
- property="org.eclipse.core.resources.contentTypeId"
- value="org.eclipse.core.runtime.xml" />
- <test
- property="org.eclipse.core.resources.contentTypeId"
- value="org.eclipse.wst.xml.core.xmlsource" />
- <test
- property="org.eclipse.core.resources.contentTypeId"
- value="org.eclipse.wst.xml.core.xslsource" />
- <test
- property="org.eclipse.core.resources.contentTypeId"
- value="org.eclipse.wst.xsd.core.xsdsource" />
- </or>
- </adapt>
- </iterate>
- </with>
- </enablement>
- </contextualLaunch>
- <description
- description="%description.description.0"
- mode="run">
- </description>
- <description
- description="%description.description.1"
- mode="debug">
- </description>
- <description
- description="%description.description.2"
- mode="profile">
- </description>
- </shortcut>
- </extension>
-
- <extension point="org.eclipse.debug.ui.debugModelContextBindings">
- <modelContextBinding
- contextId="org.eclipse.wst.xsl.debug.ui.context"
- debugModelId="org.eclipse.wst.xsl.launching.XSLDebugModel">
- </modelContextBinding>
- </extension>
-
- <extension point="org.eclipse.wst.sse.ui.breakpoint">
- <breakpointContribution
- id="org.eclipse.wst.xsl.debug.ui.providers">
- <provider contentTypes="org.eclipse.wst.xml.core.xslsource"
- class="org.eclipse.wst.xsl.internal.debug.ui.breakpoint.XSLBreakpointProvider:*xsl,*xslt"
- id="org.eclipse.wst.xsl.debug.ui.XSLBreakpointProvider" />
- <!-- TODO add this back in when we can do something with breakpoints on XML files
- <provider contentTypes="org.eclipse.wst.xml.core.xslsource,org.eclipse.wst.xml.core.xmlsource,org.eclipse.core.runtime.xml"
- class="org.eclipse.wst.xsl.internal.debug.ui.breakpoint.XSLBreakpointProvider:*xsl,*xslt,*xml"
- id="org.eclipse.wst.xsl.debug.ui.XSLBreakpointProvider" /> -->
- </breakpointContribution>
- </extension>
-
-</plugin>
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/debug/internal/util/XSLDebugPluginImages.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/debug/internal/util/XSLDebugPluginImages.java
deleted file mode 100755
index e9c6537..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/debug/internal/util/XSLDebugPluginImages.java
+++ /dev/null
@@ -1,34 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008 Standards for Technology in Automotive Retail and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * David Carver - STAR - bug 223557 - initial API and implementation
- * Holger Voormann - Icons for Processor, Output, and Launch tabs
- *******************************************************************************/
-package org.eclipse.wst.xsl.debug.internal.util;
-
-/**
- * Bundle of most images used by the XSL Debug Plugins
- */
-public class XSLDebugPluginImages {
-
- /**
- * Path to the XSLT Processor Images used for launch configurations
- */
- public static final String IMG_PROCESSOR_TAB = "icons/xslt_processor.gif"; //$NON-NLS-1$
-
- /**
- * Path to the XSLT Output Images used for launch configurations
- */
- public static final String IMG_OUTPUT_TAB = "icons/xslt_output.gif"; //$NON-NLS-1$
-
- /**
- * Path to the XSLT Launch Images used for launch configurations
- */
- public static final String IMG_MAIN_TAB = "icons/xslt_launch.gif"; //$NON-NLS-1$
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/debug/internal/util/XSLPluginImageHelper.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/debug/internal/util/XSLPluginImageHelper.java
deleted file mode 100755
index 74396a4..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/debug/internal/util/XSLPluginImageHelper.java
+++ /dev/null
@@ -1,159 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008 Standards for Technology in Automotive Retail and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * David Carver - STAR - bug 213849 - initial API and implementation
- *
- *******************************************************************************/
-package org.eclipse.wst.xsl.debug.internal.util;
-
-import java.util.HashMap;
-
-import org.eclipse.jface.resource.ImageDescriptor;
-import org.eclipse.jface.resource.ImageRegistry;
-import org.eclipse.jface.resource.JFaceResources;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.ui.plugin.AbstractUIPlugin;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIPlugin;
-
-/**
- * Helper class to handle images provided by this plug-in.
- *
- * NOTE: For internal use only. For images used externally, please use the
- * Shared***ImageHelper class instead.
- *
- * @author david carver based on work by amywu
- */
-public class XSLPluginImageHelper {
- private static XSLPluginImageHelper instance = null;
-
- /**
- * Gets the instance.
- *
- * @return Returns a XMLEditorPluginImageHelper
- */
- public synchronized static XSLPluginImageHelper getInstance() {
- if (instance == null) {
- instance = new XSLPluginImageHelper();
- }
- return instance;
- }
-
- // save a descriptor for each image
- @SuppressWarnings("unchecked")
- private HashMap fImageDescRegistry = null;
- private final String PLUGINID = XSLDebugUIPlugin.PLUGIN_ID;
-
- /**
- * Creates an image from the given resource and adds the image to the image
- * registry.
- *
- * @param resource
- * @return Image
- */
- private Image createImage(String resource) {
- ImageDescriptor desc = getImageDescriptor(resource);
- Image image = null;
-
- if (desc != null) {
- image = desc.createImage();
- // dont add the missing image descriptor image to the image
- // registry
- if (!desc.equals(ImageDescriptor.getMissingImageDescriptor())) {
- getImageRegistry().put(resource, image);
- }
- }
- return image;
- }
-
- /**
- * Creates an image descriptor from the given imageFilePath and adds the
- * image descriptor to the image descriptor registry. If an image descriptor
- * could not be created, the default "missing" image descriptor is returned
- * but not added to the image descriptor registry.
- *
- * @param imageFilePath
- * @return ImageDescriptor image descriptor for imageFilePath or default
- * "missing" image descriptor if resource could not be found
- */
- @SuppressWarnings("unchecked")
- private ImageDescriptor createImageDescriptor(String imageFilePath) {
- ImageDescriptor imageDescriptor = AbstractUIPlugin
- .imageDescriptorFromPlugin(PLUGINID, imageFilePath);
- if (imageDescriptor != null) {
- getImageDescriptorRegistry().put(imageFilePath, imageDescriptor);
- } else {
- imageDescriptor = ImageDescriptor.getMissingImageDescriptor();
- }
-
- return imageDescriptor;
- }
-
- /**
- * Retrieves the image associated with resource from the image registry. If
- * the image cannot be retrieved, attempt to find and load the image at the
- * location specified in resource.
- *
- * @param resource
- * the image to retrieve
- * @return Image the image associated with resource or null if one could not
- * be found
- */
- public Image getImage(String resource) {
- Image image = getImageRegistry().get(resource);
- if (image == null) {
- // create an image
- image = createImage(resource);
- }
- return image;
- }
-
- /**
- * Retrieves the image descriptor associated with resource from the image
- * descriptor registry. If the image descriptor cannot be retrieved, attempt
- * to find and load the image descriptor at the location specified in
- * resource.
- *
- * @param resource
- * the image descriptor to retrieve
- * @return ImageDescriptor the image descriptor assocated with resource or
- * the default "missing" image descriptor if one could not be found
- */
- public ImageDescriptor getImageDescriptor(String resource) {
- ImageDescriptor imageDescriptor = null;
- Object o = getImageDescriptorRegistry().get(resource);
- if (o == null) {
- // create a descriptor
- imageDescriptor = createImageDescriptor(resource);
- } else {
- imageDescriptor = (ImageDescriptor) o;
- }
- return imageDescriptor;
- }
-
- /**
- * Returns the image descriptor registry for this plugin.
- *
- * @return HashMap - image descriptor registry for this plugin
- */
- @SuppressWarnings("unchecked")
- private HashMap getImageDescriptorRegistry() {
- if (fImageDescRegistry == null) {
- fImageDescRegistry = new HashMap();
- }
- return fImageDescRegistry;
- }
-
- /**
- * Returns the image registry for this plugin.
- *
- * @return ImageRegistry - image registry for this plugin
- */
- private ImageRegistry getImageRegistry() {
- return JFaceResources.getImageRegistry();
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/AbstractTableBlock.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/AbstractTableBlock.java
deleted file mode 100644
index 72085a5..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/AbstractTableBlock.java
+++ /dev/null
@@ -1,87 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui;
-
-import org.eclipse.debug.ui.AbstractLaunchConfigurationTab;
-import org.eclipse.jface.dialogs.IDialogSettings;
-import org.eclipse.swt.widgets.Table;
-
-/**
- * An <code>AbstractLaunchConfigurationTab</code> specialised for blocks that
- * contain a table. This abstract class conveniently saves and restores the
- * table's column settings.
- *
- * @author Doug Satchwell
- * @since 1.0
- */
-public abstract class AbstractTableBlock extends AbstractLaunchConfigurationTab {
- private int fSortColumn;
-
- protected abstract Table getTable();
-
- protected abstract IDialogSettings getDialogSettings();
-
- protected abstract String getQualifier();
-
- protected void setSortColumn(int column) {
- fSortColumn = column;
- }
-
- /**
- * Persist table settings into the give dialog store, prefixed with the
- * given key.
- */
- public void saveColumnSettings() {
- int columnCount = getTable().getColumnCount();
- for (int i = 0; i < columnCount; i++) {
- getDialogSettings()
- .put(
- getQualifier() + ".columnWidth" + i, getTable().getColumn(i).getWidth()); //$NON-NLS-1$
- }
- getDialogSettings().put(getQualifier() + ".sortColumn", fSortColumn); //$NON-NLS-1$
- }
-
- /**
- * Restore table settings from the given dialog store using the given key.
- */
- public void restoreColumnSettings() {
- getTable().layout(true);
- restoreColumnWidths(getDialogSettings(), getQualifier());
- int col = 0;
- try {
- col = getDialogSettings().getInt(getQualifier() + ".sortColumn"); //$NON-NLS-1$
- } catch (NumberFormatException e) {
- col = 1;
- }
- setSortColumn(col);
- }
-
- private void restoreColumnWidths(IDialogSettings settings, String qualifier) {
- int columnCount = getTable().getColumnCount();
- for (int i = 0; i < columnCount; i++) {
- int width = -1;
- try {
- width = settings.getInt(qualifier + ".columnWidth" + i); //$NON-NLS-1$
- } catch (NumberFormatException e) {
- }
-
- if (width > 0)
- getTable().getColumn(i).setWidth(width);
- }
- }
-
- @Override
- public void dispose() {
- if (getTable() != null && !getTable().isDisposed())
- saveColumnSettings();
- super.dispose();
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/Messages.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/Messages.java
deleted file mode 100644
index 653a397..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/Messages.java
+++ /dev/null
@@ -1,254 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- * David Carver (STAR) - updated to meet Galileo requirements
- * Stuart Harper - added "open files" selector
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui;
-
-import org.eclipse.osgi.util.NLS;
-
-/**
- * Messages for the debug.ui package.
- *
- * @author Doug Satchwell
- * @since 1.0
- */
-public class Messages extends NLS {
- private static final String BUNDLE_NAME = "org.eclipse.wst.xsl.internal.debug.ui.messages"; //$NON-NLS-1$
-
- /**
- * A name for the remove action.
- */
- public static String RemoveAction_Text;
-
- /**
- * A name for the <code>AddWorkspaceFileAction</code> action.
- */
- public static String AddWorkspaceFileAction_Text;
-
- /**
- * A name for the <code>AddExternalFileAction</code> action.
- */
- public static String AddExternalFileAction_Text;
-
- /**
- * A name for the <code>MoveDownAction</code> action.
- */
- public static String MoveDownAction_Text;
-
- /**
- * A name for the <code>MoveUpAction</code> action.
- */
- public static String MoveUpAction_Text;
-
- /**
- * A heading for the <code>AddExternalFileAction</code> dialog.
- */
- public static String AddExternalFileAction_Selection_3;
-
- /**
- * A message for the <code>AddWorkspaceFileAction</code> dialog.
- */
- public static String AddWorkspaceFileAction_DialogMessage;
-
- /**
- * A title for the <code>AddWorkspaceFileAction</code> dialog.
- */
- public static String AddWorkspaceFileAction_DialogTitle;
-
- /**
- * A name for the <code>AddParameterAction</code> action.
- */
- public static String AddParameterAction;
-
- /**
- * A name for the <code>RemoveParameterAction</code> action.
- */
- public static String RemoveParameterAction;
-
- /**
- * A label for the Variables button.
- */
- public static String VariablesFieldButton_Text;
-
- /**
- * A title for the <code>AddParameterAction</code> dialog.
- */
- public static String AddParameterAction_Dialog;
-
- /**
- * A label for the <code>AddParameterAction</code> name text box.
- */
- public static String AddParameterAction_Dialog_Name;
-
- /**
- * A label for the <code>AddParameterAction</code> type combo.
- */
- public static String AddParameterAction_Dialog_Type;
-
- /**
- * A label for the <code>AddParameterAction</code> value text box.
- */
- public static String AddParameterAction_Dialog_Value;
-
- public static String XSLBreakpointProvider_0;
-
- public static String StylesheetEntryLabelProvider_Invalid_path;
-
- public static String TransformsBlock_0;
-
- public static String TransformsBlock_Name;
-
- public static String InputFileBlock_DIRECTORY_NOT_SPECIFIED;
-
- public static String InputFileBlock_DIRECTORY_DOES_NOT_EXIST;
-
- public static String InputFileBlock_GROUP_NAME;
-
- public static String InputFileBlock_DEFAULT_RADIO;
-
- public static String InputFileBlock_OTHER_RADIO;
-
- public static String InputFileBlock_DIALOG_MESSAGE;
-
- public static String InputFileBlock_WORKSPACE_DIALOG_MESSAGE;
-
- public static String InputFileBlock_VARIABLES_BUTTON;
-
- public static String InputFileBlock_FILE_SYSTEM_BUTTON;
-
- public static String InputFileBlock_WORKSPACE_BUTTON;
-
- public static String InputFileBlock_OPENFILES_BUTTON;
-
- public static String InputFileBlock_OPENFILES_DIALOG;
-
- public static String InputFileBlock_Name;
-
- public static String InputFileBlock_Exception_occurred_reading_configuration;
-
- public static String InputFileBlock_WORKSPACE_DIALOG_TITLE;
-
- public static String XSLMainTab_TabName;
-
- public static String TransformsBlock_ParametersLabel;
-
- public static String TransformsBlock_StylesheetsLabel;
-
- public static String ParametersBlock_0;
- public static String ParametersBlock_1;
- public static String ParametersBlock_10;
- public static String ParametersBlock_11;
- public static String ParametersBlock_2;
- public static String ParametersBlock_3;
- public static String ParametersBlock_4;
- public static String ParametersBlock_5;
- public static String ParametersBlock_6;
- public static String ParametersBlock_7;
- public static String ParametersBlock_8;
- public static String ParametersBlock_9;
-
- public static String OutputPropertiesBlock_0;
- public static String OutputPropertiesBlock_1;
- public static String OutputPropertiesBlock_13;
- public static String OutputPropertiesBlock_3;
- public static String OutputPropertiesBlock_4;
- public static String OutputPropertiesBlock_5;
- public static String OutputPropertiesBlock_7;
- public static String OutputPropertiesBlock_8;
- public static String OutputPropertiesBlock_9;
- public static String OutputTab_0;
- public static String OutputTab_1;
-
- public static String OutputTypeBlock_Group_Name;
-
- public static String OutputFileBlock_0;
-
- public static String OutputFileBlock_1;
-
- public static String OutputFileBlock_2;
-
- public static String OutputFileBlock_7;
-
- public static String OutputFileBlock_8;
-
- public static String OutputFileBlock_9;
-
- public static String OutputFileBlock_DIRECTORY_NOT_SPECIFIED;
-
- public static String OutputFileBlock_DIRECTORY_DOES_NOT_EXIST;
-
- public static String OutputFileBlock_GROUP_NAME;
-
- public static String OutputFileBlock_DEFAULT_RADIO;
-
- public static String OutputFileBlock_OTHER_RADIO;
-
- public static String OutputFileBlock_DIALOG_MESSAGE;
-
- public static String OutputFileBlock_WORKSPACE_DIALOG_MESSAGE;
-
- public static String OutputFileBlock_VARIABLES_BUTTON;
-
- public static String OutputFileBlock_FILE_SYSTEM_BUTTON;
-
- public static String OutputFileBlock_WORKSPACE_BUTTON;
-
- public static String OutputFileBlock_Name;
-
- public static String OutputFileBlock_Exception_occurred_reading_configuration;
-
- public static String OutputFileBlock_WORKSPACE_DIALOG_TITLE;
-
- public static String OutputFileBlock_Exception_occurred_saving_configuration;
-
- public static String OutputFOFileBlock_DIRECTORY_NOT_SPECIFIED;
-
- public static String OutputFOFileBlock_DIRECTORY_DOES_NOT_EXIST;
-
- public static String OutputFOFileBlock_GROUP_NAME;
-
- public static String OutputFOFileBlock_DEFAULT_RADIO;
-
- public static String OutputFOFileBlock_OTHER_RADIO;
-
- public static String OutputFOFileBlock_DIALOG_MESSAGE;
-
- public static String OutputFOFileBlock_WORKSPACE_DIALOG_MESSAGE;
-
- public static String OutputFOFileBlock_VARIABLES_BUTTON;
-
- public static String OutputFOFileBlock_FILE_SYSTEM_BUTTON;
-
- public static String OutputFOFileBlock_WORKSPACE_BUTTON;
-
- public static String OutputFOFileBlock_Name;
-
- public static String OutputFOFileBlock_Exception_occurred_reading_configuration;
-
- public static String OutputFOFileBlock_WORKSPACE_DIALOG_TITLE;
-
- public static String OutputFOFileBlock_Exception_occurred_saving_configuration;
-
- public static String ResourceSelectionBlock_0;
- public static String XSLLaunchShortcut_0;
- public static String XSLLaunchShortcut_1;
- public static String XSLLaunchShortcut_2;
- public static String XSLLaunchShortcut_6;
- public static String XSLSelectExisting;
-
- private Messages() {
- }
-
- static {
- NLS.initializeMessages(BUNDLE_NAME, Messages.class);
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/ResourceSelectionBlock.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/ResourceSelectionBlock.java
deleted file mode 100644
index 1b56860..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/ResourceSelectionBlock.java
+++ /dev/null
@@ -1,599 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007, 2010 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- * Stuart Harper - bug 264788 - added "open files" selector
- * David Carver (STAR) - bug 264788 - pulled up getFileExtensions from InputFileBlock
- * David Carver (Intalio) - clean up find bugs
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui;
-
-import java.io.File;
-import org.eclipse.core.resources.IContainer;
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.IWorkspaceRoot;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.core.variables.IStringVariableManager;
-import org.eclipse.core.variables.VariablesPlugin;
-import org.eclipse.debug.core.ILaunchConfiguration;
-import org.eclipse.debug.ui.AbstractLaunchConfigurationTab;
-import org.eclipse.debug.ui.StringVariableSelectionDialog;
-import org.eclipse.jface.viewers.LabelProvider;
-import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.jface.viewers.ViewerFilter;
-import org.eclipse.jface.window.Window;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.ModifyEvent;
-import org.eclipse.swt.events.ModifyListener;
-import org.eclipse.swt.events.SelectionAdapter;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.DirectoryDialog;
-import org.eclipse.swt.widgets.FileDialog;
-import org.eclipse.swt.widgets.Group;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.Text;
-import org.eclipse.ui.IEditorPart;
-import org.eclipse.ui.IEditorReference;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.dialogs.ElementListSelectionDialog;
-import org.eclipse.ui.dialogs.ElementTreeSelectionDialog;
-import org.eclipse.ui.dialogs.ISelectionStatusValidator;
-import org.eclipse.ui.model.WorkbenchContentProvider;
-import org.eclipse.ui.model.WorkbenchLabelProvider;
-import org.eclipse.ui.views.navigator.ResourceComparator;
-import org.eclipse.wst.xsl.core.internal.util.XMLContentType;
-
-/**
- * A block that shows a text box with buttons for browsing workspace or the
- * filesystem in order to populate the text box with a file path.
- *
- * @author Doug Satchwell
- * @since 1.0
- */
-public abstract class ResourceSelectionBlock extends
- AbstractLaunchConfigurationTab {
- protected static final int ERROR_DIRECTORY_NOT_SPECIFIED = 1;
- protected static final int ERROR_DIRECTORY_DOES_NOT_EXIST = 2;
- protected static final int GROUP_NAME = 3;
- protected static final int USE_DEFAULT_RADIO = 4;
- protected static final int USE_OTHER_RADIO = 5;
- protected static final int DIRECTORY_DIALOG_MESSAGE = 6;
- protected static final int WORKSPACE_DIALOG_MESSAGE = 7;
- protected static final int VARIABLES_BUTTON = 8;
- protected static final int FILE_SYSTEM_BUTTON = 9;
- protected static final int WORKSPACE_BUTTON = 10;
- protected static final int WORKSPACE_DIALOG_TITLE = 11;
- protected static final int OPENFILES_BUTTON = 12;
- protected static final int OPENFILES_DIALOG_TITLE = 13;
-
- protected Button fWorkspaceButton;
- protected Button fFileSystemButton;
- protected Button fVariablesButton;
- protected Button fOpenFilesButton;
- protected Button useDefaultCheckButton;
- protected Text resourceText;
- protected WidgetListener widgetListener = new WidgetListener();
- private ILaunchConfiguration fLaunchConfiguration;
- protected final boolean showDefault;
- private final int resourceType;
- private final boolean mustExist;
- protected boolean required;
- protected String defaultResource;
- protected String resource;
- protected String fileLabel = Messages.ResourceSelectionBlock_0;
-
- private final ISelectionStatusValidator validator = new ISelectionStatusValidator() {
- public IStatus validate(Object[] selection) {
- if (selection.length == 0) {
- return new Status(IStatus.ERROR, XSLDebugUIPlugin.PLUGIN_ID, 0,
- "", null); //$NON-NLS-1$
- }
- for (int i = 0; i < selection.length; i++) {
- if (resourceType == IResource.FOLDER
- && !(selection[i] instanceof IContainer))
- return new Status(IStatus.ERROR,
- XSLDebugUIPlugin.PLUGIN_ID, 0, "", null); //$NON-NLS-1$
- else if (resourceType == IResource.FILE
- && !(selection[i] instanceof IFile))
- return new Status(IStatus.ERROR,
- XSLDebugUIPlugin.PLUGIN_ID, 0, "", null); //$NON-NLS-1$
- }
- return new Status(IStatus.OK, XSLDebugUIPlugin.PLUGIN_ID, 0,
- "", null); //$NON-NLS-1$
- }
- };
-
- class WidgetListener extends SelectionAdapter implements ModifyListener {
- public void modifyText(ModifyEvent e) {
- textModified();
- updateLaunchConfigurationDialog();
- }
-
- @Override
- public void widgetSelected(SelectionEvent e) {
- Object source = e.getSource();
- if (source == fWorkspaceButton) {
- handleWorkspaceResourceBrowseButtonSelected();
- } else if (source == fFileSystemButton) {
- handleExternalResourceBrowseButtonSelected();
- } else if (source == fVariablesButton) {
- handleResourceVariablesButtonSelected();
- } else if (source == useDefaultCheckButton) {
- updateResourceText(useDefaultCheckButton.getSelection());
- } else if (source == fOpenFilesButton) {
- handleOpenFilesResourceBrowseButtonSelected();
- }
- }
- }
-
- /**
- * Same as <code>new ResourceSelectionBlock(true)</code>
- */
- public ResourceSelectionBlock() {
- this(true);
- }
-
- /**
- * Same as
- * <code>new ResourceSelectionBlock(IResource.FOLDER,showDefault)</code>
- *
- * @param showDefault
- * true if this should have a 'Show Default' button
- */
- public ResourceSelectionBlock(boolean showDefault) {
- this(IResource.FOLDER, showDefault);
- }
-
- /**
- * Same as
- * <code>new ResourceSelectionBlock(resourceType,showDefault,true)</code>
- *
- * @param resourceType
- * the type of resource to select - IResource.FOLDER or
- * IResource.FILE
- * @param showDefault
- * true if this should have a 'Show Default' button
- */
- public ResourceSelectionBlock(int resourceType, boolean showDefault) {
- this(resourceType, showDefault, true);
- }
-
- /**
- * Same as
- * <code>new ResourceSelectionBlock(resourceType,showDefault,required,true)</code>
- *
- * @param resourceType
- * the type of resource to select - IResource.FOLDER or
- * IResource.FILE
- * @param showDefault
- * true if this should have a 'Show Default' button
- * @param required
- * true if a blank text box is invalid
- */
- public ResourceSelectionBlock(int resourceType, boolean showDefault,
- boolean required) {
- this(resourceType, showDefault, required, true);
- }
-
- /**
- * Create a new instance of this.
- *
- * @param resourceType
- * the type of resource to select - IResource.FOLDER or
- * IResource.FILE
- * @param showDefault
- * true if this should have a 'Show Default' button
- * @param required
- * true if a blank text box is invalid
- * @param mustExist
- * true of the selected resource must already exist
- */
- public ResourceSelectionBlock(int resourceType, boolean showDefault,
- boolean required, boolean mustExist) {
- super();
- this.showDefault = showDefault;
- this.resourceType = resourceType;
- this.required = required;
- this.mustExist = mustExist;
- }
-
- public void createControl(Composite parent) {
- Composite group = createContainer(parent);
- setControl(group);
- createContents(group);
- }
-
- protected Composite createContainer(Composite parent) {
- Group group = new Group(parent, SWT.NONE);
- group.setText(getMessage(GROUP_NAME));
- // TODO PlatformUI.getWorkbench().getHelpSystem().setHelp...
- GridLayout groupLayout = new GridLayout();
- groupLayout.numColumns = 2;
- groupLayout.makeColumnsEqualWidth = false;
- group.setLayout(groupLayout);
- GridData gd = new GridData(GridData.FILL_HORIZONTAL);
- group.setLayoutData(gd);
- group.setFont(parent.getFont());
- return group;
- }
-
- protected void createContents(Composite parent) {
- createCheckboxAndText(parent);
- createButtons(parent);
- }
-
- protected void createCheckboxAndText(Composite parent) {
- if (showDefault) {
- useDefaultCheckButton = createCheckButton(parent,
- getMessage(USE_DEFAULT_RADIO));
- GridData gd = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING);
- gd.horizontalSpan = 2;
- useDefaultCheckButton.setLayoutData(gd);
- useDefaultCheckButton.addSelectionListener(widgetListener);
- }
-
- Composite specificFileComp = new Composite(parent, SWT.NONE);
- GridLayout layout = new GridLayout(2, false);
- layout.marginWidth = 0;
- if (showDefault)
- layout.marginLeft = 20;
- else
- layout.marginLeft = 0;
- layout.marginHeight = 0;
- specificFileComp.setLayout(layout);
- GridData gd = new GridData(GridData.FILL_HORIZONTAL);
- gd.horizontalSpan = 2;
- specificFileComp.setLayoutData(gd);
-
- if (showDefault) {
- Label label = new Label(specificFileComp, SWT.NONE);
- label.setText(fileLabel);
- }
-
- resourceText = new Text(specificFileComp, SWT.SINGLE | SWT.BORDER);
- gd = new GridData(GridData.FILL_HORIZONTAL);
- gd.horizontalSpan = showDefault ? 1 : 2;
- resourceText.setLayoutData(gd);
- resourceText.setFont(parent.getFont());
- resourceText.addModifyListener(widgetListener);
- }
-
- protected void createButtons(Composite parent) {
- // filler
- new Label(parent, SWT.NONE);
-
- Composite buttonComp = new Composite(parent, SWT.NONE);
- GridLayout layout = new GridLayout(4, false);
- layout.marginHeight = 0;
- layout.marginWidth = 0;
- buttonComp.setLayout(layout);
- GridData gd = new GridData(GridData.HORIZONTAL_ALIGN_END);
- gd.horizontalSpan = 1;
- buttonComp.setLayoutData(gd);
- buttonComp.setFont(parent.getFont());
-
- fWorkspaceButton = createPushButton(buttonComp,
- getMessage(WORKSPACE_BUTTON), null);
- fWorkspaceButton.addSelectionListener(widgetListener);
-
- fFileSystemButton = createPushButton(buttonComp,
- getMessage(FILE_SYSTEM_BUTTON), null);
- fFileSystemButton.addSelectionListener(widgetListener);
-
- fVariablesButton = createPushButton(buttonComp,
- getMessage(VARIABLES_BUTTON), null);
- fVariablesButton.addSelectionListener(widgetListener);
-
- fOpenFilesButton = createPushButton(buttonComp,
- getMessage(OPENFILES_BUTTON), null);
- fOpenFilesButton.addSelectionListener(widgetListener);
- }
-
- protected void updateResourceText(boolean useDefault) {
- if (useDefault) {
- resourceText
- .setText(defaultResource == null ? "" : defaultResource); //$NON-NLS-1$
- } else {
- resourceText.setText(resource == null ? "" : resource); //$NON-NLS-1$
- }
- resourceText.setEnabled(!useDefault);
- fFileSystemButton.setEnabled(!useDefault);
- fVariablesButton.setEnabled(!useDefault);
- fWorkspaceButton.setEnabled(!useDefault);
- }
-
- @Override
- public void dispose() {
- }
-
- protected void handleExternalResourceBrowseButtonSelected() {
- String currentWorkingDir = getText();
- String selected = null;
- if (resourceType == IResource.FOLDER) {
- DirectoryDialog dialog = new DirectoryDialog(getShell());
- dialog.setMessage(getMessage(DIRECTORY_DIALOG_MESSAGE));
- if (!currentWorkingDir.trim().equals("")) //$NON-NLS-1$
- {
- File path = new File(currentWorkingDir);
- if (path.exists()) {
- dialog.setFilterPath(currentWorkingDir);
- }
- }
- selected = dialog.open();
- } else {
- FileDialog dialog = new FileDialog(getShell());
- if (!currentWorkingDir.trim().equals("")) //$NON-NLS-1$
- {
- File path = new File(currentWorkingDir);
- if (path.exists()) {
- dialog.setFilterPath(currentWorkingDir);
- }
- }
- String[] fileExtensions = getFileExtensions();
- if (fileExtensions != null) {
- String[] filterExtensions = new String[fileExtensions.length];
- for (int i = 0; i < fileExtensions.length; i++) {
- String ext = fileExtensions[i];
- filterExtensions[i] = "*." + ext; //$NON-NLS-1$
- }
- dialog.setFilterExtensions(filterExtensions);
- }
- selected = dialog.open();
- }
- if (selected != null) {
- resourceText.setText(selected);
- }
- }
-
- protected String[] getFileExtensions() {
- return new XMLContentType().getFileExtensions();
- }
-
- protected void handleOpenFilesResourceBrowseButtonSelected() {
- String path = openFileListResourceDialog();
- if (path != null)
- setText("${workspace_loc:" + path + "}"); //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- /**
- * Opens a dialog displaying a list of all XML files in the editor and
- * allows the user to select one of them.
- *
- * @return The path to the selected XML file or null if none was chosen.
- */
- protected String openFileListResourceDialog() {
- IEditorReference[] editors = PlatformUI.getWorkbench()
- .getActiveWorkbenchWindow().getActivePage()
- .getEditorReferences();
-
- String[] paths = filterOpenEditorsByFileExtension(editors);
-
- ElementListSelectionDialog dialog = new ElementListSelectionDialog(
- getShell(), new LabelProvider());
-
- dialog.setTitle(getMessage(OPENFILES_DIALOG_TITLE));
- dialog.setElements(paths);
- dialog.open();
-
- return (String) dialog.getFirstResult();
-
- }
-
- private String[] filterOpenEditorsByFileExtension(IEditorReference[] editors) {
- String[] paths = new String[editors.length];
- String[] fileExts = getFileExtensions();
-
- for (int i = 0; i < editors.length; i++) {
- IEditorReference currentEditor = editors[i];
- IEditorPart editorPart = currentEditor.getEditor(true);
- IFile file = (IFile) editorPart.getEditorInput().getAdapter(
- IFile.class);
- if (file != null) {
- IPath path = file.getFullPath();
- paths[i] = getEditorPath(path, fileExts);
- }
- }
- return paths;
- }
-
- private String getEditorPath(IPath filePath, String[] fileExts) {
- if (fileExts == null || fileExts.length == 0) {
- return filePath.toOSString();
- }
-
- String path = null;
- for (int cnt = 0; cnt < fileExts.length; cnt++) {
- if (filePath.getFileExtension().equals(fileExts[cnt])) {
- path = filePath.toOSString();
- break;
- }
- }
- return path;
- }
-
- protected void handleWorkspaceResourceBrowseButtonSelected() {
- IPath path = openWorkspaceResourceDialog();
- if (path != null)
- setText("${workspace_loc:" + path.toString() + "}"); //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- protected IPath openWorkspaceResourceDialog() {
- IResource currentResource = getResource();
- ElementTreeSelectionDialog dialog = new ElementTreeSelectionDialog(
- getShell(), new WorkbenchLabelProvider(),
- new WorkbenchContentProvider());
- dialog.setTitle(getMessage(WORKSPACE_DIALOG_TITLE));
- dialog.setMessage(getMessage(WORKSPACE_DIALOG_MESSAGE));
- dialog.setValidator(validator);
- dialog.addFilter(new ViewerFilter() {
- @Override
- public boolean select(Viewer viewer, Object parentElement,
- Object element) {
- if (element instanceof IContainer)
- return true;
- if (resourceType != IResource.FILE)
- return false;
- IFile file = (IFile) element;
- String[] extensions = getFileExtensions();
- if (extensions == null)
- return true;
- String fileExt = file.getFileExtension();
- if (fileExt != null) {
- for (String ext : extensions) {
- if (fileExt.equalsIgnoreCase(ext))
- return true;
- }
- }
- return false;
- }
- });
- ViewerFilter filter = getResourceFilter();
- if (filter != null)
- dialog.addFilter(filter);
- dialog.setInput(ResourcesPlugin.getWorkspace().getRoot());
- dialog.setInitialSelection(currentResource);
- dialog.setComparator(new ResourceComparator(ResourceComparator.NAME));
- dialog.setAllowMultiple(false);
-
- if (dialog.open() == Window.OK) {
- Object[] elements = dialog.getResult();
- if (elements.length > 0)
- return ((IResource) elements[0]).getFullPath();
- }
- return null;
- }
-
- protected ViewerFilter getResourceFilter() {
- return null;
- }
-
- /**
- * Returns the selected workspace container,or <code>null</code>
- */
- protected IResource getResource() {
- String path = getText();
- if (path.length() > 0) {
- IResource res = null;
- IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
- try {
- if (path.startsWith("${workspace_loc:")) //$NON-NLS-1$
- {
- IStringVariableManager manager = VariablesPlugin
- .getDefault().getStringVariableManager();
- path = manager.performStringSubstitution(path, false);
- }
- File f = new File(path);
- if (resourceType == IResource.FOLDER) {
- IContainer[] containers = root
- .findContainersForLocationURI(f.toURI());
- if (containers.length > 0) {
- res = containers[0];
- }
- } else if (resourceType == IResource.FILE) {
- IFile[] files = root.findFilesForLocationURI(f.toURI());
- if (files.length > 0) {
- res = files[0];
- }
- }
- return res;
- } catch (CoreException e) {
- XSLDebugUIPlugin.log(e);
- }
- }
- return null;
- }
-
- protected void handleResourceVariablesButtonSelected() {
- StringVariableSelectionDialog dialog = new StringVariableSelectionDialog(
- getShell());
- dialog.open();
- String variableText = dialog.getVariableExpression();
- if (variableText != null) {
- resourceText.insert(variableText);
- }
- }
-
- @Override
- public boolean isValid(ILaunchConfiguration config) {
- setErrorMessage(null);
- setMessage(null);
- // if variables are present, we cannot resolve the directory
- String workingDirPath = getText();
- if (workingDirPath.indexOf("${") >= 0) //$NON-NLS-1$
- {
- IStringVariableManager manager = VariablesPlugin.getDefault()
- .getStringVariableManager();
- try {
- manager.validateStringVariables(workingDirPath);
- if (mustExist) {
- String path = manager
- .performStringSubstitution(workingDirPath);
- validateResource(path);
- }
- } catch (CoreException e) {
- setErrorMessage(e.getMessage());
- return false;
- }
- } else if (mustExist && workingDirPath.length() > 0) {
- return validateResource(workingDirPath);
- } else if (required && workingDirPath.length() == 0) {
- setErrorMessage(getMessage(ERROR_DIRECTORY_NOT_SPECIFIED));
- }
- return true;
- }
-
- protected boolean validateResource(String workingDirPath) {
- if (resourceType == IResource.FOLDER) {
- IContainer container = (IContainer) getResource();
- if (container == null) {
- File dir = new File(workingDirPath);
- if (dir.isDirectory()) {
- return true;
- }
- } else
- return true;
- } else if (resourceType == IResource.FILE) {
- File file = new File(workingDirPath);
- if (file.isFile()) {
- return true;
- }
- }
- setErrorMessage(getMessage(ERROR_DIRECTORY_DOES_NOT_EXIST));
- return false;
- }
-
- protected abstract String getMessage(int type);
-
- protected void textModified() {
- }
-
- protected String getText() {
- return resourceText.getText().trim();
- }
-
- protected void setText(String text) {
- resourceText.setText(text);
- }
-
- protected void setLaunchConfiguration(ILaunchConfiguration config) {
- fLaunchConfiguration = config;
- }
-
- protected ILaunchConfiguration getLaunchConfiguration() {
- return fLaunchConfiguration;
- }
-} \ No newline at end of file
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLDebugUIConstants.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLDebugUIConstants.java
deleted file mode 100644
index b3ae795..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLDebugUIConstants.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui;
-
-/**
- * Constants for the XSL Debug UI.
- *
- * @author Doug Satchwell
- * @since 1.0
- */
-public class XSLDebugUIConstants {
- private static final String PREFIX = XSLDebugUIPlugin.PLUGIN_ID + '.';
- /**
- * Constant used to store column setting preferences for the
- * <code>InstalledProcessorsBlock</code>
- */
- public static final String PROCESSOR_DETAILS_DIALOG = PREFIX
- + "PROCESSOR_DETAILS_DIALOG"; //$NON-NLS-1$
- /**
- * Constant used to store column setting preferences for the
- * <code>ParametersBlock</code>
- */
- public static final String MAIN_PARAMATERS_BLOCK = PREFIX
- + "MAIN_PARAMATERS_BLOCK"; //$NON-NLS-1$
- /**
- * Constant used to store column setting preferences for the
- * <code>TransformsBlock</code>
- */
- public static final String MAIN_TRANSFORMS_BLOCK = PREFIX
- + "MAIN_TRANSFORMS_BLOCK"; //$NON-NLS-1$
- /**
- * Constant used to store column setting preferences for the
- * <code>OutputBlock</code>
- */
- public static final String OUTPUT_BLOCK = PREFIX + "OUTPUT_BLOCK"; //$NON-NLS-1$
- /**
- * The id of the XSL editor
- */
- public static final String XSL_EDITOR_ID = "org.eclipse.wst.xsl.ui.XSLEditor"; //$NON-NLS-1$
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLDebugUILaunchListener.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLDebugUILaunchListener.java
deleted file mode 100644
index f360a59..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLDebugUILaunchListener.java
+++ /dev/null
@@ -1,140 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui;
-
-import java.io.File;
-
-import org.eclipse.core.commands.common.CommandException;
-import org.eclipse.core.filesystem.EFS;
-import org.eclipse.core.filesystem.IFileStore;
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.debug.core.DebugPlugin;
-import org.eclipse.debug.core.ILaunch;
-import org.eclipse.debug.core.ILaunchConfigurationType;
-import org.eclipse.debug.core.ILaunchesListener2;
-import org.eclipse.ui.IWorkbenchWindow;
-import org.eclipse.ui.PartInitException;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.handlers.IHandlerService;
-import org.eclipse.ui.ide.IDE;
-import org.eclipse.wst.xsl.launching.config.BaseLaunchHelper;
-
-/**
- * A listener to XSL launches. When an XSL launch is terminated, this performs
- * the UI parts of the XSL launching - such as open the editor on the output
- * file, and format it.
- *
- * @author Doug Satchwell
- * @since 1.0
- */
-public class XSLDebugUILaunchListener implements ILaunchesListener2 {
- public static final String XSL_LAUNCH_CONFIGURATION_TYPE = "org.eclipse.wst.xsl.launching.launchConfigurationType"; //$NON-NLS-1$
-
- /**
- * Starts the launch listening
- */
- public void start() {
- DebugPlugin.getDefault().getLaunchManager().addLaunchListener(this);
- }
-
- /**
- * Stops the launch listening
- */
- public void stop() {
- DebugPlugin.getDefault().getLaunchManager().removeLaunchListener(this);
- }
-
- public void launchesTerminated(ILaunch[] launches) {
- for (ILaunch launch : launches) {
- ILaunchConfigurationType configType = null;
- try {
- configType = launch.getLaunchConfiguration().getType();
- } catch (CoreException e) {
- // do nothing
- }
- if (configType != null
- && XSL_LAUNCH_CONFIGURATION_TYPE.equals(configType
- .getIdentifier())) {
- try {
- BaseLaunchHelper launchHelper = new BaseLaunchHelper(launch
- .getLaunchConfiguration());
- File file = launchHelper.getTarget();
- IFile ifile = ResourcesPlugin.getWorkspace().getRoot()
- .getFileForLocation(
- new Path(file.getAbsolutePath()));
- if (ifile != null) {// refresh this workspace file..
- try {
- ifile.refreshLocal(IResource.DEPTH_ZERO,
- new NullProgressMonitor());
- } catch (CoreException e) {
- XSLDebugUIPlugin.log(e);
- }
- }
- openFileIfRequired(launchHelper);
- } catch (CoreException e) {
- XSLDebugUIPlugin.log(e);
- }
- }
- }
- }
-
- public void launchesAdded(ILaunch[] launches) {
- // do nothing
- }
-
- public void launchesChanged(ILaunch[] launches) {
- // do nothing
- }
-
- public void launchesRemoved(ILaunch[] launches) {
- // do nothing
- }
-
- private void openFileIfRequired(final BaseLaunchHelper launchHelper) {
- if (launchHelper.getOpenFileOnCompletion()) {
- PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() {
- public void run() {
- try {
- // Open editor on new file.
- IWorkbenchWindow dw = PlatformUI.getWorkbench()
- .getActiveWorkbenchWindow();
- File file = launchHelper.getTarget();
- Path path = new Path(file.getAbsolutePath());
- IFileStore filestore = EFS.getLocalFileSystem()
- .getStore(path);
- IDE
- .openEditorOnFileStore(dw.getActivePage(),
- filestore);
-
- if (launchHelper.getFormatFileOnCompletion()) {
- // format the editor contents
- IHandlerService p = (IHandlerService) PlatformUI
- .getWorkbench().getService(
- IHandlerService.class);
- p
- .executeCommand(
- "org.eclipse.wst.sse.ui.format.document", null); //$NON-NLS-1$
- }
- } catch (PartInitException e) {
- XSLDebugUIPlugin.log(e);
- } catch (CommandException e) {
- XSLDebugUIPlugin.log(e);
- }
- }
- });
- }
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLDebugUIPlugin.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLDebugUIPlugin.java
deleted file mode 100644
index b6ef366..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLDebugUIPlugin.java
+++ /dev/null
@@ -1,182 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.jface.preference.IPreferenceNode;
-import org.eclipse.jface.preference.IPreferencePage;
-import org.eclipse.jface.preference.PreferenceDialog;
-import org.eclipse.jface.preference.PreferenceManager;
-import org.eclipse.jface.preference.PreferenceNode;
-import org.eclipse.jface.resource.ImageDescriptor;
-import org.eclipse.jface.window.Window;
-import org.eclipse.swt.custom.BusyIndicator;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.ui.IWorkbenchPage;
-import org.eclipse.ui.IWorkbenchWindow;
-import org.eclipse.ui.plugin.AbstractUIPlugin;
-import org.osgi.framework.BundleContext;
-
-/**
- * The XSL Debug UI plugin.
- *
- * @author Doug Satchwell
- * @since 1.0
- */
-public class XSLDebugUIPlugin extends AbstractUIPlugin {
- /**
- * The id of this.
- */
- public static final String PLUGIN_ID = "org.eclipse.wst.xsl.debug.ui"; //$NON-NLS-1$
-
- // The shared instance
- private static XSLDebugUIPlugin plugin;
-
- private XSLDebugUILaunchListener launchListener = new XSLDebugUILaunchListener();
-
- /**
- * Create a new instance of this.
- */
- public XSLDebugUIPlugin() {
- plugin = this;
- }
-
- @Override
- public void start(BundleContext context) throws Exception {
- super.start(context);
- launchListener.start();
- }
-
- @Override
- public void stop(BundleContext context) throws Exception {
- plugin = null;
- launchListener.stop();
- super.stop(context);
- }
-
- /**
- * Get the singleton instance of this.
- *
- * @return the singleton
- */
- public static XSLDebugUIPlugin getDefault() {
- return plugin;
- }
-
- /**
- * Get an ImageDescriptor from a path in this bundle.
- *
- * @param path
- * the path to the image
- * @return the ImageDescriptor
- */
- public static ImageDescriptor getImageDescriptor(String path) {
- return imageDescriptorFromPlugin(PLUGIN_ID, path);
- }
-
- /**
- * Convenience method for opening a given preference page.
- *
- * @param id
- * the id of the preference page
- * @param page
- * the preference page to show
- */
- public static void showPreferencePage(String id, IPreferencePage page) {
- final IPreferenceNode targetNode = new PreferenceNode(id, page);
-
- PreferenceManager manager = new PreferenceManager();
- manager.addToRoot(targetNode);
- final PreferenceDialog dialog = new PreferenceDialog(XSLDebugUIPlugin
- .getActiveWorkbenchShell(), manager);
- final boolean[] result = new boolean[] { false };
- BusyIndicator.showWhile(XSLDebugUIPlugin.getStandardDisplay(),
- new Runnable() {
- public void run() {
- dialog.create();
- dialog.setMessage(targetNode.getLabelText());
- result[0] = (dialog.open() == Window.OK);
- }
- });
- }
-
- /**
- * Get the current Display if possible, or else the default Display.
- *
- * @return the current or default Display
- */
- public static Display getStandardDisplay() {
- Display display;
- display = Display.getCurrent();
- if (display == null)
- display = Display.getDefault();
- return display;
- }
-
- /**
- * Get the active workbench window from the workbench.
- *
- * @return the active workbench window
- */
- public static IWorkbenchWindow getActiveWorkbenchWindow() {
- return getDefault().getWorkbench().getActiveWorkbenchWindow();
- }
-
- /**
- * Get the shell of the active workbench window.
- *
- * @return the active workbench shell
- */
- public static Shell getActiveWorkbenchShell() {
- IWorkbenchWindow window = getActiveWorkbenchWindow();
- if (window != null) {
- return window.getShell();
- }
- return null;
- }
-
- /**
- * Get the active page of the active workbench window.
- *
- * @return the active page
- */
- public static IWorkbenchPage getActivePage() {
- IWorkbenchWindow w = getActiveWorkbenchWindow();
- if (w != null) {
- return w.getActivePage();
- }
- return null;
- }
-
- /**
- * Log the given exception by creating a new Status.
- *
- * @param e
- * the exception to log
- */
- public static void log(Exception e) {
- getDefault().getLog().log(
- new Status(IStatus.ERROR, PLUGIN_ID, 0, "", e)); //$NON-NLS-1$
- }
-
- /**
- * Log the given core exception.
- *
- * @param e
- * the exception to log
- */
- public static void log(CoreException e) {
- getDefault().getLog().log(e.getStatus());
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLLaunchConfigurationTab.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLLaunchConfigurationTab.java
deleted file mode 100644
index 6ff469d..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLLaunchConfigurationTab.java
+++ /dev/null
@@ -1,127 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui;
-
-import org.eclipse.debug.core.ILaunchConfiguration;
-import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
-import org.eclipse.debug.ui.AbstractLaunchConfigurationTab;
-import org.eclipse.debug.ui.ILaunchConfigurationDialog;
-import org.eclipse.debug.ui.ILaunchConfigurationTab;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Composite;
-
-/**
- * The base class for XSL launch configuration tabs which allows a number of
- * 'blocks' to be added. Each block must itself fully implement
- * <code>ILaunchConfigurationTab</code>.
- *
- * @author Doug Satchwell
- * @since 1.0
- */
-public abstract class XSLLaunchConfigurationTab extends
- AbstractLaunchConfigurationTab {
- private ILaunchConfigurationTab[] blocks;
-
- protected void setBlocks(ILaunchConfigurationTab[] blocks) {
- this.blocks = blocks;
- }
-
- public void createControl(Composite parent) {
- Composite comp = new Composite(parent, SWT.NONE);
- comp.setFont(parent.getFont());
- // TODO PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(),
- GridLayout layout = new GridLayout();
- layout.numColumns = 1;
- comp.setLayout(layout);
- setControl(comp);
- }
-
- public void setDefaults(ILaunchConfigurationWorkingCopy configuration) {
- for (ILaunchConfigurationTab element : blocks)
- element.setDefaults(configuration);
- }
-
- public void initializeFrom(ILaunchConfiguration configuration) {
- for (ILaunchConfigurationTab element : blocks)
- element.initializeFrom(configuration);
- }
-
- public void performApply(ILaunchConfigurationWorkingCopy configuration) {
- for (ILaunchConfigurationTab element : blocks)
- element.performApply(configuration);
- }
-
- @Override
- public void setLaunchConfigurationDialog(ILaunchConfigurationDialog dialog) {
- super.setLaunchConfigurationDialog(dialog);
- for (ILaunchConfigurationTab element : blocks)
- element.setLaunchConfigurationDialog(dialog);
- }
-
- @Override
- public void dispose() {
- for (ILaunchConfigurationTab element : blocks)
- element.dispose();
- }
-
- @Override
- public void activated(ILaunchConfigurationWorkingCopy workingCopy) {
- // don't call initializeFrom
- // super.activated(workingCopy);
- for (ILaunchConfigurationTab element : blocks)
- element.activated(workingCopy);
- }
-
- // @Override
- // protected boolean isDirty()
- // {
- // for (ILaunchConfigurationTab element : blocks)
- // if (((XSLLaunchConfigurationTab)element).isDirty())
- // return true;
- // return super.isDirty();
- // }
-
- @Override
- public boolean isValid(ILaunchConfiguration configuration) {
- boolean valid = true;
- for (ILaunchConfigurationTab element : blocks)
- valid &= element.isValid(configuration);
- return valid;
- }
-
- @Override
- public String getErrorMessage() {
- String m = super.getErrorMessage();
- if (m == null) {
- for (ILaunchConfigurationTab element : blocks) {
- m = element.getErrorMessage();
- if (m != null)
- break;
- }
- }
- return m;
- }
-
- @Override
- public String getMessage() {
- String m = super.getMessage();
- if (m == null) {
- for (ILaunchConfigurationTab element : blocks) {
- m = element.getMessage();
- if (m != null)
- break;
- }
- }
- return m;
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLLaunchShortcut.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLLaunchShortcut.java
deleted file mode 100644
index 3c0dd50..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLLaunchShortcut.java
+++ /dev/null
@@ -1,332 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui;
-
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.variables.VariablesPlugin;
-import org.eclipse.debug.core.DebugPlugin;
-import org.eclipse.debug.core.ILaunchConfiguration;
-import org.eclipse.debug.core.ILaunchConfigurationType;
-import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
-import org.eclipse.debug.core.ILaunchManager;
-import org.eclipse.debug.ui.DebugUITools;
-import org.eclipse.debug.ui.IDebugModelPresentation;
-import org.eclipse.debug.ui.ILaunchShortcut;
-import org.eclipse.jface.dialogs.MessageDialog;
-import org.eclipse.jface.dialogs.StatusDialog;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.window.Window;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.ui.IEditorInput;
-import org.eclipse.ui.IEditorPart;
-import org.eclipse.ui.dialogs.ElementListSelectionDialog;
-import org.eclipse.wst.xsl.core.XSLCore;
-import org.eclipse.wst.xsl.internal.debug.ui.tabs.main.InputFileBlock;
-import org.eclipse.wst.xsl.launching.XSLLaunchConfigurationConstants;
-import org.eclipse.wst.xsl.launching.config.BaseLaunchHelper;
-import org.eclipse.wst.xsl.launching.config.LaunchPipeline;
-import org.eclipse.wst.xsl.launching.config.LaunchTransform;
-
-/**
- * <table border=1>
- * <th>
- * <tr>
- * <td>XML Files</td>
- * <td>XSL Files</td>
- * <td>Action</td>
- * </tr>
- * </th>
- * <tbody>
- * <tr>
- * <td>1</td>
- * <td>0</td>
- * <td>Launch assuming embedded stylesheet instruction</td>
- * </tr>
- * <tr>
- * <td>0</td>
- * <td>&gt;=1</td>
- * <td>Open dialog - prompt for input file</td>
- * </tr>
- * <tr>
- * <td>1</td>
- * <td>&gt;=1</td>
- * <td>Launch</td>
- * </tr>
- * </tbody>
- * </table>
- *
- * <p>
- * The launch shortcut should not appear in the menu for any other combination
- * of files
- * </p>
- * <p>
- * In all cases, a check must be performed to find any existing launch
- * configuration that uses the selected files.
- * </p>
- *
- * @author Doug
- * @since 1.0
- */
-public class XSLLaunchShortcut implements ILaunchShortcut {
- private IFile xmlFile;
- private IPath xmlFilePath;
- private IFile[] xslFiles;
-
- public void launch(ISelection selection, String mode) {
- if (selection instanceof IStructuredSelection) {
- IStructuredSelection ssel = (IStructuredSelection) selection;
- searchAndLaunch(ssel.toArray(), mode);
- }
- }
-
- public void launch(IEditorPart editor, String mode) {
- IEditorInput input = editor.getEditorInput();
- if (input != null) {
- IFile file = (IFile) input.getAdapter(IFile.class);
- if (file != null)
- searchAndLaunch(new Object[] { file }, mode);
- }
- }
-
- private void searchAndLaunch(Object[] objects, String mode) {
- if (fillFiles(objects)) {
- // ensure we have an input file
- if (xmlFile == null)
- promptForInput();
- if (xmlFile != null || xmlFilePath != null)
- launch(mode);
- }
- }
-
- private void promptForInput() {
- // prompt for input xml file
- StatusDialog dialog = new StatusDialog(getShell()) {
- private InputFileBlock inputFileBlock = new InputFileBlock(null);
-
- @Override
- protected Control createDialogArea(Composite parent) {
- Composite comp = (Composite) super.createDialogArea(parent);
- comp.setFont(parent.getFont());
- GridLayout layout = new GridLayout(1, false);
- comp.setLayout(layout);
-
- Label label = new Label(comp, SWT.NONE);
- label.setFont(comp.getFont());
- GridData gd = new GridData();
- gd.horizontalIndent = 5;
- gd.verticalIndent = 5;
- gd.widthHint = 380;
- label.setLayoutData(gd);
- label.setText(Messages.XSLLaunchShortcut_0);
-
- inputFileBlock.createControl(comp);
- return comp;
- }
-
- @Override
- protected void okPressed() {
- IResource res = inputFileBlock.getResource();
- if (res == null)
- xmlFilePath = new Path(inputFileBlock.getText());
- else if (ResourcesPlugin.getWorkspace().getRoot().exists(
- res.getFullPath())
- && res.getType() == IResource.FILE)
- xmlFile = (IFile) res;
- super.okPressed();
- }
-
- };
- dialog.setHelpAvailable(false);
- dialog.setStatusLineAboveButtons(true);
- dialog.setTitle(Messages.XSLLaunchShortcut_1);
- dialog.open();
- }
-
- private boolean fillFiles(Object[] selections) {
- xmlFile = null;
- xmlFilePath = null;
- List<IFile> xslFileList = new ArrayList<IFile>();
- for (Object object : selections) {
- IResource resource = (IResource) object;
- if (resource.getType() == IResource.FILE) {
- IFile file = (IFile) resource;
- if (XSLCore.isXMLFile(file)) {
- if (XSLCore.isXSLFile(file))
- xslFileList.add(file);
- else if (xmlFile == null)
- xmlFile = file;
- else
- return false; // no action if we have more than than 1
- // xml file
- }
- }
- }
- xslFiles = xslFileList.toArray(new IFile[0]);
- return true;
- }
-
- private void launch(String mode) {
- if (xmlFile != null)
- xmlFilePath = xmlFile.getLocation();
- ILaunchConfiguration config = null;
- try {
- config = findOrCreateLaunchConfiguration();
- if (config != null)
- DebugUITools.launch(config, mode);
- } catch (CoreException e) {
- XSLDebugUIPlugin.log(e);
- }
- }
-
- protected ILaunchManager getLaunchManager() {
- return DebugPlugin.getDefault().getLaunchManager();
- }
-
- protected ILaunchConfigurationType getConfigurationType() {
- return getLaunchManager().getLaunchConfigurationType(
- XSLLaunchConfigurationConstants.ID_LAUNCH_CONFIG_TYPE);
- }
-
- private ILaunchConfiguration findOrCreateLaunchConfiguration()
- throws CoreException {
- ILaunchConfiguration[] configs = getLaunchManager()
- .getLaunchConfigurations(getConfigurationType());
- List<ILaunchConfiguration> candidateConfigs = new ArrayList<ILaunchConfiguration>(
- configs.length);
- for (ILaunchConfiguration config : configs) {
- String inputFile = config.getAttribute(
- XSLLaunchConfigurationConstants.ATTR_INPUT_FILE,
- (String) null);
- try {
- inputFile = VariablesPlugin.getDefault()
- .getStringVariableManager().performStringSubstitution(
- inputFile);
- } catch (CoreException e) {
- // just ignore this one
- continue;
- }
- Path path = new Path(inputFile);
- // the source xml file must be the same
- if (path.equals(xmlFilePath)) {
- BaseLaunchHelper lh = new BaseLaunchHelper(config);
- // all the selected stylesheets must be in the pipeline
- boolean found = false;
- for (IFile stylesheet : xslFiles) {
- found = false;
- for (Iterator<LaunchTransform> iter = lh.getPipeline()
- .getTransformDefs().iterator(); iter.hasNext();) {
- LaunchTransform lt = iter.next();
- if (lt.getLocation().equals(stylesheet.getLocation())) {
- found = true;
- break;
- }
- }
- if (!found)
- break;
- }
- if (found)
- candidateConfigs.add(config);
- }
- }
-
- ILaunchConfiguration config = null;
- int candidateCount = candidateConfigs.size();
- if (candidateCount == 1)
- config = candidateConfigs.get(0);
- else if (candidateCount > 1)
- config = chooseConfiguration(candidateConfigs);
- else
- config = createConfiguration();
-
- return config;
- }
-
- private ILaunchConfiguration chooseConfiguration(
- List<ILaunchConfiguration> configList) {
- IDebugModelPresentation labelProvider = DebugUITools
- .newDebugModelPresentation();
- ElementListSelectionDialog dialog = new ElementListSelectionDialog(
- getShell(), labelProvider);
- dialog.setElements(configList.toArray());
- dialog.setTitle(Messages.XSLLaunchShortcut_2);
- dialog.setMessage(Messages.XSLSelectExisting);
- dialog.setMultipleSelection(false);
- int result = dialog.open();
- labelProvider.dispose();
- if (result == Window.OK) {
- return (ILaunchConfiguration) dialog.getFirstResult();
- }
- return null;
- }
-
- private ILaunchConfiguration createConfiguration() {
- ILaunchConfiguration config = null;
- try {
- ILaunchConfigurationType configType = getConfigurationType();
- ILaunchConfigurationWorkingCopy wc = configType.newInstance(null,
- getLaunchManager()
- .generateUniqueLaunchConfigurationNameFrom(
- xmlFilePath.lastSegment()));
- if (xmlFile != null)
- wc
- .setAttribute(
- XSLLaunchConfigurationConstants.ATTR_INPUT_FILE,
- "${workspace_loc:" + xmlFile.getFullPath().toPortableString() + "}"); //$NON-NLS-1$ //$NON-NLS-2$
- else
- wc.setAttribute(
- XSLLaunchConfigurationConstants.ATTR_INPUT_FILE,
- xmlFilePath.toPortableString());
-
- wc
- .setAttribute(
- XSLLaunchConfigurationConstants.ATTR_USE_DEFAULT_OUTPUT_FILE,
- true);
- wc.setAttribute(XSLLaunchConfigurationConstants.ATTR_OPEN_FILE,
- true);
-
- LaunchPipeline pipeline = new LaunchPipeline();
- for (IFile element : xslFiles) {
- pipeline.addTransformDef(new LaunchTransform(element
- .getFullPath().toPortableString(),
- LaunchTransform.RESOURCE_TYPE));
- }
- wc.setAttribute(XSLLaunchConfigurationConstants.ATTR_PIPELINE,
- pipeline.toXML());
- if (xmlFile != null)
- wc.setMappedResources(new IResource[] { xmlFile.getProject() });
- config = wc.doSave();
- } catch (CoreException exception) {
- MessageDialog.openError(getShell(), Messages.XSLLaunchShortcut_6,
- exception.getStatus().getMessage());
- }
- return config;
- }
-
- protected Shell getShell() {
- return XSLDebugUIPlugin.getActiveWorkbenchShell();
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLTTabGroup.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLTTabGroup.java
deleted file mode 100644
index 2098467..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLTTabGroup.java
+++ /dev/null
@@ -1,58 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui;
-
-import org.eclipse.debug.ui.AbstractLaunchConfigurationTabGroup;
-import org.eclipse.debug.ui.CommonTab;
-import org.eclipse.debug.ui.ILaunchConfigurationDialog;
-import org.eclipse.debug.ui.ILaunchConfigurationTab;
-import org.eclipse.debug.ui.sourcelookup.SourceLookupTab;
-import org.eclipse.wst.xsl.internal.debug.ui.tabs.main.XSLMainTab;
-import org.eclipse.wst.xsl.internal.debug.ui.tabs.output.OutputTab;
-
-/**
- * The tab group for the XSL tabs.
- *
- * @author Doug Satchwell
- * @since 1.0
- */
-public class XSLTTabGroup extends AbstractLaunchConfigurationTabGroup {
- /**
- * Create a new instance of this.
- */
- public XSLTTabGroup() {
- }
-
- public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
- XSLMainTab main = new XSLMainTab();
- ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] { main,
- new OutputTab(main) };
- tabs = addTabs(tabs, new ILaunchConfigurationTab[] {
- new SourceLookupTab(), new CommonTab() });
-
- setTabs(tabs);
- }
-
- private ILaunchConfigurationTab[] addTabs(ILaunchConfigurationTab[] tabs1,
- ILaunchConfigurationTab[] tabs2) {
- ILaunchConfigurationTab[] newTabs = new ILaunchConfigurationTab[tabs1.length
- + tabs2.length];
- System.arraycopy(tabs1, 0, newTabs, 0, tabs1.length);
- System.arraycopy(tabs2, 0, newTabs, tabs1.length, tabs2.length);
- return newTabs;
- }
-
- @Override
- public void setTabs(ILaunchConfigurationTab[] tabs) {
- // TODO Auto-generated method stub
- super.setTabs(tabs);
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/AbstractParameterAction.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/AbstractParameterAction.java
deleted file mode 100644
index 30b2d54..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/AbstractParameterAction.java
+++ /dev/null
@@ -1,112 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.actions;
-
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.swt.events.SelectionAdapter;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.ui.actions.SelectionListenerAction;
-import org.eclipse.wst.xsl.internal.debug.ui.tabs.main.ParameterViewer;
-
-/**
- * A convenient base class for add/remove parameter actions.
- *
- * @author Doug Satchwell
- */
-public abstract class AbstractParameterAction extends SelectionListenerAction {
- private ParameterViewer viewer;
- private Button button;
- private Shell shell;
-
- protected AbstractParameterAction(String text, ParameterViewer viewer) {
- super(text);
- setViewer(viewer);
- }
-
- /**
- * Set the viewer.
- *
- * @param viewer
- * the parametere viewer
- */
- public void setViewer(ParameterViewer viewer) {
- if (this.viewer != null) {
- this.viewer.getViewer().removeSelectionChangedListener(this);
- }
- this.viewer = viewer;
- if (viewer != null) {
- viewer.getViewer().addSelectionChangedListener(this);
- update();
- }
- }
-
- protected ParameterViewer getViewer() {
- return viewer;
- }
-
- /**
- * Set the button associated with the action.
- *
- * @param button
- * the button
- */
- public void setButton(Button button) {
- this.button = button;
- button.addSelectionListener(new SelectionAdapter() {
- @Override
- public void widgetSelected(SelectionEvent evt) {
- run();
- }
- });
- button.setEnabled(isEnabled());
- }
-
- @Override
- public void setEnabled(boolean enabled) {
- super.setEnabled(enabled);
- if (button != null) {
- button.setEnabled(enabled);
- }
- }
-
- protected void update() {
- selectionChanged((IStructuredSelection) getViewer().getViewer()
- .getSelection());
- }
-
- protected Shell getShell() {
- if (shell == null) {
- shell = getViewer().getShell();
- }
- return shell;
- }
-
- /**
- * Set the shell that will be used for opening a dialog.
- *
- * @param shell
- * the shell to use
- */
- public void setShell(Shell shell) {
- this.shell = shell;
- }
-
- @Override
- protected boolean updateSelection(IStructuredSelection selection) {
- return getViewer().updateSelection(getActionType(), selection);
- }
-
- protected int getActionType() {
- return AbstractStylesheetAction.DEFAULT;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/AbstractStylesheetAction.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/AbstractStylesheetAction.java
deleted file mode 100644
index 5117722..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/AbstractStylesheetAction.java
+++ /dev/null
@@ -1,182 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.actions;
-
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.swt.events.SelectionAdapter;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.ui.actions.SelectionListenerAction;
-import org.eclipse.wst.xsl.internal.debug.ui.tabs.main.StylesheetViewer;
-import org.eclipse.wst.xsl.launching.config.LaunchPipeline;
-import org.eclipse.wst.xsl.launching.config.LaunchTransform;
-
-/**
- * A convenient base class for actions associated with the stylesheet viewer.
- *
- * @author Doug Satchwell
- */
-public abstract class AbstractStylesheetAction extends SelectionListenerAction {
- /**
- * The default action type.
- */
- public static final int DEFAULT = 0;
- /**
- * The action type for add actions.
- */
- public static final int ADD = 1;
- /**
- * The action type for remove actions.
- */
- public static final int REMOVE = 2;
- /**
- * The action type for move actions.
- */
- public static final int MOVE = 3;
-
- private StylesheetViewer viewer;
- private Button button;
- private Shell shell;
-
- protected AbstractStylesheetAction(String text, StylesheetViewer viewer) {
- super(text);
- setViewer(viewer);
- }
-
- /**
- * Add an array of LaunchTransform's to the viewer.
- *
- * @param res
- * launch transforms to add
- */
- public void addTransforms(LaunchTransform[] res) {
- viewer.addTransforms(res);
- }
-
- /**
- * Set the viewer associated with this action.
- *
- * @param viewer
- * the viewer
- */
- public void setViewer(StylesheetViewer viewer) {
- if (this.viewer != null) {
- this.viewer.getViewer().removeSelectionChangedListener(this);
- }
- this.viewer = viewer;
- if (viewer != null) {
- viewer.getViewer().addSelectionChangedListener(this);
- update();
- }
- }
-
- protected StylesheetViewer getViewer() {
- return viewer;
- }
-
- /**
- * Set the button associated with this action.
- *
- * @param button
- * the button
- */
- public void setButton(Button button) {
- this.button = button;
- button.addSelectionListener(new SelectionAdapter() {
- @Override
- public void widgetSelected(SelectionEvent evt) {
- run();
- }
- });
- button.setEnabled(isEnabled());
- }
-
- @Override
- public void setEnabled(boolean enabled) {
- super.setEnabled(enabled);
- if (button != null) {
- button.setEnabled(enabled);
- }
- }
-
- protected void update() {
- selectionChanged((IStructuredSelection) getViewer().getViewer()
- .getSelection());
- }
-
- protected Shell getShell() {
- if (shell == null) {
- shell = getViewer().getShell();
- }
- return shell;
- }
-
- /**
- * Set the shell to be used for opening a dialog.
- *
- * @param shell
- * the shell to use
- */
- public void setShell(Shell shell) {
- this.shell = shell;
- }
-
- @Override
- protected boolean updateSelection(IStructuredSelection selection) {
- return getViewer().updateSelection(getActionType(), selection);
- }
-
- protected int getActionType() {
- return DEFAULT;
- }
-
- protected List<?> getOrderedSelection() {
- List<?> selection = ((IStructuredSelection) getViewer().getViewer()
- .getSelection()).toList();
- return selection;
- }
-
- protected List<LaunchTransform> getEntriesAsList() {
- // IStylesheetEntry[] entries = getViewer().getEntries();
- // List list = new ArrayList(entries.length);
- // for (int i = 0; i < entries.length; i++) {
- // list.add(entries[i]);
- // }
- LaunchPipeline lp = (LaunchPipeline) getViewer().getViewer().getInput();
- return lp.getTransformDefs();
- }
-
- protected void setEntries(List<?> list) {
- getViewer().setEntries(list.toArray(new LaunchTransform[list.size()]));
- // // update all selection listeners
- // getViewer().setSelection(getViewer().getSelection());
- }
-
- protected boolean isIndexSelected(IStructuredSelection selection, int index) {
- if (selection.isEmpty()) {
- return false;
- }
- Iterator<?> entries = selection.iterator();
- List<?> list = getEntriesAsList();
- while (entries.hasNext()) {
- Object next = entries.next();
- if (list.indexOf(next) == index) {
- return true;
- }
- }
- return false;
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/AddExternalFileAction.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/AddExternalFileAction.java
deleted file mode 100644
index 1b7aa95..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/AddExternalFileAction.java
+++ /dev/null
@@ -1,84 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- * David Carver (STAR) - bug 245772 - NLS Message refactoring
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.actions;
-
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.core.runtime.content.IContentType;
-import org.eclipse.core.runtime.content.IContentTypeManager;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.widgets.FileDialog;
-import org.eclipse.wst.xsl.internal.debug.ui.Messages;
-import org.eclipse.wst.xsl.internal.debug.ui.tabs.main.StylesheetViewer;
-import org.eclipse.wst.xsl.launching.config.LaunchTransform;
-import org.eclipse.wst.xsl.core.XSLCore;
-
-/**
- * An action that opens a dialog to allow the user to select a file from the
- * file system.
- *
- * @author Doug Satchwell
- */
-public class AddExternalFileAction extends OpenDialogAction {
- /**
- * Create a new instance of this.
- *
- * @param viewer
- * the stylesheet viewer
- * @param dialogSettingsPrefix
- * a prefix to use for saving dialog preferences
- */
- public AddExternalFileAction(StylesheetViewer viewer,
- String dialogSettingsPrefix) {
- super(Messages.AddExternalFileAction_Text, viewer, dialogSettingsPrefix);
- }
-
- @Override
- public void run() {
- String lastUsedPath = getDialogSetting(LAST_PATH_SETTING);
- if (lastUsedPath == null) {
- lastUsedPath = ""; //$NON-NLS-1$
- }
- FileDialog dialog = new FileDialog(getShell(), SWT.MULTI);
- dialog.setText(Messages.AddExternalFileAction_Selection_3);
- dialog.setFilterPath(lastUsedPath);
- IContentTypeManager contentTypeManager = Platform
- .getContentTypeManager();
- IContentType contentType = contentTypeManager
- .getContentType(XSLCore.XSL_CONTENT_TYPE);
- String[] xslContentTypes = contentType
- .getFileSpecs(IContentType.FILE_EXTENSION_SPEC);
-
- // add *. to front
- for (int i = 0; i < xslContentTypes.length; i++) {
- String string = xslContentTypes[i];
- xslContentTypes[i] = "*." + string; //$NON-NLS-1$
- }
-
- dialog.setFilterExtensions(xslContentTypes);
- String res = dialog.open();
- if (res == null) {
- return;
- }
-
- IPath filterPath = new Path(dialog.getFilterPath());
- LaunchTransform[] lts = new LaunchTransform[1];
- IPath path = new Path(res).makeAbsolute();
- lts[0] = new LaunchTransform(path.toPortableString(),
- LaunchTransform.EXTERNAL_TYPE);
-
- setDialogSetting(LAST_PATH_SETTING, filterPath.toOSString());
-
- addTransforms(lts);
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/AddParameterAction.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/AddParameterAction.java
deleted file mode 100644
index 7f7b563..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/AddParameterAction.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- * David Carver (STAR) - bug 245772 - NLS Message refactoring
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.actions;
-
-import org.eclipse.jface.window.Window;
-import org.eclipse.wst.xsl.internal.debug.ui.Messages;
-import org.eclipse.wst.xsl.internal.debug.ui.tabs.main.ParameterViewer;
-import org.eclipse.wst.xsl.launching.config.LaunchAttribute;
-
-/**
- * An action that opens a dialog to allow the user to add a parameter to a
- * transform.
- *
- * @author Doug Satchwell
- */
-public class AddParameterAction extends AbstractParameterAction {
- /**
- * Create a new instance of this.
- *
- * @param viewer
- * teh viewer
- */
- public AddParameterAction(ParameterViewer viewer) {
- super(Messages.AddParameterAction, viewer);
- }
-
- @Override
- public void run() {
- MultipleInputDialog dialog = new MultipleInputDialog(getShell(),
- Messages.AddParameterAction_Dialog);
- String namelabel = Messages.AddParameterAction_Dialog_Name;
- dialog.addTextField(namelabel, null, false);
- String variableslabel = Messages.AddParameterAction_Dialog_Value;
- dialog.addVariablesField(variableslabel, null, false);
- dialog.open();
-
- if (dialog.getReturnCode() == Window.OK) {
- String name = dialog.getStringValue(namelabel);
- String value = dialog.getStringValue(variableslabel);
- LaunchAttribute parameter = null;
- if (value != null && value.indexOf("${") > -1) //$NON-NLS-1$
- parameter = new LaunchAttribute(name, null, value);
- else
- parameter = new LaunchAttribute(name, null, value);
- getViewer().addParameter(parameter);
- }
- }
-
- @Override
- public void setEnabled(boolean enabled) {
- // do nothing
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/AddWorkspaceFileAction.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/AddWorkspaceFileAction.java
deleted file mode 100644
index 04259f1..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/AddWorkspaceFileAction.java
+++ /dev/null
@@ -1,115 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- * David Carver - bug 245772 - NLS Message refactoring
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.actions;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.jface.viewers.ILabelProvider;
-import org.eclipse.jface.viewers.ITreeContentProvider;
-import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.jface.viewers.ViewerFilter;
-import org.eclipse.jface.window.Window;
-import org.eclipse.ui.dialogs.ElementTreeSelectionDialog;
-import org.eclipse.ui.dialogs.ISelectionStatusValidator;
-import org.eclipse.ui.model.WorkbenchContentProvider;
-import org.eclipse.ui.model.WorkbenchLabelProvider;
-import org.eclipse.ui.views.navigator.ResourceComparator;
-import org.eclipse.wst.xsl.core.XSLCore;
-import org.eclipse.wst.xsl.internal.debug.ui.Messages;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIPlugin;
-import org.eclipse.wst.xsl.internal.debug.ui.tabs.main.StylesheetViewer;
-import org.eclipse.wst.xsl.launching.config.LaunchTransform;
-
-/**
- * An action that opens a dialog to allow the user to select a file in the
- * workspace.
- *
- * @author Doug Satchwell
- */
-public class AddWorkspaceFileAction extends AbstractStylesheetAction {
- private final ISelectionStatusValidator validator = new ISelectionStatusValidator() {
- public IStatus validate(Object[] selection) {
- if (selection.length == 0) {
- return new Status(IStatus.ERROR, XSLDebugUIPlugin.PLUGIN_ID, 0,
- "", null); //$NON-NLS-1$
- }
- for (int i = 0; i < selection.length; i++) {
- if (!(selection[i] instanceof IFile)) {
- return new Status(IStatus.ERROR,
- XSLDebugUIPlugin.PLUGIN_ID, 0, "", null); //$NON-NLS-1$
- }
- }
- return new Status(IStatus.OK, XSLDebugUIPlugin.PLUGIN_ID, 0,
- "", null); //$NON-NLS-1$
- }
- };
-
- /**
- * Create a new instance of this.
- *
- * @param viewer
- * the viewer
- */
- public AddWorkspaceFileAction(StylesheetViewer viewer) {
- super(Messages.AddWorkspaceFileAction_Text, viewer);
- }
-
- @Override
- public void run() {
-
- // ViewerFilter filter= new StylesheetFilter(getSelectedJars());
-
- ILabelProvider lp = new WorkbenchLabelProvider();
- ITreeContentProvider cp = new WorkbenchContentProvider();
-
- ElementTreeSelectionDialog dialog = new ElementTreeSelectionDialog(
- getShell(), lp, cp);
- dialog.setValidator(validator);
- dialog.setTitle(Messages.AddWorkspaceFileAction_DialogTitle);
- dialog.setMessage(Messages.AddWorkspaceFileAction_DialogMessage);
- dialog.addFilter(new ViewerFilter() {
- @Override
- public boolean select(Viewer viewer, Object parentElement,
- Object element) {
- if (!(element instanceof IResource))
- return false;
- IResource resource = (IResource) element;
- if (resource.getType() == IResource.FILE) {
- if (!XSLCore.isXSLFile((IFile) resource))
- return false;
- }
- return true;
- }
- });
- dialog.setInput(ResourcesPlugin.getWorkspace().getRoot());
- dialog.setComparator(new ResourceComparator(ResourceComparator.NAME));
-
- if (dialog.open() == Window.OK) {
- Object[] elements = dialog.getResult();
- LaunchTransform[] res = new LaunchTransform[elements.length];
- for (int i = 0; i < res.length; i++) {
- IResource elem = (IResource) elements[i];
- res[i] = new LaunchTransform(elem.getFullPath()
- .toPortableString(), LaunchTransform.RESOURCE_TYPE);
- }
- addTransforms(res);
- }
- }
-
- @Override
- protected int getActionType() {
- return ADD;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/ControlAccessibleListener.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/ControlAccessibleListener.java
deleted file mode 100644
index 33e6fcd..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/ControlAccessibleListener.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.actions;
-
-import org.eclipse.swt.accessibility.AccessibleAdapter;
-import org.eclipse.swt.accessibility.AccessibleEvent;
-import org.eclipse.swt.widgets.Control;
-
-/**
- * Used to help with accessibility.
- *
- * @author Doug Satchwell
- */
-public class ControlAccessibleListener extends AccessibleAdapter {
- private final String controlName;
-
- private ControlAccessibleListener(String name) {
- controlName = name;
- }
-
- @Override
- public void getName(AccessibleEvent e) {
- e.result = controlName;
- }
-
- /**
- * Helper for adding an instance of this to the given control.
- *
- * @param comp
- * the control to add this to
- * @param name
- * the name for this
- */
- public static void addListener(Control comp, String name) {
- // strip mnemonic
- String[] strs = name.split("&"); //$NON-NLS-1$
- StringBuffer stripped = new StringBuffer();
- for (String element : strs) {
- stripped.append(element);
- }
- comp.getAccessible().addAccessibleListener(
- new ControlAccessibleListener(stripped.toString()));
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/MoveDownAction.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/MoveDownAction.java
deleted file mode 100644
index f6a0c13..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/MoveDownAction.java
+++ /dev/null
@@ -1,72 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.actions;
-
-import java.util.List;
-
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.wst.xsl.internal.debug.ui.Messages;
-import org.eclipse.wst.xsl.internal.debug.ui.tabs.main.StylesheetViewer;
-import org.eclipse.wst.xsl.launching.config.LaunchTransform;
-
-/**
- * The action for moving a stylesheet further down in the transformation
- * pipeline.
- *
- * @author Doug Satchwell
- */
-public class MoveDownAction extends AbstractStylesheetAction {
- /**
- * Create a new instance of this.
- *
- * @param viewer
- */
- public MoveDownAction(StylesheetViewer viewer) {
- super(Messages.MoveDownAction_Text, viewer);
- }
-
- @Override
- public void run() {
- List<?> targets = getOrderedSelection();
- if (targets.isEmpty()) {
- return;
- }
- List<LaunchTransform> list = getEntriesAsList();
- int bottom = list.size() - 1;
- int index = 0;
- for (int i = targets.size() - 1; i >= 0; i--) {
- Object target = targets.get(i);
- index = list.indexOf(target);
- if (index < bottom) {
- bottom = index + 1;
- Object temp = list.get(bottom);
- list.set(bottom, (LaunchTransform) target);
- list.set(index, (LaunchTransform) temp);
- }
- bottom = index;
- }
- setEntries(list);
- }
-
- @Override
- protected boolean updateSelection(IStructuredSelection selection) {
- if (selection.isEmpty()) {
- return false;
- }
- return getViewer().updateSelection(getActionType(), selection)
- && !isIndexSelected(selection, getEntriesAsList().size() - 1);
- }
-
- @Override
- protected int getActionType() {
- return MOVE;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/MoveUpAction.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/MoveUpAction.java
deleted file mode 100644
index c613daa..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/MoveUpAction.java
+++ /dev/null
@@ -1,74 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- * David Carver (STAR) - bug 245772 - NLS Message refactoring
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.actions;
-
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.wst.xsl.internal.debug.ui.Messages;
-import org.eclipse.wst.xsl.internal.debug.ui.tabs.main.StylesheetViewer;
-import org.eclipse.wst.xsl.launching.config.LaunchTransform;
-
-/**
- * The action for moving a stylesheet further up in the transformation pipeline.
- *
- * @author Doug Satchwell
- */
-public class MoveUpAction extends AbstractStylesheetAction {
- /**
- * Create a new instance of this.
- *
- * @param viewer
- */
- public MoveUpAction(StylesheetViewer viewer) {
- super(Messages.MoveUpAction_Text, viewer);
- }
-
- @Override
- public void run() {
- List<?> targets = getOrderedSelection();
- if (targets.isEmpty()) {
- return;
- }
- int top = 0;
- int index = 0;
- List<LaunchTransform> list = getEntriesAsList();
- Iterator<?> entries = targets.iterator();
- while (entries.hasNext()) {
- Object target = entries.next();
- index = list.indexOf(target);
- if (index > top) {
- top = index - 1;
- Object temp = list.get(top);
- list.set(top, (LaunchTransform) target);
- list.set(index, (LaunchTransform) temp);
- }
- top = index;
- }
- setEntries(list);
- }
-
- @Override
- protected boolean updateSelection(IStructuredSelection selection) {
- if (selection.isEmpty()) {
- return false;
- }
- return getViewer().updateSelection(getActionType(), selection)
- && !isIndexSelected(selection, 0);
- }
-
- @Override
- protected int getActionType() {
- return MOVE;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/MultipleInputDialog.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/MultipleInputDialog.java
deleted file mode 100644
index 95d4709..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/MultipleInputDialog.java
+++ /dev/null
@@ -1,418 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- * David Carver (STAR) - bug 245772 - NLS Message refactor
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.actions;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-
-import org.eclipse.debug.ui.StringVariableSelectionDialog;
-import org.eclipse.jface.dialogs.Dialog;
-import org.eclipse.jface.dialogs.IDialogConstants;
-import org.eclipse.jface.dialogs.IDialogSettings;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.ModifyEvent;
-import org.eclipse.swt.events.ModifyListener;
-import org.eclipse.swt.events.SelectionAdapter;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Combo;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.Scrollable;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.swt.widgets.Text;
-import org.eclipse.wst.xsl.internal.debug.ui.Messages;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIPlugin;
-
-/**
- * A dialog with handy methods for adding simple controls to itself.
- *
- * @author Doug Satchwell
- */
-public class MultipleInputDialog extends Dialog {
- protected static final String FIELD_NAME = "FIELD_NAME"; //$NON-NLS-1$
- protected static final int TEXT = 100;
- protected static final int BROWSE = 101;
- protected static final int VARIABLE = 102;
- protected static final int COMBO = 103;
-
- protected Composite panel;
-
- protected List<FieldSummary> fieldList = new ArrayList<FieldSummary>();
- protected List<Scrollable> controlList = new ArrayList<Scrollable>();
- protected List<Validator> validators = new ArrayList<Validator>();
- @SuppressWarnings("unchecked")
- protected Map<Object, Comparable> valueMap = new HashMap<Object, Comparable>();
-
- private final String title;
-
- /**
- * Create a new instance of this.
- *
- * @param shell
- * the shell to open the dialog on
- * @param title
- * the title for the dialog
- */
- public MultipleInputDialog(final Shell shell, final String title) {
- super(shell);
- this.title = title;
- setShellStyle(getShellStyle() | SWT.RESIZE);
- }
-
- @Override
- protected void configureShell(Shell shell) {
- super.configureShell(shell);
- if (title != null) {
- shell.setText(title);
- }
-
- }
-
- @Override
- protected Control createButtonBar(Composite parent) {
- Control bar = super.createButtonBar(parent);
- validateFields();
- return bar;
- }
-
- @Override
- protected Control createDialogArea(Composite parent) {
- Composite container = (Composite) super.createDialogArea(parent);
- // ((GridData) parent.getLayoutData()).heightHint = 400;
- // ((GridData) parent.getLayoutData()).widthHint = 400;
-
- container.setLayout(new GridLayout(2, false));
-
- GridData gd = new GridData(GridData.FILL_BOTH);
- // gd.heightHint = 200;
- container.setLayoutData(gd);
-
- panel = new Composite(container, SWT.NONE);
- GridLayout layout = new GridLayout(2, false);
- panel.setLayout(layout);
- panel.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
-
- for (Iterator<FieldSummary> i = fieldList.iterator(); i.hasNext();) {
- FieldSummary field = i.next();
- switch (field.type) {
- case TEXT:
- createTextField(field.name, field.initialValue,
- field.allowsEmpty);
- break;
- // case BROWSE:
- // createBrowseField(field.name, field.initialValue,
- // field.allowsEmpty);
- // break;
- case VARIABLE:
- createVariablesField(field.name, field.initialValue,
- field.allowsEmpty);
- break;
- case COMBO:
- createComboField(field.name, field.initialIndex, field.items);
- break;
- }
- }
-
- fieldList = null; // allow it to be gc'd
- Dialog.applyDialogFont(container);
-
- return container;
- }
-
- /**
- * Add a label, text box and button for browsing the for a file.
- *
- * @param labelText
- * the label
- * @param initialValue
- * the initial value
- * @param allowsEmpty
- * true if the text box can be empty
- */
- public void addBrowseField(String labelText, String initialValue,
- boolean allowsEmpty) {
- fieldList.add(new FieldSummary(BROWSE, labelText, initialValue,
- allowsEmpty));
- }
-
- /**
- * Add a label and a text box.
- *
- * @param labelText
- * the label
- * @param initialValue
- * the initial value
- * @param allowsEmpty
- * true if the text box can be empty
- */
- public void addTextField(String labelText, String initialValue,
- boolean allowsEmpty) {
- fieldList.add(new FieldSummary(TEXT, labelText, initialValue,
- allowsEmpty));
- }
-
- /**
- * Add a label, a text box and a button for selecting variables.
- *
- * @param labelText
- * the label
- * @param initialValue
- * the initial value
- * @param allowsEmpty
- * true if the text box can be empty
- */
- public void addVariablesField(String labelText, String initialValue,
- boolean allowsEmpty) {
- fieldList.add(new FieldSummary(VARIABLE, labelText, initialValue,
- allowsEmpty));
- }
-
- /**
- * Add a label and a combo.
- *
- * @param labelText
- * the label
- * @param initialIndex
- * the initial selection index
- * @param items
- * the array of items for the combo
- */
- public void addComboField(String labelText, int initialIndex, String[] items) {
- fieldList.add(new FieldSummary(COMBO, labelText, items, initialIndex));
- }
-
- protected void createTextField(String labelText, String initialValue,
- boolean allowEmpty) {
- Label label = new Label(panel, SWT.NONE);
- label.setText(labelText);
- label.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING));
-
- final Text text = new Text(panel, SWT.SINGLE | SWT.BORDER);
- text.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
- text.setData(FIELD_NAME, labelText);
-
- // make sure rows are the same height on both panels.
- label.setSize(label.getSize().x, text.getSize().y);
-
- if (initialValue != null) {
- text.setText(initialValue);
- }
-
- if (!allowEmpty) {
- validators.add(new Validator() {
- @Override
- public boolean validate() {
- return !text.getText().equals(""); //$NON-NLS-1$
- }
- });
- text.addModifyListener(new ModifyListener() {
- public void modifyText(ModifyEvent e) {
- validateFields();
- }
- });
- }
-
- controlList.add(text);
- }
-
- protected void createVariablesField(String labelText, String initialValue,
- boolean allowEmpty) {
- Label label = new Label(panel, SWT.NONE);
- label.setText(labelText);
- label.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING));
-
- Composite comp = new Composite(panel, SWT.NONE);
- GridLayout layout = new GridLayout();
- layout.marginHeight = 0;
- layout.marginWidth = 0;
- comp.setLayout(layout);
- comp.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
-
- final Text text = new Text(comp, SWT.SINGLE | SWT.BORDER);
- GridData data = new GridData(GridData.FILL_HORIZONTAL);
- data.widthHint = 200;
- text.setLayoutData(data);
- text.setData(FIELD_NAME, labelText);
-
- // make sure rows are the same height on both panels.
- label.setSize(label.getSize().x, text.getSize().y);
-
- if (initialValue != null) {
- text.setText(initialValue);
- }
-
- if (!allowEmpty) {
- validators.add(new Validator() {
- @Override
- public boolean validate() {
- return !text.getText().equals(""); //$NON-NLS-1$
- }
- });
-
- text.addModifyListener(new ModifyListener() {
- public void modifyText(ModifyEvent e) {
- validateFields();
- }
- });
- }
-
- Button button = createButton(comp, IDialogConstants.IGNORE_ID,
- Messages.VariablesFieldButton_Text, false);
- button.addSelectionListener(new SelectionAdapter() {
- @Override
- public void widgetSelected(SelectionEvent e) {
- StringVariableSelectionDialog dialog = new StringVariableSelectionDialog(
- getShell());
- int code = dialog.open();
- if (code == IDialogConstants.OK_ID) {
- String variable = dialog.getVariableExpression();
- if (variable != null) {
- text.insert(variable);
- }
- }
- }
- });
-
- controlList.add(text);
-
- }
-
- protected void createComboField(String labelText, int initialValue,
- String[] items) {
- Label label = new Label(panel, SWT.NONE);
- label.setText(labelText);
- label.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING));
-
- Composite comp = new Composite(panel, SWT.NONE);
- GridLayout layout = new GridLayout();
- layout.marginHeight = 0;
- layout.marginWidth = 0;
- comp.setLayout(layout);
- comp.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
-
- final Combo combo = new Combo(comp, SWT.SINGLE | SWT.BORDER
- | SWT.READ_ONLY);
- // GridData data = new GridData(GridData.FILL_HORIZONTAL);
- // data.widthHint = 200;
- // combo.setLayoutData(data);
-
- combo.setData(FIELD_NAME, labelText);
-
- // make sure rows are the same height on both panels.
- label.setSize(label.getSize().x, combo.getSize().y);
-
- combo.setItems(items);
- combo.select(initialValue);
-
- controlList.add(combo);
- }
-
- @Override
- protected void okPressed() {
- for (Iterator<Scrollable> i = controlList.iterator(); i.hasNext();) {
- Control control = i.next();
- if (control instanceof Text) {
- valueMap.put(control.getData(FIELD_NAME), ((Text) control)
- .getText());
- } else if (control instanceof Combo) {
- Combo combo = (Combo) control;
- valueMap.put(control.getData(FIELD_NAME), Integer.valueOf(combo
- .getSelectionIndex()));
- }
- }
- controlList = null;
- super.okPressed();
- }
-
- @Override
- public int open() {
- applyDialogFont(panel);
- return super.open();
- }
-
- protected Object getValue(String key) {
- return valueMap.get(key);
- }
-
- protected String getStringValue(String key) {
- return (String) getValue(key);
- }
-
- protected int getIntValue(String key) {
- return ((Integer) getValue(key)).intValue();
- }
-
- protected void validateFields() {
- for (Iterator<Validator> i = validators.iterator(); i.hasNext();) {
- Validator validator = i.next();
- if (!validator.validate()) {
- getButton(IDialogConstants.OK_ID).setEnabled(false);
- return;
- }
- }
- getButton(IDialogConstants.OK_ID).setEnabled(true);
- }
-
- private String getDialogSettingsSectionName() {
- return XSLDebugUIPlugin.PLUGIN_ID + ".MULTIPLE_INPUT_DIALOG"; //$NON-NLS-1$
- }
-
- @Override
- protected IDialogSettings getDialogBoundsSettings() {
- IDialogSettings settings = XSLDebugUIPlugin.getDefault()
- .getDialogSettings();
- IDialogSettings section = settings
- .getSection(getDialogSettingsSectionName());
- if (section == null) {
- section = settings.addNewSection(getDialogSettingsSectionName());
- }
- return section;
- }
-
- protected static class FieldSummary {
- int initialIndex;
- int type;
- String name;
- String initialValue;
- boolean allowsEmpty;
- String[] items;
-
- public FieldSummary(int type, String name, String initialValue,
- boolean allowsEmpty) {
- this.type = type;
- this.name = name;
- this.initialValue = initialValue;
- this.allowsEmpty = allowsEmpty;
- }
-
- public FieldSummary(int type, String name, String[] items,
- int initialIndex) {
- this.type = type;
- this.name = name;
- this.items = items;
- }
- }
-
- protected class Validator {
- boolean validate() {
- return true;
- }
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/OpenDialogAction.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/OpenDialogAction.java
deleted file mode 100644
index 09baf4f..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/OpenDialogAction.java
+++ /dev/null
@@ -1,66 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.actions;
-
-import org.eclipse.jface.dialogs.IDialogSettings;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIPlugin;
-import org.eclipse.wst.xsl.internal.debug.ui.tabs.main.StylesheetViewer;
-
-/**
- * An action that opens a dialog.
- *
- * @author Doug Satchwell
- */
-public class OpenDialogAction extends AbstractStylesheetAction {
- protected static final String LAST_PATH_SETTING = "LAST_PATH_SETTING"; //$NON-NLS-1$
- private String fPrefix = null;
-
- /**
- * Create a new instance of this
- *
- * @param label
- * the dialog title
- * @param viewer
- * a viewer that this dialog is associated with
- * @param dialogSettingsPrefix
- * the prefix to use for saving dialog preferences
- */
- public OpenDialogAction(String label, StylesheetViewer viewer,
- String dialogSettingsPrefix) {
- super(label, viewer);
- fPrefix = dialogSettingsPrefix;
- }
-
- protected String getDialogSettingsPrefix() {
- return fPrefix;
- }
-
- protected String getDialogSetting(String settingName) {
- return getDialogSettings().get(
- getDialogSettingsPrefix() + "." + settingName); //$NON-NLS-1$
- }
-
- protected void setDialogSetting(String settingName, String value) {
- getDialogSettings().put(
- getDialogSettingsPrefix() + "." + settingName, value); //$NON-NLS-1$
- }
-
- protected IDialogSettings getDialogSettings() {
- IDialogSettings settings = XSLDebugUIPlugin.getDefault()
- .getDialogSettings();
- return settings;
- }
-
- @Override
- protected int getActionType() {
- return ADD;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/RemoveAction.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/RemoveAction.java
deleted file mode 100644
index 3f0d05f..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/RemoveAction.java
+++ /dev/null
@@ -1,57 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- * David Carver (STAR) - bug 245772 - NLS Message refactoring
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.actions;
-
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.wst.xsl.internal.debug.ui.Messages;
-import org.eclipse.wst.xsl.internal.debug.ui.tabs.main.StylesheetViewer;
-import org.eclipse.wst.xsl.launching.config.LaunchTransform;
-
-/**
- * An action that removes a selection from a viewer.
- *
- * @author Doug Satchwell
- */
-public class RemoveAction extends AbstractStylesheetAction {
- /**
- * Create a new instance of this.
- *
- * @param viewer
- * the viewer that will have its selection removed
- */
- public RemoveAction(StylesheetViewer viewer) {
- super(Messages.RemoveAction_Text, viewer);
- }
-
- @SuppressWarnings("unchecked")
- @Override
- public void run() {
- IStructuredSelection selection = (IStructuredSelection) getViewer()
- .getViewer().getSelection();
- getViewer().removeEntries(
- (LaunchTransform[]) selection.toList().toArray(
- new LaunchTransform[0]));
- }
-
- @Override
- protected boolean updateSelection(IStructuredSelection selection) {
- if (selection.isEmpty()) {
- return false;
- }
- return getViewer().updateSelection(getActionType(), selection);
- }
-
- @Override
- protected int getActionType() {
- return MOVE;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/RemoveParameterAction.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/RemoveParameterAction.java
deleted file mode 100644
index 9595161..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/RemoveParameterAction.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- * David Carver (STAR) - bug 245772 - NLS Message refactoring
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.actions;
-
-import java.util.Iterator;
-
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.wst.xsl.internal.debug.ui.Messages;
-import org.eclipse.wst.xsl.internal.debug.ui.tabs.main.ParameterViewer;
-import org.eclipse.wst.xsl.launching.config.LaunchAttribute;
-
-/**
- * An action that removes a selection from a viewer.
- *
- * @author Doug Satchwell
- */
-public class RemoveParameterAction extends AbstractParameterAction {
- /**
- * Create a new instance of this.
- *
- * @param viewer
- * the viewer that will have its selection removed
- */
- public RemoveParameterAction(ParameterViewer viewer) {
- super(Messages.RemoveParameterAction, viewer);
- }
-
- @Override
- public void run() {
- IStructuredSelection sel = getStructuredSelection();
- if (sel.size() > 0) {
- LaunchAttribute[] entries = new LaunchAttribute[sel.size()];
- int i = 0;
- for (Iterator<?> iter = sel.iterator(); iter.hasNext(); i++) {
- LaunchAttribute att = (LaunchAttribute) iter.next();
- entries[i] = att;
- }
- getViewer().removeEntries(entries);
- }
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/breakpoint/XSLBreakpointProvider.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/breakpoint/XSLBreakpointProvider.java
deleted file mode 100644
index c95a34a..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/breakpoint/XSLBreakpointProvider.java
+++ /dev/null
@@ -1,154 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- * David Carver (STAR) - bug 245772 - NLS Message refactoring
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.breakpoint;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IConfigurationElement;
-import org.eclipse.core.runtime.IExecutableExtension;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.debug.core.model.IBreakpoint;
-import org.eclipse.jface.text.BadLocationException;
-import org.eclipse.jface.text.IDocument;
-import org.eclipse.jface.text.IRegion;
-import org.eclipse.jface.text.ITypedRegion;
-import org.eclipse.ui.IEditorInput;
-import org.eclipse.ui.IStorageEditorInput;
-import org.eclipse.wst.sse.ui.internal.StructuredResourceMarkerAnnotationModel;
-import org.eclipse.wst.sse.ui.internal.provisional.extensions.ISourceEditingTextTools;
-import org.eclipse.wst.sse.ui.internal.provisional.extensions.breakpoint.IBreakpointProvider;
-import org.eclipse.wst.xsl.internal.debug.ui.Messages;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIPlugin;
-import org.eclipse.wst.xsl.launching.model.XSLLineBreakpoint;
-
-/**
- * An SSE <code>IBreakpointProvider</code> for XSL files.
- *
- * @author Doug Satchwell
- */
-public class XSLBreakpointProvider implements IBreakpointProvider,
- IExecutableExtension {
- public IStatus addBreakpoint(IDocument document, IEditorInput input,
- int editorLineNumber, int offset) throws CoreException {
- // check if there is a valid position to set breakpoint
- int pos = getValidPosition(document, editorLineNumber);
- IStatus status = null;
- if (pos >= 0) {
- IResource res = getResourceFromInput(input);
- if (res != null) {
- boolean add = true;
- if (add) {
- IBreakpoint point = new XSLLineBreakpoint(res,
- editorLineNumber, pos, pos);
- if (point == null) {
- status = new Status(IStatus.ERROR,
- XSLDebugUIPlugin.PLUGIN_ID, IStatus.ERROR,
- Messages.XSLBreakpointProvider_0, null);
- } else {
- // DebugPlugin.getDefault().getBreakpointManager().addBreakpoint(point);
- }
- }
- } else if (input instanceof IStorageEditorInput) {
- res = ResourcesPlugin.getWorkspace().getRoot();
- String id = input.getName();
- if (input instanceof IStorageEditorInput
- && ((IStorageEditorInput) input).getStorage() != null
- && ((IStorageEditorInput) input).getStorage()
- .getFullPath() != null) {
- id = ((IStorageEditorInput) input).getStorage()
- .getFullPath().toString();
- }
- Map<String, String> attributes = new HashMap<String, String>();
- attributes
- .put(
- StructuredResourceMarkerAnnotationModel.SECONDARY_ID_KEY,
- id);
- IBreakpoint point = new XSLLineBreakpoint(res,
- editorLineNumber, pos, pos);
- if (point == null) {
- status = new Status(IStatus.ERROR,
- XSLDebugUIPlugin.PLUGIN_ID, IStatus.ERROR,
- Messages.XSLBreakpointProvider_0, null);
- }
- }
- }
- if (status == null) {
- status = new Status(IStatus.OK, XSLDebugUIPlugin.PLUGIN_ID,
- IStatus.OK, "JSPUIMessages.OK", null); //$NON-NLS-1$
- }
- return status;
- }
-
- public IResource getResource(IEditorInput input) {
- return getResourceFromInput(input);
- }
-
- private IResource getResourceFromInput(IEditorInput input) {
- IResource resource = (IResource) input.getAdapter(IFile.class);
- if (resource == null) {
- resource = (IResource) input.getAdapter(IResource.class);
- }
- return resource;
- }
-
- private int getValidPosition(IDocument idoc, int editorLineNumber) {
- int result = -1;
- if (idoc != null) {
- int startOffset = 0;
- int endOffset = 0;
- try {
- IRegion line = idoc.getLineInformation(editorLineNumber - 1);
- startOffset = line.getOffset();
- endOffset = Math.max(line.getOffset(), line.getOffset()
- + line.getLength());
-
- String lineText = idoc
- .get(startOffset, endOffset - startOffset).trim();
-
- // blank lines or PI's cannot have breakpoints
- if (lineText.trim().equals("") || lineText.startsWith("<?")) //$NON-NLS-1$ //$NON-NLS-2$
- {
- result = -1;
- } else {
- // get all partitions for current line
- ITypedRegion[] partitions = null;
-
- partitions = idoc.computePartitioning(startOffset,
- endOffset - startOffset);
-
- for (int i = 0; i < partitions.length; ++i) {
- // String type = partitions[i].getType();
- result = partitions[i].getOffset();
- }
- }
- } catch (BadLocationException e) {
- result = -1;
- }
- }
- return result;
- }
-
- public void setInitializationData(IConfigurationElement config,
- String propertyName, Object data) throws CoreException {
- // not used
- }
-
- public void setSourceEditingTextTools(ISourceEditingTextTools tools) {
- // not used
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/messages.properties b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/messages.properties
deleted file mode 100644
index 815e6c8..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/messages.properties
+++ /dev/null
@@ -1,129 +0,0 @@
-ResourceSelectionBlock_0=File:
-XSLLaunchShortcut_0=Select an input file for the transformation
-XSLLaunchShortcut_1=Input File
-XSLLaunchShortcut_2=Select a Launch Configuration
-XSLLaunchShortcut_6=Error
-XSLSelectExisting=&Select existing configuration:
-#Action Messages
-RemoveAction_Text=Remove
-AddWorkspaceFileAction_Text=Add Files
-AddExternalFileAction_Text=Add External Files
-MoveDownAction_Text=Move Down
-MoveUpAction_Text=Move Up
-AddExternalFileAction_Selection_3=
-AddWorkspaceFileAction_DialogMessage=Choose Stylesheet
-AddWorkspaceFileAction_DialogTitle=
-AddParameterAction=Add Parameter
-RemoveParameterAction=Remove Parameter
-VariablesFieldButton_Text=Variables...
-AddParameterAction_Dialog=Add XSLT Parameter
-AddParameterAction_Dialog_Name=Name:
-AddParameterAction_Dialog_Type=Type:
-AddParameterAction_Dialog_Value=Value:
-#Breakpoint
-XSLBreakpointProvider_0=unsupported input type
-
-StylesheetEntryLabelProvider_Invalid_path=Invalid path
-XSLMainTab_TabName=Main
-
-TransformsBlock_0=TransformsBlock
-TransformsBlock_Name=Transformation Pipeline
-TransformsBlock_ParametersLabel=Parameters for stylesheet:
-TransformsBlock_StylesheetsLabel=Stylesheets:
-
-InputFileBlock_DIRECTORY_NOT_SPECIFIED=Input file not specified
-InputFileBlock_DIRECTORY_DOES_NOT_EXIST=Input file does not exist
-InputFileBlock_GROUP_NAME=XML Input File
-InputFileBlock_DEFAULT_RADIO=Use default
-InputFileBlock_OTHER_RADIO=Other
-InputFileBlock_DIALOG_MESSAGE=Select an external input file
-InputFileBlock_WORKSPACE_DIALOG_MESSAGE=Select an input file from the workspace
-InputFileBlock_VARIABLES_BUTTON=Variables...
-InputFileBlock_FILE_SYSTEM_BUTTON=File System...
-InputFileBlock_WORKSPACE_BUTTON=Workspace...
-InputFileBlock_OPENFILES_BUTTON=Open Files...
-InputFileBlock_OPENFILES_DIALOG=Select File
-InputFileBlock_Name=XML Input File
-InputFileBlock_Exception_occurred_reading_configuration=Exception occurred reading configuration
-InputFileBlock_WORKSPACE_DIALOG_TITLE=File Selection
-
-RemoveAction_Text=Remove
-AddWorkspaceFileAction_Text=Add Files
-AddExternalFileAction_Text=Add External Files
-MoveDownAction_Text=Move Down
-MoveUpAction_Text=Move Up
-AddExternalFileAction_Selection_3=
-AddWorkspaceFileAction_DialogMessage=Choose Stylesheet
-AddWorkspaceFileAction_DialogTitle=
-AddParameterAction=Add Parameter
-RemoveParameterAction=Remove Parameter
-VariablesFieldButton_Text=Variables...
-AddParameterAction_Dialog=Add XSLT Parameter
-AddParameterAction_Dialog_Name=Name:
-AddParameterAction_Dialog_Type=Type:
-AddParameterAction_Dialog_Value=Value:
-
-ParametersBlock_0=Name
-ParametersBlock_1=Type
-ParametersBlock_10=type
-ParametersBlock_11=value
-ParametersBlock_2=Value
-ParametersBlock_3=name
-ParametersBlock_4=type
-ParametersBlock_5=value
-ParametersBlock_6=type
-ParametersBlock_7=value
-ParametersBlock_8=type
-ParametersBlock_9=Transformation Parameters
-
-OutputPropertiesBlock_0=Use properties from preferences
-OutputPropertiesBlock_1=Change Preferences...
-OutputPropertiesBlock_13=Output Properties
-OutputPropertiesBlock_3=Use specific properties
-OutputPropertiesBlock_4=Property
-OutputPropertiesBlock_5=Value
-OutputPropertiesBlock_7=property
-OutputPropertiesBlock_8=value
-OutputPropertiesBlock_9=value
-OutputTab_0=Output Properties
-OutputTab_1=Output
-
-
-
-OutputTypeBlock_Group_Name=Output Type
-OutputFileBlock_0=Use default location
-OutputFileBlock_1=Filename
-OutputFileBlock_2=Format file on completion
-OutputFileBlock_7=Location:
-OutputFileBlock_8=Open file on completion
-OutputFileBlock_9=Output File
-OutputFileBlock_DIRECTORY_NOT_SPECIFIED=Transform output file not specified
-OutputFileBlock_DIRECTORY_DOES_NOT_EXIST=Transform output file does not exist
-OutputFileBlock_GROUP_NAME=Transform Output File
-OutputFileBlock_DEFAULT_RADIO=Default
-OutputFileBlock_OTHER_RADIO=Other
-OutputFileBlock_DIALOG_MESSAGE=Select an external output file
-OutputFileBlock_WORKSPACE_DIALOG_MESSAGE=Select an output file from the workspace
-OutputFileBlock_VARIABLES_BUTTON=Variables...
-OutputFileBlock_FILE_SYSTEM_BUTTON=File System...
-OutputFileBlock_WORKSPACE_BUTTON=Workspace...
-OutputFileBlock_Name=Transform Output File
-OutputFileBlock_Exception_occurred_reading_configuration=Exception occurred reading configuration
-OutputFileBlock_Exception_occurred_saving_configuration=Exception occurred saving launch configuration
-OutputFileBlock_WORKSPACE_DIALOG_TITLE=File Selection
-
-OutputFOFileBlock_DIRECTORY_NOT_SPECIFIED=Renderer output file not specified
-OutputFOFileBlock_DIRECTORY_DOES_NOT_EXIST=Renderer output file does not exist
-OutputFOFileBlock_GROUP_NAME=Renderer Output File
-OutputFOFileBlock_DEFAULT_RADIO=Default
-OutputFOFileBlock_OTHER_RADIO=Other
-OutputFOFileBlock_DIALOG_MESSAGE=Select an external output file
-OutputFOFileBlock_WORKSPACE_DIALOG_MESSAGE=Select an output file from the workspace
-OutputFOFileBlock_VARIABLES_BUTTON=Variables...
-OutputFOFileBlock_FILE_SYSTEM_BUTTON=File System...
-OutputFOFileBlock_WORKSPACE_BUTTON=Workspace...
-OutputFOFileBlock_Name=Renderer Output File
-OutputFOFileBlock_Exception_occurred_reading_configuration=Exception occurred reading configuration
-OutputFOFileBlock_Exception_occurred_saving_configuration=Exception occurred saving launch configuration
-OutputFOFileBlock_WORKSPACE_DIALOG_TITLE=File Selection
-
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/model/XSLBreakpointAdapterFactory.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/model/XSLBreakpointAdapterFactory.java
deleted file mode 100644
index 9764f0a..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/model/XSLBreakpointAdapterFactory.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.model;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.runtime.IAdapterFactory;
-import org.eclipse.debug.ui.actions.IToggleBreakpointsTarget;
-import org.eclipse.ui.texteditor.ITextEditor;
-import org.eclipse.wst.xsl.core.XSLCore;
-
-/**
- * Creates a toggle breakpoint adapter
- */
-public class XSLBreakpointAdapterFactory implements IAdapterFactory {
- public Object getAdapter(Object adaptableObject, Class adapterType) {
- if (adaptableObject instanceof ITextEditor) {
- ITextEditor editorPart = (ITextEditor) adaptableObject;
- IResource resource = (IResource) editorPart.getEditorInput()
- .getAdapter(IResource.class);
- if (resource != null && resource instanceof IFile) {
- if (XSLCore.isXSLFile((IFile) resource)) {
- return new XSLLineBreakpointAdapter();
- }
- }
- }
- return null;
- }
-
- public Class[] getAdapterList() {
- return new Class[] { IToggleBreakpointsTarget.class };
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/model/XSLLineBreakpointAdapter.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/model/XSLLineBreakpointAdapter.java
deleted file mode 100644
index 2feeeaa..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/model/XSLLineBreakpointAdapter.java
+++ /dev/null
@@ -1,102 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.model;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.debug.core.DebugPlugin;
-import org.eclipse.debug.core.model.IBreakpoint;
-import org.eclipse.debug.core.model.ILineBreakpoint;
-import org.eclipse.debug.ui.actions.IToggleBreakpointsTarget;
-import org.eclipse.jface.text.ITextSelection;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.ui.IWorkbenchPart;
-import org.eclipse.ui.texteditor.ITextEditor;
-import org.eclipse.wst.xsl.core.XSLCore;
-import org.eclipse.wst.xsl.launching.model.IXSLConstants;
-import org.eclipse.wst.xsl.launching.model.XSLLineBreakpoint;
-
-/**
- * An <code>IToggleBreakpointsTarget</code> for XSL breakpoints.
- *
- * @author Doug Satchwell
- */
-public class XSLLineBreakpointAdapter implements IToggleBreakpointsTarget {
- public void toggleLineBreakpoints(IWorkbenchPart part, ISelection selection)
- throws CoreException {
- ITextEditor textEditor = getEditor(part);
- if (textEditor != null) {
- IResource resource = (IResource) textEditor.getEditorInput()
- .getAdapter(IResource.class);
- ITextSelection textSelection = (ITextSelection) selection;
- int lineNumber = textSelection.getStartLine();
- IBreakpoint[] breakpoints = DebugPlugin.getDefault()
- .getBreakpointManager().getBreakpoints(
- IXSLConstants.ID_XSL_DEBUG_MODEL);
- for (IBreakpoint breakpoint : breakpoints) {
- if (resource.equals(breakpoint.getMarker().getResource())) {
- if (((ILineBreakpoint) breakpoint).getLineNumber() == (lineNumber + 1)) {
- // remove
- breakpoint.delete();
- return;
- }
- }
- }
- // create line breakpoint (doc line numbers start at 0)
- XSLLineBreakpoint lineBreakpoint = new XSLLineBreakpoint(resource,
- lineNumber + 1, 1, 1);
- DebugPlugin.getDefault().getBreakpointManager().addBreakpoint(
- lineBreakpoint);
- }
- }
-
- public boolean canToggleLineBreakpoints(IWorkbenchPart part,
- ISelection selection) {
- return getEditor(part) != null;
- }
-
- /**
- * Returns the editor being used to edit a XSL file, associated with the
- * given part, or <code>null</code> if none.
- */
- private ITextEditor getEditor(IWorkbenchPart part) {
- if (part instanceof ITextEditor) {
- ITextEditor editorPart = (ITextEditor) part;
- IResource resource = (IResource) editorPart.getEditorInput()
- .getAdapter(IResource.class);
- if (resource != null && resource.getType() == IResource.FILE) {
- if (XSLCore.isXSLFile((IFile) resource)) {
- return editorPart;
- }
- }
- }
- return null;
- }
-
- public void toggleMethodBreakpoints(IWorkbenchPart part,
- ISelection selection) throws CoreException {
- }
-
- public boolean canToggleMethodBreakpoints(IWorkbenchPart part,
- ISelection selection) {
- return false;
- }
-
- public void toggleWatchpoints(IWorkbenchPart part, ISelection selection)
- throws CoreException {
- }
-
- public boolean canToggleWatchpoints(IWorkbenchPart part,
- ISelection selection) {
- return false;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/model/XSLModelPresentation.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/model/XSLModelPresentation.java
deleted file mode 100644
index a7838de..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/model/XSLModelPresentation.java
+++ /dev/null
@@ -1,134 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- * David Carver (STAR) - bug 214235 - Added NodeList specific images.
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.model;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.debug.core.DebugException;
-import org.eclipse.debug.core.model.ILineBreakpoint;
-import org.eclipse.debug.core.model.IValue;
-import org.eclipse.debug.ui.IDebugModelPresentation;
-import org.eclipse.debug.ui.IValueDetailListener;
-import org.eclipse.jface.viewers.LabelProvider;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.ui.IEditorInput;
-import org.eclipse.ui.part.FileEditorInput;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIConstants;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIPlugin;
-import org.eclipse.wst.xsl.launching.model.NodeListVariable;
-import org.eclipse.wst.xsl.launching.model.XSLVariable;
-import org.w3c.dom.Node;
-import org.eclipse.wst.xml.ui.internal.util.SharedXMLEditorPluginImageHelper;
-
-/**
- * An <code>IDebugModelPresentation</code> for XSL debugging.
- *
- * @author Doug Satchwell
- */
-public class XSLModelPresentation extends LabelProvider implements
- IDebugModelPresentation {
- private Image localImg;
-
- public void setAttribute(String attribute, Object value) {
- }
-
- @Override
- public Image getImage(Object element) {
- if (element instanceof XSLVariable) {
- XSLVariable var = (XSLVariable) element;
- if (var.getScope().equals(XSLVariable.LOCAL_SCOPE)) {
- if (localImg == null)
- localImg = XSLDebugUIPlugin.getImageDescriptor(
- "/icons/localvariable_obj.gif").createImage(); //$NON-NLS-1$
- return localImg;
- }
- }
- if (element instanceof NodeListVariable) {
- NodeListVariable nodeVar = (NodeListVariable) element;
- if (nodeVar.getNode() != null) {
- Node node = nodeVar.getNode();
- if (node.getNodeType() == Node.ELEMENT_NODE) {
- localImg = SharedXMLEditorPluginImageHelper
- .getImage(SharedXMLEditorPluginImageHelper.IMG_OBJ_ELEMENT);
- }
- if (node.getNodeType() == Node.ATTRIBUTE_NODE) {
- localImg = SharedXMLEditorPluginImageHelper
- .getImage(SharedXMLEditorPluginImageHelper.IMG_OBJ_ATTRIBUTE);
- }
- if (node.getNodeType() == Node.COMMENT_NODE) {
- localImg = SharedXMLEditorPluginImageHelper
- .getImage(SharedXMLEditorPluginImageHelper.IMG_OBJ_COMMENT);
- }
- if (node.getNodeType() == Node.PROCESSING_INSTRUCTION_NODE) {
- localImg = SharedXMLEditorPluginImageHelper
- .getImage(SharedXMLEditorPluginImageHelper.IMG_OBJ_PROCESSINGINSTRUCTION);
- }
- if (node.getNodeType() == Node.CDATA_SECTION_NODE) {
- localImg = SharedXMLEditorPluginImageHelper
- .getImage(SharedXMLEditorPluginImageHelper.IMG_OBJ_CDATASECTION);
- }
- if (node.getNodeType() == Node.ENTITY_NODE) {
- localImg = SharedXMLEditorPluginImageHelper
- .getImage(SharedXMLEditorPluginImageHelper.IMG_OBJ_ENTITY);
- }
- if (node.getNodeType() == Node.ENTITY_REFERENCE_NODE) {
- localImg = SharedXMLEditorPluginImageHelper
- .getImage(SharedXMLEditorPluginImageHelper.IMG_OBJ_ENTITY_REFERENCE);
- }
- if (node.getNodeType() == Node.TEXT_NODE) {
- localImg = SharedXMLEditorPluginImageHelper
- .getImage(SharedXMLEditorPluginImageHelper.IMG_OBJ_TXTEXT);
- }
- return localImg;
- }
- }
- return null;
- }
-
- @Override
- public String getText(Object element) {
- return null;
- }
-
- @Override
- public void dispose() {
- if (localImg != null)
- localImg.dispose();
- super.dispose();
- }
-
- public void computeDetail(IValue value, IValueDetailListener listener) {
- String detail = ""; //$NON-NLS-1$
- try {
- detail = value.getValueString();
- } catch (DebugException e) {
- }
- listener.detailComputed(value, detail);
- }
-
- public IEditorInput getEditorInput(Object element) {
- if (element instanceof IFile) {
- return new FileEditorInput((IFile) element);
- }
- if (element instanceof ILineBreakpoint) {
- return new FileEditorInput((IFile) ((ILineBreakpoint) element)
- .getMarker().getResource());
- }
- return null;
- }
-
- public String getEditorId(IEditorInput input, Object element) {
- if (element instanceof IFile || element instanceof ILineBreakpoint) {
- return XSLDebugUIConstants.XSL_EDITOR_ID;
- }
- return null;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/IParametersChangedListener.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/IParametersChangedListener.java
deleted file mode 100644
index 9a3afe5..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/IParametersChangedListener.java
+++ /dev/null
@@ -1,15 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.tabs.main;
-
-public interface IParametersChangedListener {
- void parametersChanged(ParameterViewer viewer);
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/IStylesheetEntriesChangedListener.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/IStylesheetEntriesChangedListener.java
deleted file mode 100644
index dd02a0f..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/IStylesheetEntriesChangedListener.java
+++ /dev/null
@@ -1,15 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.tabs.main;
-
-public interface IStylesheetEntriesChangedListener {
- void entriesChanged(StylesheetViewer viewer);
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/InputFileBlock.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/InputFileBlock.java
deleted file mode 100644
index 53c2f5f..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/InputFileBlock.java
+++ /dev/null
@@ -1,128 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- * Stuart Harper - added "open files" selector
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.tabs.main;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.variables.IStringVariableManager;
-import org.eclipse.core.variables.VariablesPlugin;
-import org.eclipse.debug.core.ILaunchConfiguration;
-import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
-import org.eclipse.wst.xsl.internal.debug.ui.Messages;
-import org.eclipse.wst.xsl.internal.debug.ui.ResourceSelectionBlock;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIPlugin;
-import org.eclipse.wst.xsl.launching.XSLLaunchConfigurationConstants;
-
-public class InputFileBlock extends ResourceSelectionBlock {
- private final IFile defaultFile;
-
- public InputFileBlock(IFile defaultFile) {
- super(IResource.FILE, false);
- this.defaultFile = defaultFile;
- }
-
- public void setDefaults(ILaunchConfigurationWorkingCopy configuration) {
- String path = ""; //$NON-NLS-1$
- if (defaultFile != null)
- path = VariablesPlugin
- .getDefault()
- .getStringVariableManager()
- .generateVariableExpression(
- "workspace_loc", defaultFile.getFullPath().toPortableString()); //$NON-NLS-1$
- configuration.setAttribute(
- XSLLaunchConfigurationConstants.ATTR_INPUT_FILE, path);
- }
-
- public void initializeFrom(ILaunchConfiguration configuration) {
- setLaunchConfiguration(configuration);
- try {
- String wd = configuration.getAttribute(
- XSLLaunchConfigurationConstants.ATTR_INPUT_FILE,
- (String) null);
- if (wd != null) {
- setText(wd);
- }
- } catch (CoreException e) {
- setErrorMessage(Messages.InputFileBlock_Exception_occurred_reading_configuration
- + e.getStatus().getMessage());
- XSLDebugUIPlugin.log(e);
- }
- }
-
- public void performApply(ILaunchConfigurationWorkingCopy configuration) {
- configuration.setAttribute(
- XSLLaunchConfigurationConstants.ATTR_INPUT_FILE, getText());
- }
-
- public String getName() {
- return Messages.InputFileBlock_Name;
- }
-
- @Override
- protected void textModified() {
- IPath path = null;
- String workingDirPath = getText();
- if (workingDirPath.indexOf("${") >= 0) //$NON-NLS-1$
- {
- IStringVariableManager manager = VariablesPlugin.getDefault()
- .getStringVariableManager();
- try {
- manager.validateStringVariables(workingDirPath);
- path = new Path(manager
- .performStringSubstitution(workingDirPath));
- } catch (CoreException e) {
- }
- } else if (workingDirPath.length() > 0) {
- path = new Path(workingDirPath);
- }
- }
-
- @Override
- protected String getMessage(int type) {
- switch (type) {
- case ERROR_DIRECTORY_NOT_SPECIFIED:
- return Messages.InputFileBlock_DIRECTORY_NOT_SPECIFIED;
- case ERROR_DIRECTORY_DOES_NOT_EXIST:
- return Messages.InputFileBlock_DIRECTORY_DOES_NOT_EXIST;
- case GROUP_NAME:
- return Messages.InputFileBlock_GROUP_NAME;
- case USE_DEFAULT_RADIO:
- return Messages.InputFileBlock_DEFAULT_RADIO;
- case USE_OTHER_RADIO:
- return Messages.InputFileBlock_OTHER_RADIO;
- case DIRECTORY_DIALOG_MESSAGE:
- return Messages.InputFileBlock_DIALOG_MESSAGE;
- case WORKSPACE_DIALOG_MESSAGE:
- return Messages.InputFileBlock_WORKSPACE_DIALOG_MESSAGE;
- case VARIABLES_BUTTON:
- return Messages.InputFileBlock_VARIABLES_BUTTON;
- case FILE_SYSTEM_BUTTON:
- return Messages.InputFileBlock_FILE_SYSTEM_BUTTON;
- case WORKSPACE_BUTTON:
- return Messages.InputFileBlock_WORKSPACE_BUTTON;
- case WORKSPACE_DIALOG_TITLE:
- return Messages.InputFileBlock_WORKSPACE_DIALOG_TITLE;
- case OPENFILES_BUTTON:
- return Messages.InputFileBlock_OPENFILES_BUTTON;
- case OPENFILES_DIALOG_TITLE:
- return Messages.InputFileBlock_OPENFILES_DIALOG;
- }
- return "" + type; //$NON-NLS-1$
- }
-
- @Override
- protected void updateResourceText(boolean useDefault) {
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/ParameterViewer.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/ParameterViewer.java
deleted file mode 100644
index 8156234..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/ParameterViewer.java
+++ /dev/null
@@ -1,94 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.tabs.main;
-
-import org.eclipse.core.runtime.ListenerList;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.TableViewer;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.swt.widgets.Table;
-import org.eclipse.wst.xsl.internal.debug.ui.actions.AbstractStylesheetAction;
-import org.eclipse.wst.xsl.launching.config.LaunchAttribute;
-
-public class ParameterViewer {
- private final TableViewer viewer;
- private final ListenerList fListeners = new ListenerList();
-
- public ParameterViewer(Table table) {
- viewer = new TableViewer(table);
- }
-
- public TableViewer getViewer() {
- return viewer;
- }
-
- private ParametersContentProvider getParametersContentProvider() {
- return (ParametersContentProvider) viewer.getContentProvider();
- }
-
- public Shell getShell() {
- return viewer.getControl().getShell();
- }
-
- public boolean isEnabled() {
- return true;
- }
-
- public boolean updateSelection(int actionType,
- IStructuredSelection selection) {
- switch (actionType) {
- case AbstractStylesheetAction.ADD:
- return true;
- case AbstractStylesheetAction.REMOVE:
- case AbstractStylesheetAction.MOVE:
- default:
- break;
- }
- return selection.size() > 0;
- }
-
- public IStructuredSelection getSelectedEntries() {
- IStructuredSelection selection = (IStructuredSelection) viewer
- .getSelection();
- return selection;
- }
-
- public void addParameter(LaunchAttribute parameter) {
- getParametersContentProvider().addParameter(parameter);
- notifyChanged();
- }
-
- public void removeEntries(LaunchAttribute[] entries) {
- getParametersContentProvider().removeParameters(entries);
- notifyChanged();
- }
-
- public LaunchAttribute[] getParameters() {
- return getParametersContentProvider().getParameters();
- }
-
- public void addParametersChangedListener(IParametersChangedListener listener) {
- fListeners.add(listener);
- }
-
- public void removeParametersChangedListener(
- IParametersChangedListener listener) {
- fListeners.remove(listener);
- }
-
- private void notifyChanged() {
- Object[] listeners = fListeners.getListeners();
- for (Object element : listeners) {
- ((IParametersChangedListener) element).parametersChanged(this);
- }
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/ParametersBlock.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/ParametersBlock.java
deleted file mode 100644
index d312920..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/ParametersBlock.java
+++ /dev/null
@@ -1,235 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.tabs.main;
-
-import org.eclipse.debug.core.ILaunchConfiguration;
-import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
-import org.eclipse.jface.dialogs.IDialogSettings;
-import org.eclipse.jface.viewers.CellEditor;
-import org.eclipse.jface.viewers.ICellModifier;
-import org.eclipse.jface.viewers.ISelectionChangedListener;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.SelectionChangedEvent;
-import org.eclipse.jface.viewers.TextCellEditor;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.KeyAdapter;
-import org.eclipse.swt.events.KeyEvent;
-import org.eclipse.swt.graphics.Font;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Group;
-import org.eclipse.swt.widgets.Item;
-import org.eclipse.swt.widgets.Table;
-import org.eclipse.swt.widgets.TableColumn;
-import org.eclipse.wst.xsl.internal.debug.ui.AbstractTableBlock;
-import org.eclipse.wst.xsl.internal.debug.ui.Messages;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIConstants;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIPlugin;
-import org.eclipse.wst.xsl.internal.debug.ui.actions.AbstractParameterAction;
-import org.eclipse.wst.xsl.internal.debug.ui.actions.AddParameterAction;
-import org.eclipse.wst.xsl.internal.debug.ui.actions.RemoveParameterAction;
-import org.eclipse.wst.xsl.launching.config.LaunchAttribute;
-import org.eclipse.wst.xsl.launching.config.LaunchTransform;
-
-public class ParametersBlock extends AbstractTableBlock {
- private ParameterViewer parametersViewer;
- private Button addParameterButton;
- private Button removeParameterButton;
- private final TransformsBlock transformsBlock;
- private final ISelectionChangedListener selectionListener = new ISelectionChangedListener() {
- public void selectionChanged(SelectionChangedEvent event) {
- IStructuredSelection stylesheetSelection = (IStructuredSelection) event
- .getSelection();
- if (stylesheetSelection.size() == 1)
- setTransform((LaunchTransform) stylesheetSelection
- .getFirstElement());
- else
- setTransform(null);
- updateEnabled();
- }
- };
- private Table fTable;
-
- public ParametersBlock(TransformsBlock transformsBlock) {
- super();
- this.transformsBlock = transformsBlock;
- }
-
- protected void setTransform(LaunchTransform transform) {
- parametersViewer.getViewer().setInput(transform);
- }
-
- protected void updateEnabled() {
- IStructuredSelection stylesheetSelection = (IStructuredSelection) transformsBlock
- .getStylesheetViewer().getSelection();
- boolean enabled = stylesheetSelection.size() == 1;
- parametersViewer.getViewer().getTable().setEnabled(enabled);
- addParameterButton.setEnabled(enabled);
- IStructuredSelection parametersSelection = (IStructuredSelection) parametersViewer
- .getViewer().getSelection();
- removeParameterButton.setEnabled(enabled
- && !parametersSelection.isEmpty());
- }
-
- public void createControl(Composite parent) {
- Font font = parent.getFont();
-
- Group group = new Group(parent, SWT.NONE);
- group.setText(getName());
- GridData gd = new GridData(SWT.FILL, SWT.FILL, true, true);
- group.setLayoutData(gd);
- GridLayout layout = new GridLayout();
- layout.numColumns = 3;
- group.setLayout(layout);
- group.setFont(font);
-
- setControl(group);
-
- fTable = new Table(group, SWT.BORDER | SWT.MULTI | SWT.FULL_SELECTION);
-
- GridData data = new GridData(SWT.FILL, SWT.FILL, true, true);
- // data.heightHint = 100;
- fTable.setLayoutData(data);
- fTable.setFont(font);
-
- fTable.setHeaderVisible(true);
- fTable.setLinesVisible(true);
-
- TableColumn column1 = new TableColumn(fTable, SWT.NONE);
- column1.setWidth(150);
- column1.setResizable(true);
- column1.setText(Messages.ParametersBlock_0);
-
- TableColumn column3 = new TableColumn(fTable, SWT.NONE);
- column3.setWidth(250);
- column3.setResizable(true);
- column3.setText(Messages.ParametersBlock_2);
-
- parametersViewer = new ParameterViewer(fTable);
- parametersViewer.getViewer().setLabelProvider(
- new ParametersLabelProvider());
- parametersViewer.getViewer().setContentProvider(
- new ParametersContentProvider());
- parametersViewer
- .addParametersChangedListener(new IParametersChangedListener() {
-
- public void parametersChanged(ParameterViewer viewer) {
- updateLaunchConfigurationDialog();
- }
- });
- parametersViewer.getViewer().getTable().addKeyListener(
- new KeyAdapter() {
- @Override
- public void keyPressed(KeyEvent event) {
- if (event.character == SWT.DEL && event.stateMask == 0) {
- RemoveParameterAction ra = new RemoveParameterAction(
- parametersViewer);
- ra.run();
- updateLaunchConfigurationDialog();
- }
- }
- });
-
- parametersViewer.getViewer().setColumnProperties(
- new String[] { "name", "value" }); //$NON-NLS-1$ //$NON-NLS-2$
- TextCellEditor textEditor = new TextCellEditor(fTable);
- CellEditor[] editors = new CellEditor[] { null, textEditor };
- parametersViewer.getViewer().setCellEditors(editors);
- parametersViewer.getViewer().setCellModifier(new ICellModifier() {
- public boolean canModify(Object element, String property) {
- return "value".equals(property); //$NON-NLS-1$
- }
-
- public Object getValue(Object element, String property) {
- LaunchAttribute att = (LaunchAttribute) element;
- return att.value == null ? "" : att.value; //$NON-NLS-1$
- }
-
- public void modify(Object element, String property, Object value) {
- Item item = (Item) element;
- LaunchAttribute att = (LaunchAttribute) item.getData();
- att.value = (String) value;
- parametersViewer.getViewer().update(att, null);
- updateLaunchConfigurationDialog();
- }
- });
-
- Composite parameterButtonComp = new Composite(group, SWT.NONE);
- GridLayout parameterButtonCompLayout = new GridLayout();
- parameterButtonCompLayout.marginHeight = 0;
- parameterButtonCompLayout.marginWidth = 0;
- parameterButtonComp.setLayout(parameterButtonCompLayout);
- gd = new GridData(GridData.VERTICAL_ALIGN_BEGINNING
- | GridData.HORIZONTAL_ALIGN_FILL);
- gd.horizontalSpan = 2;
- parameterButtonComp.setLayoutData(gd);
- parameterButtonComp.setFont(font);
-
- addParameterButton = createButton(parameterButtonComp,
- new AddParameterAction(parametersViewer));
- removeParameterButton = createButton(parameterButtonComp,
- new RemoveParameterAction(parametersViewer));
-
- transformsBlock.getStylesheetViewer().addSelectionChangedListener(
- selectionListener);
-
- restoreColumnSettings();
- }
-
- protected Button createButton(Composite pathButtonComp,
- AbstractParameterAction action) {
- Button button = createPushButton(pathButtonComp, action.getText(), null);
- action.setButton(button);
- return button;
- }
-
- @Override
- protected Table getTable() {
- return fTable;
- }
-
- @Override
- protected IDialogSettings getDialogSettings() {
- return XSLDebugUIPlugin.getDefault().getDialogSettings();
- }
-
- @Override
- protected String getQualifier() {
- return XSLDebugUIConstants.MAIN_PARAMATERS_BLOCK;
- }
-
- public String getName() {
- return Messages.ParametersBlock_9;
- }
-
- public void initializeFrom(ILaunchConfiguration configuration) {
- // handled by the Tab
- updateEnabled();
- }
-
- public void performApply(ILaunchConfigurationWorkingCopy configuration) {
- // handled by the Tab
- }
-
- public void setDefaults(ILaunchConfigurationWorkingCopy configuration) {
- // handled by the Tab
- }
-
- @Override
- public void dispose() {
- if (transformsBlock.getStylesheetViewer() != null)
- transformsBlock.getStylesheetViewer()
- .removeSelectionChangedListener(selectionListener);
- super.dispose();
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/ParametersContentProvider.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/ParametersContentProvider.java
deleted file mode 100644
index 6f2a322..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/ParametersContentProvider.java
+++ /dev/null
@@ -1,72 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.tabs.main;
-
-import java.util.Arrays;
-import java.util.List;
-
-import org.eclipse.jface.viewers.IStructuredContentProvider;
-import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.jface.viewers.TableViewer;
-import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.swt.widgets.TableItem;
-import org.eclipse.wst.xsl.launching.config.LaunchAttribute;
-import org.eclipse.wst.xsl.launching.config.LaunchTransform;
-
-public class ParametersContentProvider implements IStructuredContentProvider {
- private LaunchTransform stylesheetEntry;
- private TableViewer parameterViewer;
-
- public Object[] getElements(Object inputElement) {
- if (stylesheetEntry == null)
- return new Object[0];
- return stylesheetEntry.getParameters().toArray();
- }
-
- public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
- stylesheetEntry = (LaunchTransform) newInput;
- parameterViewer = (TableViewer) viewer;
- }
-
- public void dispose() {
- }
-
- public LaunchAttribute[] getParameters() {
- return stylesheetEntry.getParameters().toArray(new LaunchAttribute[0]);
- }
-
- public void removeParameters(LaunchAttribute[] entries) {
- for (LaunchAttribute parameter : entries) {
- stylesheetEntry.getParameters().remove(parameter);
- }
- TableItem[] items = parameterViewer.getTable().getItems();
- List<LaunchAttribute> entryList = Arrays.asList(entries);
- Object sel = null;
- for (int i = items.length - 1; i >= 0; i--) {
- TableItem item = items[i];
- if (!entryList.contains(item.getData())) {
- sel = item.getData();
- break;
- }
- }
- parameterViewer.remove(entries);
-
- if (sel != null)
- parameterViewer.setSelection(new StructuredSelection(sel), true);
- }
-
- public void addParameter(LaunchAttribute parameter) {
- stylesheetEntry.getParameters().add(parameter);
- parameterViewer.add(parameter);
- parameterViewer.setSelection(new StructuredSelection(parameter), true);
- // parameterViewer.refresh();
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/ParametersLabelProvider.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/ParametersLabelProvider.java
deleted file mode 100644
index 0a781e6..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/ParametersLabelProvider.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.tabs.main;
-
-import org.eclipse.jface.viewers.ILabelProviderListener;
-import org.eclipse.jface.viewers.ITableLabelProvider;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.wst.xsl.launching.config.LaunchAttribute;
-
-public class ParametersLabelProvider implements ITableLabelProvider {
- public String getColumnText(Object element, int columnIndex) {
- LaunchAttribute p = (LaunchAttribute) element;
- switch (columnIndex) {
- case 0:
- return p.uri;
- case 1:
- return p.value;
- }
- return "!"; //$NON-NLS-1$
- }
-
- public Image getColumnImage(Object element, int columnIndex) {
- return null;
- }
-
- public void addListener(ILabelProviderListener listener) {
- }
-
- public void dispose() {
- }
-
- public boolean isLabelProperty(Object element, String property) {
- return false;
- }
-
- public void removeListener(ILabelProviderListener listener) {
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/StylesheetContentProvider.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/StylesheetContentProvider.java
deleted file mode 100644
index fd8c467..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/StylesheetContentProvider.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.tabs.main;
-
-import java.util.ArrayList;
-import java.util.Arrays;
-
-import org.eclipse.jface.viewers.IStructuredContentProvider;
-import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.jface.viewers.TableViewer;
-import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.wst.xsl.launching.config.LaunchPipeline;
-import org.eclipse.wst.xsl.launching.config.LaunchTransform;
-
-public class StylesheetContentProvider implements IStructuredContentProvider {
- private TableViewer tableViewer;
- private LaunchPipeline pipeline;
-
- public StylesheetContentProvider() {
- }
-
- public Object[] getElements(Object inputElement) {
- return pipeline.getTransformDefs().toArray(new LaunchTransform[0]);
- }
-
- public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
- tableViewer = (TableViewer) viewer;
- pipeline = (LaunchPipeline) newInput;
- }
-
- public void dispose() {
- }
-
- public void setEntries(LaunchTransform[] transforms) {
- pipeline.setTransformDefs(new ArrayList<LaunchTransform>(Arrays
- .asList(transforms)));
- tableViewer.refresh();
- }
-
- public void addEntries(LaunchTransform[] res, Object beforeElement) {
- for (LaunchTransform transform : res) {
- pipeline.addTransformDef(transform);
- }
- tableViewer.add(res);
- // select the first new one
- tableViewer.setSelection(new StructuredSelection(res[0]), true);
- }
-
- public void removeEntries(LaunchTransform[] res) {
- for (LaunchTransform transform : res) {
- pipeline.removeTransformDef(transform);
- }
- tableViewer.refresh();
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/StylesheetLabelProvider.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/StylesheetLabelProvider.java
deleted file mode 100644
index 1f01746..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/StylesheetLabelProvider.java
+++ /dev/null
@@ -1,75 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.tabs.main;
-
-import java.io.File;
-import java.text.MessageFormat;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.jface.viewers.LabelProvider;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.wst.xsl.internal.debug.ui.Messages;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIPlugin;
-import org.eclipse.wst.xsl.launching.config.LaunchTransform;
-
-public class StylesheetLabelProvider extends LabelProvider {
- private Image image = XSLDebugUIPlugin.getImageDescriptor(
- "icons/xslt_launch.gif").createImage(); //$NON-NLS-1$
-
- @Override
- public Image getImage(Object element) {
- return image;
- }
-
- @Override
- public String getText(Object element) {
- LaunchTransform lt = (LaunchTransform) element;
- int index = lt.getPipeline().getTransformDefs().indexOf(lt);
-
- IPath path;
- try {
- path = lt.getPath();
- } catch (CoreException e) {
- return MessageFormat.format(
- Messages.StylesheetEntryLabelProvider_Invalid_path,
- new Object[] { "null" }); //$NON-NLS-1$
- }
-
- if (path == null) {
- return MessageFormat.format(
- Messages.StylesheetEntryLabelProvider_Invalid_path,
- new Object[] { "null" }); //$NON-NLS-1$
- } else if (!path.isAbsolute() || !path.isValidPath(path.toString())) {
- return MessageFormat.format(
- Messages.StylesheetEntryLabelProvider_Invalid_path,
- new Object[] { path.toString() });
- }
-
- String[] segments = path.segments();
- StringBuffer displayPath = new StringBuffer();
- if (segments.length > 0) {
- displayPath.append(segments[segments.length - 1]);
- displayPath.append(" - "); //$NON-NLS-1$
- String device = path.getDevice();
- if (device != null) {
- displayPath.append(device);
- }
- displayPath.append(File.separator);
- for (int i = 0; i < segments.length - 1; i++) {
- displayPath.append(segments[i]).append(File.separator);
- }
- } else {
- displayPath.append(path.toString());
- }
- return (index + 1) + ") " + displayPath.toString(); //$NON-NLS-1$
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/StylesheetViewer.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/StylesheetViewer.java
deleted file mode 100644
index 934b3ed..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/StylesheetViewer.java
+++ /dev/null
@@ -1,105 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.tabs.main;
-
-import org.eclipse.core.runtime.ListenerList;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.TableViewer;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.wst.xsl.internal.debug.ui.actions.AbstractStylesheetAction;
-import org.eclipse.wst.xsl.launching.config.LaunchTransform;
-
-public class StylesheetViewer {
- private TableViewer viewer;
- private final ListenerList listenerList = new ListenerList();
-
- public StylesheetViewer(Composite parent) {
- viewer = new TableViewer(parent);
- }
-
- public TableViewer getViewer() {
- return viewer;
- }
-
- private StylesheetContentProvider getStylesheetContentProvider() {
- return (StylesheetContentProvider) viewer.getContentProvider();
- }
-
- public void setEntries(LaunchTransform[] transforms) {
- getStylesheetContentProvider().setEntries(transforms);
- notifyChanged();
- }
-
- public LaunchTransform[] getEntries() {
- return (LaunchTransform[]) getStylesheetContentProvider().getElements(
- null);
- }
-
- public Shell getShell() {
- return viewer.getControl().getShell();
- }
-
- public boolean isEnabled() {
- return true;
- }
-
- public boolean updateSelection(int actionType,
- IStructuredSelection selection) {
- switch (actionType) {
- case AbstractStylesheetAction.ADD:
- return true;
- case AbstractStylesheetAction.REMOVE:
- case AbstractStylesheetAction.MOVE:
- default:
- break;
- }
- return selection.size() > 0;
- }
-
- public IStructuredSelection getSelectedEntries() {
- IStructuredSelection selection = (IStructuredSelection) viewer
- .getSelection();
- return selection;
- }
-
- public void addTransforms(LaunchTransform[] res) {
- IStructuredSelection sel = (IStructuredSelection) viewer.getSelection();
- Object beforeElement = sel.getFirstElement();
- if (getEntries().length > 1 && beforeElement == null)
- beforeElement = getEntries()[getEntries().length - 1];
- getStylesheetContentProvider().addEntries(res, beforeElement);
- notifyChanged();
- }
-
- public void removeEntries(LaunchTransform[] entries) {
- getStylesheetContentProvider().removeEntries(entries);
- notifyChanged();
- }
-
- public void addEntriesChangedListener(
- IStylesheetEntriesChangedListener listener) {
- listenerList.add(listener);
- }
-
- public void removeEntriesChangedListener(
- IStylesheetEntriesChangedListener listener) {
- listenerList.remove(listener);
- }
-
- private void notifyChanged() {
- Object[] listeners = listenerList.getListeners();
- for (Object element : listeners) {
- ((IStylesheetEntriesChangedListener) element).entriesChanged(this);
- }
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/TransformsBlock.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/TransformsBlock.java
deleted file mode 100644
index 552576f..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/TransformsBlock.java
+++ /dev/null
@@ -1,204 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.tabs.main;
-
-import org.eclipse.debug.core.ILaunchConfiguration;
-import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
-import org.eclipse.jface.dialogs.IDialogSettings;
-import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.KeyAdapter;
-import org.eclipse.swt.events.KeyEvent;
-import org.eclipse.swt.graphics.Font;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Group;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.Table;
-import org.eclipse.wst.xsl.internal.debug.ui.AbstractTableBlock;
-import org.eclipse.wst.xsl.internal.debug.ui.Messages;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIConstants;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIPlugin;
-import org.eclipse.wst.xsl.internal.debug.ui.actions.AbstractStylesheetAction;
-import org.eclipse.wst.xsl.internal.debug.ui.actions.AddExternalFileAction;
-import org.eclipse.wst.xsl.internal.debug.ui.actions.AddWorkspaceFileAction;
-import org.eclipse.wst.xsl.internal.debug.ui.actions.MoveDownAction;
-import org.eclipse.wst.xsl.internal.debug.ui.actions.MoveUpAction;
-import org.eclipse.wst.xsl.internal.debug.ui.actions.RemoveAction;
-import org.eclipse.wst.xsl.launching.config.LaunchPipeline;
-
-public class TransformsBlock extends AbstractTableBlock implements
- IStylesheetEntriesChangedListener {
- protected static final String DIALOG_SETTINGS_PREFIX = "TransformsBlock"; //$NON-NLS-1$
- private StylesheetViewer stylesheetViewer;
- private LaunchPipeline pipeline;
-
- public TransformsBlock() {
- super();
- }
-
- public void createControl(Composite parent) {
- Font font = parent.getFont();
-
- Group group = new Group(parent, SWT.NONE);
- group.setText(getName());
- GridData gd = new GridData(GridData.FILL_HORIZONTAL);
- group.setLayoutData(gd);
- GridLayout layout = new GridLayout();
- layout.numColumns = 3;
- group.setLayout(layout);
- group.setFont(font);
-
- setControl(group);
-
- stylesheetViewer = new StylesheetViewer(group);
- gd = new GridData(SWT.FILL, SWT.FILL, true, true);
- stylesheetViewer.getViewer().getTable().setLayoutData(gd);
- stylesheetViewer.addEntriesChangedListener(this);
- stylesheetViewer.getViewer().getControl().setFont(font);
- stylesheetViewer.getViewer().setLabelProvider(
- new StylesheetLabelProvider());
- stylesheetViewer.getViewer().setContentProvider(
- new StylesheetContentProvider());
- stylesheetViewer.getViewer().getTable().addKeyListener(
- new KeyAdapter() {
- @Override
- public void keyPressed(KeyEvent event) {
- if (event.character == SWT.DEL && event.stateMask == 0) {
- RemoveAction ra = new RemoveAction(stylesheetViewer);
- ra.run();
- updateLaunchConfigurationDialog();
- }
- }
- });
-
- Composite upDownButtonComp = new Composite(group, SWT.NONE);
- GridLayout upDownButtonLayout = new GridLayout();
- upDownButtonLayout.marginHeight = 0;
- upDownButtonLayout.marginWidth = 0;
- upDownButtonComp.setLayout(upDownButtonLayout);
- gd = new GridData(SWT.FILL, SWT.FILL, false, true);
- upDownButtonComp.setLayoutData(gd);
- upDownButtonComp.setFont(font);
-
- createArrowButton(upDownButtonComp, new MoveUpAction(stylesheetViewer),
- SWT.UP);
- Label spacer = new Label(upDownButtonComp, SWT.NONE);
- gd = new GridData(SWT.NONE, SWT.FILL, false, true);
- spacer.setLayoutData(gd);
- createArrowButton(upDownButtonComp,
- new MoveDownAction(stylesheetViewer), SWT.DOWN);
-
- Composite pathButtonComp = new Composite(group, SWT.NONE);
- GridLayout pathButtonLayout = new GridLayout();
- pathButtonLayout.marginHeight = 0;
- pathButtonLayout.marginWidth = 0;
- pathButtonComp.setLayout(pathButtonLayout);
- gd = new GridData(GridData.VERTICAL_ALIGN_BEGINNING
- | GridData.HORIZONTAL_ALIGN_FILL);
- pathButtonComp.setLayoutData(gd);
- pathButtonComp.setFont(font);
-
- createButton(pathButtonComp, new AddWorkspaceFileAction(
- stylesheetViewer));
- createButton(pathButtonComp, new AddExternalFileAction(
- stylesheetViewer, DIALOG_SETTINGS_PREFIX));
- createButton(pathButtonComp, new RemoveAction(stylesheetViewer));
- }
-
- public Viewer getStylesheetViewer() {
- return stylesheetViewer == null ? null : stylesheetViewer.getViewer();
- }
-
- protected Button createArrowButton(Composite pathButtonComp,
- AbstractStylesheetAction action, int updown) {
- Button b = new Button(pathButtonComp, SWT.ARROW | updown);
- GridData gd = new GridData();
- b.setLayoutData(gd);
- action.setButton(b);
- return b;
- }
-
- protected Button createButton(Composite pathButtonComp,
- AbstractStylesheetAction action) {
- Button button = createPushButton(pathButtonComp, action.getText(), null);
- action.setButton(button);
- return button;
- }
-
- public String getName() {
- return Messages.TransformsBlock_Name;
- }
-
- public void setPipeline(LaunchPipeline pipeline) {
- this.pipeline = pipeline;
- }
-
- public void initializeFrom(ILaunchConfiguration configuration) {
- stylesheetViewer.getViewer().setInput(pipeline);
- if (pipeline.getTransformDefs().size() > 0) {
- stylesheetViewer.getViewer()
- .setSelection(
- new StructuredSelection(pipeline.getTransformDefs()
- .get(0)));
- }
- }
-
- public void performApply(ILaunchConfigurationWorkingCopy configuration) {
- }
-
- public void setDefaults(ILaunchConfigurationWorkingCopy configuration) {
- }
-
- public void entriesChanged(StylesheetViewer viewer) {
- setDirty(true);
- updateLaunchConfigurationDialog();
- }
-
- @Override
- protected void setSortColumn(int column) {
- switch (column) {
- // case 1:
- // sortByName();
- // break;
- // case 2:
- // sortByType();
- // break;
- }
- super.setSortColumn(column);
- }
-
- @Override
- protected Table getTable() {
- return stylesheetViewer == null ? null : stylesheetViewer.getViewer()
- .getTable();
- }
-
- @Override
- protected IDialogSettings getDialogSettings() {
- return XSLDebugUIPlugin.getDefault().getDialogSettings();
- }
-
- @Override
- protected String getQualifier() {
- return XSLDebugUIConstants.MAIN_TRANSFORMS_BLOCK;
- }
-
- @Override
- public void dispose() {
- if (stylesheetViewer != null)
- stylesheetViewer.removeEntriesChangedListener(this);
- super.dispose();
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/XSLMainTab.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/XSLMainTab.java
deleted file mode 100644
index a9db14f..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/XSLMainTab.java
+++ /dev/null
@@ -1,206 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007,2008 Chase Technology Ltd - http://www.chasetechnology.co.uk and others
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- * David Carver - STAR - bug 223557 - Added Images contributed by Holger Voorman
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.tabs.main;
-
-import java.io.ByteArrayInputStream;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.debug.core.ILaunchConfiguration;
-import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
-import org.eclipse.debug.ui.ILaunchConfigurationTab;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.ui.IEditorInput;
-import org.eclipse.ui.IEditorPart;
-import org.eclipse.ui.IWorkbenchPage;
-import org.eclipse.wst.xsl.core.XSLCore;
-import org.eclipse.wst.xsl.debug.internal.util.XSLDebugPluginImages;
-import org.eclipse.wst.xsl.debug.internal.util.XSLPluginImageHelper;
-import org.eclipse.wst.xsl.internal.debug.ui.Messages;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIPlugin;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLLaunchConfigurationTab;
-import org.eclipse.wst.xsl.launching.XSLLaunchConfigurationConstants;
-import org.eclipse.wst.xsl.launching.config.LaunchPipeline;
-import org.eclipse.wst.xsl.launching.config.LaunchTransform;
-
-public class XSLMainTab extends XSLLaunchConfigurationTab {
- private final InputFileBlock inputFileBlock;
- private final TransformsBlock transformsBlock;
- private final ParametersBlock parametersBlock;
- public LaunchPipeline pipeline;
-
- // private RenderBlock renderBlock;
- // private OutputBlock outputBlock;
-
- public XSLMainTab() {
- IResource[] resourceContext = getContext();
- IFile inputFile = getXMLInput(resourceContext);
-
- inputFileBlock = new InputFileBlock(inputFile);
- transformsBlock = new TransformsBlock();
- parametersBlock = new ParametersBlock(transformsBlock);
- // renderBlock = new RenderBlock();
- // outputBlock = new OutputBlock();
-
- setBlocks(new ILaunchConfigurationTab[] { inputFileBlock,
- transformsBlock, parametersBlock }); // ,renderBlock,outputBlock});
- }
-
- @Override
- public void createControl(Composite parent) {
- super.createControl(parent);
- Composite comp = (Composite) getControl();
- GridLayout layout = new GridLayout(1, false);
- comp.setLayout(layout);
-
- inputFileBlock.createControl(comp);
- transformsBlock.createControl(comp);
- parametersBlock.createControl(comp);
- // renderBlock.createControl(comp);
- // outputBlock.createControl(comp);
- }
-
- @Override
- public void setDefaults(ILaunchConfigurationWorkingCopy configuration) {
- LaunchPipeline lp = new LaunchPipeline();
- IResource[] resourceContext = getContext();
- IFile[] stylesheets = getXSLStylesheets(resourceContext);
- for (IFile file : stylesheets) {
- LaunchTransform lt = new LaunchTransform(file.getFullPath()
- .toPortableString(), LaunchTransform.RESOURCE_TYPE);
- lp.addTransformDef(lt);
- }
- savePipeline(configuration, lp);
- super.setDefaults(configuration);
- }
-
- @Override
- public void initializeFrom(ILaunchConfiguration configuration) {
- pipeline = null;
- try {
- String s = configuration.getAttribute(
- XSLLaunchConfigurationConstants.ATTR_PIPELINE,
- (String) null);
- if (s != null && s.length() > 0) {
- ByteArrayInputStream inputStream = new ByteArrayInputStream(s
- .getBytes());
- pipeline = LaunchPipeline.fromXML(inputStream);
- } else {
- pipeline = new LaunchPipeline();
- }
- } catch (CoreException e) {
- XSLDebugUIPlugin.log(e);
- }
- transformsBlock.setPipeline(pipeline);
- super.initializeFrom(configuration);
- }
-
- @Override
- public void performApply(ILaunchConfigurationWorkingCopy configuration) {
- super.performApply(configuration);
- savePipeline(configuration, pipeline);
- }
-
- private void savePipeline(ILaunchConfigurationWorkingCopy configuration,
- LaunchPipeline pipeline) {
- try {
- configuration.setAttribute(
- XSLLaunchConfigurationConstants.ATTR_PIPELINE, pipeline
- .toXML());
- } catch (CoreException e) {
- XSLDebugUIPlugin.log(e);
- }
- }
-
- public String getName() {
- return Messages.XSLMainTab_TabName;
- }
-
- private static IResource[] getContext() {
-
- // IProject[] projects =
- // ResourcesPlugin.getWorkspace().getRoot().getProjects();
- // project.setInput( projects);
- // String s = configuration.getAttribute(
- // IXSLTLaunchConfiguration.PROJECT, "");
- // IProject project = null;
- // if( s.equals(""))
- // {
- // if( projects.length>0)
- // {
- // project = projects[ 0];
- // }
- // }
- // else
- // project = ResourcesPlugin.getWorkspace().getRoot().getProject( s);
-
- IWorkbenchPage page = XSLDebugUIPlugin.getActivePage();
- List<Object> resources = new ArrayList<Object>();
- if (page != null) {
- // use selections to find the project
- ISelection selection = page.getSelection();
- if (selection != null && !selection.isEmpty()
- && selection instanceof IStructuredSelection) {
- IStructuredSelection ss = (IStructuredSelection) selection;
- for (Iterator<?> iter = ss.iterator(); iter.hasNext();) {
- Object element = iter.next();
- if (element instanceof IResource)
- resources.add(element);
- }
- return resources.toArray(new IResource[0]);
- }
- // use current editor to find the project
- IEditorPart part = page.getActiveEditor();
- if (part != null) {
- IEditorInput input = part.getEditorInput();
- IFile file = (IFile) input.getAdapter(IFile.class);
- if (file != null)
- return new IResource[] { file };
- }
- }
- return new IResource[0];
- }
-
- private IFile getXMLInput(IResource[] context) {
- for (IResource resource : context) {
- if (resource instanceof IFile
- && ("xml".equalsIgnoreCase(resource.getFileExtension()) || "xhtml".equalsIgnoreCase(resource.getFileExtension()))) //$NON-NLS-1$ //$NON-NLS-2$
- return (IFile) resource;
- }
- return null;
- }
-
- private IFile[] getXSLStylesheets(IResource[] context) {
- List<IResource> stylesheets = new ArrayList<IResource>();
- for (IResource resource : context) {
- if (resource instanceof IFile
- && XSLCore.isXSLFile((IFile) resource))
- stylesheets.add(resource);
- }
- return stylesheets.toArray(new IFile[0]);
-
- }
-
- @Override
- public Image getImage() {
- return XSLPluginImageHelper.getInstance().getImage(
- XSLDebugPluginImages.IMG_MAIN_TAB);
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/output/OutputFileBlock.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/output/OutputFileBlock.java
deleted file mode 100644
index ff99b65..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/output/OutputFileBlock.java
+++ /dev/null
@@ -1,304 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.tabs.output;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.debug.core.ILaunchConfiguration;
-import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.events.SelectionListener;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.Text;
-import org.eclipse.wst.xsl.internal.debug.ui.Messages;
-import org.eclipse.wst.xsl.internal.debug.ui.ResourceSelectionBlock;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIPlugin;
-import org.eclipse.wst.xsl.launching.XSLLaunchConfigurationConstants;
-import org.eclipse.wst.xsl.launching.XSLTRuntime;
-
-public class OutputFileBlock extends ResourceSelectionBlock {
- private Button openFileCheckButton;
- private Button formatFileCheckButton;
- private String inputFilename;
- private Text fileNameText;
- private String defaultOutputFileName;
- private String outputFileName;
-
- public OutputFileBlock() {
- super(IResource.FOLDER, true, true, false);
- }
-
- @Override
- protected String getMessage(int type) {
- switch (type) {
- case ERROR_DIRECTORY_NOT_SPECIFIED:
- return Messages.OutputFOFileBlock_DIRECTORY_NOT_SPECIFIED;
- case ERROR_DIRECTORY_DOES_NOT_EXIST:
- return Messages.OutputFOFileBlock_DIRECTORY_DOES_NOT_EXIST;
- case GROUP_NAME:
- return getName();
- case USE_DEFAULT_RADIO:
- return Messages.OutputFileBlock_0;
- case USE_OTHER_RADIO:
- return Messages.OutputFOFileBlock_OTHER_RADIO;
- case DIRECTORY_DIALOG_MESSAGE:
- return Messages.OutputFOFileBlock_DIALOG_MESSAGE;
- case WORKSPACE_DIALOG_MESSAGE:
- return Messages.OutputFOFileBlock_WORKSPACE_DIALOG_MESSAGE;
- case VARIABLES_BUTTON:
- return Messages.OutputFOFileBlock_VARIABLES_BUTTON;
- case FILE_SYSTEM_BUTTON:
- return Messages.OutputFOFileBlock_FILE_SYSTEM_BUTTON;
- case WORKSPACE_BUTTON:
- return Messages.OutputFOFileBlock_WORKSPACE_BUTTON;
- case WORKSPACE_DIALOG_TITLE:
- return Messages.OutputFOFileBlock_WORKSPACE_DIALOG_TITLE;
- }
- return "" + type; //$NON-NLS-1$
- }
-
- @Override
- protected void createCheckboxAndText(Composite parent) {
- if (showDefault) {
- useDefaultCheckButton = createCheckButton(parent,
- getMessage(USE_DEFAULT_RADIO));
- GridData gd = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING);
- gd.horizontalSpan = 2;
- useDefaultCheckButton.setLayoutData(gd);
- useDefaultCheckButton.addSelectionListener(widgetListener);
- }
-
- Composite specificFileComp = new Composite(parent, SWT.NONE);
- GridLayout layout = new GridLayout(2, false);
- layout.marginWidth = 0;
- if (showDefault)
- layout.marginLeft = 20;
- else
- layout.marginLeft = 0;
- layout.marginHeight = 0;
- specificFileComp.setLayout(layout);
- GridData gd = new GridData(GridData.FILL_HORIZONTAL);
- gd.horizontalSpan = 2;
- specificFileComp.setLayoutData(gd);
-
- Label label = new Label(specificFileComp, SWT.NONE);
- label.setText(Messages.OutputFileBlock_1);
-
- fileNameText = new Text(specificFileComp, SWT.SINGLE | SWT.BORDER);
- gd = new GridData(GridData.FILL_HORIZONTAL);
- gd.horizontalSpan = showDefault ? 1 : 2;
- fileNameText.setLayoutData(gd);
- fileNameText.setFont(parent.getFont());
- fileNameText.addModifyListener(widgetListener);
-
- if (showDefault) {
- label = new Label(specificFileComp, SWT.NONE);
- label.setText(Messages.OutputFileBlock_7);
- }
-
- resourceText = new Text(specificFileComp, SWT.SINGLE | SWT.BORDER);
- gd = new GridData(GridData.FILL_HORIZONTAL);
- gd.horizontalSpan = showDefault ? 1 : 2;
- resourceText.setLayoutData(gd);
- resourceText.setFont(parent.getFont());
- resourceText.addModifyListener(widgetListener);
- }
-
- @Override
- protected void createButtons(Composite parent) {
- Composite checkComposite = new Composite(parent, SWT.NONE);
- checkComposite.setLayoutData(new GridData(
- GridData.HORIZONTAL_ALIGN_BEGINNING));
- GridLayout gl = new GridLayout();
- gl.marginWidth = 0;
- checkComposite.setLayout(gl);
-
- openFileCheckButton = createCheckButton(checkComposite,
- Messages.OutputFileBlock_8);
- GridData gd = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING);
- gd.horizontalSpan = 1;
- openFileCheckButton.setLayoutData(gd);
- openFileCheckButton.addSelectionListener(new SelectionListener() {
-
- public void widgetDefaultSelected(SelectionEvent e) {
- }
-
- public void widgetSelected(SelectionEvent e) {
- if (openFileCheckButton.getSelection()) {
- formatFileCheckButton.setEnabled(true);
- updateLaunchConfigurationDialog();
- } else {
- formatFileCheckButton.setEnabled(false);
- formatFileCheckButton.setSelection(false);
- }
- }
- });
-
- formatFileCheckButton = createCheckButton(checkComposite,
- Messages.OutputFileBlock_2);
- gd = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING);
- gd.horizontalSpan = 1;
- formatFileCheckButton.setLayoutData(gd);
- formatFileCheckButton.addSelectionListener(new SelectionListener() {
-
- public void widgetDefaultSelected(SelectionEvent e) {
- }
-
- public void widgetSelected(SelectionEvent e) {
- updateLaunchConfigurationDialog();
- }
- });
-
- Composite buttonComp = new Composite(parent, SWT.TOP);
- GridLayout layout = new GridLayout(3, false);
- layout.marginHeight = 0;
- layout.marginWidth = 0;
- buttonComp.setLayout(layout);
- gd = new GridData(GridData.HORIZONTAL_ALIGN_END
- | GridData.VERTICAL_ALIGN_BEGINNING);
- gd.horizontalSpan = 1;
- buttonComp.setLayoutData(gd);
- buttonComp.setFont(parent.getFont());
-
- fWorkspaceButton = createPushButton(buttonComp,
- getMessage(WORKSPACE_BUTTON), null);
- fWorkspaceButton.addSelectionListener(widgetListener);
-
- fFileSystemButton = createPushButton(buttonComp,
- getMessage(FILE_SYSTEM_BUTTON), null);
- fFileSystemButton.addSelectionListener(widgetListener);
-
- fVariablesButton = createPushButton(buttonComp,
- getMessage(VARIABLES_BUTTON), null);
- fVariablesButton.addSelectionListener(widgetListener);
- }
-
- public String getName() {
- return Messages.OutputFileBlock_9;
- }
-
- public void initializeFrom(ILaunchConfiguration configuration) {
- try {
- inputFilename = configuration.getAttribute(
- XSLLaunchConfigurationConstants.ATTR_INPUT_FILE, ""); //$NON-NLS-1$
- updateDefaultOutputFile();
-
- boolean useDefault = configuration
- .getAttribute(
- XSLLaunchConfigurationConstants.ATTR_USE_DEFAULT_OUTPUT_FILE,
- true);
- useDefaultCheckButton.setSelection(useDefault);
-
- outputFileName = configuration.getAttribute(
- XSLLaunchConfigurationConstants.ATTR_OUTPUT_FILENAME,
- defaultOutputFileName);
- resource = configuration.getAttribute(
- XSLLaunchConfigurationConstants.ATTR_OUTPUT_FOLDER,
- defaultResource);
-
- updateResourceText(useDefault);
-
- boolean openFileOnCompletion = configuration.getAttribute(
- XSLLaunchConfigurationConstants.ATTR_OPEN_FILE, true);
- openFileCheckButton.setSelection(openFileOnCompletion);
-
- boolean formatFileOnCompletion = configuration.getAttribute(
- XSLLaunchConfigurationConstants.ATTR_FORMAT_FILE, false);
- formatFileCheckButton.setSelection(formatFileOnCompletion);
- } catch (CoreException e) {
- XSLDebugUIPlugin.log(e);
- }
- }
-
- public void performApply(ILaunchConfigurationWorkingCopy configuration) {
- boolean useDefault = useDefaultCheckButton.getSelection();
- configuration.setAttribute(
- XSLLaunchConfigurationConstants.ATTR_USE_DEFAULT_OUTPUT_FILE,
- useDefault);
-
- String outputFile = resourceText.getText();
- configuration.setAttribute(
- XSLLaunchConfigurationConstants.ATTR_OUTPUT_FOLDER, outputFile);
-
- String outputFileName = fileNameText.getText();
- configuration.setAttribute(
- XSLLaunchConfigurationConstants.ATTR_OUTPUT_FILENAME,
- outputFileName);
-
- boolean openFileOnCompletion = openFileCheckButton.getSelection();
- configuration.setAttribute(
- XSLLaunchConfigurationConstants.ATTR_OPEN_FILE,
- openFileOnCompletion);
-
- boolean formatFileOnCompletion = formatFileCheckButton.getSelection();
- configuration.setAttribute(
- XSLLaunchConfigurationConstants.ATTR_FORMAT_FILE,
- formatFileOnCompletion);
- }
-
- public void setDefaults(ILaunchConfigurationWorkingCopy configuration) {
- configuration.setAttribute(
- XSLLaunchConfigurationConstants.ATTR_USE_DEFAULT_OUTPUT_FILE,
- true);
- configuration.setAttribute(
- XSLLaunchConfigurationConstants.ATTR_OUTPUT_FOLDER,
- (String) null);
- configuration.setAttribute(
- XSLLaunchConfigurationConstants.ATTR_OUTPUT_FILENAME,
- (String) null);
- configuration.setAttribute(
- XSLLaunchConfigurationConstants.ATTR_OPEN_FILE, true);
- configuration.setAttribute(
- XSLLaunchConfigurationConstants.ATTR_FORMAT_FILE, false);
- }
-
- @Override
- protected void updateResourceText(boolean useDefault) {
- fileNameText.setEnabled(!useDefault);
- if (useDefault)
- fileNameText
- .setText(defaultOutputFileName == null ? "" : defaultOutputFileName); //$NON-NLS-1$
- else
- fileNameText.setText(outputFileName == null ? defaultOutputFileName
- : outputFileName);
- super.updateResourceText(useDefault);
- }
-
- private void updateDefaultOutputFile() {
- try {
- IPath path = XSLTRuntime
- .defaultOutputFileForInputFile(inputFilename);
- // determine whether this path exists in the workspace
- IFile[] files = ResourcesPlugin.getWorkspace().getRoot()
- .findFilesForLocation(path);
- if (files.length > 0) {// inside workspace
- IPath p = new Path(files[0].getProject().getName());
- p.append(files[0].getParent().getProjectRelativePath());
- defaultResource = "${workspace_loc:/" + p.toString() + "}"; //$NON-NLS-1$//$NON-NLS-2$
- } else {// outside workspace
- IPath p = path.removeLastSegments(1);
- defaultResource = p.toOSString();
- }
- defaultOutputFileName = path.lastSegment();
- } catch (CoreException e) {
- // do nothing
- }
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/output/OutputTab.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/output/OutputTab.java
deleted file mode 100644
index d56b890..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/output/OutputTab.java
+++ /dev/null
@@ -1,83 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.tabs.output;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.debug.core.ILaunchConfiguration;
-import org.eclipse.debug.ui.ILaunchConfigurationTab;
-import org.eclipse.debug.ui.WorkingDirectoryBlock;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.wst.xsl.debug.internal.util.XSLDebugPluginImages;
-import org.eclipse.wst.xsl.debug.internal.util.XSLPluginImageHelper;
-import org.eclipse.wst.xsl.internal.debug.ui.Messages;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLLaunchConfigurationTab;
-import org.eclipse.wst.xsl.internal.debug.ui.tabs.main.XSLMainTab;
-import org.eclipse.wst.xsl.launching.XSLLaunchConfigurationConstants;
-
-public class OutputTab extends XSLLaunchConfigurationTab {
- private final OutputFileBlock outputFileBlock;
- private final WorkingDirectoryBlock workingDirectoryBlock;
-
- public OutputTab(XSLMainTab main) {
- outputFileBlock = new OutputFileBlock();
- workingDirectoryBlock = new WorkingDirectoryBlock(
- XSLLaunchConfigurationConstants.ATTR_WORKING_DIR) {
- @Override
- protected IProject getProject(ILaunchConfiguration configuration)
- throws CoreException {
- // TODO Auto-generated method stub
- return null;
- }
- };
-
- setBlocks(new ILaunchConfigurationTab[] { outputFileBlock,
- workingDirectoryBlock });
- }
-
- @Override
- public void createControl(Composite parent) {
- super.createControl(parent);
- Composite comp = (Composite) getControl();
- GridLayout layout = new GridLayout(1, false);
- comp.setLayout(layout);
-
- outputFileBlock.createControl(comp);
-
- workingDirectoryBlock.createControl(comp);
-
- // Group group = new Group(comp, SWT.NULL);
- // group.setText(Messages.OutputTab_0);
- // GridData gd = new GridData(SWT.FILL, SWT.FILL, true, true);
- // group.setLayoutData(gd);
- // layout = new GridLayout(2, false);
- // group.setLayout(layout);
-
- // outputBlock.createControl(group);
- }
-
- @Override
- public String getId() {
- return "org.eclipse.wst.xsl.internal.debug.ui.tabs.output"; //$NON-NLS-1$
- }
-
- public String getName() {
- return Messages.OutputTab_1;
- }
-
- @Override
- public Image getImage() {
- return XSLPluginImageHelper.getInstance().getImage(
- XSLDebugPluginImages.IMG_OUTPUT_TAB);
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.exslt.core/.classpath b/bundles/org.eclipse.wst.xsl.exslt.core/.classpath
deleted file mode 100644
index 64c5e31..0000000
--- a/bundles/org.eclipse.wst.xsl.exslt.core/.classpath
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/bundles/org.eclipse.wst.xsl.exslt.core/.project b/bundles/org.eclipse.wst.xsl.exslt.core/.project
deleted file mode 100644
index cc82e49..0000000
--- a/bundles/org.eclipse.wst.xsl.exslt.core/.project
+++ /dev/null
@@ -1,34 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.wst.xsl.exslt.core</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>
- <buildCommand>
- <name>org.eclipse.pde.api.tools.apiAnalysisBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- <nature>org.eclipse.pde.api.tools.apiAnalysisNature</nature>
- </natures>
-</projectDescription>
diff --git a/bundles/org.eclipse.wst.xsl.exslt.core/.settings/org.eclipse.jdt.core.prefs b/bundles/org.eclipse.wst.xsl.exslt.core/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index bd0b325..0000000
--- a/bundles/org.eclipse.wst.xsl.exslt.core/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,8 +0,0 @@
-#Fri Sep 18 21:17:47 GMT 2009
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
-org.eclipse.jdt.core.compiler.compliance=1.5
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.5
diff --git a/bundles/org.eclipse.wst.xsl.exslt.core/META-INF/MANIFEST.MF b/bundles/org.eclipse.wst.xsl.exslt.core/META-INF/MANIFEST.MF
deleted file mode 100644
index 22d8ff7..0000000
--- a/bundles/org.eclipse.wst.xsl.exslt.core/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,14 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: %pluginName
-Bundle-SymbolicName: org.eclipse.wst.xsl.exslt.core;singleton:=true
-Bundle-Version: 1.0.0.qualifier
-Bundle-Activator: org.eclipse.wst.xsl.exslt.core.internal.EXSLTCore
-Require-Bundle: org.eclipse.core.runtime,
- org.eclipse.wst.common.uriresolver;bundle-version="[1.1.0,2.0.0)",
- org.eclipse.core.resources;bundle-version="[3.4.0,4.0.0)"
-Bundle-ActivationPolicy: lazy
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Export-Package: org.eclipse.wst.xsl.exslt.core.internal;x-internal:=true,
- org.eclipse.wst.xsl.exslt.core.internal.resolver;x-internal:=true
-Bundle-Vendor: %providerName
diff --git a/bundles/org.eclipse.wst.xsl.exslt.core/about.html b/bundles/org.eclipse.wst.xsl.exslt.core/about.html
deleted file mode 100644
index 2199df3..0000000
--- a/bundles/org.eclipse.wst.xsl.exslt.core/about.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<HTML>
-
-<head>
-<title>About</title>
-<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
-</head>
-
-<BODY lang="EN-US">
-
-<H3>About This Content</H3>
-
-<P>June, 2008</P>
-
-<H3>License</H3>
-
-<P>The Eclipse Foundation makes available all content in this plug-in
-("Content"). Unless otherwise indicated below, the Content is provided to you
-under the terms and conditions of the Eclipse Public License Version 1.0
-("EPL"). A copy of the EPL is available at
-<A href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/org/documents/epl-v10.php</A>.
-For purposes of the EPL, "Program" will mean the Content.</P>
-
-<P>If you did not receive this Content directly from the Eclipse Foundation, the
-Content is being redistributed by another party ("Redistributor") and different
-terms and conditions may apply to your use of any object code in the Content.
-Check the Redistributor’s license that was provided with the Content. If no such
-license exists, contact the Redistributor. Unless otherwise indicated below, the
-terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at
-<A href="http://www.eclipse.org/">http://www.eclipse.org/</A>.</P>
-
-</BODY>
-</HTML>
diff --git a/bundles/org.eclipse.wst.xsl.exslt.core/build.properties b/bundles/org.eclipse.wst.xsl.exslt.core/build.properties
deleted file mode 100644
index 25879c8..0000000
--- a/bundles/org.eclipse.wst.xsl.exslt.core/build.properties
+++ /dev/null
@@ -1,7 +0,0 @@
-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- plugin.xml,\
- schemas/,\
- bin/
diff --git a/bundles/org.eclipse.wst.xsl.exslt.core/plugin.properties b/bundles/org.eclipse.wst.xsl.exslt.core/plugin.properties
deleted file mode 100644
index dbe24d9..0000000
--- a/bundles/org.eclipse.wst.xsl.exslt.core/plugin.properties
+++ /dev/null
@@ -1,13 +0,0 @@
-###############################################################################
-# Copyright (c) 2009 Standards for Technology in Automotive Retail and others
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Eclipse Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Contributors:
-# David Carver - Initial API and Implementation
-###############################################################################
-
-providerName=Eclipse Web Tools Platform
-pluginName=EXSLT UI Extensions
diff --git a/bundles/org.eclipse.wst.xsl.exslt.core/plugin.xml b/bundles/org.eclipse.wst.xsl.exslt.core/plugin.xml
deleted file mode 100644
index ab73fbe..0000000
--- a/bundles/org.eclipse.wst.xsl.exslt.core/plugin.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.4"?>
-<plugin>
- <extension
- point="org.eclipse.wst.common.uriresolver.resolverExtensions">
- <resolverExtension
- class="org.eclipse.wst.xsl.exslt.core.internal.resolver.EXSLTResolverExtension"
- stage="prenormalization">
- </resolverExtension>
- </extension>
-
-</plugin>
diff --git a/bundles/org.eclipse.wst.xsl.exslt.core/schemas/common.xsd b/bundles/org.eclipse.wst.xsl.exslt.core/schemas/common.xsd
deleted file mode 100644
index a0b6ea8..0000000
--- a/bundles/org.eclipse.wst.xsl.exslt.core/schemas/common.xsd
+++ /dev/null
@@ -1,48 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://exslt.org/common" xmlns="http://exslt.org/common" elementFormDefault="qualified">
-
- <xsd:element name="document" type="DocumentType">
- <xsd:annotation>
- <xsd:documentation source="http://www.exslt.org/exsl/elements/document/exsl.document.html">
- The exsl:document element is used to create multiple result documents. As well as the main result document, there can be subsidiary result documents. Each subsidiary result document is created using an exsl:document element. The content of the exsl:document element is a template; this is instantiated to create a sequence of nodes; a root node is created with this sequence of nodes as its children; the tree with this root node represents the subsidiary result document. The href attribute specifies where the subsidiary document should be stored; it must be an absolute or relative URI; it must not have a fragment identifier.
- </xsd:documentation>
- </xsd:annotation>
- </xsd:element>
-
- <xsd:complexType name="DocumentType">
- <xsd:sequence>
- <xsd:any namespace="##other"/>
- </xsd:sequence>
- <xsd:attribute name="href" use="required" type="xsd:anyURI">
- <xsd:annotation>
- <xsd:documentation source="http://www.exslt.org/exsl/elements/document/exsl.document.html">
- The href attribute specifies where the subsidiary document should be stored; it must be an absolute or relative URI; it must not have a fragment identifier.
- </xsd:documentation>
- </xsd:annotation>
- </xsd:attribute>
- <xsd:attribute name="method" use="optional" type="MethodEnumeratedType"/>
- <xsd:attribute name="version" use="optional" type="xsd:NMTOKEN"/>
- <xsd:attribute name="encoding" use="optional" type="xsd:string"/>
- <xsd:attribute name="omit-xml-declaration" use="optional" type="YesNoEnumeratedType"/>
- <xsd:attribute name="doctype-public" use="optional" type="xsd:string"/>
- <xsd:attribute name="doctype-system" use="optional" type="xsd:string"/>
- <xsd:attribute name="cdata-section-elements" use="optional" type="xsd:string"/>
- <xsd:attribute name="indent" use="optional" type="YesNoEnumeratedType"/>
- <xsd:attribute name="media-type" use="optional" type="xsd:string"/>
- </xsd:complexType>
-
- <xsd:simpleType name="MethodEnumeratedType">
- <xsd:restriction base="xsd:token">
- <xsd:enumeration value="xml"/>
- <xsd:enumeration value="html"/>
- <xsd:enumeration value="text"/>
- </xsd:restriction>
- </xsd:simpleType>
-
- <xsd:simpleType name="YesNoEnumeratedType">
- <xsd:restriction base="xsd:token">
- <xsd:enumeration value="yes"/>
- <xsd:enumeration value="no"/>
- </xsd:restriction>
- </xsd:simpleType>
-</xsd:schema> \ No newline at end of file
diff --git a/bundles/org.eclipse.wst.xsl.exslt.core/src/org/eclipse/wst/xsl/exslt/core/internal/EXSLTCore.java b/bundles/org.eclipse.wst.xsl.exslt.core/src/org/eclipse/wst/xsl/exslt/core/internal/EXSLTCore.java
deleted file mode 100644
index 5eed4ce..0000000
--- a/bundles/org.eclipse.wst.xsl.exslt.core/src/org/eclipse/wst/xsl/exslt/core/internal/EXSLTCore.java
+++ /dev/null
@@ -1,72 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 Standards for Technology in Automotive Retail and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * David Carver - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.wst.xsl.exslt.core.internal;
-
-import org.eclipse.core.runtime.Plugin;
-import org.osgi.framework.BundleContext;
-
-/**
- * The activator class controls the plug-in life cycle
- */
-public class EXSLTCore extends Plugin {
-
- // The plug-in ID
- public static final String PLUGIN_ID = "org.eclipse.wst.xsl.exslt.core";
-
- public static final String EXSLT_MATH_NAMESPACE = "http://exslt.org/math";
- public static final String EXSLT_FUNC_NAMESPACE = "http://exslt.org/functions";
- public static final String EXSLT_COMMON_NAMESPACE = "http://exslt.org/common";
- public static final String EXSLT_DYNAMIC_NAMESPACE = "http://exslt.org/dynamic";
- public static final String EXSLT_DATE_NAMESPACE = "http://www.exslt.org/date/index.html";
- public static final String EXSLT_RANDOM_NAMESPACE = "http://exslt.org/random";
- public static final String EXSLT_REGEX_NAMESPACE = "http://exslt.org/regular-expressions";
- public static final String EXSLT_SETS_NAMESPACE = "http://exslt.org/sets";
- public static final String EXSLT_STRING_NAMESPACE = "http://exslt.org/strings";
-
-
- // The shared instance
- private static EXSLTCore plugin;
-
- /**
- * The constructor
- */
- public EXSLTCore() {
- }
-
- /*
- * (non-Javadoc)
- * @see org.eclipse.core.runtime.Plugins#start(org.osgi.framework.BundleContext)
- */
- public void start(BundleContext context) throws Exception {
- super.start(context);
- plugin = this;
- }
-
- /*
- * (non-Javadoc)
- * @see org.eclipse.core.runtime.Plugin#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 EXSLTCore getDefault() {
- return plugin;
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.exslt.core/src/org/eclipse/wst/xsl/exslt/core/internal/resolver/EXSLTResolverExtension.java b/bundles/org.eclipse.wst.xsl.exslt.core/src/org/eclipse/wst/xsl/exslt/core/internal/resolver/EXSLTResolverExtension.java
deleted file mode 100644
index 37b51b3..0000000
--- a/bundles/org.eclipse.wst.xsl.exslt.core/src/org/eclipse/wst/xsl/exslt/core/internal/resolver/EXSLTResolverExtension.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 Standards for Technology in Automotive Retail and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * David Carver - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.exslt.core.internal.resolver;
-
-import java.net.URL;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.wst.common.uriresolver.internal.provisional.URIResolverExtension;
-import org.eclipse.wst.xsl.exslt.core.internal.EXSLTCore;
-import org.osgi.framework.Bundle;
-
-public class EXSLTResolverExtension implements URIResolverExtension {
- Bundle bundle = null;
-
- public EXSLTResolverExtension() {
- bundle = EXSLTCore.getDefault().getBundle();
- }
-
- public String resolve(IFile file, String baseLocation, String publicId, String systemId)
- {
- if (EXSLTCore.EXSLT_COMMON_NAMESPACE.equals(publicId)) {
- return getURLPath("/schemas/common.xsd");
- }
-
- return null;
- }
-
- private String getURLPath(String grammarPath) {
- URL pluginURL = bundle.getEntry(grammarPath);
- return pluginURL.toExternalForm();
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.exslt.ui/.classpath b/bundles/org.eclipse.wst.xsl.exslt.ui/.classpath
deleted file mode 100644
index 64c5e31..0000000
--- a/bundles/org.eclipse.wst.xsl.exslt.ui/.classpath
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/bundles/org.eclipse.wst.xsl.exslt.ui/.project b/bundles/org.eclipse.wst.xsl.exslt.ui/.project
deleted file mode 100644
index 59ac6c2..0000000
--- a/bundles/org.eclipse.wst.xsl.exslt.ui/.project
+++ /dev/null
@@ -1,34 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.wst.xsl.exslt.ui</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>
- <buildCommand>
- <name>org.eclipse.pde.api.tools.apiAnalysisBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- <nature>org.eclipse.pde.api.tools.apiAnalysisNature</nature>
- </natures>
-</projectDescription>
diff --git a/bundles/org.eclipse.wst.xsl.exslt.ui/.settings/org.eclipse.jdt.core.prefs b/bundles/org.eclipse.wst.xsl.exslt.ui/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 7ba2275..0000000
--- a/bundles/org.eclipse.wst.xsl.exslt.ui/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,8 +0,0 @@
-#Tue Sep 22 21:35:12 GMT 2009
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
-org.eclipse.jdt.core.compiler.compliance=1.5
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.5
diff --git a/bundles/org.eclipse.wst.xsl.exslt.ui/META-INF/MANIFEST.MF b/bundles/org.eclipse.wst.xsl.exslt.ui/META-INF/MANIFEST.MF
deleted file mode 100644
index c299d35..0000000
--- a/bundles/org.eclipse.wst.xsl.exslt.ui/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,20 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: %pluginName
-Bundle-SymbolicName: org.eclipse.wst.xsl.exslt.ui;singleton:=true
-Bundle-Version: 1.0.0.qualifier
-Bundle-Activator: org.eclipse.wst.xsl.exslt.ui.internal.EXSLTUIPlugin
-Require-Bundle: org.eclipse.ui,
- org.eclipse.core.runtime,
- org.eclipse.wst.xsl.ui;bundle-version="[1.1.0,2.0.0)",
- org.eclipse.jface.text;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.wst.xml.core;bundle-version="[1.1.0,2.0.0)",
- org.eclipse.wst.xsl.core;bundle-version="[1.1.0,2.0.0)",
- org.eclipse.wst.sse.core;bundle-version="[1.1.0,2.0.0)",
- org.eclipse.wst.sse.ui;bundle-version="[1.1.0,2.0.0)",
- org.eclipse.wst.xsl.exslt.core;bundle-version="[1.0.0,2.0.0)"
-Bundle-ActivationPolicy: lazy
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Bundle-Vendor: %providerName
-Export-Package: org.eclipse.wst.xsl.exslt.ui.internal;x-internal:=true,
- org.eclipse.wst.xsl.exslt.ui.internal.contentassist;x-internal:=true
diff --git a/bundles/org.eclipse.wst.xsl.exslt.ui/about.html b/bundles/org.eclipse.wst.xsl.exslt.ui/about.html
deleted file mode 100644
index 2199df3..0000000
--- a/bundles/org.eclipse.wst.xsl.exslt.ui/about.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<HTML>
-
-<head>
-<title>About</title>
-<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
-</head>
-
-<BODY lang="EN-US">
-
-<H3>About This Content</H3>
-
-<P>June, 2008</P>
-
-<H3>License</H3>
-
-<P>The Eclipse Foundation makes available all content in this plug-in
-("Content"). Unless otherwise indicated below, the Content is provided to you
-under the terms and conditions of the Eclipse Public License Version 1.0
-("EPL"). A copy of the EPL is available at
-<A href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/org/documents/epl-v10.php</A>.
-For purposes of the EPL, "Program" will mean the Content.</P>
-
-<P>If you did not receive this Content directly from the Eclipse Foundation, the
-Content is being redistributed by another party ("Redistributor") and different
-terms and conditions may apply to your use of any object code in the Content.
-Check the Redistributor’s license that was provided with the Content. If no such
-license exists, contact the Redistributor. Unless otherwise indicated below, the
-terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at
-<A href="http://www.eclipse.org/">http://www.eclipse.org/</A>.</P>
-
-</BODY>
-</HTML>
diff --git a/bundles/org.eclipse.wst.xsl.exslt.ui/build.properties b/bundles/org.eclipse.wst.xsl.exslt.ui/build.properties
deleted file mode 100644
index 0cb39e6..0000000
--- a/bundles/org.eclipse.wst.xsl.exslt.ui/build.properties
+++ /dev/null
@@ -1,13 +0,0 @@
-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- plugin.xml,\
- about.html,\
- plugin.properties,\
- bin/
-src.includes = src/,\
- build.properties,\
- plugin.xml,\
- about.html,\
- plugin.properties
diff --git a/bundles/org.eclipse.wst.xsl.exslt.ui/plugin.properties b/bundles/org.eclipse.wst.xsl.exslt.ui/plugin.properties
deleted file mode 100644
index cbf2eb6..0000000
--- a/bundles/org.eclipse.wst.xsl.exslt.ui/plugin.properties
+++ /dev/null
@@ -1,13 +0,0 @@
-###############################################################################
-# Copyright (c) 2009 Standards for Technology in Automotive Retail and others
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Eclipse Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Contributors:
-# David Carver - Initial API and Implementation
-###############################################################################
-
-providerName=Eclipse Web Tools Platform
-pluginName=EXSLT Core Extensions
diff --git a/bundles/org.eclipse.wst.xsl.exslt.ui/plugin.xml b/bundles/org.eclipse.wst.xsl.exslt.ui/plugin.xml
deleted file mode 100644
index 2eac0c1..0000000
--- a/bundles/org.eclipse.wst.xsl.exslt.ui/plugin.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.4"?>
-<plugin>
- <extension
- point="org.eclipse.wst.xsl.ui.contentAssistProcessor">
- <processor
- class="org.eclipse.wst.xsl.exslt.ui.internal.contentassist.EXSLTCommonContentAssistProcessor">
- </processor>
- </extension>
-
-</plugin>
diff --git a/bundles/org.eclipse.wst.xsl.exslt.ui/src/org/eclipse/wst/xsl/exslt/ui/internal/EXSLTUIPlugin.java b/bundles/org.eclipse.wst.xsl.exslt.ui/src/org/eclipse/wst/xsl/exslt/ui/internal/EXSLTUIPlugin.java
deleted file mode 100644
index f751469..0000000
--- a/bundles/org.eclipse.wst.xsl.exslt.ui/src/org/eclipse/wst/xsl/exslt/ui/internal/EXSLTUIPlugin.java
+++ /dev/null
@@ -1,60 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 Standards for Technology in Automotive Retail and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * David Carver - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.exslt.ui.internal;
-
-import org.eclipse.ui.plugin.AbstractUIPlugin;
-import org.osgi.framework.BundleContext;
-
-/**
- * The activator class controls the plug-in life cycle
- */
-public class EXSLTUIPlugin extends AbstractUIPlugin {
-
- // The plug-in ID
- public static final String PLUGIN_ID = "org.eclipse.wst.xsl.exslt.ui";
-
- // The shared instance
- private static EXSLTUIPlugin plugin;
-
- /**
- * The constructor
- */
- public EXSLTUIPlugin() {
- }
-
- /*
- * (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 EXSLTUIPlugin getDefault() {
- return plugin;
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.exslt.ui/src/org/eclipse/wst/xsl/exslt/ui/internal/contentassist/CommonSelectContentAssistRequest.java b/bundles/org.eclipse.wst.xsl.exslt.ui/src/org/eclipse/wst/xsl/exslt/ui/internal/contentassist/CommonSelectContentAssistRequest.java
deleted file mode 100644
index 6672241..0000000
--- a/bundles/org.eclipse.wst.xsl.exslt.ui/src/org/eclipse/wst/xsl/exslt/ui/internal/contentassist/CommonSelectContentAssistRequest.java
+++ /dev/null
@@ -1,112 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 Standards for Technology in Automotive Retail and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * David Carver - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.exslt.ui.internal.contentassist;
-
-import java.util.ArrayList;
-
-import org.eclipse.jface.text.ITextViewer;
-import org.eclipse.jface.text.contentassist.ICompletionProposal;
-import org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocumentRegion;
-import org.eclipse.wst.sse.core.internal.provisional.text.ITextRegion;
-import org.eclipse.wst.xml.core.internal.contentmodel.util.DOMNamespaceHelper;
-import org.eclipse.wst.xml.core.internal.contentmodel.util.NamespaceTable;
-import org.eclipse.wst.xml.core.internal.provisional.document.IDOMAttr;
-import org.eclipse.wst.xsl.core.model.CallTemplate;
-import org.eclipse.wst.xsl.exslt.core.internal.EXSLTCore;
-import org.eclipse.wst.xsl.ui.internal.contentassist.SelectAttributeContentAssist;
-import org.eclipse.wst.xsl.ui.internal.util.XSLPluginImageHelper;
-import org.eclipse.wst.xsl.ui.internal.util.XSLPluginImages;
-import org.eclipse.wst.xsl.ui.provisional.contentassist.AbstractXSLContentAssistRequest;
-import org.eclipse.wst.xsl.ui.provisional.contentassist.CustomCompletionProposal;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-import org.w3c.dom.Node;
-
-public class CommonSelectContentAssistRequest extends SelectAttributeContentAssist {
-
- private static final String EXSLT_COMMON_NAMESPACE = "http://exslt.org/common";
- private static final String NODE_SET = "node-set( )";
- private static final String OBJECT_TYPE = "object-type( )";
-
- String prefix = "";
- public CommonSelectContentAssistRequest(Node node,
- IStructuredDocumentRegion documentRegion,
- ITextRegion completionRegion, int begin, int length, String filter,
- ITextViewer textViewer) {
- super(node, documentRegion, completionRegion, begin, length, filter,
- textViewer);
-
- }
-
- @Override
- public ArrayList<ICompletionProposal> getCompletionProposals() {
- proposals.clear();
-
- adjustXPathStart(SELECT_ATTRIBUTE);
-
- int offset = getReplacementBeginPosition();
- IDOMAttr attrNode = getAttribute(SELECT_ATTRIBUTE);
-
- this.matchString = extractXPathMatchString(attrNode, getRegion(),
- getReplacementBeginPosition());
-
- addSelectProposals((Element) getNode().getParentNode(), offset);
-
- return getAllCompletionProposals();
- }
-
- @Override
- protected void addSelectProposals(Element rootElement, int offset) {
- Document doc = rootElement.getOwnerDocument();
- NamespaceTable namespaceTable = new NamespaceTable(doc);
- namespaceTable.addElement(doc.getDocumentElement());
- prefix = namespaceTable.getPrefixForURI(EXSLTCore.EXSLT_COMMON_NAMESPACE);
- if (prefix != null) {
- addNodeSetProposal();
- addObjectTypeProposal();
- }
- }
-
- private void addNodeSetProposal() {
- String nodeset = "";
-
- if (prefix != null) {
- nodeset = prefix + ":" + NODE_SET;
- } else {
- nodeset = NODE_SET;
- }
-
- CustomCompletionProposal proposal = new CustomCompletionProposal(
- nodeset, getStartOffset() + 1, 0,
- nodeset.length(), XSLPluginImageHelper
- .getInstance().getImage(
- XSLPluginImages.IMG_XPATH_FUNCTION), nodeset, null, null, 0);
- proposals.add((ICompletionProposal)proposal);
- }
-
- private void addObjectTypeProposal() {
- String nodeset = "";
-
- if (prefix != null) {
- nodeset = prefix + ":" + OBJECT_TYPE;
- } else {
- nodeset = OBJECT_TYPE;
- }
-
- CustomCompletionProposal proposal = new CustomCompletionProposal(
- nodeset, getStartOffset() + 1, 0,
- nodeset.length(), XSLPluginImageHelper
- .getInstance().getImage(
- XSLPluginImages.IMG_XPATH_FUNCTION), nodeset, null, null, 0);
- proposals.add((ICompletionProposal)proposal);
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.exslt.ui/src/org/eclipse/wst/xsl/exslt/ui/internal/contentassist/CommonTestContentAssistRequest.java b/bundles/org.eclipse.wst.xsl.exslt.ui/src/org/eclipse/wst/xsl/exslt/ui/internal/contentassist/CommonTestContentAssistRequest.java
deleted file mode 100644
index 591309b..0000000
--- a/bundles/org.eclipse.wst.xsl.exslt.ui/src/org/eclipse/wst/xsl/exslt/ui/internal/contentassist/CommonTestContentAssistRequest.java
+++ /dev/null
@@ -1,43 +0,0 @@
-package org.eclipse.wst.xsl.exslt.ui.internal.contentassist;
-
-import java.util.ArrayList;
-
-import org.eclipse.jface.text.ITextViewer;
-import org.eclipse.jface.text.contentassist.ICompletionProposal;
-import org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocumentRegion;
-import org.eclipse.wst.sse.core.internal.provisional.text.ITextRegion;
-import org.eclipse.wst.xml.core.internal.provisional.document.IDOMAttr;
-import org.w3c.dom.Element;
-import org.w3c.dom.Node;
-
-public class CommonTestContentAssistRequest extends
- CommonSelectContentAssistRequest {
-
- private String ATTR_TEST = "test"; //$NON-NLS-1$
-
- public CommonTestContentAssistRequest(Node node,
- IStructuredDocumentRegion documentRegion,
- ITextRegion completionRegion, int begin, int length, String filter,
- ITextViewer textViewer) {
- super(node, documentRegion, completionRegion, begin, length, filter, textViewer);
- }
-
- @Override
- public ArrayList<ICompletionProposal> getCompletionProposals() {
- proposals.clear();
-
- adjustXPathStart(ATTR_TEST);
-
- int offset = getReplacementBeginPosition();
- IDOMAttr attrNode = getAttribute(ATTR_TEST);
-
- this.matchString = extractXPathMatchString(attrNode, getRegion(),
- getReplacementBeginPosition());
-
- addSelectProposals((Element) getNode().getParentNode(), offset);
-
- return getAllCompletionProposals();
- }
-
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.exslt.ui/src/org/eclipse/wst/xsl/exslt/ui/internal/contentassist/EXSLTCommonContentAssistProcessor.java b/bundles/org.eclipse.wst.xsl.exslt.ui/src/org/eclipse/wst/xsl/exslt/ui/internal/contentassist/EXSLTCommonContentAssistProcessor.java
deleted file mode 100644
index 9a910b0..0000000
--- a/bundles/org.eclipse.wst.xsl.exslt.ui/src/org/eclipse/wst/xsl/exslt/ui/internal/contentassist/EXSLTCommonContentAssistProcessor.java
+++ /dev/null
@@ -1,87 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 Standards for Technology in Automotive Retail and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * David Carver - initial API and implementation
- * Jesper Moller - bug 303823 - NPE if namespace was unknown
- *******************************************************************************/
-package org.eclipse.wst.xsl.exslt.ui.internal.contentassist;
-
-import java.util.ArrayList;
-
-import org.eclipse.jface.text.ITextViewer;
-import org.eclipse.jface.text.contentassist.ICompletionProposal;
-import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
-import org.eclipse.jface.text.contentassist.IContextInformation;
-import org.eclipse.jface.text.contentassist.IContextInformationValidator;
-import org.eclipse.wst.xsl.core.XSLCore;
-import org.eclipse.wst.xsl.ui.provisional.contentassist.AbstractXSLContentAssistProcessor;
-import org.eclipse.wst.xsl.ui.provisional.contentassist.IContentAssistProposalRequest;
-
-public class EXSLTCommonContentAssistProcessor extends
- AbstractXSLContentAssistProcessor implements IContentAssistProcessor {
-
- private ArrayList<ICompletionProposal> exsltProposals;
-
- public EXSLTCommonContentAssistProcessor() {
- }
-
- public String getMaximumVersion() {
- return "1.0";
- }
-
- public String getMinimumVersion() {
- return "1.0";
- }
-
- public ArrayList<String> getNamespaces() {
- return null;
- }
-
-
- public IContextInformation[] computeContextInformation(ITextViewer viewer,
- int offset) {
- return null;
- }
-
-
- public char[] getContextInformationAutoActivationCharacters() {
- return null;
- }
-
- public IContextInformationValidator getContextInformationValidator() {
- return null;
- }
-
- public ICompletionProposal[] computeCompletionProposals(
- ITextViewer textViewer, int documentPosition) {
- initializeProposalVariables(textViewer, documentPosition);
-
-
- // Only provide proposals for elements in either the XSLT Namespace or EXSLT namespace.
- String namespaceURI = xmlNode.getNamespaceURI();
- if (namespaceURI == null ||
- !namespaceURI.contains("http://exslt.org/") &&
- !namespaceURI.equals(XSLCore.XSL_NAMESPACE_URI)) {
- return null;
- }
-
- EXSLTContentAssistRequestFactory requestFactory = new EXSLTContentAssistRequestFactory(
- textViewer, cursorPosition, xmlNode, sdRegion,
- completionRegion, matchString);
-
- IContentAssistProposalRequest contentAssistRequest = requestFactory
- .getContentAssistRequest();
-
- exsltProposals = contentAssistRequest.getCompletionProposals();
- ICompletionProposal[] proposals = new ICompletionProposal[exsltProposals.size()];
- exsltProposals.toArray(proposals);
-
- return proposals;
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.exslt.ui/src/org/eclipse/wst/xsl/exslt/ui/internal/contentassist/EXSLTContentAssistRequestFactory.java b/bundles/org.eclipse.wst.xsl.exslt.ui/src/org/eclipse/wst/xsl/exslt/ui/internal/contentassist/EXSLTContentAssistRequestFactory.java
deleted file mode 100644
index 55be51b..0000000
--- a/bundles/org.eclipse.wst.xsl.exslt.ui/src/org/eclipse/wst/xsl/exslt/ui/internal/contentassist/EXSLTContentAssistRequestFactory.java
+++ /dev/null
@@ -1,117 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 Standards for Technology in Automotive Retail and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * David Carver - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.exslt.ui.internal.contentassist;
-
-import org.eclipse.jface.text.ITextViewer;
-import org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocumentRegion;
-import org.eclipse.wst.sse.core.internal.provisional.text.ITextRegion;
-import org.eclipse.wst.xml.core.internal.provisional.document.IDOMAttr;
-import org.eclipse.wst.xml.core.internal.provisional.document.IDOMElement;
-import org.eclipse.wst.xml.core.internal.provisional.document.IDOMNode;
-import org.eclipse.wst.xsl.ui.internal.contentassist.SelectAttributeContentAssist;
-import org.eclipse.wst.xsl.ui.internal.contentassist.TestAttributeContentAssist;
-import org.eclipse.wst.xsl.ui.internal.contentassist.href.HrefContentAssistRequest;
-import org.eclipse.wst.xsl.ui.provisional.contentassist.IContentAssistProposalRequest;
-import org.eclipse.wst.xsl.ui.provisional.contentassist.NullContentAssistRequest;
-import org.w3c.dom.NamedNodeMap;
-
-/**
- * A Factory that determines which Content Assist Request class is needed and
- * returns the appropriate class.
- *
- * @author David Carver
- * @since 1.0
- */
-public class EXSLTContentAssistRequestFactory {
- private static final String ATTR_SELECT = "select"; //$NON-NLS-1$
- private static final String ATTR_TEST = "test"; //$NON-NLS-1$
- private static final String ATTR_MATCH = "match"; //$NON-NLS-1$
- private ITextViewer textViewer;
- private int documentPosition;
- private IDOMNode xmlNode;
- private IStructuredDocumentRegion sdRegion;
- private ITextRegion completionRegion;
- private String matchString;
-
-
- /**
- * @param textViewer
- * @param documentPosition
- * @param xmlNode
- * @param sdRegion
- * @param completionRegion
- * @param matchString
- */
- public EXSLTContentAssistRequestFactory(ITextViewer textViewer, int documentPosition, IDOMNode xmlNode,
- IStructuredDocumentRegion sdRegion, ITextRegion completionRegion,
- String matchString) {
- this.textViewer = textViewer;
- this.documentPosition = documentPosition;
- this.xmlNode = xmlNode;
- this.sdRegion = sdRegion;
- this.completionRegion = completionRegion;
- this.matchString = matchString;
- }
-
- /**
- * Get the appropriate content assist request class for the XSL request.
- * @return
- */
- public IContentAssistProposalRequest getContentAssistRequest() {
- NamedNodeMap nodeMap = xmlNode.getAttributes();
- IDOMElement element = (IDOMElement) xmlNode;
- IContentAssistProposalRequest proposal = commonAttributeProposals(nodeMap);
-
- if (proposal instanceof NullContentAssistRequest) {
- if (isElementProposal(element)) {
- proposal = getNullProposal();
- }
- }
-
- return proposal;
- }
-
- private boolean isElementProposal(IDOMElement element) {
- String localName = element.getLocalName();
- return false;
- }
-
- private IContentAssistProposalRequest commonAttributeProposals(
- NamedNodeMap nodeMap) {
- if (hasAttributeAtTextRegion(ATTR_SELECT, nodeMap,
- completionRegion)) {
- return new CommonSelectContentAssistRequest(xmlNode, sdRegion,
- completionRegion, documentPosition, 0, matchString,
- textViewer);
- }
-
- if (hasAttributeAtTextRegion(ATTR_TEST, nodeMap, completionRegion)) {
- return new CommonTestContentAssistRequest(xmlNode, sdRegion,
- completionRegion, documentPosition, 0, matchString,
- textViewer);
- }
-
- return getNullProposal();
- }
-
- protected boolean hasAttributeAtTextRegion(String attrName,
- NamedNodeMap nodeMap, ITextRegion aRegion) {
- IDOMAttr attrNode = (IDOMAttr) nodeMap.getNamedItem(attrName);
- return attrNode != null && attrNode.getValueRegion() != null
- && attrNode.getValueRegion().getStart() == aRegion.getStart();
- }
-
- private IContentAssistProposalRequest getNullProposal() {
- return new NullContentAssistRequest(xmlNode, sdRegion,
- completionRegion, documentPosition, 0, matchString, textViewer);
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/.classpath b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/.classpath
deleted file mode 100644
index 88c91a8..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/.classpath
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins">
- <accessrules>
- <accessrule kind="accessible" pattern="org/eclipse/wst/xsl/internal/**"/>
- <accessrule kind="accessible" pattern="org/eclipse/wst/xsl/ui/internal/**"/>
- </accessrules>
- </classpathentry>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/.project b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/.project
deleted file mode 100644
index 6a6f79d..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/.project
+++ /dev/null
@@ -1,34 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.wst.xsl.jaxp.debug.ui</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>
- <buildCommand>
- <name>org.eclipse.pde.api.tools.apiAnalysisBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- <nature>org.eclipse.pde.api.tools.apiAnalysisNature</nature>
- </natures>
-</projectDescription>
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/.settings/org.eclipse.jdt.core.prefs b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 926f21b..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,82 +0,0 @@
-#Thu Jun 11 01:36:57 GMT 2009
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
-org.eclipse.jdt.core.compiler.compliance=1.5
-org.eclipse.jdt.core.compiler.doc.comment.support=enabled
-org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
-org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning
-org.eclipse.jdt.core.compiler.problem.deadCode=warning
-org.eclipse.jdt.core.compiler.problem.deprecation=warning
-org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
-org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled
-org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
-org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore
-org.eclipse.jdt.core.compiler.problem.fatalOptionalError=enabled
-org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
-org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
-org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
-org.eclipse.jdt.core.compiler.problem.forbiddenReference=error
-org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
-org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
-org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore
-org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore
-org.eclipse.jdt.core.compiler.problem.invalidJavadoc=ignore
-org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=disabled
-org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=disabled
-org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=disabled
-org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=public
-org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
-org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
-org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore
-org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore
-org.eclipse.jdt.core.compiler.problem.missingJavadocComments=ignore
-org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=disabled
-org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=public
-org.eclipse.jdt.core.compiler.problem.missingJavadocTagDescription=return_tag
-org.eclipse.jdt.core.compiler.problem.missingJavadocTags=ignore
-org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled
-org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=public
-org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
-org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
-org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore
-org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
-org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
-org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=error
-org.eclipse.jdt.core.compiler.problem.nullReference=warning
-org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
-org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
-org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore
-org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore
-org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning
-org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore
-org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore
-org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
-org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
-org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
-org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
-org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
-org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning
-org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
-org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
-org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
-org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore
-org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
-org.eclipse.jdt.core.compiler.problem.unusedImport=warning
-org.eclipse.jdt.core.compiler.problem.unusedLabel=warning
-org.eclipse.jdt.core.compiler.problem.unusedLocal=warning
-org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
-org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
-org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
-org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
-org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
-org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
-org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
-org.eclipse.jdt.core.compiler.source=1.5
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/META-INF/MANIFEST.MF b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/META-INF/MANIFEST.MF
deleted file mode 100644
index dbbaa4b..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,29 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: %pluginName
-Bundle-SymbolicName: org.eclipse.wst.xsl.jaxp.debug.ui;singleton:=true
-Bundle-Version: 1.0.100.qualifier
-Bundle-Activator: org.eclipse.wst.xsl.jaxp.debug.ui.internal.JAXPDebugUIPlugin
-Bundle-Vendor: %vendorName
-Require-Bundle: org.eclipse.ui;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.debug.ui;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.wst.xsl.debug.ui;bundle-version="[1.0.0,2.0.0)",
- org.eclipse.ui.ide;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.wst.xsl.launching;bundle-version="[1.0.0,2.0.0)",
- org.eclipse.wst.xsl.jaxp.launching;bundle-version="[1.0.0,2.0.0)",
- org.eclipse.jface.text;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.wst.sse.ui;bundle-version="[1.1.0,2.0.0)",
- org.eclipse.wst.xsl.ui;bundle-version="[1.0.0,2.0.0)",
- org.eclipse.wst.sse.core;bundle-version="[1.1.300,2.0.0)",
- org.eclipse.wst.xml.core;bundle-version="[1.1.300,2.0.0)",
- org.eclipse.ui.workbench.texteditor;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.wst.xml.ui;bundle-version="[1.0.400,2.0.0)",
- org.eclipse.jdt.debug.ui;bundle-version="[3.3.0,4.0.0)"
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Bundle-ActivationPolicy: lazy
-Bundle-Localization: plugin
-Export-Package: org.eclipse.wst.xsl.jaxp.debug.ui.internal;x-internal:=true,
- org.eclipse.wst.xsl.jaxp.debug.ui.internal.preferences;x-internal:=true,
- org.eclipse.wst.xsl.jaxp.debug.ui.internal.tabs.processor;x-internal:=true,
- org.eclipse.wst.xsl.jaxp.debug.ui.internal.views;x-internal:=true
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/about.html b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/about.html
deleted file mode 100644
index ed30003..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/about.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<HTML>
-
-<head>
-<title>About</title>
-<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
-</head>
-
-<BODY lang="EN-US">
-
-<H3>About This Content</H3>
-
-<P>August, 2008</P>
-
-<H3>License</H3>
-
-<P>The Eclipse Foundation makes available all content in this plug-in
-("Content"). Unless otherwise indicated below, the Content is provided to you
-under the terms and conditions of the Eclipse Public License Version 1.0
-("EPL"). A copy of the EPL is available at
-<A href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/org/documents/epl-v10.php</A>.
-For purposes of the EPL, "Program" will mean the Content.</P>
-
-<P>If you did not receive this Content directly from the Eclipse Foundation, the
-Content is being redistributed by another party ("Redistributor") and different
-terms and conditions may apply to your use of any object code in the Content.
-Check the Redistributor’s license that was provided with the Content. If no such
-license exists, contact the Redistributor. Unless otherwise indicated below, the
-terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at
-<A href="http://www.eclipse.org/">http://www.eclipse.org/</A>.</P>
-
-</BODY>
-</HTML>
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/build.properties b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/build.properties
deleted file mode 100644
index 647fcc0..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/build.properties
+++ /dev/null
@@ -1,8 +0,0 @@
-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- plugin.xml,\
- about.html,\
- icons/,\
- plugin.properties
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/icons/xslt_processor.gif b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/icons/xslt_processor.gif
deleted file mode 100644
index 5e71289..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/icons/xslt_processor.gif
+++ /dev/null
Binary files differ
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/plugin.properties b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/plugin.properties
deleted file mode 100644
index 6a9c3a7..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/plugin.properties
+++ /dev/null
@@ -1,5 +0,0 @@
-#Properties file for org.eclipse.wst.xsl.jaxp.debug.ui
-vendorName = Eclipse.org
-pluginName = XSL JAXP Debug UI
-pageNameJavaProcessors = Java Processors
-viewNameResult = Result \ No newline at end of file
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/plugin.xml b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/plugin.xml
deleted file mode 100644
index af972da..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/plugin.xml
+++ /dev/null
@@ -1,70 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.2"?>
-<plugin>
- <extension point="org.eclipse.debug.ui.launchConfigurationTabs">
- <tab
- class="org.eclipse.wst.xsl.jaxp.debug.ui.internal.tabs.processor.XSLProcessorTab2"
- group="org.eclipse.wst.xsl.internal.debug.ui.launchConfigurationTabGroup.xslt"
- id="org.eclipse.wst.xsl.debug.ui.jaxp.tabs.processor" name="Processor">
- <associatedDelegate
- delegate="org.eclipse.wst.xsl.launching.internal.jaxp.JAXPLaunchConfigurationDelegate">
- </associatedDelegate>
- <placement after="org.eclipse.wst.xsl.internal.debug.ui.tabs.output">
- </placement>
- </tab>
- <tab class="org.eclipse.jdt.debug.ui.launchConfigurations.JavaJRETab"
- group="org.eclipse.wst.xsl.internal.debug.ui.launchConfigurationTabGroup.xslt"
- id="org.eclipse.jdt.debug.ui.javaJRETab" name="JRE">
- <associatedDelegate
- delegate="org.eclipse.wst.xsl.launching.internal.jaxp.JAXPLaunchConfigurationDelegate">
- </associatedDelegate>
- <placement after="org.eclipse.wst.xsl.debug.ui.jaxp.tabs.processor">
- </placement>
- </tab>
- <tab class="org.eclipse.jdt.debug.ui.launchConfigurations.JavaClasspathTab"
- group="org.eclipse.wst.xsl.internal.debug.ui.launchConfigurationTabGroup.xslt"
- id="org.eclipse.jdt.debug.ui.javaClasspathTab" name="Classpath">
- <associatedDelegate
- delegate="org.eclipse.wst.xsl.launching.internal.jaxp.JAXPLaunchConfigurationDelegate">
- </associatedDelegate>
- <placement after="org.eclipse.jdt.debug.ui.javaJRETab">
- </placement>
- </tab>
- </extension>
- <extension point="org.eclipse.ui.preferencePages">
- <page category="org.eclipse.wst.xsl.ui.preferences.BasePreferencePage"
- class="org.eclipse.wst.xsl.jaxp.debug.ui.internal.preferences.ProcessorsPreferencePage"
- id="org.eclipse.wst.xsl.ui.preferences.java" name="%pageNameJavaProcessors">
- </page>
- </extension>
- <extension
- point="org.eclipse.ui.views">
- <view
- class="org.eclipse.wst.xsl.jaxp.debug.ui.internal.views.ResultView"
- id="org.eclipse.wst.xsl.jaxp.debug.ui.resultview"
- name="%viewNameResult"
- category="org.eclipse.wst.xml">
- </view>
- </extension>
- <extension
- point="org.eclipse.ui.perspectiveExtensions">
- <perspectiveExtension
- targetID="org.eclipse.debug.ui.DebugPerspective">
- <view
- id="org.eclipse.wst.xsl.jaxp.debug.ui.view1"
- minimized="false"
- relationship="stack"
- relative="org.eclipse.ui.console.ConsoleView"
- visible="false">
- </view>
- </perspectiveExtension>
- </extension>
-
- <extension point="org.eclipse.debug.ui.contextViewBindings">
- <contextViewBinding
- contextId="org.eclipse.wst.xsl.debug.ui.context"
- viewId="org.eclipse.wst.xsl.jaxp.debug.ui.resultview">
- </contextViewBinding>
- </extension>
-
-</plugin>
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/JAXPDebugUIPlugin.java b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/JAXPDebugUIPlugin.java
deleted file mode 100644
index 22e7aa8..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/JAXPDebugUIPlugin.java
+++ /dev/null
@@ -1,52 +0,0 @@
-package org.eclipse.wst.xsl.jaxp.debug.ui.internal;
-
-import org.eclipse.ui.plugin.AbstractUIPlugin;
-import org.osgi.framework.BundleContext;
-
-/**
- * The activator class controls the plug-in life cycle
- */
-public class JAXPDebugUIPlugin extends AbstractUIPlugin {
-
- // The plug-in ID
- public static final String PLUGIN_ID = "org.eclipse.wst.xsl.jaxp.debug.ui"; //$NON-NLS-1$
-
- // The shared instance
- private static JAXPDebugUIPlugin plugin;
-
- /**
- * The constructor
- */
- public JAXPDebugUIPlugin() {
- }
-
- /*
- * (non-Javadoc)
- * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
- */
- @Override
- 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)
- */
- @Override
- public void stop(BundleContext context) throws Exception {
- plugin = null;
- super.stop(context);
- }
-
- /**
- * Returns the shared instance
- *
- * @return the shared instance
- */
- public static JAXPDebugUIPlugin getDefault() {
- return plugin;
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/AddProcessorDialog.java b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/AddProcessorDialog.java
deleted file mode 100644
index f9b92b1..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/AddProcessorDialog.java
+++ /dev/null
@@ -1,384 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.ui.internal.preferences;
-
-import java.io.File;
-
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.jface.dialogs.IDialogConstants;
-import org.eclipse.jface.dialogs.IDialogSettings;
-import org.eclipse.jface.dialogs.StatusDialog;
-import org.eclipse.jface.viewers.ComboViewer;
-import org.eclipse.jface.viewers.ISelectionChangedListener;
-import org.eclipse.jface.viewers.IStructuredContentProvider;
-import org.eclipse.jface.viewers.LabelProvider;
-import org.eclipse.jface.viewers.SelectionChangedEvent;
-import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.ModifyEvent;
-import org.eclipse.swt.events.ModifyListener;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.swt.widgets.Text;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIPlugin;
-import org.eclipse.wst.xsl.jaxp.debug.ui.internal.tabs.processor.InstallStandin;
-import org.eclipse.wst.xsl.jaxp.launching.IDebugger;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorInstall;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorJar;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorType;
-import org.eclipse.wst.xsl.jaxp.launching.JAXPRuntime;
-
-public class AddProcessorDialog extends StatusDialog
-{
- private final InstallStandin standinProcessor;
- private final IProcessorType[] processorTypes;
- private IProcessorType selectedProcessorType;
- private ComboViewer processorTypeField;
- private ProcessorLibraryBlock fLibraryBlock;
- private Text processorNameField;
- private final IStatus[] fStati;
- private int fPrevIndex = -1;
- private final InstalledProcessorsBlock block;
- private boolean adding;
-
- public AddProcessorDialog(InstalledProcessorsBlock block, Shell parent, IProcessorType[] types, IProcessorInstall install)
- {
- super(parent);
- setShellStyle(getShellStyle() | SWT.RESIZE);
- this.block = block;
- fStati = new IStatus[5];
- for (int i = 0; i < fStati.length; i++)
- {
- fStati[i] = Status.OK_STATUS;
- }
- processorTypes = types;
- selectedProcessorType = install != null ? install.getProcessorType() : types[0];
- InstallStandin standin = null;
- if (install == null)
- {
- adding = true;
- standin = new InstallStandin(JAXPRuntime.createUniqueProcessorId(selectedProcessorType), "", selectedProcessorType.getId(), null, new IProcessorJar[0]); //$NON-NLS-1$
- }
- else
- {
- standin = new InstallStandin(install);
- }
- standinProcessor = standin;
- }
-
- @Override
- protected void configureShell(Shell newShell)
- {
- super.configureShell(newShell);
- // TODO PlatformUI.getWorkbench().getHelpSystem().setHelp...
- }
-
- protected void createDialogFields(Composite parent)
- {
- GridData gd;
- Label label;
-
- label = new Label(parent, SWT.NONE);
- label.setText(Messages.AddProcessorDialog_processorName);
- processorNameField = new Text(parent, SWT.BORDER);
- gd = new GridData(SWT.NONE, SWT.NONE, false, false);
- gd.widthHint = convertWidthInCharsToPixels(50);
- gd.horizontalSpan = 2;
- processorNameField.setLayoutData(gd);
-
- label = new Label(parent, SWT.NONE);
- label.setText(Messages.AddProcessorDialog_processorType);
- processorTypeField = new ComboViewer(parent, SWT.READ_ONLY);
- gd = new GridData();
- gd.horizontalSpan = 2;
- processorTypeField.getCombo().setLayoutData(gd);
- processorTypeField.setContentProvider(new IStructuredContentProvider()
- {
-
- private Object input;
-
- public Object[] getElements(Object inputElement)
- {
- return (IProcessorType[]) input;
- }
-
- public void dispose()
- {
- }
-
- public void inputChanged(Viewer viewer, Object oldInput, Object newInput)
- {
- input = newInput;
- }
- });
- processorTypeField.setLabelProvider(new LabelProvider()
- {
- @Override
- public String getText(Object element)
- {
- return ((IProcessorType) element).getLabel();
- }
- });
-
- }
-
- protected void createFieldListeners()
- {
- processorTypeField.addSelectionChangedListener(new ISelectionChangedListener()
- {
- public void selectionChanged(SelectionChangedEvent event)
- {
- updateProcessorType();
- }
- });
-
- processorNameField.addModifyListener(new ModifyListener()
- {
- public void modifyText(ModifyEvent e)
- {
- setProcessorNameStatus(validateProcessorName());
- updateStatusLine();
- }
- });
- }
-
- protected String getProcessorName()
- {
- return processorNameField.getText();
- }
-
- @Override
- protected Control createDialogArea(Composite ancestor)
- {
- Composite parent = (Composite) super.createDialogArea(ancestor);
- ((GridLayout) parent.getLayout()).numColumns = 3;
-// ((GridData) parent.getLayoutData()).heightHint = 400;
-// ((GridData) parent.getLayoutData()).widthHint = 400;
-
- createDialogFields(parent);
-
- Label l = new Label(parent, SWT.NONE);
- l.setText(Messages.AddProcessorDialog_jars);
- GridData gd = new GridData(GridData.FILL_HORIZONTAL);
- gd.horizontalSpan = 3;
- l.setLayoutData(gd);
-
- fLibraryBlock = new ProcessorLibraryBlock(this);
- Control block = fLibraryBlock.createControl(parent);
- gd = new GridData(GridData.FILL_BOTH);
- gd.horizontalSpan = 3;
- block.setLayoutData(gd);
-
- initializeFields();
- createFieldListeners();
- applyDialogFont(parent);
-
- return parent;
- }
-
- private void updateProcessorType()
- {
- int selIndex = processorTypeField.getCombo().getSelectionIndex();
- if (selIndex == fPrevIndex)
- {
- return;
- }
- fPrevIndex = selIndex;
- if (selIndex >= 0 && selIndex < processorTypes.length)
- {
- selectedProcessorType = processorTypes[selIndex];
- }
- fLibraryBlock.initializeFrom(standinProcessor, selectedProcessorType);
- updateStatusLine();
- }
-
- @Override
- public void create()
- {
- super.create();
- processorNameField.setFocus();
- }
-
- private void initializeFields()
- {
- processorTypeField.setInput(processorTypes);
- if (adding)
- {
- processorNameField.setText(""); //$NON-NLS-1$
- processorTypeField.setSelection(new StructuredSelection(processorTypes[0]));
- fLibraryBlock.initializeFrom(standinProcessor, selectedProcessorType);
- }
- else
- {
- processorTypeField.getCombo().setEnabled(false);
- processorTypeField.setSelection(new StructuredSelection(standinProcessor.getProcessorType()));
- processorNameField.setText(standinProcessor.getName());
-
- fLibraryBlock.initializeFrom(standinProcessor, selectedProcessorType);
- }
- setProcessorNameStatus(validateProcessorName());
- updateStatusLine();
- }
-
- private IStatus validateProcessorName()
- {
- IStatus status = Status.OK_STATUS;
- String name = processorNameField.getText();
- if (name == null || name.trim().length() == 0)
- {
- status = new Status(IStatus.INFO, XSLDebugUIPlugin.PLUGIN_ID, IStatus.OK, Messages.AddProcessorDialog_enterName, null);
- }
- else
- {
- if (block.isDuplicateName(name) && (standinProcessor == null || !name.equals(standinProcessor.getName())))
- {
- status = new Status(IStatus.ERROR, XSLDebugUIPlugin.PLUGIN_ID, IStatus.OK, Messages.AddProcessorDialog_duplicateName, null);
- }
- else
- {
- // IStatus s = ResourcesPlugin.getWorkspace().validateName(name,
- // IResource.FILE);
- // if (!s.isOK())
- // {
- // status.setError(MessageFormat.format(Messages.AddProcessorDialog_Processor_name_must_be_a_valid_file_name,
- // new String[]
- // { s.getMessage() }));
- // }
- }
- }
- return status;
- }
-
- protected IStatus validateVersionStatus()
- {
- IStatus status = Status.OK_STATUS;
- return status;
- }
-
- protected void updateStatusLine()
- {
- IStatus max = null;
- for (IStatus curr : fStati)
- {
- if (curr.matches(IStatus.ERROR))
- {
- updateStatus(curr);
- return;
- }
- if (max == null || curr.getSeverity() > max.getSeverity())
- {
- max = curr;
- }
- }
- updateStatus(max);
- }
-
- @Override
- protected void okPressed()
- {
- doOkPressed();
- super.okPressed();
- }
-
- private void doOkPressed()
- {
- if (adding)
- {
- setFieldValuesToProcessor(standinProcessor);
- block.processorAdded(standinProcessor);
- }
-// else
-// setFieldValuesToProcessor((ProcessorInstall)editedProcessor);
- }
-
- protected void setFieldValuesToProcessor(InstallStandin processor)
- {
- processor.setName(processorNameField.getText());
- processor.setProcessorTypeId(selectedProcessorType.getId());
-
- IDebugger[] debuggers = JAXPRuntime.getDebuggers();
- for (IDebugger element : debuggers)
- {
- if (element.getProcessorType().equals(selectedProcessorType))
- processor.setDebuggerId(element.getId());
- }
-
- fLibraryBlock.performApply(processor);
- }
-
- protected File getAbsoluteFileOrEmpty(String path)
- {
- if (path == null || path.length() == 0)
- {
- return new File(""); //$NON-NLS-1$
- }
- return new File(path).getAbsoluteFile();
- }
-
- private void setProcessorNameStatus(IStatus status)
- {
- fStati[0] = status;
- }
-
- protected IStatus getSystemLibraryStatus()
- {
- return fStati[3];
- }
-
- protected void setSystemLibraryStatus(IStatus status)
- {
- fStati[3] = status;
- }
-
- protected void setVersionStatus(IStatus status)
- {
- fStati[2] = status;
- }
-
- @Override
- protected void updateButtonsEnableState(IStatus status)
- {
- Button ok = getButton(IDialogConstants.OK_ID);
- if (ok != null && !ok.isDisposed())
- ok.setEnabled(status.getSeverity() == IStatus.OK);
- }
-
- @Override
- protected void setButtonLayoutData(Button button)
- {
- super.setButtonLayoutData(button);
- }
-
- protected String getDialogSettingsSectionName()
- {
- return "ADD_PROCESSOR_DIALOG_SECTION"; //$NON-NLS-1$
- }
-
- @Override
- protected IDialogSettings getDialogBoundsSettings()
- {
-// IDialogSettings settings = XSLDebugUIPlugin.getDefault().getDialogSettings();
-// IDialogSettings section = settings.getSection(getDialogSettingsSectionName());
-// if (section == null)
-// {
-// section = settings.addNewSection(getDialogSettingsSectionName());
-// }
-// return section;
- return null;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/BasePreferencePage.java b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/BasePreferencePage.java
deleted file mode 100644
index 73db6bf..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/BasePreferencePage.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.ui.internal.preferences;
-
-import org.eclipse.jface.preference.PreferencePage;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.ui.IWorkbench;
-import org.eclipse.ui.IWorkbenchPreferencePage;
-
-public class BasePreferencePage extends PreferencePage implements IWorkbenchPreferencePage
-{
- @Override
- protected Control createContents(Composite parent)
- {
- return null;
- }
-
- public void init(IWorkbench workbench)
- {
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/InstalledProcessorsBlock.java b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/InstalledProcessorsBlock.java
deleted file mode 100644
index 6335f98..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/InstalledProcessorsBlock.java
+++ /dev/null
@@ -1,646 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.ui.internal.preferences;
-
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.core.runtime.ListenerList;
-import org.eclipse.debug.core.ILaunchConfiguration;
-import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
-import org.eclipse.jface.dialogs.IDialogSettings;
-import org.eclipse.jface.layout.GridDataFactory;
-import org.eclipse.jface.viewers.CheckStateChangedEvent;
-import org.eclipse.jface.viewers.CheckboxTableViewer;
-import org.eclipse.jface.viewers.DoubleClickEvent;
-import org.eclipse.jface.viewers.ICheckStateListener;
-import org.eclipse.jface.viewers.IDoubleClickListener;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.ISelectionChangedListener;
-import org.eclipse.jface.viewers.ISelectionProvider;
-import org.eclipse.jface.viewers.IStructuredContentProvider;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.ITableLabelProvider;
-import org.eclipse.jface.viewers.LabelProvider;
-import org.eclipse.jface.viewers.SelectionChangedEvent;
-import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.jface.viewers.ViewerSorter;
-import org.eclipse.jface.window.Window;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.KeyAdapter;
-import org.eclipse.swt.events.KeyEvent;
-import org.eclipse.swt.events.SelectionAdapter;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.graphics.Font;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.swt.widgets.Event;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.Listener;
-import org.eclipse.swt.widgets.Table;
-import org.eclipse.swt.widgets.TableColumn;
-import org.eclipse.wst.xsl.internal.debug.ui.AbstractTableBlock;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIConstants;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIPlugin;
-import org.eclipse.wst.xsl.jaxp.debug.ui.internal.tabs.processor.InstallStandin;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorInstall;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorType;
-import org.eclipse.wst.xsl.jaxp.launching.JAXPRuntime;
-
-public class InstalledProcessorsBlock extends AbstractTableBlock implements ISelectionProvider
-{
- private Composite fControl;
- private final List<IProcessorInstall> processors = new ArrayList<IProcessorInstall>();
- private CheckboxTableViewer tableViewer;
- private Button fAddButton;
- private Button fRemoveButton;
- private Button fEditButton;
- private final ListenerList fSelectionListeners = new ListenerList();
- private ISelection fPrevSelection = new StructuredSelection();
-
- public void addSelectionChangedListener(ISelectionChangedListener listener)
- {
- fSelectionListeners.add(listener);
- }
-
- public void removeSelectionChangedListener(ISelectionChangedListener listener)
- {
- fSelectionListeners.remove(listener);
- }
-
- public ISelection getSelection()
- {
- return new StructuredSelection(tableViewer.getCheckedElements());
- }
-
- public void setSelection(ISelection selection)
- {
- if (selection instanceof IStructuredSelection)
- {
- if (!selection.equals(fPrevSelection))
- {
- fPrevSelection = selection;
- Object jre = ((IStructuredSelection) selection).getFirstElement();
- if (jre == null)
- {
- tableViewer.setCheckedElements(new Object[0]);
- }
- else
- {
- tableViewer.setCheckedElements(new Object[]
- { jre });
- tableViewer.reveal(jre);
- }
- fireSelectionChanged();
- }
- }
- }
-
- public void createControl(Composite ancestor)
- {
-
- Composite parent = new Composite(ancestor, SWT.NULL);
- GridLayout layout = new GridLayout();
- layout.numColumns = 2;
- layout.marginHeight = 0;
- layout.marginWidth = 0;
- parent.setLayout(layout);
- Font font = ancestor.getFont();
- parent.setFont(font);
- fControl = parent;
-
- GridData data;
-
- Label tableLabel = new Label(parent, SWT.NONE);
- tableLabel.setText(Messages.InstalledProcessorsBlock_0);
- data = new GridData();
- data.horizontalSpan = 2;
- tableLabel.setLayoutData(data);
- tableLabel.setFont(font);
-
- Table fTable = new Table(parent, SWT.CHECK | SWT.BORDER | SWT.FULL_SELECTION | SWT.V_SCROLL);
-
- data = new GridData(GridData.FILL_BOTH);
- data.widthHint = 450;
- fTable.setLayoutData(data);
- fTable.setFont(font);
-
- fTable.setHeaderVisible(true);
- fTable.setLinesVisible(true);
-
- TableColumn column1 = new TableColumn(fTable, SWT.NONE);
- column1.setWidth(180);
- column1.setResizable(true);
- column1.setText(Messages.InstalledProcessorsBlock_1);
- column1.addSelectionListener(new SelectionAdapter()
- {
- @Override
- public void widgetSelected(SelectionEvent e)
- {
- sortByName();
- }
- });
-
- TableColumn column2 = new TableColumn(fTable, SWT.NONE);
- column2.setWidth(90);
- column2.setResizable(true);
- column2.setText(Messages.InstalledProcessorsBlock_2);
- column2.addSelectionListener(new SelectionAdapter()
- {
- @Override
- public void widgetSelected(SelectionEvent e)
- {
- sortByType();
- }
- });
-
- TableColumn column4 = new TableColumn(fTable, SWT.NONE);
- column4.setWidth(180);
- column4.setResizable(true);
- column4.setText(Messages.InstalledProcessorsBlock_4);
- column4.addSelectionListener(new SelectionAdapter()
- {
- @Override
- public void widgetSelected(SelectionEvent e)
- {
- sortByVersion();
- }
- });
-
- tableViewer = new CheckboxTableViewer(fTable);
- tableViewer.setLabelProvider(new VMLabelProvider());
- tableViewer.setContentProvider(new ProcessorsContentProvider());
-
- tableViewer.addSelectionChangedListener(new ISelectionChangedListener()
- {
- public void selectionChanged(SelectionChangedEvent evt)
- {
- enableButtons();
- }
- });
-
- tableViewer.addCheckStateListener(new ICheckStateListener()
- {
- public void checkStateChanged(CheckStateChangedEvent event)
- {
- if (event.getChecked())
- {
- setCheckedInstall((IProcessorInstall) event.getElement());
- }
- else
- {
- setCheckedInstall(null);
- }
- }
- });
-
- tableViewer.addDoubleClickListener(new IDoubleClickListener()
- {
- public void doubleClick(DoubleClickEvent e)
- {
- if (!tableViewer.getSelection().isEmpty())
- {
- editProcessor();
- }
- }
- });
- fTable.addKeyListener(new KeyAdapter()
- {
- @Override
- public void keyPressed(KeyEvent event)
- {
- if (event.character == SWT.DEL && event.stateMask == 0)
- {
- removeProcessors();
- }
- }
- });
-
- Composite buttons = new Composite(parent, SWT.NULL);
- buttons.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_BEGINNING));
- layout = new GridLayout();
- layout.marginHeight = 0;
- layout.marginWidth = 0;
- buttons.setLayout(layout);
- buttons.setFont(font);
-
- fAddButton = createPushButton(buttons, Messages.InstalledProcessorsBlock_5);
- fAddButton.addListener(SWT.Selection, new Listener()
- {
- public void handleEvent(Event evt)
- {
- addProcessor();
- }
- });
-
- fEditButton = createPushButton(buttons, Messages.InstalledProcessorsBlock_6);
- fEditButton.addListener(SWT.Selection, new Listener()
- {
- public void handleEvent(Event evt)
- {
- editProcessor();
- }
- });
-
- fRemoveButton = createPushButton(buttons, Messages.InstalledProcessorsBlock_7);
- fRemoveButton.addListener(SWT.Selection, new Listener()
- {
- public void handleEvent(Event evt)
- {
- removeProcessors();
- }
- });
-
- // copied from ListDialogField.CreateSeparator()
- Label separator = new Label(buttons, SWT.NONE);
- separator.setVisible(false);
- GridData gd = new GridData();
- gd.horizontalAlignment = GridData.FILL;
- gd.verticalAlignment = GridData.BEGINNING;
- gd.heightHint = 4;
- separator.setLayoutData(gd);
-
- fillWithWorkspaceProcessors();
- enableButtons();
-
- restoreColumnSettings();
- }
-
- protected void fillWithWorkspaceProcessors()
- {
- List<InstallStandin> standins = new ArrayList<InstallStandin>();
- IProcessorType[] types = JAXPRuntime.getProcessorTypes();
- for (IProcessorType type : types)
- {
- IProcessorInstall[] installs = JAXPRuntime.getProcessors(type.getId());
- for (IProcessorInstall install : installs)
- {
- standins.add(new InstallStandin(install));
- }
- }
- setProcessors(standins.toArray(new IProcessorInstall[standins.size()]));
- }
-
- private void fireSelectionChanged()
- {
- SelectionChangedEvent event = new SelectionChangedEvent(this, getSelection());
- Object[] listeners = fSelectionListeners.getListeners();
- for (Object element : listeners)
- {
- ISelectionChangedListener listener = (ISelectionChangedListener) element;
- listener.selectionChanged(event);
- }
- }
-
- /**
- * Sorts by type, and name within type.
- */
- private void sortByType()
- {
- tableViewer.setSorter(new ViewerSorter()
- {
- @Override
- public int compare(Viewer viewer, Object e1, Object e2)
- {
- IProcessorInstall left = (IProcessorInstall) e1;
- IProcessorInstall right = (IProcessorInstall) e2;
- return left.getProcessorType().getLabel().compareToIgnoreCase(right.getProcessorType().getLabel());
- }
-
- @Override
- public boolean isSorterProperty(Object element, String property)
- {
- return true;
- }
- });
- }
-
- private void sortByVersion()
- {
- tableViewer.setSorter(new ViewerSorter()
- {
- @Override
- public int compare(Viewer viewer, Object e1, Object e2)
- {
- IProcessorInstall left = (IProcessorInstall) e1;
- IProcessorInstall right = (IProcessorInstall) e2;
- return left.getSupports().compareToIgnoreCase(right.getSupports());
- }
-
- @Override
- public boolean isSorterProperty(Object element, String property)
- {
- return true;
- }
- });
- }
-
- /**
- * Sorts by name.
- */
- private void sortByName()
- {
- tableViewer.setSorter(new ViewerSorter()
- {
- @Override
- public int compare(Viewer viewer, Object e1, Object e2)
- {
- if ((e1 instanceof IProcessorInstall) && (e2 instanceof IProcessorInstall))
- {
- IProcessorInstall left = (IProcessorInstall) e1;
- IProcessorInstall right = (IProcessorInstall) e2;
- return left.getName().compareToIgnoreCase(right.getName());
- }
- return super.compare(viewer, e1, e2);
- }
-
- @Override
- public boolean isSorterProperty(Object element, String property)
- {
- return true;
- }
- });
- }
-
- private void enableButtons()
- {
- IStructuredSelection selection = (IStructuredSelection) tableViewer.getSelection();
- int selectionCount = selection.size();
- fEditButton.setEnabled(selectionCount == 1 && !((IProcessorInstall)selection.getFirstElement()).isContributed());
- if (selectionCount > 0 && selectionCount < tableViewer.getTable().getItemCount())
- {
- Iterator<?> iterator = selection.iterator();
- while (iterator.hasNext())
- {
- IProcessorInstall install = (IProcessorInstall) iterator.next();
- if (install.isContributed())
- {
- fRemoveButton.setEnabled(false);
- return;
- }
- }
- fRemoveButton.setEnabled(true);
- }
- else
- {
- fRemoveButton.setEnabled(false);
- }
- }
-
- protected Button createPushButton(Composite parent, String label)
- {
- Button button = new Button(parent, SWT.PUSH);
- button.setText(label);
- button.setLayoutData(GridDataFactory.fillDefaults().create());
- return button;
- }
-
- @Override
- public Control getControl()
- {
- return fControl;
- }
-
- protected void setProcessors(IProcessorInstall[] vms)
- {
- processors.clear();
- for (IProcessorInstall element : vms)
- {
- processors.add(element);
- }
- tableViewer.setInput(processors);
- // tableViewer.refresh();
- }
-
- public IProcessorInstall[] getProcessors()
- {
- return processors.toArray(new IProcessorInstall[processors.size()]);
- }
-
- private void addProcessor()
- {
- AddProcessorDialog dialog = new AddProcessorDialog(this, getShell(), JAXPRuntime.getProcessorTypesExclJREDefault(), null);
- dialog.setTitle(Messages.AddProcessorDialog_Add_Title);
- if (dialog.open() != Window.OK)
- {
- return;
- }
- }
-
- public void processorAdded(IProcessorInstall install)
- {
- processors.add(install);
- tableViewer.add(install);
- tableViewer.setSelection(new StructuredSelection(install), true);
- }
-
- public boolean isDuplicateName(String name)
- {
- for (int i = 0; i < processors.size(); i++)
- {
- IProcessorInstall install = processors.get(i);
- if (install.getName().equals(name))
- {
- return true;
- }
- }
- return false;
- }
-
- private void editProcessor()
- {
- IStructuredSelection selection = (IStructuredSelection) tableViewer.getSelection();
- IProcessorInstall install = (IProcessorInstall) selection.getFirstElement();
- if (install == null)
- {
- return;
- }
- if (!install.isContributed())
- {
-// ProcessorDetailsDialog dialog = new ProcessorDetailsDialog(getShell(), install);
-// dialog.open();
-// }
-// else
-// {
- AddProcessorDialog dialog = new AddProcessorDialog(this, getShell(), JAXPRuntime.getProcessorTypesExclJREDefault(), install);
- dialog.setTitle(Messages.AddProcessorDialog_Edit_Title);
- if (dialog.open() != Window.OK)
- {
- return;
- }
- // fillWithWorkspaceProcessors();
- tableViewer.refresh();
- }
- }
-
- private void removeProcessors()
- {
- IStructuredSelection selection = (IStructuredSelection) tableViewer.getSelection();
- IProcessorInstall[] vms = new IProcessorInstall[selection.size()];
- Iterator<?> iter = selection.iterator();
- int i = 0;
- while (iter.hasNext())
- {
- vms[i] = (IProcessorInstall) iter.next();
- i++;
- }
- removeProcessors(vms);
- }
-
- public void removeProcessors(IProcessorInstall[] theInstalls)
- {
- IStructuredSelection prev = (IStructuredSelection) getSelection();
- for (IProcessorInstall element : theInstalls)
- {
- processors.remove(element);
- }
- tableViewer.refresh();
- IStructuredSelection curr = (IStructuredSelection) getSelection();
- if (!curr.equals(prev))
- {
- IProcessorInstall[] installs = getProcessors();
- if (curr.size() == 0 && installs.length == 1)
- {
- // pick a default install automatically
- setSelection(new StructuredSelection(installs[0]));
- }
- else
- {
- fireSelectionChanged();
- }
- }
- }
-
- public void setCheckedInstall(IProcessorInstall install)
- {
- if (install == null)
- {
- setSelection(new StructuredSelection());
- }
- else
- {
- setSelection(new StructuredSelection(install));
- }
- }
-
- public IProcessorInstall getCheckedInstall()
- {
- Object[] objects = tableViewer.getCheckedElements();
- if (objects.length == 0)
- {
- return null;
- }
- return (IProcessorInstall) objects[0];
- }
-
- @Override
- protected void setSortColumn(int column)
- {
- switch (column)
- {
- case 1:
- sortByName();
- break;
- case 2:
- sortByType();
- break;
- }
- super.setSortColumn(column);
- }
-
- @Override
- protected Table getTable()
- {
- return tableViewer.getTable();
- }
-
- @Override
- protected IDialogSettings getDialogSettings()
- {
- return XSLDebugUIPlugin.getDefault().getDialogSettings();
- }
-
- @Override
- protected String getQualifier()
- {
- return XSLDebugUIConstants.PROCESSOR_DETAILS_DIALOG;
- }
-
- public String getName()
- {
- return null;
- }
-
- public void initializeFrom(ILaunchConfiguration configuration)
- {
- }
-
- public void performApply(ILaunchConfigurationWorkingCopy configuration)
- {
- }
-
- public void setDefaults(ILaunchConfigurationWorkingCopy configuration)
- {
- }
-
- private class ProcessorsContentProvider implements IStructuredContentProvider
- {
- public Object[] getElements(Object input)
- {
- return processors.toArray();
- }
-
- public void inputChanged(Viewer viewer, Object oldInput, Object newInput)
- {
- }
-
- public void dispose()
- {
- }
- }
-
- private static class VMLabelProvider extends LabelProvider implements ITableLabelProvider
- {
- public String getColumnText(Object element, int columnIndex)
- {
- if (element instanceof IProcessorInstall)
- {
- IProcessorInstall install = (IProcessorInstall) element;
- switch (columnIndex)
- {
- case 0:
- return install.getName();
- case 1:
- return install.getProcessorType().getLabel();
- case 2:
- if (install.getDebugger() != null)
- {
- return install.getDebugger().getName();
- }
- return Messages.InstalledProcessorsBlock_8;
- }
- }
- return element.toString();
- }
-
- public Image getColumnImage(Object element, int columnIndex)
- {
- return null;
- }
-
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/Messages.java b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/Messages.java
deleted file mode 100644
index 43404e1..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/Messages.java
+++ /dev/null
@@ -1,51 +0,0 @@
-package org.eclipse.wst.xsl.jaxp.debug.ui.internal.preferences;
-
-import org.eclipse.osgi.util.NLS;
-
-public class Messages extends NLS
-{
- private static final String BUNDLE_NAME = "org.eclipse.wst.xsl.jaxp.debug.ui.internal.preferences.messages"; //$NON-NLS-1$
- static
- {
- // initialize resource bundle
- NLS.initializeMessages(BUNDLE_NAME, Messages.class);
- }
-
-
- public static String AddProcessorDialog_1;
- public static String AddProcessorDialog_7;
- public static String AddProcessorDialog_Edit_Title;
- public static String AddProcessorDialog_Add_Title;
- public static String AddProcessorDialog_jars;
- public static String AddProcessorDialog_attributes;
- public static String AddProcessorDialog_processorName;
- public static String AddProcessorDialog_processorType;
- public static String AddProcessorDialog_enterName;
- public static String AddProcessorDialog_duplicateName;
-
- public static String ProcessorLibraryBlock_6;
- public static String ProcessorLibraryBlock_AddButton;
- public static String ProcessorLibraryBlock_RemoveButton;
- public static String ProcessorLibraryBlock_AddWorkspaceButton;
- public static String ProcessorLibraryBlock_FileDialog_Title;
- public static String ProcessorLibraryBlock_WorkspaceFileDialog_Title;
- public static String ProcessorLibraryBlock_WorkspaceFileDialog_Message;
-
- public static String InstalledProcessorsBlock_0;
- public static String InstalledProcessorsBlock_1;
- public static String InstalledProcessorsBlock_2;
- public static String InstalledProcessorsBlock_3;
- public static String InstalledProcessorsBlock_4;
- public static String InstalledProcessorsBlock_5;
- public static String InstalledProcessorsBlock_6;
- public static String InstalledProcessorsBlock_7;
- public static String InstalledProcessorsBlock_8;
-
- public static String ProcessorsPreferencePage_0;
- public static String ProcessorsPreferencePage_1;
- public static String ProcessorsPreferencePage_2;
-
- private Messages()
- {
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/ProcessorLibraryBlock.java b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/ProcessorLibraryBlock.java
deleted file mode 100644
index b352dc8..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/ProcessorLibraryBlock.java
+++ /dev/null
@@ -1,344 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.ui.internal.preferences;
-
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.core.resources.IContainer;
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IFolder;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.jface.dialogs.IDialogSettings;
-import org.eclipse.jface.viewers.ISelectionChangedListener;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.SelectionChangedEvent;
-import org.eclipse.jface.viewers.TableViewer;
-import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.jface.viewers.ViewerFilter;
-import org.eclipse.jface.window.Window;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.events.SelectionListener;
-import org.eclipse.swt.graphics.Font;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.swt.widgets.FileDialog;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.ui.dialogs.ElementTreeSelectionDialog;
-import org.eclipse.ui.dialogs.ISelectionStatusValidator;
-import org.eclipse.ui.model.WorkbenchContentProvider;
-import org.eclipse.ui.model.WorkbenchLabelProvider;
-import org.eclipse.ui.views.navigator.ResourceComparator;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIPlugin;
-import org.eclipse.wst.xsl.jaxp.debug.ui.internal.tabs.processor.InstallStandin;
-import org.eclipse.wst.xsl.jaxp.debug.ui.internal.tabs.processor.JarContentProvider;
-import org.eclipse.wst.xsl.jaxp.debug.ui.internal.tabs.processor.JarLabelProvider;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorInstall;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorJar;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorType;
-import org.eclipse.wst.xsl.jaxp.launching.JAXPRuntime;
-
-public class ProcessorLibraryBlock implements SelectionListener, ISelectionChangedListener
-{
- protected static final String LAST_PATH_SETTING = "LAST_PATH_SETTING"; //$NON-NLS-1$
- protected static final String LAST_WORKSPACE_PATH_SETTING = "LAST_WORKSPACE_PATH_SETTING"; //$NON-NLS-1$
- protected static final String DIALOG_SETTINGS_PREFIX = "ProcessorLibraryBlock"; //$NON-NLS-1$
- protected InstallStandin install;
- protected IProcessorType installType;
- protected AddProcessorDialog addDialog = null;
- protected TableViewer tableViewer;
- private Button removeButton;
- private Button addButton;
- private Button addWorkspaceButton;
-
- private final ISelectionStatusValidator validator = new ISelectionStatusValidator()
- {
- public IStatus validate(Object[] selection)
- {
- if (selection.length == 0)
- {
- return new Status(IStatus.ERROR, XSLDebugUIPlugin.PLUGIN_ID, 0, "", null); //$NON-NLS-1$
- }
- for (Object element : selection)
- {
- if (element instanceof IFolder)
- return new Status(IStatus.ERROR, XSLDebugUIPlugin.PLUGIN_ID, 0, "", null); //$NON-NLS-1$
- else if (element instanceof IFile)
- {
- // IFile file = (IFile) selection[i];
- // TODO check that the file is not already on the classpath
- }
- }
- return new Status(IStatus.OK, XSLDebugUIPlugin.PLUGIN_ID, 0, "", null); //$NON-NLS-1$
- }
- };
-
- public ProcessorLibraryBlock(AddProcessorDialog dialog)
- {
- addDialog = dialog;
- }
-
- public Control createControl(Composite parent)
- {
- Font font = parent.getFont();
-
- Composite comp = new Composite(parent, SWT.NONE);
- GridLayout topLayout = new GridLayout();
- topLayout.numColumns = 2;
- topLayout.marginHeight = 0;
- topLayout.marginWidth = 0;
- comp.setLayout(topLayout);
- GridData gd = new GridData(GridData.FILL_BOTH);
- comp.setLayoutData(gd);
-
- tableViewer = new TableViewer(comp);
- gd = new GridData(GridData.FILL_BOTH);
- gd.heightHint = 6;
- tableViewer.getControl().setLayoutData(gd);
- JarContentProvider fLibraryContentProvider = new JarContentProvider();
- tableViewer.setContentProvider(fLibraryContentProvider);
- tableViewer.setLabelProvider(new JarLabelProvider());
- tableViewer.addSelectionChangedListener(this);
-
- Composite pathButtonComp = new Composite(comp, SWT.NONE);
- GridLayout pathButtonLayout = new GridLayout();
- pathButtonLayout.marginHeight = 0;
- pathButtonLayout.marginWidth = 0;
- pathButtonComp.setLayout(pathButtonLayout);
- gd = new GridData(GridData.VERTICAL_ALIGN_BEGINNING | GridData.HORIZONTAL_ALIGN_FILL);
- pathButtonComp.setLayoutData(gd);
- pathButtonComp.setFont(font);
-
- addWorkspaceButton = createPushButton(pathButtonComp, Messages.ProcessorLibraryBlock_AddWorkspaceButton);
- addWorkspaceButton.addSelectionListener(this);
-
- addButton = createPushButton(pathButtonComp, Messages.ProcessorLibraryBlock_AddButton);
- addButton.addSelectionListener(this);
-
- removeButton = createPushButton(pathButtonComp, Messages.ProcessorLibraryBlock_RemoveButton);
- removeButton.addSelectionListener(this);
-
- return comp;
- }
-
- protected Button createPushButton(Composite parent, String label)
- {
- Button button = new Button(parent, SWT.PUSH);
- button.setFont(parent.getFont());
- button.setText(label);
- addDialog.setButtonLayoutData(button);
- return button;
- }
-
- protected void createVerticalSpacer(Composite comp, int colSpan)
- {
- Label label = new Label(comp, SWT.NONE);
- GridData gd = new GridData();
- gd.horizontalSpan = colSpan;
- label.setLayoutData(gd);
- }
-
- public void initializeFrom(InstallStandin standin, IProcessorType type)
- {
- install = standin;
- installType = type;
- if (install != null)
- tableViewer.setInput(install);
- update();
- }
-
- /**
- * Updates buttons and status based on current libraries
- */
- public void update()
- {
- updateButtons();
- IStatus status = Status.OK_STATUS;
- if (install != null && install.getProcessorJars().length == 0)
- {
- status = new Status(IStatus.INFO, XSLDebugUIPlugin.PLUGIN_ID, 0, Messages.ProcessorLibraryBlock_6, null);
- }
- addDialog.setSystemLibraryStatus(status);
- addDialog.updateStatusLine();
- }
-
- public void performApply(InstallStandin standin)
- {
- standin.setProcessorJars(install.getProcessorJars());
- }
-
- protected IProcessorInstall getVMInstall()
- {
- return install;
- }
-
- protected IProcessorType getVMInstallType()
- {
- return installType;
- }
-
- public void widgetSelected(SelectionEvent e)
- {
- Object source = e.getSource();
- if (source == removeButton)
- {
- remove((IStructuredSelection) tableViewer.getSelection());
- }
- else if (source == addButton)
- {
- addExternal((IStructuredSelection) tableViewer.getSelection());
- }
- else if (source == addWorkspaceButton)
- {
- addWorkspace((IStructuredSelection) tableViewer.getSelection());
- }
- update();
- }
-
- public void widgetDefaultSelected(SelectionEvent e)
- {
- }
-
- private void addExternal(IStructuredSelection selection)
- {
- IDialogSettings dialogSettings = XSLDebugUIPlugin.getDefault().getDialogSettings();
- String lastUsedPath = dialogSettings.get(LAST_PATH_SETTING);
- if (lastUsedPath == null)
- {
- lastUsedPath = ""; //$NON-NLS-1$
- }
- FileDialog dialog = new FileDialog(tableViewer.getControl().getShell(), SWT.MULTI);
- dialog.setText(Messages.ProcessorLibraryBlock_FileDialog_Title);
- dialog.setFilterExtensions(new String[]
- { "*.jar;*.zip" }); //$NON-NLS-1$
- dialog.setFilterPath(lastUsedPath);
- String res = dialog.open();
- if (res == null)
- {
- return;
- }
- String[] fileNames = dialog.getFileNames();
- int nChosen = fileNames.length;
-
- IPath filterPath = new Path(dialog.getFilterPath());
- IProcessorJar[] libs = new IProcessorJar[nChosen];
- for (int i = 0; i < nChosen; i++)
- {
- libs[i] = JAXPRuntime.createProcessorJar(filterPath.append(fileNames[i]).makeAbsolute());
- }
- dialogSettings.put(LAST_PATH_SETTING, filterPath.toOSString());
-
- IProcessorJar[] currentJars = install.getProcessorJars();
- IProcessorJar[] newJars = new IProcessorJar[currentJars.length + libs.length];
- System.arraycopy(currentJars, 0, newJars, 0, currentJars.length);
- System.arraycopy(libs, 0, newJars, currentJars.length, libs.length);
- install.setProcessorJars(newJars);
-
- tableViewer.add(libs);
- }
-
- private void addWorkspace(IStructuredSelection selection)
- {
- IDialogSettings dialogSettings = XSLDebugUIPlugin.getDefault().getDialogSettings();
- String lastUsedPath = dialogSettings.get(LAST_WORKSPACE_PATH_SETTING);
- IPath lastPath = null;
- if (lastUsedPath != null)
- {
- lastPath = Path.fromPortableString(lastUsedPath);
- }
-
- // IResource currentResource = getResource();
- ElementTreeSelectionDialog dialog = new ElementTreeSelectionDialog(tableViewer.getControl().getShell(), new WorkbenchLabelProvider(), new WorkbenchContentProvider());
- dialog.setTitle(Messages.ProcessorLibraryBlock_WorkspaceFileDialog_Title);
- dialog.setMessage(Messages.ProcessorLibraryBlock_WorkspaceFileDialog_Message);
- dialog.setValidator(validator);
- dialog.addFilter(new ViewerFilter()
- {
- @Override
- public boolean select(Viewer viewer, Object parentElement, Object element)
- {
- if (element instanceof IContainer)
- return true;
- else if (element instanceof IFile)
- {
- IFile file = (IFile) element;
- String extension = file.getFileExtension();
- if (extension == null)
- return false;
- return extension.equals("jar"); //$NON-NLS-1$
- }
- return false;
- }
- });
- dialog.setInput(ResourcesPlugin.getWorkspace().getRoot());
- if (lastPath != null)
- dialog.setInitialSelection(lastPath);
- dialog.setComparator(new ResourceComparator(ResourceComparator.NAME));
- dialog.setAllowMultiple(true);
-
- if (dialog.open() == Window.OK)
- {
- Object[] elements = dialog.getResult();
- if (elements.length > 0)
- {
- IProcessorJar[] libs = new IProcessorJar[elements.length];
- for (int i = 0; i < elements.length; i++)
- {
- IFile jar = (IFile) elements[i];
- libs[i] = JAXPRuntime.createProcessorJar(jar.getFullPath());
- }
- IProcessorJar[] currentJars = install.getProcessorJars();
- IProcessorJar[] newJars = new IProcessorJar[currentJars.length + libs.length];
- System.arraycopy(currentJars, 0, newJars, 0, currentJars.length);
- System.arraycopy(libs, 0, newJars, currentJars.length, libs.length);
- install.setProcessorJars(newJars);
-
- tableViewer.add(libs);
-
- lastPath = libs[0].getPath();
- lastPath = lastPath.uptoSegment(lastPath.segmentCount());
- dialogSettings.put(LAST_WORKSPACE_PATH_SETTING, lastPath.toPortableString());
- }
- }
- }
-
- private void remove(IStructuredSelection selection)
- {
- List<IProcessorJar> currentJars = new ArrayList<IProcessorJar>(Arrays.asList(install.getProcessorJars()));
- for (Iterator<?> iter = selection.iterator(); iter.hasNext();)
- {
- currentJars.remove(iter.next());
- }
- install.setProcessorJars(currentJars.toArray(new IProcessorJar[0]));
- tableViewer.remove(selection.toArray());
- }
-
- public void selectionChanged(SelectionChangedEvent event)
- {
- updateButtons();
- }
-
- private void updateButtons()
- {
- IStructuredSelection selection = (IStructuredSelection) tableViewer.getSelection();
- removeButton.setEnabled(!selection.isEmpty());
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/ProcessorsPreferencePage.java b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/ProcessorsPreferencePage.java
deleted file mode 100644
index 53e4eef..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/ProcessorsPreferencePage.java
+++ /dev/null
@@ -1,162 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.ui.internal.preferences;
-
-import java.lang.reflect.InvocationTargetException;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.jface.operation.IRunnableWithProgress;
-import org.eclipse.jface.preference.PreferencePage;
-import org.eclipse.jface.viewers.ISelectionChangedListener;
-import org.eclipse.jface.viewers.SelectionChangedEvent;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.ui.IWorkbench;
-import org.eclipse.ui.IWorkbenchPreferencePage;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIPlugin;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorInstall;
-import org.eclipse.wst.xsl.jaxp.launching.JAXPRuntime;
-
-public class ProcessorsPreferencePage extends PreferencePage implements IWorkbenchPreferencePage
-{
- private InstalledProcessorsBlock processorsBlock;
-
- public ProcessorsPreferencePage()
- {
- super();
- // only used when page is shown programatically
- setTitle(Messages.ProcessorsPreferencePage_0);
- setDescription(Messages.ProcessorsPreferencePage_1);
- }
-
- public void init(IWorkbench workbench)
- {
- }
-
- @Override
- protected Control createContents(Composite ancestor)
- {
- initializeDialogUnits(ancestor);
-
- noDefaultAndApplyButton();
-
- GridLayout layout = new GridLayout();
- layout.numColumns = 1;
- layout.marginHeight = 0;
- layout.marginWidth = 0;
- ancestor.setLayout(layout);
-
- processorsBlock = new InstalledProcessorsBlock();
- processorsBlock.createControl(ancestor);
- Control control = processorsBlock.getControl();
- GridData data = new GridData(GridData.FILL_BOTH);
- data.horizontalSpan = 1;
- control.setLayoutData(data);
-
- // TODO PlatformUI.getWorkbench().getHelpSystem().setHelp...
-
- initDefaultInstall();
- processorsBlock.addSelectionChangedListener(new ISelectionChangedListener()
- {
- public void selectionChanged(SelectionChangedEvent event)
- {
- IProcessorInstall install = getCurrentDefaultProcessor();
- if (install == null)
- {
- setValid(false);
- setErrorMessage(Messages.ProcessorsPreferencePage_2);
- }
- else
- {
- setValid(true);
- setErrorMessage(null);
- }
- }
- });
- applyDialogFont(ancestor);
- return ancestor;
- }
-
- @Override
- public boolean performOk()
- {
- processorsBlock.saveColumnSettings();
- final boolean[] ok = new boolean[1];
- try
- {
- final IProcessorInstall[] installs = processorsBlock.getProcessors();
- final IProcessorInstall defaultProcessor = getCurrentDefaultProcessor();
- IRunnableWithProgress runnable = new IRunnableWithProgress()
- {
- public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException
- {
- try
- {
- JAXPRuntime.saveProcessorPreferences(installs,defaultProcessor,monitor);
- }
- catch (CoreException e)
- {
- XSLDebugUIPlugin.log(e);
- }
- ok[0] = !monitor.isCanceled();
- }
- };
- XSLDebugUIPlugin.getDefault().getWorkbench().getProgressService().busyCursorWhile(runnable);
- }
- catch (InvocationTargetException e)
- {
- XSLDebugUIPlugin.log(e);
- }
- catch (InterruptedException e)
- {
- XSLDebugUIPlugin.log(e);
- }
- return ok[0];
- }
-
- private void initDefaultInstall()
- {
- IProcessorInstall realDefault = JAXPRuntime.getDefaultProcessor();
- if (realDefault != null)
- {
- IProcessorInstall[] installs = processorsBlock.getProcessors();
- for (IProcessorInstall fakeInstall : installs)
- {
- if (fakeInstall.getId().equals(realDefault.getId()))
- {
- verifyDefaultVM(fakeInstall);
- break;
- }
- }
- }
- }
-
- private void verifyDefaultVM(IProcessorInstall install)
- {
- if (install != null)
- {
- processorsBlock.setCheckedInstall(install);
- }
- else
- {
- processorsBlock.setCheckedInstall(null);
- }
- }
-
- private IProcessorInstall getCurrentDefaultProcessor()
- {
- return processorsBlock.getCheckedInstall();
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/messages.properties b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/messages.properties
deleted file mode 100644
index cfd4e7f..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/messages.properties
+++ /dev/null
@@ -1,31 +0,0 @@
-AddProcessorDialog_1=Supported versions:
-AddProcessorDialog_7=Processor must support at least one XSLT version
-AddProcessorDialog_Edit_Title=Edit Processor
-AddProcessorDialog_Add_Title=Add Processor
-AddProcessorDialog_processorName=Processor Name:
-AddProcessorDialog_processorType=Processor Type:
-AddProcessorDialog_jars=Libraries:
-AddProcessorDialog_attributes=Attributes:
-AddProcessorDialog_enterName=A name must be entered for this processor
-AddProcessorDialog_duplicateName=The name has already been used
-InstalledProcessorsBlock_0=Installed Java XSLT Processors:
-InstalledProcessorsBlock_1=Name
-InstalledProcessorsBlock_2=Type
-InstalledProcessorsBlock_3=XSLT Versions
-InstalledProcessorsBlock_4=Debugger
-InstalledProcessorsBlock_5=Add
-InstalledProcessorsBlock_6=Edit
-InstalledProcessorsBlock_7=Remove
-InstalledProcessorsBlock_8=None
-
-ProcessorLibraryBlock_6=One or more jar files must be specified
-ProcessorLibraryBlock_AddButton=Add External JARs
-ProcessorLibraryBlock_AddWorkspaceButton=Add Workspace JARs
-ProcessorLibraryBlock_RemoveButton=Remove
-ProcessorLibraryBlock_FileDialog_Title=External JARs
-ProcessorLibraryBlock_WorkspaceFileDialog_Title=Workspace JARs
-ProcessorLibraryBlock_WorkspaceFileDialog_Message=Select the JARs that make up the XSLT processor
-
-ProcessorsPreferencePage_0=Java XSLT Processors
-ProcessorsPreferencePage_1=Add, remove or edit XSLT processor definitions.\nBy default, the checked Processor is used for all transformations.
-ProcessorsPreferencePage_2=Select a default XSLT Processor
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/AttributeDialog.java b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/AttributeDialog.java
deleted file mode 100644
index 6fa0cd7..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/AttributeDialog.java
+++ /dev/null
@@ -1,161 +0,0 @@
-package org.eclipse.wst.xsl.jaxp.debug.ui.internal.tabs.processor;
-
-import java.util.ArrayList;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Set;
-
-import org.eclipse.jface.dialogs.IDialogConstants;
-import org.eclipse.jface.dialogs.StatusDialog;
-import org.eclipse.jface.viewers.DoubleClickEvent;
-import org.eclipse.jface.viewers.IDoubleClickListener;
-import org.eclipse.jface.viewers.ISelectionChangedListener;
-import org.eclipse.jface.viewers.IStructuredContentProvider;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.LabelProvider;
-import org.eclipse.jface.viewers.SelectionChangedEvent;
-import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.jface.viewers.TableViewer;
-import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.jface.viewers.ViewerSorter;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.swt.widgets.Table;
-import org.eclipse.swt.widgets.Text;
-import org.eclipse.wst.xsl.jaxp.launching.IAttribute;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorType;
-import org.eclipse.wst.xsl.jaxp.launching.JAXPRuntime;
-import org.eclipse.wst.xsl.jaxp.launching.LaunchAttributes;
-import org.eclipse.wst.xsl.launching.config.LaunchAttribute;
-
-public class AttributeDialog extends StatusDialog
-{
- private Table table;
- private TableViewer tViewer;
- private Text text;
- private List<IAttribute> attributes = new ArrayList<IAttribute>();
- private List<IAttribute> selectedAttributes = new ArrayList<IAttribute>();
-
- public AttributeDialog(Shell parent, LaunchAttributes launchAttributes)
- {
- super(parent);
- setTitle(Messages.getString("AttributeDialog_0")); //$NON-NLS-1$
-
- Set<String> attributeSet = new HashSet<String>();
- for (LaunchAttribute att : launchAttributes.getAttributes())
- {
- attributeSet.add(att.uri);
- }
- for (IProcessorType type : JAXPRuntime.getProcessorTypes())
- {
- for (IAttribute attribute : type.getAttributes())
- {
- if (!attributeSet.contains(attribute.getURI()))
- {
- attributeSet.add(attribute.getURI());
- attributes.add(attribute);
- }
- }
- }
- }
-
- @Override
- protected Control createDialogArea(Composite parent)
- {
- Composite comp = new Composite(parent,SWT.NONE);
- GridData gd = new GridData(SWT.FILL,SWT.FILL,true,true);
- gd.widthHint = 400;
- comp.setLayoutData(gd);
- comp.setLayout(new GridLayout());
-
- Label label = new Label(comp,SWT.NONE);
- label.setText(Messages.getString("AttributeDialog_1")); //$NON-NLS-1$
-
-
- table = new Table(comp,SWT.BORDER | SWT.FULL_SELECTION | SWT.V_SCROLL | SWT.MULTI);
- table.setHeaderVisible(false);
- gd = new GridData(SWT.FILL,SWT.FILL,true,true);
- gd.verticalIndent = 10;
- gd.heightHint = 200;
- table.setLayoutData(gd);
-
- tViewer = new TableViewer(table);
- tViewer.setContentProvider(new IStructuredContentProvider()
- {
- public Object[] getElements(Object inputElement)
- {
- return attributes.toArray(new IAttribute[0]);
- }
-
- public void dispose()
- {
- }
-
- public void inputChanged(Viewer viewer, Object oldInput, Object newInput)
- {
- }
- });
- tViewer.setLabelProvider(new LabelProvider(){
- @Override
- public String getText(Object element)
- {
- IAttribute attribute = (IAttribute)element;
- return attribute.getURI();
- }
- });
- tViewer.setSorter(new ViewerSorter()
- {
- @Override
- public int compare(Viewer viewer, Object e1, Object e2)
- {
- IAttribute a1 = (IAttribute) e1;
- IAttribute a2 = (IAttribute) e2;
- return a1.getURI().compareTo(a2.getURI());
- }
- });
- tViewer.addSelectionChangedListener(new ISelectionChangedListener(){
- public void selectionChanged(SelectionChangedEvent event)
- {
- IStructuredSelection sel = (IStructuredSelection)event.getSelection();
- selectedAttributes = sel.toList();
- if (sel.isEmpty())
- text.setText(Messages.getString("AttributeDialog_2")); //$NON-NLS-1$
- else
- {
- IAttribute attribute = (IAttribute)sel.getFirstElement();
- text.setText(attribute.getDescription());
- }
- }
- });
- tViewer.addDoubleClickListener(new IDoubleClickListener(){
- public void doubleClick(DoubleClickEvent event)
- {
- buttonPressed(IDialogConstants.OK_ID);
- }
- });
- tViewer.setInput(attributes);
-
- text = new Text(comp,SWT.BORDER | SWT.WRAP | SWT.READ_ONLY | SWT.V_SCROLL);
- text.setEditable(false);
- gd = new GridData(SWT.FILL,SWT.FILL,true,false);
- gd.heightHint = 80;
- text.setLayoutData(gd);
-
- if (attributes.size() > 0)
- {
- tViewer.setSelection(new StructuredSelection(tViewer.getElementAt(0)), true);
- }
-
- return comp;
- }
-
- public List<IAttribute> getAttributes()
- {
- return selectedAttributes;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/AttributesBlock.java b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/AttributesBlock.java
deleted file mode 100644
index e9e51a8..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/AttributesBlock.java
+++ /dev/null
@@ -1,367 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.ui.internal.tabs.processor;
-
-import java.io.ByteArrayInputStream;
-import java.io.IOException;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-
-import javax.xml.parsers.ParserConfigurationException;
-import javax.xml.transform.TransformerException;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.debug.core.ILaunchConfiguration;
-import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
-import org.eclipse.jface.dialogs.IDialogSettings;
-import org.eclipse.jface.viewers.CellEditor;
-import org.eclipse.jface.viewers.CellLabelProvider;
-import org.eclipse.jface.viewers.EditingSupport;
-import org.eclipse.jface.viewers.ISelectionChangedListener;
-import org.eclipse.jface.viewers.IStructuredContentProvider;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.SelectionChangedEvent;
-import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.jface.viewers.TableViewer;
-import org.eclipse.jface.viewers.TableViewerColumn;
-import org.eclipse.jface.viewers.TextCellEditor;
-import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.jface.viewers.ViewerCell;
-import org.eclipse.jface.viewers.ViewerSorter;
-import org.eclipse.jface.window.Window;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.KeyAdapter;
-import org.eclipse.swt.events.KeyEvent;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.events.SelectionListener;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.TabFolder;
-import org.eclipse.swt.widgets.TabItem;
-import org.eclipse.swt.widgets.Table;
-import org.eclipse.swt.widgets.TableColumn;
-import org.eclipse.wst.xsl.internal.debug.ui.AbstractTableBlock;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIPlugin;
-import org.eclipse.wst.xsl.jaxp.debug.ui.internal.JAXPDebugUIPlugin;
-import org.eclipse.wst.xsl.jaxp.launching.IAttribute;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorType;
-import org.eclipse.wst.xsl.jaxp.launching.JAXPLaunchConfigurationConstants;
-import org.eclipse.wst.xsl.jaxp.launching.JAXPRuntime;
-import org.eclipse.wst.xsl.jaxp.launching.LaunchAttributes;
-import org.eclipse.wst.xsl.launching.config.LaunchAttribute;
-
-public class AttributesBlock extends AbstractTableBlock
-{
- private Table table;
- private TableViewer tViewer;
- private LaunchAttributes attributes;
- private Button removeButton;
- private Map<String,IAttribute> attributeUris = new HashMap<String,IAttribute>();
-
- public AttributesBlock()
- {
- for (IProcessorType type : JAXPRuntime.getProcessorTypes())
- {
- for (IAttribute attribute : type.getAttributes())
- {
- attributeUris.put(attribute.getURI(), attribute);
- }
- }
- }
-
- @Override
- protected IDialogSettings getDialogSettings()
- {
- return XSLDebugUIPlugin.getDefault().getDialogSettings();
- }
-
- @Override
- protected String getQualifier()
- {
- return JAXPDebugUIPlugin.PLUGIN_ID+"."+getClass().getCanonicalName(); //$NON-NLS-1$
- }
-
- @Override
- protected Table getTable()
- {
- return table;
- }
-
- public void createControl(Composite parent)
- {
- TabItem item = new TabItem((TabFolder)parent,SWT.NONE);
- item.setText(Messages.getString("AttributesBlock.0")); //$NON-NLS-1$
-
- Composite composite = new Composite(parent,SWT.NONE);
- GridLayout layout = new GridLayout(2,false);
- layout.marginBottom = 0;
- layout.marginWidth = 0;
- composite.setLayout(layout);
- item.setControl(composite);
-
- table = new Table(composite,SWT.BORDER | SWT.FULL_SELECTION | SWT.V_SCROLL | SWT.MULTI);
- table.setHeaderVisible(true);
- table.setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true));
- table.addKeyListener(new KeyAdapter() {
- @Override
- public void keyPressed(KeyEvent event) {
- if (event.character == SWT.DEL && event.stateMask == 0) {
- performRemove();
- }
- }
- });
-
- TableColumn tc1 = new TableColumn(table,SWT.NONE);
- tc1.setText(Messages.getString("AttributesBlock.2")); //$NON-NLS-1$
- tc1.setWidth(350);
- tc1.setResizable(true);
-
- TableColumn tc2 = new TableColumn(table,SWT.NONE);
- tc2.setText(Messages.getString("AttributesBlock.7")); //$NON-NLS-1$
- tc2.setWidth(50);
- tc2.setResizable(true);
-
- Composite buttonComp = new Composite(composite,SWT.FILL);
- buttonComp.setLayoutData(new GridData(SWT.FILL,SWT.TOP,false,false));
- GridLayout gl = new GridLayout();
- gl.marginWidth = 0;
- buttonComp.setLayout(gl);
-
- Button addButton = new Button(buttonComp,SWT.PUSH);
- addButton.setText(Messages.getString("AttributesBlock.8")); //$NON-NLS-1$
- addButton.setLayoutData(new GridData(SWT.FILL,SWT.TOP,false,false));
- addButton.addSelectionListener(new SelectionListener(){
- public void widgetDefaultSelected(SelectionEvent e)
- {
- }
- public void widgetSelected(SelectionEvent e)
- {
- AttributeDialog dialog = new AttributeDialog(getShell(),attributes);
- if (dialog.open() == Window.OK)
- {
- List<IAttribute> newAttributes = dialog.getAttributes();
- LaunchAttribute first = null;
- for (IAttribute attribute : newAttributes)
- {
- LaunchAttribute att = new LaunchAttribute(attribute.getURI(),"string",null); //$NON-NLS-1$
- if (first == null)
- first = att;
- attributes.addAttribute(att);
- }
- if (newAttributes.size() > 0)
- {
- tViewer.refresh();
- tViewer.setSelection(new StructuredSelection(first), true);
- tViewer.editElement(first, 1);
- updateLaunchConfigurationDialog();
- }
- }
- }
- });
-
- removeButton = new Button(buttonComp,SWT.PUSH);
- removeButton.setText(Messages.getString("AttributesBlock.14")); //$NON-NLS-1$
- removeButton.setLayoutData(new GridData(SWT.FILL,SWT.TOP,false,false));
- removeButton.addSelectionListener(new SelectionListener(){
- public void widgetDefaultSelected(SelectionEvent e)
- {
- }
- public void widgetSelected(SelectionEvent e)
- {
- performRemove();
- }
- });
-
- setControl(table);
-
- tViewer = new TableViewer(table);
- tViewer.setContentProvider(new IStructuredContentProvider()
- {
- public Object[] getElements(Object inputElement)
- {
- return attributes.getAttributes().toArray(new LaunchAttribute[0]);
- }
-
- public void dispose()
- {
- }
-
- public void inputChanged(Viewer viewer, Object oldInput, Object newInput)
- {
- attributes = (LaunchAttributes) newInput;
- }
- });
- tViewer.setSorter(new ViewerSorter()
- {
- @Override
- public int compare(Viewer viewer, Object e1, Object e2)
- {
- LaunchAttribute a1 = (LaunchAttribute) e1;
- LaunchAttribute a2 = (LaunchAttribute) e2;
- return a1.uri.compareTo(a2.uri);
- }
- });
- tViewer.addSelectionChangedListener(new ISelectionChangedListener(){
- public void selectionChanged(SelectionChangedEvent event)
- {
- updateRemoveButton();
- }
- });
-
- TableViewerColumn tvc1 = new TableViewerColumn(tViewer,tc1);
- tvc1.setLabelProvider(new CellLabelProvider(){
- @Override
- public void update(ViewerCell cell)
- {
- LaunchAttribute tv = (LaunchAttribute) cell.getElement();
- cell.setText(tv.uri);
- }
-
- @Override
- public int getToolTipTimeDisplayed(Object object)
- {
- return 5000;
- }
-
- @Override
- public String getToolTipText(Object element)
- {
- LaunchAttribute tv = (LaunchAttribute) element;
- return attributeUris.get(tv.uri).getDescription();
- }
-
- });
-
-// ColumnViewerToolTipSupport.enableFor(tViewer);
-
- TableViewerColumn tvc2 = new TableViewerColumn(tViewer,tc2);
- tvc2.setLabelProvider(new CellLabelProvider(){
- @Override
- public void update(ViewerCell cell)
- {
- LaunchAttribute tv = (LaunchAttribute) cell.getElement();
- cell.setText(tv.value);
- }
- });
-
- tvc2.setEditingSupport(new EditingSupport(tViewer){
-
- @Override
- protected boolean canEdit(Object element)
- {
- return true;
- }
-
- @Override
- protected CellEditor getCellEditor(Object element)
- {
- return new TextCellEditor(table);
- }
-
- @Override
- protected Object getValue(Object element)
- {
- LaunchAttribute tv = (LaunchAttribute)element;
- return tv.value == null ? "" : tv.value; //$NON-NLS-1$
- }
-
- @Override
- protected void setValue(Object element, Object value)
- {
- LaunchAttribute tv = (LaunchAttribute)element;
- tv.setValue((String)value);
- updateLaunchConfigurationDialog();
- tViewer.update(tv, null);
- }
-
- });
-
- restoreColumnSettings();
- }
-
- protected void updateRemoveButton()
- {
- removeButton.setEnabled(!tViewer.getSelection().isEmpty());
- }
-
- public String getName()
- {
- return Messages.getString("AttributesBlock.16"); //$NON-NLS-1$
- }
-
- public void setDefaults(ILaunchConfigurationWorkingCopy configuration)
- {
- }
-
- private void initializeAttributesFromStorage(ILaunchConfiguration configuration) throws CoreException
- {
- String s = configuration.getAttribute(JAXPLaunchConfigurationConstants.ATTR_ATTRIBUTES, (String) null);
- if (s != null && s.length() > 0)
- {
- attributes = LaunchAttributes.fromXML(new ByteArrayInputStream(s.getBytes()));
- }
- else
- {
- attributes = new LaunchAttributes();
- }
- tViewer.setInput(attributes);
- updateRemoveButton();
- }
-
- public void initializeFrom(ILaunchConfiguration configuration)
- {
- try
- {
- initializeAttributesFromStorage(configuration);
- }
- catch (CoreException e)
- {
- XSLDebugUIPlugin.log(e);
- }
- }
-
- public void performApply(ILaunchConfigurationWorkingCopy configuration)
- {
- try
- {
- String xml = attributes.toXML();
- configuration.setAttribute(JAXPLaunchConfigurationConstants.ATTR_ATTRIBUTES, xml);
- }
- catch (ParserConfigurationException e)
- {
- XSLDebugUIPlugin.log(e);
- }
- catch (IOException e)
- {
- XSLDebugUIPlugin.log(e);
- }
- catch (TransformerException e)
- {
- XSLDebugUIPlugin.log(e);
- }
- }
-
- private void performRemove()
- {
- IStructuredSelection sel = (IStructuredSelection)tViewer.getSelection();
- for (Iterator<LaunchAttribute> iterator = sel.iterator(); iterator.hasNext();)
- {
- LaunchAttribute att = iterator.next();
- attributes.removeAtribute(att.uri);
- }
- tViewer.refresh();
- updateLaunchConfigurationDialog();
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/InstallStandin.java b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/InstallStandin.java
deleted file mode 100644
index 35b3927..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/InstallStandin.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.ui.internal.tabs.processor;
-
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorInstall;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorJar;
-import org.eclipse.wst.xsl.jaxp.launching.ProcessorInstall;
-
-public class InstallStandin extends ProcessorInstall
-{
- public InstallStandin(IProcessorInstall install)
- {
- super(install.getId(), install.getName(), install.getProcessorType().getId(), install.getProcessorJars(), install.getDebugger() != null ? install.getDebugger().getId() : null, install
- .getSupports(), install.isContributed());
- }
-
- public InstallStandin(String id, String name, String typeId, String debuggerId, IProcessorJar[] jars)
- {
- super(id, name, typeId, jars, debuggerId, "", false); //$NON-NLS-1$
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/JarContentProvider.java b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/JarContentProvider.java
deleted file mode 100644
index f37a0de..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/JarContentProvider.java
+++ /dev/null
@@ -1,34 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.ui.internal.tabs.processor;
-
-import org.eclipse.jface.viewers.IStructuredContentProvider;
-import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorInstall;
-
-public class JarContentProvider implements IStructuredContentProvider
-{
- private IProcessorInstall install;
-
- public Object[] getElements(Object inputElement)
- {
- return install.getProcessorJars();
- }
-
- public void dispose()
- {
- }
-
- public void inputChanged(Viewer viewer, Object oldInput, Object newInput)
- {
- install = (IProcessorInstall) newInput;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/JarLabelProvider.java b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/JarLabelProvider.java
deleted file mode 100644
index 5ded313..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/JarLabelProvider.java
+++ /dev/null
@@ -1,26 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.ui.internal.tabs.processor;
-
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.jface.viewers.LabelProvider;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorJar;
-
-public class JarLabelProvider extends LabelProvider
-{
- @Override
- public String getText(Object element)
- {
- IProcessorJar jar = (IProcessorJar) element;
- IPath path = jar.getPath();
- return path.lastSegment() + " - " + path.removeLastSegments(1).toOSString() + ""; //$NON-NLS-1$ //$NON-NLS-2$
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/Messages.java b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/Messages.java
deleted file mode 100644
index ea96ce6..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/Messages.java
+++ /dev/null
@@ -1,22 +0,0 @@
-package org.eclipse.wst.xsl.jaxp.debug.ui.internal.tabs.processor;
-
-import java.util.MissingResourceException;
-import java.util.ResourceBundle;
-
-class Messages {
- private static final String BUNDLE_NAME = "org.eclipse.wst.xsl.jaxp.debug.ui.internal.tabs.processor.messages"; //$NON-NLS-1$
-
- private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
- .getBundle(BUNDLE_NAME);
-
- private Messages() {
- }
-
- public static String getString(String key) {
- try {
- return RESOURCE_BUNDLE.getString(key);
- } catch (MissingResourceException e) {
- return '!' + key + '!';
- }
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/OutputPropertiesBlock.java b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/OutputPropertiesBlock.java
deleted file mode 100644
index 7b9ce66..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/OutputPropertiesBlock.java
+++ /dev/null
@@ -1,378 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.ui.internal.tabs.processor;
-
-import java.io.ByteArrayInputStream;
-import java.io.IOException;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-
-import javax.xml.parsers.ParserConfigurationException;
-import javax.xml.transform.TransformerException;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.debug.core.ILaunchConfiguration;
-import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
-import org.eclipse.jface.dialogs.IDialogSettings;
-import org.eclipse.jface.viewers.CellEditor;
-import org.eclipse.jface.viewers.CellLabelProvider;
-import org.eclipse.jface.viewers.EditingSupport;
-import org.eclipse.jface.viewers.ISelectionChangedListener;
-import org.eclipse.jface.viewers.IStructuredContentProvider;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.SelectionChangedEvent;
-import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.jface.viewers.TableViewer;
-import org.eclipse.jface.viewers.TableViewerColumn;
-import org.eclipse.jface.viewers.TextCellEditor;
-import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.jface.viewers.ViewerCell;
-import org.eclipse.jface.viewers.ViewerSorter;
-import org.eclipse.jface.window.Window;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.KeyAdapter;
-import org.eclipse.swt.events.KeyEvent;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.events.SelectionListener;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.TabFolder;
-import org.eclipse.swt.widgets.TabItem;
-import org.eclipse.swt.widgets.Table;
-import org.eclipse.swt.widgets.TableColumn;
-import org.eclipse.wst.xsl.internal.debug.ui.AbstractTableBlock;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIPlugin;
-import org.eclipse.wst.xsl.jaxp.debug.ui.internal.JAXPDebugUIPlugin;
-import org.eclipse.wst.xsl.jaxp.launching.IOutputProperty;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorType;
-import org.eclipse.wst.xsl.jaxp.launching.JAXPLaunchConfigurationConstants;
-import org.eclipse.wst.xsl.jaxp.launching.JAXPRuntime;
-import org.eclipse.wst.xsl.jaxp.launching.LaunchProperties;
-
-public class OutputPropertiesBlock extends AbstractTableBlock
-{
- private Table table;
- private TableViewer tViewer;
- private LaunchProperties properties;
- private Button removeButton;
- private Map<String,IOutputProperty> propertyUris = new HashMap<String,IOutputProperty>();
-
- public OutputPropertiesBlock()
- {
- for (IProcessorType type : JAXPRuntime.getProcessorTypes())
- {
- for (IOutputProperty property : type.getOutputProperties())
- {
- propertyUris.put(property.getURI(), property);
- }
- }
- }
-
- @Override
- protected IDialogSettings getDialogSettings()
- {
- return XSLDebugUIPlugin.getDefault().getDialogSettings();
- }
-
- @Override
- protected String getQualifier()
- {
- return JAXPDebugUIPlugin.PLUGIN_ID+"."+getClass().getCanonicalName(); //$NON-NLS-1$
- }
-
- @Override
- protected Table getTable()
- {
- return table;
- }
-
- public void createControl(Composite parent)
- {
- TabItem item = new TabItem((TabFolder)parent,SWT.NONE);
- item.setText(Messages.getString("OutputPropertiesBlock_0")); //$NON-NLS-1$
-
- Composite composite = new Composite(parent,SWT.NONE);
- GridLayout layout = new GridLayout(2,false);
- layout.marginBottom = 0;
- layout.marginWidth = 0;
- composite.setLayout(layout);
- item.setControl(composite);
-
- table = new Table(composite,SWT.BORDER | SWT.FULL_SELECTION | SWT.V_SCROLL | SWT.MULTI);
- table.setHeaderVisible(true);
- table.setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true));
- table.addKeyListener(new KeyAdapter() {
- @Override
- public void keyPressed(KeyEvent event) {
- if (event.character == SWT.DEL && event.stateMask == 0) {
- performRemove();
- }
- }
- });
-
-
- TableColumn tc1 = new TableColumn(table,SWT.NONE);
- tc1.setText(Messages.getString("OutputPropertiesBlock_1")); //$NON-NLS-1$
- tc1.setWidth(350);
- tc1.setResizable(true);
-
- TableColumn tc2 = new TableColumn(table,SWT.NONE);
- tc2.setText(Messages.getString("OutputPropertiesBlock_2")); //$NON-NLS-1$
- tc2.setWidth(50);
- tc2.setResizable(true);
-
- Composite buttonComp = new Composite(composite,SWT.FILL);
- buttonComp.setLayoutData(new GridData(SWT.FILL,SWT.TOP,false,false));
- GridLayout gl = new GridLayout();
- gl.marginWidth = 0;
- buttonComp.setLayout(gl);
-
- Button addButton = new Button(buttonComp,SWT.PUSH);
- addButton.setText(Messages.getString("OutputPropertiesBlock_3")); //$NON-NLS-1$
- addButton.setLayoutData(new GridData(SWT.FILL,SWT.TOP,false,false));
- addButton.addSelectionListener(new SelectionListener(){
- public void widgetDefaultSelected(SelectionEvent e)
- {
- }
- public void widgetSelected(SelectionEvent e)
- {
- OutputPropertyDialog dialog = new OutputPropertyDialog(getShell(),properties);
- if (dialog.open() == Window.OK)
- {
- List<IOutputProperty> newProperties = dialog.getOutpuProperties();
- String first = null;
- for (IOutputProperty property : newProperties)
- {
- String att = property.getURI();
- if (first == null)
- first = att;
- properties.setProperty(property.getURI(), null);
- }
- if (newProperties.size() > 0)
- {
- tViewer.refresh();
- tViewer.setSelection(new StructuredSelection(first), true);
- tViewer.editElement(first, 1);
- updateLaunchConfigurationDialog();
- }
- }
- }
- });
-
- removeButton = new Button(buttonComp,SWT.PUSH);
- removeButton.setText(Messages.getString("OutputPropertiesBlock_4")); //$NON-NLS-1$
- removeButton.setLayoutData(new GridData(SWT.FILL,SWT.TOP,false,false));
- removeButton.addSelectionListener(new SelectionListener(){
- public void widgetDefaultSelected(SelectionEvent e)
- {
- }
- public void widgetSelected(SelectionEvent e)
- {
- performRemove();
- }
- });
-
- setControl(table);
-
- tViewer = new TableViewer(table);
- tViewer.setContentProvider(new IStructuredContentProvider()
- {
- public Object[] getElements(Object inputElement)
- {
- return properties.getProperties().keySet().toArray(new String[0]);
- }
-
- public void dispose()
- {
- }
-
- public void inputChanged(Viewer viewer, Object oldInput, Object newInput)
- {
- }
- });
- tViewer.setSorter(new ViewerSorter());
- tViewer.addSelectionChangedListener(new ISelectionChangedListener(){
- public void selectionChanged(SelectionChangedEvent event)
- {
- updateRemoveButton();
- }
- });
-
- TableViewerColumn tvc1 = new TableViewerColumn(tViewer,tc1);
- tvc1.setLabelProvider(new CellLabelProvider(){
- @Override
- public void update(ViewerCell cell)
- {
- String tv = (String) cell.getElement();
- cell.setText(tv);
- }
-
- @Override
- public int getToolTipTimeDisplayed(Object object)
- {
- return 5000;
- }
-
- @Override
- public String getToolTipText(Object element)
- {
- String tv = (String) element;
- return propertyUris.get(tv).getDescription();
- }
-
- });
-
-// ColumnViewerToolTipSupport.enableFor(tViewer);
-
- TableViewerColumn tvc2 = new TableViewerColumn(tViewer,tc2);
- tvc2.setLabelProvider(new CellLabelProvider(){
- @Override
- public void update(ViewerCell cell)
- {
- String tv = (String) cell.getElement();
- String val = properties.getProperty(tv);
- cell.setText(val == null ? "" : val); //$NON-NLS-1$
- }
- });
-
- tvc2.setEditingSupport(new EditingSupport(tViewer){
-
- @Override
- protected boolean canEdit(Object element)
- {
- return true;
- }
-
- @Override
- protected CellEditor getCellEditor(Object element)
- {
- return new TextCellEditor(table);
- }
-
- @Override
- protected Object getValue(Object element)
- {
- String tv = (String)element;
- String val = properties.getProperty(tv);
- return val == null ? "" : val; //$NON-NLS-1$
- }
-
- @Override
- protected void setValue(Object element, Object value)
- {
- String tv = (String)element;
- properties.setProperty(tv, (String)value);
- updateLaunchConfigurationDialog();
- tViewer.update(tv, null);
- }
-
- });
-
- restoreColumnSettings();
- }
-
- protected void updateRemoveButton()
- {
- removeButton.setEnabled(!tViewer.getSelection().isEmpty());
- }
-
- public String getName()
- {
- return Messages.getString("AttributesBlock.16"); //$NON-NLS-1$
- }
-
- public void setDefaults(ILaunchConfigurationWorkingCopy configuration)
- {
-// LaunchProperties p = new LaunchProperties();
-// p.setProperty("indent", "yes");
-// try
-// {
-// String xml = p.toXML();
-// configuration.setAttribute(JAXPLaunchConfigurationConstants.ATTR_OUTPUT_PROPERTIES, xml);
-// }
-// catch (ParserConfigurationException e)
-// {
-// XSLDebugUIPlugin.log(e);
-// }
-// catch (IOException e)
-// {
-// XSLDebugUIPlugin.log(e);
-// }
-// catch (TransformerException e)
-// {
-// XSLDebugUIPlugin.log(e);
-// }
- }
-
- private void initializePropertiesFromStorage(ILaunchConfiguration configuration) throws CoreException
- {
- String s = configuration.getAttribute(JAXPLaunchConfigurationConstants.ATTR_OUTPUT_PROPERTIES, (String) null);
- if (s != null && s.length() > 0)
- {
- properties = LaunchProperties.fromXML(new ByteArrayInputStream(s.getBytes()));
- }
- else
- {
- properties = new LaunchProperties();
- }
- tViewer.setInput(properties);
- updateRemoveButton();
- }
-
- public void initializeFrom(ILaunchConfiguration configuration)
- {
- try
- {
- initializePropertiesFromStorage(configuration);
- }
- catch (CoreException e)
- {
- XSLDebugUIPlugin.log(e);
- }
- }
-
- public void performApply(ILaunchConfigurationWorkingCopy configuration)
- {
- try
- {
- String xml = properties.toXML();
- configuration.setAttribute(JAXPLaunchConfigurationConstants.ATTR_OUTPUT_PROPERTIES, xml);
- }
- catch (ParserConfigurationException e)
- {
- XSLDebugUIPlugin.log(e);
- }
- catch (IOException e)
- {
- XSLDebugUIPlugin.log(e);
- }
- catch (TransformerException e)
- {
- XSLDebugUIPlugin.log(e);
- }
- }
-
- private void performRemove()
- {
- IStructuredSelection sel = (IStructuredSelection)tViewer.getSelection();
- for (Iterator<String> iterator = sel.iterator(); iterator.hasNext();)
- {
- String att = iterator.next();
- properties.removeProperty(att);
- }
- tViewer.refresh();
- updateLaunchConfigurationDialog();
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/OutputPropertyDialog.java b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/OutputPropertyDialog.java
deleted file mode 100644
index 35ce127..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/OutputPropertyDialog.java
+++ /dev/null
@@ -1,160 +0,0 @@
-package org.eclipse.wst.xsl.jaxp.debug.ui.internal.tabs.processor;
-
-import java.util.ArrayList;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Set;
-
-import org.eclipse.jface.dialogs.IDialogConstants;
-import org.eclipse.jface.dialogs.StatusDialog;
-import org.eclipse.jface.viewers.DoubleClickEvent;
-import org.eclipse.jface.viewers.IDoubleClickListener;
-import org.eclipse.jface.viewers.ISelectionChangedListener;
-import org.eclipse.jface.viewers.IStructuredContentProvider;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.LabelProvider;
-import org.eclipse.jface.viewers.SelectionChangedEvent;
-import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.jface.viewers.TableViewer;
-import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.jface.viewers.ViewerSorter;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.swt.widgets.Table;
-import org.eclipse.swt.widgets.Text;
-import org.eclipse.wst.xsl.jaxp.launching.IOutputProperty;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorType;
-import org.eclipse.wst.xsl.jaxp.launching.JAXPRuntime;
-import org.eclipse.wst.xsl.jaxp.launching.LaunchProperties;
-
-public class OutputPropertyDialog extends StatusDialog
-{
- private Table table;
- private TableViewer tViewer;
- private Text text;
- private List<IOutputProperty> properties = new ArrayList<IOutputProperty>();
- private List<IOutputProperty> selectedProperties = new ArrayList<IOutputProperty>();
-
- public OutputPropertyDialog(Shell parent, LaunchProperties launchProperties)
- {
- super(parent);
- setTitle(Messages.getString("OutputPropertyDialog_0")); //$NON-NLS-1$
-
- Set<String> propertySet = new HashSet<String>();
- for (String att : launchProperties.getProperties().keySet())
- {
- propertySet.add(att);
- }
- for (IProcessorType type : JAXPRuntime.getProcessorTypes())
- {
- for (IOutputProperty property : type.getOutputProperties())
- {
- if (!propertySet.contains(property.getURI()))
- {
- propertySet.add(property.getURI());
- properties.add(property);
- }
- }
- }
- }
-
- @Override
- protected Control createDialogArea(Composite parent)
- {
- Composite comp = new Composite(parent,SWT.NONE);
- GridData gd = new GridData(SWT.FILL,SWT.FILL,true,true);
- gd.widthHint = 400;
- comp.setLayoutData(gd);
- comp.setLayout(new GridLayout());
-
- Label label = new Label(comp,SWT.NONE);
- label.setText(Messages.getString("OutputPropertyDialog_1")); //$NON-NLS-1$
-
-
- table = new Table(comp,SWT.BORDER | SWT.FULL_SELECTION | SWT.V_SCROLL | SWT.MULTI);
- table.setHeaderVisible(false);
- gd = new GridData(SWT.FILL,SWT.FILL,true,true);
- gd.verticalIndent = 10;
- gd.heightHint = 200;
- table.setLayoutData(gd);
-
- tViewer = new TableViewer(table);
- tViewer.setContentProvider(new IStructuredContentProvider()
- {
- public Object[] getElements(Object inputElement)
- {
- return properties.toArray(new IOutputProperty[0]);
- }
-
- public void dispose()
- {
- }
-
- public void inputChanged(Viewer viewer, Object oldInput, Object newInput)
- {
- }
- });
- tViewer.setLabelProvider(new LabelProvider(){
- @Override
- public String getText(Object element)
- {
- IOutputProperty property = (IOutputProperty)element;
- return property.getURI();
- }
- });
- tViewer.setSorter(new ViewerSorter()
- {
- @Override
- public int compare(Viewer viewer, Object e1, Object e2)
- {
- IOutputProperty a1 = (IOutputProperty) e1;
- IOutputProperty a2 = (IOutputProperty) e2;
- return a1.getURI().compareTo(a2.getURI());
- }
- });
- tViewer.addSelectionChangedListener(new ISelectionChangedListener(){
- public void selectionChanged(SelectionChangedEvent event)
- {
- IStructuredSelection sel = (IStructuredSelection)event.getSelection();
- selectedProperties = sel.toList();
- if (sel.isEmpty())
- text.setText(""); //$NON-NLS-1$
- else
- {
- IOutputProperty property = (IOutputProperty)sel.getFirstElement();
- text.setText(property.getDescription());
- }
- }
- });
- tViewer.addDoubleClickListener(new IDoubleClickListener(){
- public void doubleClick(DoubleClickEvent event)
- {
- buttonPressed(IDialogConstants.OK_ID);
- }
- });
- tViewer.setInput(properties);
-
- text = new Text(comp,SWT.BORDER | SWT.WRAP | SWT.READ_ONLY | SWT.V_SCROLL);
- text.setEditable(false);
- gd = new GridData(SWT.FILL,SWT.FILL,true,false);
- gd.heightHint = 80;
- text.setLayoutData(gd);
-
- if (properties.size() > 0)
- {
- tViewer.setSelection(new StructuredSelection(tViewer.getElementAt(0)), true);
- }
-
- return comp;
- }
-
- public List<IOutputProperty> getOutpuProperties()
- {
- return selectedProperties;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/ProcessorBlock.java b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/ProcessorBlock.java
deleted file mode 100644
index 2e4907c..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/ProcessorBlock.java
+++ /dev/null
@@ -1,373 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.ui.internal.tabs.processor;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.debug.core.ILaunchConfiguration;
-import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
-import org.eclipse.debug.ui.AbstractLaunchConfigurationTab;
-import org.eclipse.jface.preference.IPreferencePage;
-import org.eclipse.jface.viewers.ComboViewer;
-import org.eclipse.jface.viewers.ISelectionChangedListener;
-import org.eclipse.jface.viewers.IStructuredContentProvider;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.LabelProvider;
-import org.eclipse.jface.viewers.SelectionChangedEvent;
-import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.SelectionAdapter;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.graphics.Font;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Combo;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIPlugin;
-import org.eclipse.wst.xsl.jaxp.debug.ui.internal.preferences.ProcessorsPreferencePage;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorInstall;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorType;
-import org.eclipse.wst.xsl.jaxp.launching.ITransformerFactory;
-import org.eclipse.wst.xsl.jaxp.launching.JAXPLaunchConfigurationConstants;
-import org.eclipse.wst.xsl.jaxp.launching.JAXPRuntime;
-
-public class ProcessorBlock extends AbstractLaunchConfigurationTab
-{
- private Button usePreferencesRadio;
- private Button alterPreferencesButton;
- private Button overridePreferencesRadio;
- private Combo runCombo;
- private Button installedProcessorsButton;
- private ComboViewer runComboViewer;
- private ComboViewer factoryComboViewer;
- private ITransformerFactory currentFactory;
-
- public ProcessorBlock()
- {
- }
-
- public void createControl(Composite parent)
- {
- Font font = parent.getFont();
-
- Composite group = new Composite(parent, SWT.NULL);
- setControl(group);
- group.setLayout(new GridLayout(2, false));
- group.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
- group.setFont(font);
-// group.setText(ProcessorMessages.ProcessorBlock_0);
-
- usePreferencesRadio = new Button(group, SWT.RADIO);
- usePreferencesRadio.setText(ProcessorMessages.ProcessorBlock_1);
- usePreferencesRadio.addSelectionListener(new SelectionAdapter()
- {
- @Override
- public void widgetSelected(SelectionEvent e)
- {
- preferencesSelected();
- updateLaunchConfigurationDialog();
- }
- });
-
- alterPreferencesButton = new Button(group, SWT.PUSH);
- alterPreferencesButton.setText(ProcessorMessages.ProcessorBlock_2);
- GridData gd = new GridData(GridData.HORIZONTAL_ALIGN_END);
- gd.widthHint = 150;
- alterPreferencesButton.setLayoutData(gd);
- alterPreferencesButton.addSelectionListener(new SelectionAdapter()
- {
- @Override
- public void widgetSelected(SelectionEvent e)
- {
- IPreferencePage page = new ProcessorsPreferencePage();
- showPrefPage("org.eclipse.wst.xslt.launching.ui.preferences.ProcessorPreferencePage", page); //$NON-NLS-1$
- }
- });
-
- overridePreferencesRadio = new Button(group, SWT.RADIO);
- overridePreferencesRadio.setText(ProcessorMessages.ProcessorBlock_4);
- overridePreferencesRadio.addSelectionListener(new SelectionAdapter()
- {
- @Override
- public void widgetSelected(SelectionEvent e)
- {
- overrideSelected();
- updateLaunchConfigurationDialog();
- }
- });
-
- installedProcessorsButton = new Button(group, SWT.PUSH);
- installedProcessorsButton.setText(ProcessorMessages.ProcessorsComboBlock_1);
- gd = new GridData(GridData.HORIZONTAL_ALIGN_END);
- gd.widthHint = 150;
- installedProcessorsButton.setLayoutData(gd);
- installedProcessorsButton.addSelectionListener(new SelectionAdapter()
- {
- @Override
- public void widgetSelected(SelectionEvent e)
- {
- IPreferencePage page = new ProcessorsPreferencePage();
- showPrefPage("org.eclipse.wst.xslt.launching.ui.preferences.ProcessorPreferencePage", page); //$NON-NLS-1$
- }
- });
-
- Composite settingsComp = new Composite(group, SWT.NONE);
- GridLayout gl = new GridLayout(3, false);
- gl.marginHeight = 2;
- settingsComp.setLayout(gl);
- gd = new GridData(GridData.FILL_HORIZONTAL);
- gd.horizontalIndent = 15;
- gd.horizontalSpan = 2;
- settingsComp.setLayoutData(gd);
- settingsComp.setFont(font);
-
- Label label = new Label(settingsComp, SWT.NONE);
- label.setText(ProcessorMessages.ProcessorBlock_6);
- runCombo = new Combo(settingsComp, SWT.READ_ONLY | SWT.SINGLE);
- runCombo.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
- runComboViewer = new ComboViewer(runCombo);
- runComboViewer.setContentProvider(new ComboContentProvider());
- runComboViewer.setLabelProvider(new ComboLabelProvider());
- runComboViewer.setInput(JAXPRuntime.getProcessors());
- runComboViewer.addSelectionChangedListener(new ISelectionChangedListener()
- {
-
- public void selectionChanged(SelectionChangedEvent event)
- {
- IStructuredSelection sel = (IStructuredSelection) event.getSelection();
- if (!sel.isEmpty())
- {
- IProcessorInstall processor = (IProcessorInstall) sel.getFirstElement();
-
- if (processor.getProcessorType().getTransformerFactories().length > 1)
- factoryComboViewer.getCombo().setVisible(true);
- else
- factoryComboViewer.getCombo().setVisible(false);
-
- factoryComboViewer.setInput(processor.getProcessorType());
-
- boolean found = false;
- for (ITransformerFactory tf : processor.getProcessorType().getTransformerFactories())
- {
- if (tf.equals(currentFactory))
- {
- found = true;
- break;
- }
- }
- if (!found)
- {
- currentFactory = processor.getProcessorType().getDefaultTransformerFactory();
- if (currentFactory!=null)
- factoryComboViewer.setSelection(new StructuredSelection(currentFactory));
- }
- }
- updateLaunchConfigurationDialog();
- }
- });
-
- Combo factoryCombo = new Combo(settingsComp, SWT.READ_ONLY | SWT.SINGLE);
- factoryCombo.setLayoutData(new GridData(80,SWT.DEFAULT));
- factoryComboViewer = new ComboViewer(factoryCombo);
- factoryComboViewer.setContentProvider(new IStructuredContentProvider(){
-
- private IProcessorType type;
-
- public Object[] getElements(Object inputElement)
- {
- return type.getTransformerFactories();
- }
-
- public void dispose()
- {
- }
-
- public void inputChanged(Viewer viewer, Object oldInput, Object newInput)
- {
- this.type = (IProcessorType)newInput;
- }
-
- });
- factoryComboViewer.setLabelProvider(new LabelProvider(){
- @Override
- public String getText(Object element)
- {
- ITransformerFactory f = (ITransformerFactory)element;
- return f.getName(); // + " - " + f.getFactoryClass();
- }
- });
- factoryComboViewer.addSelectionChangedListener(new ISelectionChangedListener()
- {
-
- public void selectionChanged(SelectionChangedEvent event)
- {
- currentFactory = (ITransformerFactory)((IStructuredSelection)event.getSelection()).getFirstElement();
- updateLaunchConfigurationDialog();
- }
- });
-
-// overridePreferencesButton = new Button(group,SWT.CHECK);
-// overridePreferencesButton.setText("Override preferences");
-// gd = new GridData(SWT.NONE,SWT.NONE,false,false);
-// overridePreferencesButton.setLayoutData(gd);
-// overridePreferencesButton.addSelectionListener(new SelectionListener(){
-// public void widgetDefaultSelected(SelectionEvent e)
-// {}
-//
-// public void widgetSelected(SelectionEvent e)
-// {
-// firePreferenceProcessorChanged(overridePreferencesButton.getSelection());
-// }
-// });
- }
-
-
- private void preferencesSelected()
- {
- alterPreferencesButton.setEnabled(true);
- installedProcessorsButton.setEnabled(false);
- runCombo.setEnabled(false);
- factoryComboViewer.getCombo().setEnabled(false);
- runComboViewer.setSelection(new StructuredSelection(getRunProcessorPreference()), true);
- }
-
- private void overrideSelected()
- {
- alterPreferencesButton.setEnabled(false);
- installedProcessorsButton.setEnabled(true);
- factoryComboViewer.getCombo().setEnabled(true);
- runCombo.setEnabled(true);
- }
-
- private void showPrefPage(String id, IPreferencePage page)
- {
- XSLDebugUIPlugin.showPreferencePage(id, page);
- // now refresh everything
- runComboViewer.setInput(JAXPRuntime.getProcessors());
- runComboViewer.setSelection(new StructuredSelection(getRunProcessorPreference()), true);
- // preferencesSelected();
- }
-
- public String getName()
- {
- return ProcessorMessages.ProcessorBlock_7;
- }
-
- public void initializeFrom(ILaunchConfiguration configuration)
- {
- try
- {
- boolean useDefaultProcessor = configuration.getAttribute(JAXPLaunchConfigurationConstants.ATTR_USE_DEFAULT_PROCESSOR, true);
- if (useDefaultProcessor)
- {
- usePreferencesRadio.setSelection(true);
- overridePreferencesRadio.setSelection(false);
- preferencesSelected();
- }
- else
- {
- usePreferencesRadio.setSelection(false);
- overridePreferencesRadio.setSelection(true);
- overrideSelected();
-
- IProcessorInstall runInstall = null;
- String runId = configuration.getAttribute(JAXPLaunchConfigurationConstants.ATTR_PROCESSOR, (String) null);
- if (runId != null)
- runInstall = JAXPRuntime.getProcessor(runId);
- if (runInstall == null)
- runInstall = getRunProcessorPreference();
- runComboViewer.setSelection(new StructuredSelection(runInstall));
-
-
- String factoryId = configuration.getAttribute(JAXPLaunchConfigurationConstants.ATTR_TRANSFORMER_FACTORY, (String) null);
- if (factoryId == null)
- {
- currentFactory = runInstall.getProcessorType().getDefaultTransformerFactory();
- }
- else
- {
- for (ITransformerFactory tf : runInstall.getProcessorType().getTransformerFactories())
- {
- if (tf.getFactoryClass().equals(factoryId))
- {
- currentFactory = tf;
- break;
- }
- }
- }
-
- if (currentFactory == null)
- {
- currentFactory = runInstall.getProcessorType().getDefaultTransformerFactory();
- }
- if (currentFactory != null)
- {
- factoryComboViewer.setSelection(new StructuredSelection(currentFactory), true);
- }
- }
- }
- catch (CoreException e)
- {
- XSLDebugUIPlugin.log(e);
- }
- }
-
- private IProcessorInstall getRunProcessorPreference()
- {
- return JAXPRuntime.getDefaultProcessor();
- }
-
- public void performApply(ILaunchConfigurationWorkingCopy configuration)
- {
- boolean usePreferences = usePreferencesRadio.getSelection();
- configuration.setAttribute(JAXPLaunchConfigurationConstants.ATTR_USE_DEFAULT_PROCESSOR, usePreferences);
- if (!usePreferences)
- {
- IProcessorInstall runprocessor = (IProcessorInstall) ((IStructuredSelection) runComboViewer.getSelection()).getFirstElement();
- configuration.setAttribute(JAXPLaunchConfigurationConstants.ATTR_PROCESSOR, runprocessor.getId());
- configuration.setAttribute(JAXPLaunchConfigurationConstants.ATTR_TRANSFORMER_FACTORY, currentFactory == null ? null : currentFactory.getFactoryClass());
- }
- }
-
- public void setDefaults(ILaunchConfigurationWorkingCopy configuration)
- {
- configuration.setAttribute(JAXPLaunchConfigurationConstants.ATTR_USE_DEFAULT_PROCESSOR, true);
- configuration.setAttribute(JAXPLaunchConfigurationConstants.ATTR_PROCESSOR, (String) null);
- }
-
- private static class ComboContentProvider implements IStructuredContentProvider
- {
- public Object[] getElements(Object inputElement)
- {
- return JAXPRuntime.getProcessors();
- }
-
- public void dispose()
- {
- }
-
- public void inputChanged(Viewer viewer, Object oldInput, Object newInput)
- {
- }
- }
-
- private static class ComboLabelProvider extends LabelProvider
- {
- @Override
- public String getText(Object element)
- {
- IProcessorInstall install = (IProcessorInstall) element;
- return install.getName();
- }
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/ProcessorDescriptor.java b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/ProcessorDescriptor.java
deleted file mode 100644
index 83bf92f..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/ProcessorDescriptor.java
+++ /dev/null
@@ -1,16 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.ui.internal.tabs.processor;
-
-public abstract class ProcessorDescriptor
-{
- public abstract String getDescription();
-} \ No newline at end of file
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/ProcessorDetailsDialog.java b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/ProcessorDetailsDialog.java
deleted file mode 100644
index e0621f5..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/ProcessorDetailsDialog.java
+++ /dev/null
@@ -1,113 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.ui.internal.tabs.processor;
-
-import org.eclipse.jface.dialogs.Dialog;
-import org.eclipse.jface.dialogs.IDialogConstants;
-import org.eclipse.jface.dialogs.IDialogSettings;
-import org.eclipse.jface.viewers.TableViewer;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIPlugin;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorInstall;
-
-public class ProcessorDetailsDialog extends Dialog
-{
- private final IProcessorInstall install;
-
- public ProcessorDetailsDialog(Shell shell, IProcessorInstall install)
- {
- super(shell);
- setShellStyle(getShellStyle() | SWT.RESIZE);
- this.install = install;
- }
-
- @Override
- protected void configureShell(Shell newShell)
- {
- super.configureShell(newShell);
- newShell.setText(ProcessorMessages.ProcessorDetailsDialog_Title);
- // TODO PlatformUI.getWorkbench().getHelpSystem().setHelp...
- }
-
- @Override
- protected Control createDialogArea(Composite ancestor)
- {
- Composite parent = (Composite) super.createDialogArea(ancestor);
- GridLayout layout = new GridLayout(2, false);
- parent.setLayout(layout);
-
- // type
- createLabel(parent, ProcessorMessages.ProcessorDetailsDialog_installType);
- createLabel(parent, install.getProcessorType().getLabel());
-
- // name
- createLabel(parent, ProcessorMessages.ProcessorDetailsDialog_installName);
- createLabel(parent, install.getName());
-
- // jars
- Label label = createLabel(parent, ProcessorMessages.ProcessorDetailsDialog_installClasspath);
- GridData gd = new GridData(GridData.VERTICAL_ALIGN_BEGINNING | GridData.HORIZONTAL_ALIGN_BEGINNING);
- label.setLayoutData(gd);
- TableViewer libraryViewer = new TableViewer(parent);
- gd = new GridData(GridData.FILL_BOTH);
- gd.heightHint = 6;
- libraryViewer.getControl().setLayoutData(gd);
- libraryViewer.setContentProvider(new JarContentProvider());
- libraryViewer.setLabelProvider(new JarLabelProvider());
- libraryViewer.setInput(install);
-
- applyDialogFont(parent);
- return parent;
- }
-
- private Label createLabel(Composite parent, String text)
- {
- Label label = new Label(parent, SWT.NONE);
- label.setText(text);
- return label;
- }
-
- /**
- * Returns the name of the section that this dialog stores its settings in
- *
- * @return String
- */
- protected String getDialogSettingsSectionName()
- {
- return "XSL_DETAILS_DIALOG_SECTION"; //$NON-NLS-1$
- }
-
- @Override
- protected IDialogSettings getDialogBoundsSettings()
- {
- IDialogSettings settings = XSLDebugUIPlugin.getDefault().getDialogSettings();
- IDialogSettings section = settings.getSection(getDialogSettingsSectionName());
- if (section == null)
- {
- section = settings.addNewSection(getDialogSettingsSectionName());
- }
- return section;
- }
-
- @Override
- protected void createButtonsForButtonBar(Composite parent)
- {
- // create OK and Cancel buttons by default
- createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true);
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/ProcessorMessages.java b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/ProcessorMessages.java
deleted file mode 100644
index ba4e159..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/ProcessorMessages.java
+++ /dev/null
@@ -1,37 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.ui.internal.tabs.processor;
-
-import org.eclipse.osgi.util.NLS;
-
-class ProcessorMessages extends NLS
-{
- private static final String BUNDLE_NAME = "org.eclipse.wst.xsl.jaxp.debug.ui.internal.tabs.processor.ProcessorMessages"; //$NON-NLS-1$
-
- public static String ProcessorBlock_0;
- public static String ProcessorBlock_1;
- public static String ProcessorBlock_2;
- public static String ProcessorBlock_4;
- public static String ProcessorBlock_6;
- public static String ProcessorBlock_7;
- public static String ProcessorsComboBlock_1;
- public static String ProcessorDetailsDialog_Title;
- public static String ProcessorDetailsDialog_installName;
- public static String ProcessorDetailsDialog_installType;
- public static String ProcessorDetailsDialog_installClasspath;
-
- static
- {
- // load message values from bundle file
- NLS.initializeMessages(BUNDLE_NAME, ProcessorMessages.class);
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/ProcessorMessages.properties b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/ProcessorMessages.properties
deleted file mode 100644
index caa7275..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/ProcessorMessages.properties
+++ /dev/null
@@ -1,14 +0,0 @@
-ProcessorBlock_0=XSLT Processor
-ProcessorBlock_1=Use processor from preferences
-ProcessorBlock_2=Change preferences...
-ProcessorBlock_4=Use specific processor
-ProcessorBlock_6=Processor:
-ProcessorBlock_7=Processor
-ProcessorsComboBlock_1=&Installed processors...
-
-ProcessorDetailsDialog_Title=Built-in XSLT Processor
-ProcessorDetailsDialog_installName=Name:
-ProcessorDetailsDialog_installType=Type:
-ProcessorDetailsDialog_installClasspath=Libraries:
-
-
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/XSLProcessorTab2.java b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/XSLProcessorTab2.java
deleted file mode 100644
index b29ad36..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/XSLProcessorTab2.java
+++ /dev/null
@@ -1,98 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- * David Carver - bug 223557 - Added images contributed by Holger Voormann
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.ui.internal.tabs.processor;
-
-import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
-import org.eclipse.debug.ui.ILaunchConfigurationTab;
-import org.eclipse.jface.resource.ImageDescriptor;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.TabFolder;
-import org.eclipse.ui.plugin.AbstractUIPlugin;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLLaunchConfigurationTab;
-import org.eclipse.wst.xsl.jaxp.debug.ui.internal.JAXPDebugUIPlugin;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorInvoker;
-import org.eclipse.wst.xsl.jaxp.launching.JAXPLaunchConfigurationConstants;
-import org.eclipse.wst.xsl.jaxp.launching.JAXPRuntime;
-
-public class XSLProcessorTab2 extends XSLLaunchConfigurationTab
-{
- private final ProcessorBlock processorBlock;
- private final AttributesBlock attributesBlock;
- private final OutputPropertiesBlock outputPropertiesBlock;
- private Image image;
-
- public XSLProcessorTab2()
- {
- attributesBlock = new AttributesBlock();
- outputPropertiesBlock = new OutputPropertiesBlock();
- processorBlock = new ProcessorBlock();
-
- setBlocks(new ILaunchConfigurationTab[]
- { processorBlock , attributesBlock, outputPropertiesBlock });
- }
-
- @Override
- public void createControl(Composite parent)
- {
- super.createControl(parent);
- Composite comp = (Composite) getControl();
-
- processorBlock.createControl(comp);
-
- TabFolder tabFolder = new TabFolder(comp,SWT.NONE);
- tabFolder.setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true));
-
- outputPropertiesBlock.createControl(tabFolder);
- attributesBlock.createControl(tabFolder);
- }
-
- @Override
- public void performApply(ILaunchConfigurationWorkingCopy configuration)
- {
- super.performApply(configuration);
- IProcessorInvoker invoker = JAXPRuntime.getProcessorInvokers()[0];
- configuration.setAttribute(JAXPLaunchConfigurationConstants.INVOKER_DESCRIPTOR, invoker.getId());
- }
-
- public String getName()
- {
- return Messages.getString("XSLProcessorTab.0"); //$NON-NLS-1$
- }
-
- @Override
- public String getId()
- {
- return "org.eclipse.wst.xsl.debug.ui.jaxp.tabs.processor"; //$NON-NLS-1$
- }
-
- @Override
- public Image getImage()
- {
- if (image == null)
- {
- ImageDescriptor id = AbstractUIPlugin.imageDescriptorFromPlugin(JAXPDebugUIPlugin.PLUGIN_ID, "icons/xslt_processor.gif"); //$NON-NLS-1$
- image = id.createImage();
- }
- return image;
- }
-
- @Override
- public void dispose()
- {
- if (image != null)
- image.dispose();
- super.dispose();
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/messages.properties b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/messages.properties
deleted file mode 100644
index 27e1504..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/messages.properties
+++ /dev/null
@@ -1,26 +0,0 @@
-AttributeDialog_0=Select Processor Attributes
-AttributeDialog_1=Select one or more attributes to set on the XSLT processor.
-AttributeDialog_2=
-AttributesBlock.0=Attributes
-AttributesBlock.1=Change Preferences...
-AttributesBlock.10=type
-AttributesBlock.11=value
-AttributesBlock.12=value
-AttributesBlock.14=Remove
-AttributesBlock.16=Processor Attributes
-AttributesBlock.2=Name
-AttributesBlock.3=Use specific attributes
-AttributesBlock.4=Attribute
-AttributesBlock.5=Type
-AttributesBlock.6=Value
-AttributesBlock.7=Value
-AttributesBlock.8=Add
-AttributesBlock.9=name
-OutputPropertiesBlock_0=Output Properties
-OutputPropertiesBlock_1=Name
-OutputPropertiesBlock_2=Value
-OutputPropertiesBlock_3=Add
-OutputPropertiesBlock_4=Remove
-OutputPropertyDialog_0=Select Output Properties
-OutputPropertyDialog_1=Select one or more output properties for the transformation.
-XSLProcessorTab.0=Processor
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/views/Messages.java b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/views/Messages.java
deleted file mode 100644
index 1edb042..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/views/Messages.java
+++ /dev/null
@@ -1,15 +0,0 @@
-package org.eclipse.wst.xsl.jaxp.debug.ui.internal.views;
-
-import org.eclipse.osgi.util.NLS;
-
-public class Messages extends NLS {
- private static final String BUNDLE_NAME = "org.eclipse.wst.xsl.jaxp.debug.ui.internal.views.messages"; //$NON-NLS-1$
- public static String ResultView_0;
- static {
- // initialize resource bundle
- NLS.initializeMessages(BUNDLE_NAME, Messages.class);
- }
-
- private Messages() {
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/views/ResultRunnable.java b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/views/ResultRunnable.java
deleted file mode 100644
index 1934898..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/views/ResultRunnable.java
+++ /dev/null
@@ -1,83 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 Standards for Technology in Automotive Retail and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * David Carver - initial API and implementation
- * Kevin Sawicki bug 259053 - NPE for document results.
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.ui.internal.views;
-
-import org.eclipse.jface.text.BadLocationException;
-import org.eclipse.jface.text.IDocument;
-import org.eclipse.jface.text.source.SourceViewer;
-import org.eclipse.ui.IWorkbenchPartSite;
-import org.eclipse.wst.sse.core.StructuredModelManager;
-import org.eclipse.wst.sse.core.internal.provisional.IStructuredModel;
-import org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIPlugin;
-
-public class ResultRunnable implements Runnable {
- private static final String XML_PROCESSING_INSTRUCTION = "<?xml"; //$NON-NLS-1$
- private static final String DOCTYPE_HTML = "<!DOCTYPE html"; //$NON-NLS-1$
- private static final String HTML_CONTENT_TYPE_ID = "org.eclipse.wst.html.core.htmlsource"; //$NON-NLS-1$
- private static final String XML_CONTENT_TYPE_ID = "org.eclipse.core.runtime.xml"; //$NON-NLS-1$
- private SourceViewer sourceViewer = null;
- private final String results;
- private IWorkbenchPartSite viewSite = null;
-
- public ResultRunnable(SourceViewer viewer, String results, IWorkbenchPartSite site) {
- sourceViewer = viewer;
- this.results = results;
- viewSite = site;
- }
-
- public void run()
- {
- // if this is the first lot of data, determine the correct content type and set the appropriate document
- if (sourceViewer.getDocument() == null)
- {
- IDocument document = createDocument();
- sourceViewer.setDocument(document);
- }
- try
- {
- IDocument document = sourceViewer.getDocument();
- document.replace(document.getLength(), 0, results);
- }
- catch (BadLocationException e)
- {
- XSLDebugUIPlugin.log(e);
- }
- sourceViewer.revealRange(sourceViewer.getDocument().getLength(),0);
- viewSite.getPage().activate(viewSite.getPart());
- }
-
- protected IDocument createDocument() {
- IDocument document;
- if (results.startsWith(DOCTYPE_HTML))
- {
- document = createStructuredDocument(HTML_CONTENT_TYPE_ID);
- }
- else if (results.startsWith(XML_PROCESSING_INSTRUCTION))
- {
- document = createStructuredDocument(XML_CONTENT_TYPE_ID);
- }
- else
- {
- document = new JobSafeStructuredDocument();
- }
- return document;
- }
-
- protected IDocument createStructuredDocument(String contentType) {
- IDocument document;
- IStructuredModel scratchModel = StructuredModelManager.getModelManager().createUnManagedStructuredModelFor(contentType);
- document = scratchModel.getStructuredDocument();
- return document;
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/views/ResultView.java b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/views/ResultView.java
deleted file mode 100644
index 4c56969..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/views/ResultView.java
+++ /dev/null
@@ -1,110 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.ui.internal.views;
-
-import org.eclipse.debug.core.DebugEvent;
-import org.eclipse.debug.core.DebugPlugin;
-import org.eclipse.debug.core.IDebugEventSetListener;
-import org.eclipse.debug.core.model.IDebugTarget;
-import org.eclipse.jface.resource.JFaceResources;
-import org.eclipse.jface.text.source.ISourceViewer;
-import org.eclipse.jface.text.source.SourceViewer;
-import org.eclipse.jface.text.source.SourceViewerConfiguration;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.ui.part.ViewPart;
-import org.eclipse.ui.progress.IWorkbenchSiteProgressService;
-import org.eclipse.wst.sse.ui.StructuredTextViewerConfiguration;
-import org.eclipse.wst.sse.ui.internal.StructuredTextViewer;
-import org.eclipse.wst.sse.ui.internal.provisional.style.LineStyleProvider;
-import org.eclipse.wst.xsl.jaxp.launching.model.JAXPDebugTarget;
-import org.eclipse.wst.xsl.ui.internal.StructuredTextViewerConfigurationXSL;
-
-/**
- * TODO handle multiple concurrent debugging processes (and bring the current results to the top depending on which selected in Debug view)
- *
- * @author Doug Satchwell
- */
-public class ResultView extends ViewPart implements IDebugEventSetListener
-{
- private SourceViewer sv;
-
- @Override
- public void dispose()
- {
- DebugPlugin.getDefault().removeDebugEventListener(this);
- super.dispose();
- }
-
- @Override
- public void createPartControl(Composite parent)
- {
- this.sv = createViewer(parent);
-
- // handle any launches already added
- IDebugTarget[] targets = DebugPlugin.getDefault().getLaunchManager().getDebugTargets();
- for (IDebugTarget debugTarget : targets)
- {
- if (debugTarget instanceof JAXPDebugTarget)
- {
- handleDebugTarget((JAXPDebugTarget)debugTarget);
- }
- }
- // listen to further launches
- DebugPlugin.getDefault().addDebugEventListener(this);
- }
-
- private SourceViewer createViewer(Composite parent)
- {
- SourceViewerConfiguration sourceViewerConfiguration = new StructuredTextViewerConfiguration() {
- StructuredTextViewerConfiguration baseConfiguration = new StructuredTextViewerConfigurationXSL();
-
- @Override
- public String[] getConfiguredContentTypes(ISourceViewer sourceViewer) {
- return baseConfiguration.getConfiguredContentTypes(sourceViewer);
- }
-
- @Override
- public LineStyleProvider[] getLineStyleProviders(ISourceViewer sourceViewer, String partitionType) {
- return baseConfiguration.getLineStyleProviders(sourceViewer, partitionType);
- }
- };
- SourceViewer viewer = new StructuredTextViewer(parent, null, null, false, SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);
- ((StructuredTextViewer) viewer).getTextWidget().setFont(JFaceResources.getFont("org.eclipse.wst.sse.ui.textfont")); //$NON-NLS-1$
- viewer.configure(sourceViewerConfiguration);
- viewer.setEditable(false);
- return viewer;
- }
-
- @Override
- public void setFocus()
- {}
-
- public void handleDebugEvents(DebugEvent[] events)
- {
- for (DebugEvent debugEvent : events)
- {
- if (debugEvent.getKind() == DebugEvent.CREATE && debugEvent.getSource() instanceof JAXPDebugTarget)
- {
- handleDebugTarget((JAXPDebugTarget)debugEvent.getSource());
- }
- }
- }
-
- private void handleDebugTarget(JAXPDebugTarget xdt)
- {
- // first, clear the viewer
- sv.setDocument(null);
- IWorkbenchSiteProgressService service = (IWorkbenchSiteProgressService)getSite().getService(IWorkbenchSiteProgressService.class);
- service.schedule(new ResultViewJob(Messages.ResultView_0, getSite(), xdt, sv));
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/views/ResultViewJob.java b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/views/ResultViewJob.java
deleted file mode 100644
index 020f3c5..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/views/ResultViewJob.java
+++ /dev/null
@@ -1,66 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 Standards for Technology in Automotive Retail and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * David Carver - refactored from ResultView.
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.ui.internal.views;
-
-import java.io.IOException;
-import java.io.Reader;
-
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.core.runtime.jobs.Job;
-import org.eclipse.jface.text.source.SourceViewer;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.ui.IWorkbenchPartSite;
-import org.eclipse.wst.xsl.jaxp.launching.model.JAXPDebugTarget;
-
-public class ResultViewJob extends Job {
-
- private IWorkbenchPartSite viewSite = null;
- final Reader reader;
- private SourceViewer sourceViewer = null;
-
- public ResultViewJob(String name, IWorkbenchPartSite site,
- JAXPDebugTarget xdt, SourceViewer viewer) {
- super(name);
- viewSite = site;
- reader = xdt.getGenerateReader();
- sourceViewer = viewer;
- }
-
- @Override
- protected IStatus run(IProgressMonitor monitor) {
- IStatus status = Status.OK_STATUS;
- try {
- // this is the default BufferedWriter
- // size, so we will usually get chunks
- // of this size
-
- char[] c = new char[8192];
- int size;
- while ((size = reader.read(c)) != -1) {
- writeString(new String(c, 0, size));
- }
- } catch (IOException e) {
- // ignore
- } finally {
- monitor.done();
- }
- return status;
- }
-
- private void writeString(final String s) {
- Shell shell = viewSite.getShell();
- Display display = shell.getDisplay();
- display.syncExec(new ResultRunnable(sourceViewer, s, viewSite));
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/views/messages.properties b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/views/messages.properties
deleted file mode 100644
index 89f2113..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/views/messages.properties
+++ /dev/null
@@ -1 +0,0 @@
-ResultView_0=Result view job
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug/.classpath b/bundles/org.eclipse.wst.xsl.jaxp.debug/.classpath
deleted file mode 100644
index 5e4c1fe..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug/.classpath
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug/.project b/bundles/org.eclipse.wst.xsl.jaxp.debug/.project
deleted file mode 100644
index 96358c2..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug/.project
+++ /dev/null
@@ -1,34 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.wst.xsl.jaxp.debug</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>
- <buildCommand>
- <name>org.eclipse.pde.api.tools.apiAnalysisBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- <nature>org.eclipse.pde.api.tools.apiAnalysisNature</nature>
- </natures>
-</projectDescription>
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug/.settings/org.eclipse.jdt.core.prefs b/bundles/org.eclipse.wst.xsl.jaxp.debug/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 97f3b6f..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,87 +0,0 @@
-#Sat Jan 02 18:55:59 GMT-05:00 2010
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
-org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=1.5
-org.eclipse.jdt.core.compiler.debug.lineNumber=generate
-org.eclipse.jdt.core.compiler.debug.localVariable=generate
-org.eclipse.jdt.core.compiler.debug.sourceFile=generate
-org.eclipse.jdt.core.compiler.doc.comment.support=enabled
-org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
-org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning
-org.eclipse.jdt.core.compiler.problem.deadCode=warning
-org.eclipse.jdt.core.compiler.problem.deprecation=warning
-org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
-org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled
-org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
-org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore
-org.eclipse.jdt.core.compiler.problem.fatalOptionalError=enabled
-org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
-org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
-org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
-org.eclipse.jdt.core.compiler.problem.forbiddenReference=error
-org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
-org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
-org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore
-org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore
-org.eclipse.jdt.core.compiler.problem.invalidJavadoc=ignore
-org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=disabled
-org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=disabled
-org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=disabled
-org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=public
-org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
-org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
-org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore
-org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore
-org.eclipse.jdt.core.compiler.problem.missingJavadocComments=ignore
-org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=disabled
-org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=public
-org.eclipse.jdt.core.compiler.problem.missingJavadocTagDescription=return_tag
-org.eclipse.jdt.core.compiler.problem.missingJavadocTags=ignore
-org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled
-org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=public
-org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
-org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
-org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore
-org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
-org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
-org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=error
-org.eclipse.jdt.core.compiler.problem.nullReference=warning
-org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
-org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
-org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore
-org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore
-org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning
-org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore
-org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore
-org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
-org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
-org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
-org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
-org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
-org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning
-org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
-org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
-org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
-org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore
-org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
-org.eclipse.jdt.core.compiler.problem.unusedImport=warning
-org.eclipse.jdt.core.compiler.problem.unusedLabel=warning
-org.eclipse.jdt.core.compiler.problem.unusedLocal=warning
-org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
-org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
-org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
-org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
-org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
-org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
-org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
-org.eclipse.jdt.core.compiler.source=1.5
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug/META-INF/MANIFEST.MF b/bundles/org.eclipse.wst.xsl.jaxp.debug/META-INF/MANIFEST.MF
deleted file mode 100644
index 96c9b1f..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,13 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: %pluginName
-Bundle-SymbolicName: org.eclipse.wst.xsl.jaxp.debug
-Bundle-Version: 1.0.100.qualifier
-Bundle-Vendor: %vendorName
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Require-Bundle: org.apache.commons.logging;bundle-version="1.0.4";visibility:=reexport,
- org.apache.xml.resolver;bundle-version="1.1.0";resolution:=optional
-Export-Package: org.eclipse.wst.xsl.jaxp.debug.debugger,
- org.eclipse.wst.xsl.jaxp.debug.invoker,
- org.eclipse.wst.xsl.jaxp.debug.invoker.internal;x-internal:=true
-Bundle-Localization: plugin
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug/about.html b/bundles/org.eclipse.wst.xsl.jaxp.debug/about.html
deleted file mode 100644
index ed30003..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug/about.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<HTML>
-
-<head>
-<title>About</title>
-<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
-</head>
-
-<BODY lang="EN-US">
-
-<H3>About This Content</H3>
-
-<P>August, 2008</P>
-
-<H3>License</H3>
-
-<P>The Eclipse Foundation makes available all content in this plug-in
-("Content"). Unless otherwise indicated below, the Content is provided to you
-under the terms and conditions of the Eclipse Public License Version 1.0
-("EPL"). A copy of the EPL is available at
-<A href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/org/documents/epl-v10.php</A>.
-For purposes of the EPL, "Program" will mean the Content.</P>
-
-<P>If you did not receive this Content directly from the Eclipse Foundation, the
-Content is being redistributed by another party ("Redistributor") and different
-terms and conditions may apply to your use of any object code in the Content.
-Check the Redistributor’s license that was provided with the Content. If no such
-license exists, contact the Redistributor. Unless otherwise indicated below, the
-terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at
-<A href="http://www.eclipse.org/">http://www.eclipse.org/</A>.</P>
-
-</BODY>
-</HTML>
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug/build.properties b/bundles/org.eclipse.wst.xsl.jaxp.debug/build.properties
deleted file mode 100644
index d944674..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug/build.properties
+++ /dev/null
@@ -1,6 +0,0 @@
-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- about.html,\
- plugin.properties
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug/plugin.properties b/bundles/org.eclipse.wst.xsl.jaxp.debug/plugin.properties
deleted file mode 100644
index a2b6f8c..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug/plugin.properties
+++ /dev/null
@@ -1,3 +0,0 @@
-#Properties file for org.eclipse.wst.xsl.jaxp.debug
-vendorName = Eclipse.org
-pluginName = XSL JAXP Debugger \ No newline at end of file
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug/src/log4j.properties b/bundles/org.eclipse.wst.xsl.jaxp.debug/src/log4j.properties
deleted file mode 100644
index 09bb551..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug/src/log4j.properties
+++ /dev/null
@@ -1,10 +0,0 @@
-# Set root logger level to DEBUG and its appenders are A1 and A2
-log4j.rootLogger=DEBUG, A2
-
-# A2 is set to be a ConsoleAppender
-log4j.appender.A2=org.apache.log4j.ConsoleAppender
-
-# A2 uses PatternLayout.
-log4j.appender.A2.layout=org.apache.log4j.PatternLayout
-log4j.appender.A2.layout.ConversionPattern=%d{HH:mm:ss,SSS} %-5p [%t] %c{1} %x - %m%n
-
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/debugger/AbstractDebugger.java b/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/debugger/AbstractDebugger.java
deleted file mode 100644
index 3de1e07..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/debugger/AbstractDebugger.java
+++ /dev/null
@@ -1,364 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007, 2010 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- * David Carver (Intalio) - cleanup findbug errors.
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.debugger;
-
-import java.io.IOException;
-import java.io.Writer;
-import java.net.URL;
-import java.util.Collections;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.Set;
-import java.util.Stack;
-
-import javax.xml.transform.Result;
-import javax.xml.transform.stream.StreamResult;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.eclipse.wst.xsl.jaxp.debug.invoker.IProcessorInvoker;
-import org.eclipse.wst.xsl.jaxp.debug.invoker.TransformationException;
-
-/**
- * An implementation of <code>IXSLDebugger</code>.
- *
- * This class can be subclassed in order to provide debugging for a particular
- * XSLT processor.
- *
- * @author Doug Satchwell
- */
-public abstract class AbstractDebugger implements IXSLDebugger {
- private static final Log log = LogFactory.getLog(AbstractDebugger.class);
-
- private static final int ACTION_DO_NOTHING = 0;
- private static final int ACTION_STOP = 1;
- private static final int ACTION_QUIT = 2;
- private static final int ACTION_SUSPEND = 3;
- private static final int ACTION_RESUME = 4;
- private static final int ACTION_STEP_INTO = 5;
- private static final int ACTION_STEP_OVER = 6;
- private static final int ACTION_STEP_RETURN = 7;
-
- private static final String EVENT_STARTED = "started"; //$NON-NLS-1$
- private static final String EVENT_STOPPED = "stopped"; //$NON-NLS-1$
- private static final String EVENT_SUSPENDED = "suspended client"; //$NON-NLS-1$
- private static final String EVENT_SUSPENDED_STEP = "suspended step"; //$NON-NLS-1$
- private static final String EVENT_RESUMED = "resumed client"; //$NON-NLS-1$
- private static final String EVENT_RESUMED_STEP = "resumed step"; //$NON-NLS-1$
-
- private IProcessorInvoker invoker;
- private int action;
- private Writer eventWriter;
- private Writer generatedWriter;
- private final Set<BreakPoint> breakpoints = Collections
- .synchronizedSet(new HashSet<BreakPoint>());
- private final Stack<StyleFrame> stack = new Stack<StyleFrame>();
- private StyleFrame stepOverFrame;
- private BreakPoint breakpoint;
- private URL sourceURL;
- private Result result;
-
- private int stepOverStackSize;
-
- public synchronized void setInvoker(IProcessorInvoker invoker) {
- this.invoker = invoker;
- }
-
- public synchronized void setEventWriter(Writer writer) {
- eventWriter = writer;
- }
-
- public void setGeneratedWriter(Writer writer) {
- this.generatedWriter = writer;
- }
-
- public synchronized void setSource(URL sourceURL) {
- this.sourceURL = sourceURL;
- }
-
- public synchronized void setTarget(final Writer writer) {
- result = new StreamResult(new Writer() {
- public void write(char[] cbuf, int off, int len) throws IOException {
- writer.write(cbuf, off, len);
- generatedWriter.write(cbuf, off, len);
- }
-
- public void close() throws IOException {
- writer.close();
- generatedWriter.close();
- }
-
- public void flush() throws IOException {
- writer.flush();
- generatedWriter.flush();
- }
- });
- }
-
- public synchronized void run() {
- if (action != ACTION_QUIT) {
- debuggerStarted();
- try {
- invoker.transform(sourceURL, result);
- } catch (TransformationException e) {
- log.error("Transform failed", e); //$NON-NLS-1$
- }
- debuggerStopped();
- }
- }
-
- public synchronized void suspend() {
- action = ACTION_SUSPEND;
- notify();
- }
-
- public synchronized void resume() {
- action = ACTION_RESUME;
- notify();
- }
-
- public synchronized void stepInto() {
- action = ACTION_STEP_INTO;
- notify();
- }
-
- public synchronized void stepOver() {
- action = ACTION_STEP_OVER;
- stepOverFrame = peekStyleFrame();
- stepOverStackSize = stack.size();
- notify();
- }
-
- public synchronized void stepReturn() {
- action = ACTION_STEP_RETURN;
- stepOverStackSize = stack.size();
- notify();
- }
-
- public synchronized void quit() {
- action = ACTION_QUIT;
- }
-
- public String stack() {
- StringBuffer sb = new StringBuffer();
- synchronized (stack) {
- for (Iterator<StyleFrame> iter = stack.iterator(); iter.hasNext();) {
- StyleFrame frame = (StyleFrame) iter.next();
- sb.append(frame.toString());
- for (Iterator<?> iter2 = frame.getVariableStack().iterator(); iter2
- .hasNext();) {
- sb.append("|"); //$NON-NLS-1$
- Variable v = (Variable) iter2.next();
- sb.append(v.getId());
- }
- if (iter.hasNext())
- sb.append("$$$"); //$NON-NLS-1$
- }
- }
- return sb.toString();
- }
-
- /**
- * Check whether the debugger has been stopped and perform the appropriate
- * action if so.
- */
- public synchronized void checkStopped() {
- if (action == ACTION_QUIT)
- debuggerQuit();
- else if (action == ACTION_STOP)
- debuggerStopped();
- }
-
- /**
- * Check whether the debugger is currently suspended or stepping at the
- * given breakpoint and style frame, and perform the appropriate action if
- * so.
- *
- * @param styleFrame
- * the styleframe to check
- * @param breakpoint
- * the current location
- */
- public synchronized void checkSuspended(StyleFrame styleFrame,
- BreakPoint breakpoint) {
- // do not suspend unless the line actually changed
- if (breakpoint.equals(this.breakpoint))
- return;
- int stackSize;
- synchronized (stack) {
- stackSize = stack.size();
- }
- // do not suspend if there is nothing in the stack
- if (stackSize == 0)
- return;
- switch (action) {
- case ACTION_SUSPEND:
- debuggerSuspendedClient(breakpoint);
- break;
- case ACTION_STEP_OVER:
- // suspend if we are in the same template or we are moving up the
- // stack
- if (styleFrame.equals(stepOverFrame)
- || stackSize < stepOverStackSize)
- debuggerSuspendedStep(breakpoint);
- break;
- case ACTION_STEP_INTO:
- debuggerSuspendedStep(breakpoint);
- break;
- case ACTION_STEP_RETURN:
- // suspend if we moved up the stack
- if (stackSize < stepOverStackSize)
- debuggerSuspendedStep(breakpoint);
- break;
- default:
- checkBreakpoint(breakpoint);
- }
- }
-
- private synchronized void checkBreakpoint(BreakPoint breakpoint) {
- if (isBreakpoint(breakpoint))
- debuggerSuspendedBreakpoint(breakpoint);
- }
-
- /**
- * Called when the next transform in the pipeline has begun.
- */
- public synchronized void debuggerTransformStarted() {
- stack.clear();
- }
-
- protected synchronized void debuggerStarted() {
- action = ACTION_DO_NOTHING;
- sendEvent(EVENT_STARTED);
- }
-
- protected synchronized void debuggerStopped() {
- action = ACTION_DO_NOTHING;
- sendEvent(EVENT_STOPPED);
- }
-
- private synchronized void debuggerQuit() {
- // just wait here indefinitely until the JVM exists, just to make sure
- // we don't send any further events
- try {
- wait();
- } catch (InterruptedException e) {
- }
- }
-
- private synchronized void debuggerSuspendedBreakpoint(BreakPoint breakpoint) {
- sendEvent("suspended breakpoint " + breakpoint); //$NON-NLS-1$
- debuggerSuspended(breakpoint);
- }
-
- private synchronized void debuggerSuspendedStep(BreakPoint breakpoint) {
- sendEvent(EVENT_SUSPENDED_STEP);
- debuggerSuspended(breakpoint);
- }
-
- private synchronized void debuggerSuspendedClient(BreakPoint breakpoint) {
- sendEvent(EVENT_SUSPENDED);
- debuggerSuspended(breakpoint);
- }
-
- public synchronized void debuggerSuspended(BreakPoint breakpoint) {
- this.breakpoint = breakpoint;
- do {
- try {
- wait();
- } catch (InterruptedException e) {
- }
- } while (action != ACTION_RESUME && action != ACTION_STEP_INTO
- && action != ACTION_STEP_OVER && action != ACTION_STEP_RETURN
- && action != ACTION_STOP);
- debuggerResumed();
- }
-
- private synchronized void debuggerResumed() {
- if (action == ACTION_STEP_INTO || action == ACTION_STEP_OVER
- || action == ACTION_STEP_RETURN)
- sendEvent(EVENT_RESUMED_STEP);
- else
- sendEvent(EVENT_RESUMED);
- }
-
- private synchronized void sendEvent(String event) {
- try {
- log.info("Sending event: " + event + " eventWriter=" + eventWriter); //$NON-NLS-1$//$NON-NLS-2$
- eventWriter.write(event + "\n"); //$NON-NLS-1$
- eventWriter.flush();
- } catch (IOException e) {
- log.error("Error sending event", e); //$NON-NLS-1$
- }
- }
-
- public void addBreakpoint(BreakPoint breakpoint) {
- log.info("Adding breakpoint: " + breakpoint); //$NON-NLS-1$
- breakpoints.add(breakpoint);
- }
-
- public void removeBreakpoint(BreakPoint breakpoint) {
- log.info("Removing breakpoint: " + breakpoint); //$NON-NLS-1$
- breakpoints.remove(breakpoint);
- }
-
- private boolean isBreakpoint(BreakPoint breakpoint) {
- // do not check for breakpoint unless the line or filename actually
- // changed
- if (breakpoint.equals(this.breakpoint))
- return false;
- this.breakpoint = null;
- return breakpoints.contains(breakpoint);
- }
-
- /**
- * Pop a style frame from the stack.
- *
- * @return the popped style frame
- */
- public StyleFrame popStyleFrame() {
- synchronized (stack) {
- StyleFrame styleFrame = (StyleFrame) stack.pop();
- if (styleFrame.getParent() != null)
- styleFrame.getParent().removeChild(styleFrame);
- log
- .trace("Popped frame: " + styleFrame + " (size after pop=" + stack.size() + ")"); //$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$
- return styleFrame;
- }
- }
-
- /**
- * Push a style frame onto the stack.
- *
- * @param styleFrame
- */
- public void pushStyleFrame(StyleFrame styleFrame) {
- synchronized (stack) {
- stack.push(styleFrame);
- log
- .trace("Pushed frame: " + styleFrame + " (size after push=" + stack.size() + ")"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- }
- }
-
- /**
- * Peek a style frame from the stack.
- *
- * @return the peeked style frame
- */
- public StyleFrame peekStyleFrame() {
- synchronized (stack) {
- if (stack.size() > 0)
- return (StyleFrame) stack.peek();
- return null;
- }
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/debugger/BreakPoint.java b/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/debugger/BreakPoint.java
deleted file mode 100644
index 0b6000d..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/debugger/BreakPoint.java
+++ /dev/null
@@ -1,77 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.debugger;
-
-/**
- * A line number in a file.
- *
- * @author Doug Satchwell
- */
-public class BreakPoint
-{
- private String file;
- private final int line;
-
- /**
- * Construct a new instance of this for the given file and line number.
- *
- * @param file the file path
- * @param line the line number
- */
- public BreakPoint(String file, int line)
- {
- this.file = file;
- this.line = line;
- }
-
- /**
- * Get the file location.
- *
- * @return the file
- */
- public String getFile()
- {
- return file;
- }
-
- /**
- * Get the line number
- *
- * @return the line number
- */
- public int getLine()
- {
- return line;
- }
-
- public int hashCode()
- {
- int hash = 3 * file.hashCode() + 5 * line;
- return hash;
- }
-
- public boolean equals(Object obj)
- {
- if (obj == this)
- return true;
- if (obj instanceof BreakPoint)
- {
- BreakPoint b = (BreakPoint) obj;
- return b.file.equals(file) && b.line == line;
- }
- return false;
- }
-
- public String toString()
- {
- return file + " " + line; //$NON-NLS-1$
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/debugger/DebugConstants.java b/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/debugger/DebugConstants.java
deleted file mode 100644
index 2383a29..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/debugger/DebugConstants.java
+++ /dev/null
@@ -1,70 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.debugger;
-
-/**
- * Constants used by the debugger.
- *
- * <p>
- * Note that class is loaded both on the Eclipse classpath and the
- * launched transformation process, such that they can use exactly the same constants
- * for communication.
- * </p>
- *
- * @author Doug Satchwell
- */
-public class DebugConstants
-{
- /**
- * The constant used to notify the debugger to start.
- */
- public static final String REQUEST_START = "start"; //$NON-NLS-1$
- /**
- * The constant used to signify addition of a breakpoint.
- */
- public static final String REQUEST_ADD_BREAKPOINT = "add"; //$NON-NLS-1$
- /**
- * The constant used to signify removal of a breakpoint.
- */
- public static final String REQUEST_REMOVE_BREAKPOINT = "remove"; //$NON-NLS-1$
- /**
- * The constant used to signify step into.
- */
- public static final String REQUEST_STEP_INTO = "step into"; //$NON-NLS-1$
- /**
- * The constant used to signify step over.
- */
- public static final String REQUEST_STEP_OVER = "step over"; //$NON-NLS-1$
- /**
- * The constant used to signify suspension.
- */
- public static final String REQUEST_SUSPEND = "suspend"; //$NON-NLS-1$
- /**
- * The constant used to signify resume.
- */
- public static final String REQUEST_RESUME = "resume"; //$NON-NLS-1$
- /**
- * The constant used to request the stack.
- */
- public static final String REQUEST_STACK = "stack"; //$NON-NLS-1$
- /**
- * The constant used to request a variable.
- */
- public static final String REQUEST_VARIABLE = "var"; //$NON-NLS-1$
- /**
- * The constant used to request a variable value.
- */
- public static final String REQUEST_VALUE = "value"; //$NON-NLS-1$
- /**
- * The constant used to signify step return.
- */
- public static final String REQUEST_STEP_RETURN = "step return"; //$NON-NLS-1$
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/debugger/DebugRunner.java b/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/debugger/DebugRunner.java
deleted file mode 100644
index 5fe8a20..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/debugger/DebugRunner.java
+++ /dev/null
@@ -1,396 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007, 2010 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- * David Carver (Intalion) - FindBugs cleanup
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.debugger;
-
-import java.io.BufferedReader;
-import java.io.BufferedWriter;
-import java.io.File;
-import java.io.FileWriter;
-import java.io.IOException;
-import java.io.InputStreamReader;
-import java.io.PrintWriter;
-import java.io.Writer;
-import java.net.InetAddress;
-import java.net.ServerSocket;
-import java.net.Socket;
-import java.net.URL;
-import java.util.Map;
-import java.util.Properties;
-
-import javax.xml.parsers.ParserConfigurationException;
-import javax.xml.transform.Source;
-import javax.xml.transform.Transformer;
-import javax.xml.transform.TransformerConfigurationException;
-import javax.xml.transform.TransformerFactory;
-import javax.xml.transform.URIResolver;
-import javax.xml.transform.sax.SAXSource;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.eclipse.wst.xsl.jaxp.debug.invoker.IProcessorInvoker;
-import org.eclipse.wst.xsl.jaxp.debug.invoker.PipelineDefinition;
-import org.eclipse.wst.xsl.jaxp.debug.invoker.TransformationException;
-import org.eclipse.wst.xsl.jaxp.debug.invoker.internal.ConfigurationException;
-import org.eclipse.wst.xsl.jaxp.debug.invoker.internal.JAXPSAXProcessorInvoker;
-import org.xml.sax.InputSource;
-import org.xml.sax.SAXException;
-
-/**
- * The entry point to the debug process which is responsible for configuring a
- * debugger and then communicating with the Eclipse process via sockets using a
- * common set of commands.
- *
- * <ul>
- * <li>instantiates an implementation of <code>IXSLDebugger</code>
- * <li>configures the debugger with the transformation pipeline
- * <li>starts the debugger in a separate thread
- * <li>the main thread is then used to listen to incoming requests and call the
- * appropriate debugger methods
- * </ul>
- *
- * @author Doug Satchwell
- */
-public class DebugRunner {
- private static final Log log = LogFactory.getLog(DebugRunner.class);
-
- private final BufferedReader requestIn;
- private final Writer requestOut;
- private final Writer eventOut;
- private final Writer generatedStream;
- private Socket eventSocket;
- private Socket requestSocket;
- private Socket generateSocket;
-
- /**
- * Create a new instance of this using the supplied readers and writers.
- *
- * @param requestIn
- * the reader for reading incoming requests
- * @param requestOut
- * the writer for acknowledging requests
- * @param eventOut
- * the writer for publishing debug events
- */
- public DebugRunner(BufferedReader requestIn, PrintWriter requestOut,
- PrintWriter eventOut, PrintWriter generatedStream) {
- this.requestOut = requestOut;
- this.requestIn = requestIn;
- this.eventOut = eventOut;
- this.generatedStream = generatedStream;
- }
-
- /**
- * Create a new instance of this given a request port and an event port.
- *
- * @param requestPort
- * the port to listen to requests and send acknowledgements
- * @param eventPort
- * the port for publishing debug events
- * @throws IOException
- * if there was a problem opening a socket
- */
- public DebugRunner(int requestPort, int eventPort, int generatePort)
- throws IOException {
- requestSocket = getSocket(requestPort);
- eventSocket = getSocket(eventPort);
- generateSocket = getSocket(generatePort);
- requestIn = new BufferedReader(new InputStreamReader(requestSocket
- .getInputStream()));
- requestOut = new PrintWriter(requestSocket.getOutputStream(), true);
- eventOut = new PrintWriter(eventSocket.getOutputStream(), true);
- generatedStream = new BufferedWriter(new PrintWriter(generateSocket
- .getOutputStream(), true));
- }
-
- /**
- * This method starts the given debugger in its own thread, and blocks while
- * waiting for incoming requests from the request port, until there are no
- * more requests.
- *
- * @param debugger
- * the debugger to start in a thread
- * @throws TransformationException
- * if a problem occurred while transforming
- * @throws IOException
- */
- public void loop(IXSLDebugger debugger) throws TransformationException,
- IOException {
- debugger.setEventWriter(eventOut);
- debugger.setGeneratedWriter(generatedStream);
- String inputLine, response;
- // signal we are ready to receive requests
- eventOut.write("ready\n"); //$NON-NLS-1$
- eventOut.flush();
- log.debug("entering loop"); //$NON-NLS-1$
- try {
- while ((inputLine = requestIn.readLine()) != null) {
- response = inputLine;
- log.debug("REQUEST:" + inputLine); //$NON-NLS-1$
- Thread debuggerThread = null;
- if (DebugConstants.REQUEST_START.equals(inputLine)) {
- debuggerThread = new Thread(debugger, "debugger"); //$NON-NLS-1$
- debuggerThread.start();
- }
- /*
- * else if (REQUEST_QUIT.equals(inputLine)) { }
- */
- else if (DebugConstants.REQUEST_STEP_INTO.equals(inputLine)) {
- debugger.stepInto();
- } else if (DebugConstants.REQUEST_STEP_OVER.equals(inputLine)) {
- debugger.stepOver();
- } else if (DebugConstants.REQUEST_STEP_RETURN.equals(inputLine)) {
- debugger.stepReturn();
- } else if (DebugConstants.REQUEST_SUSPEND.equals(inputLine)) {
- debugger.suspend();
- } else if (DebugConstants.REQUEST_RESUME.equals(inputLine)) {
- debugger.resume();
- } else if (DebugConstants.REQUEST_STACK.equals(inputLine)) {
- response = debugger.stack();
- } else if (inputLine
- .startsWith(DebugConstants.REQUEST_VARIABLE)) {
- String data = inputLine
- .substring(DebugConstants.REQUEST_VARIABLE.length() + 1);
- int id = Integer.parseInt(data);
- Variable var = debugger.getVariable(id);
- log.debug("var " + id + " = " + var); //$NON-NLS-1$ //$NON-NLS-2$
- response = var.getScope() + "&" + var.getName(); //$NON-NLS-1$
- } else if (inputLine.startsWith(DebugConstants.REQUEST_VALUE)) {
- String data = inputLine
- .substring(DebugConstants.REQUEST_VALUE.length() + 1);
- int id = Integer.parseInt(data);
- Variable var = debugger.getVariable(id);
- response = var.getType() + "&" + var.getValueFirstLine(); //$NON-NLS-1$
- } else if (inputLine
- .startsWith(DebugConstants.REQUEST_ADD_BREAKPOINT)) {
- int index = inputLine.lastIndexOf(' ');
- String file = inputLine.substring(
- DebugConstants.REQUEST_ADD_BREAKPOINT.length() + 1,
- index);
- String line = inputLine.substring(index + 1);
- BreakPoint breakpoint = new BreakPoint(file, Integer
- .parseInt(line));
- debugger.addBreakpoint(breakpoint);
- } else if (inputLine
- .startsWith(DebugConstants.REQUEST_REMOVE_BREAKPOINT)) {
- int index = inputLine.lastIndexOf(' ');
- String file = inputLine
- .substring(DebugConstants.REQUEST_REMOVE_BREAKPOINT
- .length() + 1, index);
- String line = inputLine.substring(index + 1);
- BreakPoint breakpoint = new BreakPoint(file, Integer
- .parseInt(line));
- debugger.removeBreakpoint(breakpoint);
- } else {
- response = "What?"; //$NON-NLS-1$
- }
- // confirm request
- log.debug("RESPONSE:" + response); //$NON-NLS-1$
- requestOut.write(response + "\n"); //$NON-NLS-1$
- requestOut.flush();
-
- /*
- * if (REQUEST_QUIT.equals(inputLine)) {
- * waitForFinish(debuggerThread); break; }
- */
- }
- } catch (IOException e) {
- throw new TransformationException(e.getMessage(), e);
- }
- log.debug("exited loop"); //$NON-NLS-1$
- eventOut.write("terminated\n"); //$NON-NLS-1$
- eventOut.flush();
- }
-
- /**
- * Dispose of this - close all open sockets.
- *
- * @throws IOException
- */
- public void dispose() throws IOException {
- if (requestIn != null) {
- try {
- requestIn.close();
- } catch (IOException e) {
- log.error("Could not close request input stream", e); //$NON-NLS-1$
- }
- }
- if (requestOut != null) {
- requestOut.close();
- }
- if (eventOut != null) {
- eventOut.close();
- }
- if (requestSocket != null) {
- try {
- requestSocket.close();
- } catch (IOException e) {
- log.error("Could not close request socket", e); //$NON-NLS-1$
- }
- }
- if (eventSocket != null) {
- try {
- eventSocket.close();
- } catch (IOException e) {
- log.error("Could not close event socket", e); //$NON-NLS-1$
- }
- }
- }
-
- private static Socket getSocket(int port) throws IOException {
- InetAddress localhost = InetAddress.getByName("localhost"); //$NON-NLS-1$
- ServerSocket serverSocket = new ServerSocket(port, 5, localhost);
- Socket clientSocket = serverSocket.accept();
- serverSocket.close();
- return clientSocket;
- }
-
- /**
- * Expected arguments:
- *
- * <ol>
- * <li>the class name of the invoker
- * <li>the file name of the XML launch configuration file
- * <li>the URL of the source document
- * <li>the file of the output document
- * <li>not used (anything)
- * <li>the class name of the <code>IXSLDebugger</code> instance
- * <li>the port used for requests
- * <li>the port used for debug events
- * <li>the port used for generate events
- * </ol>
- *
- * @param args
- * @throws ParserConfigurationException
- * @throws SAXException
- * @throws IllegalAccessException
- * @throws InstantiationException
- * @throws ClassNotFoundException
- */
- public static void main(String[] args) throws SAXException, ParserConfigurationException, ClassNotFoundException, InstantiationException, IllegalAccessException {
- log.info("javax.xml.transform.TransformerFactory=" + System.getProperty("javax.xml.transform.TransformerFactory")); //$NON-NLS-1$//$NON-NLS-2$
- log.info("java.endorsed.dirs=" + System.getProperty("java.endorsed.dirs")); //$NON-NLS-1$//$NON-NLS-2$
-
- String invokerClassName = args[0];
- File launchFile = new File(args[1]);
- String src = args[2];
- String target = args[3];
- String debuggerClassName = args[5];
-
- log.info("src: " + src); //$NON-NLS-1$
- log.info("target: " + target); //$NON-NLS-1$
- log.info("launchFile: " + launchFile); //$NON-NLS-1$
- log.info("debugger: " + debuggerClassName); //$NON-NLS-1$
-
- DebugRunner debugRunner = null;
- try {
- final IXSLDebugger debugger = createDebugger(debuggerClassName);
- // create the invoker
- IProcessorInvoker invoker = new JAXPSAXProcessorInvoker() {
-
- @Override
- protected TransformerFactory createTransformerFactory() {
- TransformerFactory tFactory = super
- .createTransformerFactory();
- debugger.setTransformerFactory(tFactory);
- return tFactory;
- }
-
- @Override
- public void addStylesheet(URL stylesheet, Map parameters,
- Properties outputProperties, URIResolver resolver)
- throws TransformerConfigurationException {
- InputSource inputsource = new InputSource(stylesheet
- .toString());
- // if required in future, parse the document with line
- // numbers (to get the end line numbers)
- // XMLReaderWrapper reader = new
- // XMLReaderWrapper(createReader());
- // SAXSource source = new SAXSource(reader,inputsource);
- addStylesheet(new SAXSource(inputsource), resolver,
- parameters, outputProperties);
- }
-
- @Override
- protected Transformer addStylesheet(Source source,
- URIResolver resolver, Map parameters,
- Properties outputProperties)
- throws TransformerConfigurationException {
- Transformer transformer = super.addStylesheet(source,
- resolver, parameters, outputProperties);
- debugger.addTransformer(transformer);
- return transformer;
- }
- };
-
- if (args.length == 9) {
- int requestPort = Integer.parseInt(args[6]);
- int eventPort = Integer.parseInt(args[7]);
- int generatePort = Integer.parseInt(args[8]);
-
- log.debug("requestPort: " + requestPort); //$NON-NLS-1$
- log.debug("eventPort: " + eventPort); //$NON-NLS-1$
- log.debug("generatePort: " + generatePort); //$NON-NLS-1$
-
- try {
- debugRunner = new DebugRunner(requestPort, eventPort,
- generatePort);
- } catch (Exception e) {
- handleFatalError(
- "Could not instantiate invoker: " + invokerClassName, e); //$NON-NLS-1$
- }
- } else {
- BufferedReader br = new BufferedReader(new InputStreamReader(
- System.in));
- debugRunner = new DebugRunner(br, new PrintWriter(System.out),
- new PrintWriter(System.err), null);
- System.out.println("xsl>"); //$NON-NLS-1$
- }
-
- PipelineDefinition pipeline = new PipelineDefinition(launchFile);
- pipeline.configure(invoker);
-
- debugger.setInvoker(invoker);
- debugger.setSource(new URL(src));
- debugger.setTarget(new FileWriter(new File(target)));
-
- debugRunner.loop(debugger);
- } catch (IOException e) {
- handleFatalError(e.getMessage(), e);
- } catch (TransformationException e) {
- handleFatalError(e.getMessage(), e);
- } catch (ConfigurationException e) {
- handleFatalError(e.getMessage(), e);
- }
-
- finally {
- if (debugRunner != null) {
- try {
- debugRunner.dispose();
- } catch (IOException e) {
- handleFatalError(e.getMessage(), e);
- }
- }
- }
- }
-
- private static IXSLDebugger createDebugger(String classname)
- throws ClassNotFoundException, InstantiationException,
- IllegalAccessException {
- Class clazz = Class.forName(classname);
- return (IXSLDebugger) clazz.newInstance();
- }
-
- private static void handleFatalError(String msg, Throwable t) {
- log.fatal(msg, t);
- System.exit(1);
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/debugger/IXSLDebugger.java b/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/debugger/IXSLDebugger.java
deleted file mode 100644
index b4f0b0e..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/debugger/IXSLDebugger.java
+++ /dev/null
@@ -1,148 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.debugger;
-
-import java.io.Writer;
-import java.net.URL;
-
-import javax.xml.transform.Transformer;
-import javax.xml.transform.TransformerFactory;
-
-import org.eclipse.wst.xsl.jaxp.debug.invoker.IProcessorInvoker;
-
-/**
- * An interface to XSL debugger instances.
- *
- * @author Doug Satchwell
- */
-public interface IXSLDebugger extends Runnable
-{
- /**
- * Set the invoker to use.
- *
- * @param invoker the invoker to set
- */
- void setInvoker(IProcessorInvoker invoker);
-
- /**
- * Set the transformer factory to use.
- *
- * @param factory the factory to use
- */
- void setTransformerFactory(TransformerFactory factory);
-
- /**
- * Add a transformer to this.
- *
- * @param transformer
- */
- void addTransformer(Transformer transformer);
-
- /**
- * Set the Writer for this to write events to.
- *
- * @param writer the writer to write events to
- */
- void setEventWriter(Writer writer);
-
- /**
- * Set the ObjectOutputStream for this to write generated events to.
- *
- * @param writer the stream to write generate events to
- */
- void setGeneratedWriter(Writer writer);
-
- /**
- * Set the URL of the transformation source file.
- *
- * @param sourceURL the source URL
- */
- void setSource(URL sourceURL);
-
- /**
- * Set the transformation Result.
- *
- * @param writer the result
- */
- void setTarget(Writer writer);
-
- /**
- * Add a breakpoint to this.
- *
- * @param breakpoint
- */
- void addBreakpoint(BreakPoint breakpoint);
-
- /**
- * Remove a breakpoint from this.
- *
- * @param breakpoint
- */
- void removeBreakpoint(BreakPoint breakpoint);
-
- /**
- * Perform a 'step into' operation.
- */
- void stepInto();
-
- /**
- * Perform a 'step over' operation.
- */
- void stepOver();
-
- /**
- * Perform a 'step return' operation.
- */
- void stepReturn();
-
- /**
- * Perform a 'suspend' operation.
- */
- void suspend();
-
- /**
- * Perform a 'resume' operation.
- */
- void resume();
-
- /**
- * Quit debugging.
- */
- void quit();
-
- /**
- * Generate a string that represents the current call stack of frames and their variables.
- * <p>
- * Frames are generated with the following format: <i>file</i>|<i>frameId</i>|<i>lineNumber</i>|<i>name</i>
- * This is immediately followed with the id's of the frame's variables (each variable id being unique for the whole process).
- * </p>
- * <p>
- * The separator for frames is $$$. Within a frame, the separator for variable id's is |.
- * </p>
- * <p>
- * e.g. file:/tran1.xsl|1|12|xsl:template name="temp1"|1|2|3$$$file:/tran2.xsl|2|34|xsl:template name="temp2"|4|5|6
- *
- * This defines 2 frames with id's 1 and 2, which are occur in files tran1.xsl and tran2.xsl respectively.
- * Frame 1 is currently at line 12, in a template with name temp1, and it defines 3 variables with id's 1, 2 and 3.
- * </p>
- *
- * @return the generated string
- */
- String stack();
-
- /**
- * Get the variable with the given id.
- *
- * @param id the id of the variable
- * @return the variable
- */
- Variable getVariable(int id);
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/debugger/StyleFrame.java b/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/debugger/StyleFrame.java
deleted file mode 100644
index 7eaf58b..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/debugger/StyleFrame.java
+++ /dev/null
@@ -1,129 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- * David Carver (Intalio) - cleanup findbug errors.
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.debugger;
-
-import java.util.ArrayList;
-import java.util.List;
-
-/**
- * An <code>xsl:template</code> that forms part of the call stack.
- *
- * @author Doug Satchwell
- */
-public abstract class StyleFrame
-{
- private static int nextId;
- private final StyleFrame parent;
- private final List<StyleFrame> children = new ArrayList<StyleFrame>();
- private final int id;
-
- /**
- * Create a new instance of this using the given frame as its parent (may be null if this is the root frame).
- *
- * @param parent the parent frame
- */
- public StyleFrame(StyleFrame parent)
- {
- this.id = nextId++;
- this.parent = parent;
- if (parent != null)
- parent.addChild(this);
- }
-
- /**
- * A unique id for this frame
- *
- * @return a unique id for this frame
- */
- public int getId()
- {
- return id;
- }
-
- /**
- * Get the name of this frame.
- *
- * @return the name of this
- */
- public abstract String getName();
-
- /**
- * Get the file in which this frame is found.
- *
- * @return the filename for this
- */
- public abstract String getFilename();
-
- /**
- * Get the line number at which the frame is currently located.
- *
- * @return the line number at which this is held
- */
- public abstract int getCurrentLine();
-
- /**
- * Get a list of <code>Variables</code>'s
- *
- * @return the list of variables for this frame
- */
- public abstract List<?> getVariableStack();
-
- /**
- * Get the parent of this.
- *
- * @return the parent frame
- */
- public StyleFrame getParent()
- {
- return parent;
- }
-
- /**
- * Add a child frame to this.
- *
- * @param child the frame to add
- */
- public void addChild(StyleFrame child)
- {
- children.add(child);
- }
-
- /**
- * Remove a child frame from this.
- *
- * @param child the frame to remove
- */
- public void removeChild(StyleFrame child)
- {
- children.remove(child);
- }
-
- /**
- * Get the children of this
- *
- * @return a list of <code>StyleFrame</code>'s
- */
- public List<StyleFrame> getChildren()
- {
- return children;
- }
-
- /**
- * Creates a string in the format <i>file</i>|<i>frameId</i>|<i>lineNumber</i>|<i>name</i>.
- * Since pipe is used as a separator, the name has any pipe (|) characters replaced with the literal '%@_PIPE_@%'
- */
- public String toString()
- {
- String safename = getName().replaceAll("\\|", "%@_PIPE_@%"); //$NON-NLS-1$//$NON-NLS-2$
- return getFilename() + "|" + getId() + "|" + getCurrentLine() + "|" + safename; //$NON-NLS-1$ //$NON-NLS-2$//$NON-NLS-3$
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/debugger/Variable.java b/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/debugger/Variable.java
deleted file mode 100644
index b8ba46a..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/debugger/Variable.java
+++ /dev/null
@@ -1,160 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007,2010 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- * David Carver (STAR) - bug 214235 - Changed max value size to 2meg.
- *
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.debugger;
-
-/**
- * An abstract class that XSL processor implementations can subclass for their variables.
- *
- * @author Doug Satchwell
- * @author David Carver
- */
-public abstract class Variable
-{
- private static int idSequence = 0;
-
- /**
- * The constant denoting a local scope variable.
- */
- public static final String LOCAL_SCOPE = "L"; //$NON-NLS-1$
- /**
- * The constant denoting a tunnel scope variable.
- */
- public static final String TUNNEL_SCOPE = "T"; //$NON-NLS-1$
- /**
- * The constant denoting a global scope variable.
- */
- public static final String GLOBAL_SCOPE = "G"; //$NON-NLS-1$
-
- protected final static int MAXIMUM_VALUE_SIZE = 2097152;
-
- protected static final String UNRESOLVED = "unresolved"; //$NON-NLS-1$
- protected static final String BOOLEAN = "boolean"; //$NON-NLS-1$
- protected static final String NUMBER = "number"; //$NON-NLS-1$
- protected static final String STRING = "string"; //$NON-NLS-1$
- protected static final String NODESET = "nodeset"; //$NON-NLS-1$
- protected static final String OBJECT = "object"; //$NON-NLS-1$
- protected static final String UNKNOWN = "unknown"; //$NON-NLS-1$
-
- protected final String name;
- protected final String scope;
- protected final int slotNumber;
-
- private int id;
-
- /**
- * Create a new instance of this with the given name, scope and slot number.
- *
- * @param name the name of this
- * @param scope the scope of this
- * @param slotNumber the slot number of this
- */
- public Variable(String name, String scope, int slotNumber)
- {
- this.name = name;
- this.scope = scope;
- this.slotNumber = slotNumber;
- this.id = idSequence++;
- }
-
- /**
- * Get the id used for this.
- *
- * @return the variable id
- */
- public int getId()
- {
- return id;
- }
-
- /**
- * Get the variable name.
- *
- * @return the variable name
- */
- public String getName()
- {
- return name;
- }
-
- /**
- * Get the type of this variable e.g. string, or node
- *
- * @return the variable type
- */
- public abstract String getType();
-
- /**
- * Get the scope of this variable - one of <code>LOCAL_SCOPE</code>, <code>TUNNEL_SCOPE</code> or <code>GLOBAL_SCOPE</code>.
- *
- * @return the variable scope
- */
- public String getScope()
- {
- return scope;
- }
-
- /**
- * Get the current value of this variable as a String.
- *
- * @return the value of this
- */
- public abstract String getValue();
-
- /**
- * Get the first line of the value truncating to <code>MAXIMUM_VALUE_SIZE</code> where necessary.
- *
- * @return the first line of the value
- */
- public String getValueFirstLine()
- {
- String value = getValue();
- if (value != null)
- {
- // make sure it is not too long
- value = value.replace('\n', '.');
- if (value.length() > MAXIMUM_VALUE_SIZE)
- value = value.substring(0, MAXIMUM_VALUE_SIZE);
- }
- else
- value = ""; //$NON-NLS-1$
- return value;
- }
-
- /**
- * Get the slot number for this.
- *
- * @return the slot number
- */
- public int getSlotNumber()
- {
- return slotNumber;
- }
-
- public int hashCode()
- {
- return 3 * scope.hashCode() + 5 * slotNumber;
- }
-
- public boolean equals(Object obj)
- {
- if (obj == this)
- return true;
- if (obj instanceof Variable)
- {
- Variable v = (Variable) obj;
- return v.scope.equals(scope) && slotNumber == v.slotNumber;
- }
- return false;
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/IProcessorInvoker.java b/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/IProcessorInvoker.java
deleted file mode 100644
index 21b657b..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/IProcessorInvoker.java
+++ /dev/null
@@ -1,62 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.invoker;
-
-import java.net.URL;
-import java.util.Map;
-import java.util.Properties;
-
-import javax.xml.transform.Result;
-import javax.xml.transform.TransformerConfigurationException;
-import javax.xml.transform.URIResolver;
-
-
-/**
- * Interface used by the launched process to define the XSL transformation pipeline.
- * The <code>setAttributes</code> and <code>addStylesheet</code> methods should be called
- * before calling <code>transform</code> to do the actual transformation.
- *
- * <p>
- * If <code>addStylesheet</code> is not called before <code>transform</code>, then
- * it is assumed that the source document contains and embedded stylesheet instruction.
- * </p>
- *
- * @author Doug Satchwell
- */
-public interface IProcessorInvoker
-{
- /**
- * Set the processor-specific attributes to use.
- *
- * @param attributes a map of String v. String attributes
- */
- void setAttributes(Map attributes);
-
- /**
- * Add a stylesheet to the pipeline (order is important).
- *
- * @param stylesheet the URL of the stylesheet to add
- * @param parameters the map of parameters for the stylesheet
- * @param outputProperties the output properties
- * @param resolver the <code>URIResolver</code> to use
- * @throws TransformerConfigurationException if stylesheet could not be added
- */
- void addStylesheet(URL stylesheet, Map parameters, Properties outputProperties, URIResolver resolver) throws TransformerConfigurationException;
-
- /**
- * Perform the actual transformation.
- *
- * @param source the URL of the XML source document
- * @param res the transformation result
- * @throws TransformationException if the transformation failed
- */
- void transform(URL source, Result res) throws TransformationException;
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/Messages.java b/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/Messages.java
deleted file mode 100644
index 9e6942a..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/Messages.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.invoker;
-
-import java.util.MissingResourceException;
-import java.util.ResourceBundle;
-
-/**
- * Messages for the configuration.
- *
- * @author Doug Satchwell
- */
-class Messages
-{
- private static final String BUNDLE_NAME = "org.eclipse.wst.xsl.jaxp.debug.invoker.messages"; //$NON-NLS-1$
-
- private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME);
-
- private Messages()
- {
- }
-
- /**
- * Get a message for the given key.
- *
- * @param key the message key
- * @return the message
- */
- public static String getString(String key)
- {
- try
- {
- return RESOURCE_BUNDLE.getString(key);
- }
- catch (MissingResourceException e)
- {
- return '!' + key + '!';
- }
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/PipelineDefinition.java b/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/PipelineDefinition.java
deleted file mode 100644
index fe67d5b..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/PipelineDefinition.java
+++ /dev/null
@@ -1,335 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- * David Carver (Intalio) - bug 213776 - URI Resolver
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.invoker;
-
-import java.io.BufferedInputStream;
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.IOException;
-import java.net.MalformedURLException;
-import java.net.URL;
-import java.util.ArrayList;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-import java.util.Properties;
-import java.util.Set;
-import java.util.concurrent.ConcurrentHashMap;
-
-import javax.xml.parsers.DocumentBuilder;
-import javax.xml.parsers.DocumentBuilderFactory;
-import javax.xml.parsers.ParserConfigurationException;
-import javax.xml.transform.TransformerConfigurationException;
-import javax.xml.transform.URIResolver;
-
-import org.eclipse.wst.xsl.jaxp.debug.invoker.internal.ConfigurationException;
-import org.eclipse.wst.xsl.jaxp.debug.invoker.internal.CreationException;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-import org.w3c.dom.NodeList;
-import org.xml.sax.SAXException;
-
-/**
- * The definition of the transformation pipeline.
- * <p>
- * This class is loaded on both the Eclipse classpath and the transformation
- * process's classpath. The whole definition is serialized to an XML document by
- * the Eclipse launcher, and is then read by the transformation process when
- * launched.
- * </p>
- *
- * @author Doug Satchwell
- */
-public class PipelineDefinition {
- private String sourceURL;
- private String targetFile;
-
- private final List<TransformDefinition> transformDefs = new ArrayList<TransformDefinition>();
- private final Set<TypedValue> attributes = new HashSet<TypedValue>();
- private boolean useEmbedded;
-
- /**
- * Create a new empty instance of this.
- */
- public PipelineDefinition() {
- }
-
- /**
- * Create a new instance of this by reading the specified XML file.
- *
- * @param launchFile
- * the XSL file to load
- * @throws SAXException
- * if problems occur during parsing
- * @throws IOException
- * if problems occur during parsing
- * @throws ParserConfigurationException
- * if problems occur during parsing
- */
- public PipelineDefinition(File launchFile) throws SAXException,
- IOException, ParserConfigurationException {
- this(DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(
- new BufferedInputStream(new FileInputStream(launchFile))));
- }
-
- /**
- * Create a new instance of this from the specified document
- *
- * @param doc
- * the Document to create this from
- */
- public PipelineDefinition(Document doc) {
- Element rootEl = doc.getDocumentElement();
-
- Element attributesEl = (Element) rootEl.getElementsByTagName(
- "Attributes").item(0); //$NON-NLS-1$
- NodeList attributeEls = attributesEl.getElementsByTagName("Attribute"); //$NON-NLS-1$
- for (int i = 0; i < attributeEls.getLength(); i++) {
- Element attributeEl = (Element) attributeEls.item(i);
- String name = attributeEl.getAttribute("name"); //$NON-NLS-1$
- String type = attributeEl.getAttribute("type"); //$NON-NLS-1$
- String value = attributeEl.getAttribute("value"); //$NON-NLS-1$
- addAttribute(new TypedValue(name, type, value));
- }
-
- Element transformsEl = (Element) rootEl.getElementsByTagName(
- "Transforms").item(0); //$NON-NLS-1$
- String useEmbedded = transformsEl.getAttribute("useEmbedded"); //$NON-NLS-1$
- boolean embedded = Boolean.getBoolean(useEmbedded);
- setUseEmbedded(embedded);
- if (!embedded) {
- NodeList transformEls = transformsEl
- .getElementsByTagName("Transform"); //$NON-NLS-1$
- for (int i = 0; i < transformEls.getLength(); i++) {
- Element transformEl = (Element) transformEls.item(i);
- TransformDefinition tdef = TransformDefinition
- .fromXML(transformEl);
- addTransformDef(tdef);
- }
- }
- }
-
- /**
- * Configure the invoker from this.
- *
- * @param invoker
- * the invoker to configure
- * @throws ConfigurationException
- * if an exception occurs during configuration
- */
- public void configure(IProcessorInvoker invoker)
- throws ConfigurationException {
- Map<String, Object> attVals = new ConcurrentHashMap<String, Object>();
- for (Iterator<TypedValue> iter = attributes.iterator(); iter.hasNext();) {
- TypedValue att = iter.next();
- Object value;
- try {
- value = att.createValue();
- } catch (CreationException e) {
- throw new ConfigurationException(e.getMessage(), e);
- }
- attVals.put(att.name, value);
- }
- invoker.setAttributes(attVals);
-
- for (Iterator<TransformDefinition> iter = transformDefs.iterator(); iter
- .hasNext();) {
- TransformDefinition tdef = iter.next();
- Map<String, Object> params = setParams(tdef);
- URL url = getStyleSheetURL(tdef);
- Properties properties = tdef.getOutputProperties();
- URIResolver resolver = getResolver(tdef);
- addStyleSheet(invoker, tdef, params, url, properties, resolver);
- }
- }
-
- private void addStyleSheet(IProcessorInvoker invoker,
- TransformDefinition tdef, Map<String, Object> params, URL url,
- Properties properties, URIResolver resolver)
- throws ConfigurationException {
- try {
- invoker.addStylesheet(url, params, properties, resolver);
- } catch (TransformerConfigurationException e) {
- throw new ConfigurationException(
- Messages.getString("PipelineDefinition.10") + tdef.getStylesheetURL(), null); //$NON-NLS-1$
- }
- }
-
- private URIResolver getResolver(TransformDefinition tdef)
- throws ConfigurationException {
- URIResolver resolver = null;
-
- if (tdef.getResolverClass() != null) {
- try {
- Class resolverClass = Class.forName(tdef.getResolverClass());
- resolver = (URIResolver) resolverClass.newInstance();
- } catch (InstantiationException e) {
-
- } catch (IllegalAccessException e) {
- throw new ConfigurationException(
- Messages.getString("PipelineDefinition.10") + tdef.getResolverClass(), null); //$NON-NLS-1$
- } catch (ClassNotFoundException e) {
-
- }
- }
- return resolver;
- }
-
- private URL getStyleSheetURL(TransformDefinition tdef)
- throws ConfigurationException {
- URL url = null;
- try {
- url = new URL(tdef.getStylesheetURL());
- } catch (MalformedURLException e) {
- throw new ConfigurationException(
- Messages.getString("PipelineDefinition.9") + tdef.getStylesheetURL(), e); //$NON-NLS-1$
- }
- return url;
- }
-
- private Map<String, Object> setParams(TransformDefinition tdef)
- throws ConfigurationException {
- Map<String, Object> params = null;
- try {
- params = tdef.getParametersAsMap();
- } catch (CreationException e) {
- throw new ConfigurationException(Messages
- .getString("PipelineDefinition.8"), e); //$NON-NLS-1$
- }
- return params;
- }
-
- /**
- * Get the set of attributes defined.
- *
- * @return the set of attributes
- */
- public Set<TypedValue> getAttributes() {
- return attributes;
- }
-
- /**
- * Add a attribute to this configuration
- *
- * @param attribute
- * the attribute to add
- */
- public void addAttribute(TypedValue attribute) {
- attributes.add(attribute);
- }
-
- /**
- * Remove a attribute from the set of attributes
- *
- * @param attribute
- * the attribute to remove
- */
- public void removeAttribute(TypedValue attribute) {
- attributes.remove(attribute);
- }
-
- /**
- * Get the list of <code>TransformDefinition</code>'s.
- *
- * @return the list of transform definitions
- */
- public List<TransformDefinition> getTransformDefs() {
- return transformDefs;
- }
-
- /**
- * Add a transform definition to this.
- *
- * @param tdef
- * the transform definition to add
- */
- public void addTransformDef(TransformDefinition tdef) {
- transformDefs.add(tdef);
- }
-
- /**
- * Remove a transform definition from this.
- *
- * @param tdef
- * the transform definition to remove
- */
- public void removeTransformDef(TransformDefinition tdef) {
- transformDefs.remove(tdef);
- }
-
- /**
- * Set whether to use an XSL declaration embedded in the XML file
- *
- * @param embedded
- * true to use embedded
- */
- public void setUseEmbedded(boolean embedded) {
- useEmbedded = embedded;
- }
-
- /**
- * Get whether to use an XSL declaration embedded in the XML file
- *
- * @return true if embedded
- */
- public boolean useEmbedded() {
- return useEmbedded;
- }
-
- /**
- * Serialize this to a DOM Document.
- *
- * @return the serialized document
- * @throws ParserConfigurationException
- * if a problem occurs during serialization
- */
- public Document toXML() throws ParserConfigurationException {
- Document doc = newDocument();
- Element rootEl = doc.createElement("Pipeline"); //$NON-NLS-1$
- rootEl.setAttribute("source", sourceURL); //$NON-NLS-1$
- rootEl.setAttribute("target", targetFile); //$NON-NLS-1$
- doc.appendChild(rootEl);
-
- Element attributesEl = doc.createElement("Attributes"); //$NON-NLS-1$
- rootEl.appendChild(attributesEl);
- for (Iterator<TypedValue> iter = attributes.iterator(); iter.hasNext();) {
- TypedValue attribute = (TypedValue) iter.next();
- Element attributeEl = doc.createElement("Attribute"); //$NON-NLS-1$
- attributeEl.setAttribute("name", attribute.name); //$NON-NLS-1$
- attributeEl.setAttribute("type", attribute.type); //$NON-NLS-1$
- attributeEl.setAttribute("value", attribute.value); //$NON-NLS-1$
- attributesEl.appendChild(attributeEl);
- }
-
- rootEl.setAttribute("useEmbedded", String.valueOf(useEmbedded)); //$NON-NLS-1$
- if (!useEmbedded) {
- Element transformsEl = doc.createElement("Transforms"); //$NON-NLS-1$
- rootEl.appendChild(transformsEl);
- for (Iterator<TransformDefinition> iter = transformDefs.iterator(); iter
- .hasNext();) {
- TransformDefinition tdef = (TransformDefinition) iter.next();
- Element tdefEl = tdef.asXML(doc);
- transformsEl.appendChild(tdefEl);
- }
- }
-
- return doc;
- }
-
- private static Document newDocument() throws ParserConfigurationException {
- DocumentBuilderFactory dfactory = DocumentBuilderFactory.newInstance();
- DocumentBuilder docBuilder = dfactory.newDocumentBuilder();
- Document doc = docBuilder.newDocument();
- return doc;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/TransformDefinition.java b/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/TransformDefinition.java
deleted file mode 100644
index 5849ad6..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/TransformDefinition.java
+++ /dev/null
@@ -1,251 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007,2010 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- * David Carver (Intalio) - bug 213776 - URI Resolver
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.invoker;
-
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.Map;
-import java.util.Properties;
-import java.util.Set;
-import java.util.concurrent.ConcurrentHashMap;
-
-import org.eclipse.wst.xsl.jaxp.debug.invoker.internal.CreationException;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-import org.w3c.dom.NodeList;
-
-/**
- * A definition of a particular step in the transformation pipeline.
- *
- * @author Doug Satchwell
- */
-public class TransformDefinition {
- public static final String DEFAULT_CATALOG_RESOLVER = "org.apache.xml.resolver.tools.CatalogResolver"; //$NON-NLS-1$
- private String stylesheetURL;
- private String resolverClass;
- private Properties outputProperties = new Properties();
- private final Set<TypedValue> parameters = new HashSet<TypedValue>();
-
- public TransformDefinition() {
- this.resolverClass = DEFAULT_CATALOG_RESOLVER;
- }
-
- /**
- * Get the parameters as a map of name (<code>String</code>) v. value
- * <code>TypedValue</code>.
- *
- * @return a map of names and values
- * @throws CreationException
- * if an exception occurred during object creation
- */
- public Map<String, Object> getParametersAsMap() throws CreationException {
- Map<String, Object> m = new ConcurrentHashMap<String, Object>();
- for (Iterator<TypedValue> iter = parameters.iterator(); iter.hasNext();) {
- TypedValue tv = iter.next();
- String key = tv.name;
- Object value = tv.createValue();
- m.put(key, value);
- }
- return m;
- }
-
- /**
- * The set of parameters
- *
- * @return a set of <code>TypedValue</code>'s
- */
- public Set<TypedValue> getParameters() {
- return parameters;
- }
-
- /**
- * Add a parameter to the set of parameters
- *
- * @param parameter
- * the parameter to add
- */
- public void addParameter(TypedValue parameter) {
- parameters.add(parameter);
- }
-
- /**
- * Remove a parameter.
- *
- * @param parameter
- * the parameter to remove
- */
- public void removeParameter(TypedValue parameter) {
- parameters.remove(parameter);
- }
-
- /**
- * Get the output properties for this.
- *
- * @return the output properties
- */
- public Properties getOutputProperties() {
- return outputProperties;
- }
-
- /**
- * Set the output properties for this.
- *
- * @param outputProperties
- * the output properties to set
- */
- public void setOutputProperties(Properties outputProperties) {
- this.outputProperties = outputProperties;
- }
-
- /**
- * Set the value of a specific output property. If the property
- * does not already exist, it will be created.
- *
- * @param name
- * the output property
- * @param value
- * the value
- */
- public void setOutputProperty(String name, String value) {
- outputProperties.put(name, value);
- }
-
- /**
- * Remove an output property.
- *
- * @param name
- * the output property to remove
- */
- public void removeOutputProperty(String name) {
- outputProperties.remove(name);
- }
-
- /**
- * Get the name of the <code>URIResolver</code> class to use.
- *
- * @return the resolver's class name
- */
- public String getResolverClass() {
- return resolverClass;
- }
-
- /**
- * Set the name of the <code>URIResolver</code> class to use.
- *
- * @param resolver
- * the resolver's class name
- */
- public void setResolverClass(String resolver) {
- resolverClass = resolver;
- }
-
- /**
- * Get the URL of the stylesheet.
- *
- * @return the stylesheet URL
- */
- public String getStylesheetURL() {
- return stylesheetURL;
- }
-
- /**
- * Set the URL of the stylesheet.
- *
- * @param stylesheet
- * the stylesheet URL
- */
- public void setStylesheetURL(String stylesheet) {
- stylesheetURL = stylesheet;
- }
-
- /**
- * Serialize this to a Document fragment.
- *
- * @param doc
- * the document to attach to
- * @return the root element of the fragment
- */
- public Element asXML(Document doc) {
- Element tdefEl = doc.createElement("Transform"); //$NON-NLS-1$
- tdefEl.setAttribute(
- Messages.getString("TransformDefinition.1"), stylesheetURL); //$NON-NLS-1$
- if (resolverClass != null)
- tdefEl.setAttribute("uriResolver", resolverClass); //$NON-NLS-1$
- Element opEl = doc.createElement("OutputProperties"); //$NON-NLS-1$
- tdefEl.appendChild(opEl);
- for (Iterator<?> iter = outputProperties.entrySet().iterator(); iter
- .hasNext();) {
- Map.Entry<?, ?> entry = (Map.Entry<?, ?>) iter.next();
- Element propEl = doc.createElement("Property"); //$NON-NLS-1$
- propEl.setAttribute("name", (String) entry.getKey()); //$NON-NLS-1$
- propEl.setAttribute("value", (String) entry.getValue()); //$NON-NLS-1$
- opEl.appendChild(propEl);
- }
- Element paramsEl = doc.createElement("Parameters"); //$NON-NLS-1$
- tdefEl.appendChild(paramsEl);
- for (Iterator<TypedValue> iter = parameters.iterator(); iter.hasNext();) {
- Element propEl = doc.createElement("Parameter"); //$NON-NLS-1$
- TypedValue param = iter.next();
- propEl.setAttribute("name", param.name); //$NON-NLS-1$
- propEl.setAttribute("type", param.type); //$NON-NLS-1$
- propEl.setAttribute("value", param.value); //$NON-NLS-1$
- paramsEl.appendChild(propEl);
- }
- return tdefEl;
- }
-
- /**
- * Create a new instance of this from its serialized form.
- *
- * @param transformEl
- * the element to create this from
- * @return a new instance of this
- */
- public static TransformDefinition fromXML(Element transformEl) {
- TransformDefinition tdef = new TransformDefinition();
- String url = transformEl.getAttribute("url"); //$NON-NLS-1$
- tdef.setStylesheetURL(url);
- String uriResolver = transformEl.getAttribute("uriResolver"); //$NON-NLS-1$
- tdef.setResolverClass(uriResolver);
-
- Element opEl = (Element) transformEl.getElementsByTagName(
- "OutputProperties").item(0); //$NON-NLS-1$
- if (opEl != null) {
- NodeList propEls = opEl.getElementsByTagName("Property"); //$NON-NLS-1$
- for (int i = 0; i < propEls.getLength(); i++) {
- Element propEl = (Element) propEls.item(i);
- String name = propEl.getAttribute("name"); //$NON-NLS-1$
- String value = propEl.getAttribute("value"); //$NON-NLS-1$
- tdef.setOutputProperty(name, value);
- }
- }
-
- Element paramsEl = (Element) transformEl.getElementsByTagName(
- Messages.getString("TransformDefinition.18")).item(0); //$NON-NLS-1$
- if (paramsEl != null) {
- NodeList paramEls = paramsEl.getElementsByTagName(Messages
- .getString("TransformDefinition.19")); //$NON-NLS-1$
- for (int i = 0; i < paramEls.getLength(); i++) {
- Element paramEl = (Element) paramEls.item(i);
- String name = paramEl.getAttribute(Messages
- .getString("TransformDefinition.20")); //$NON-NLS-1$
- String type = paramEl.getAttribute(Messages
- .getString("TransformDefinition.21")); //$NON-NLS-1$
- String value = paramEl.getAttribute(Messages
- .getString("TransformDefinition.22")); //$NON-NLS-1$
- tdef.addParameter(new TypedValue(name, type, value));
- }
- }
-
- return tdef;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/TransformationException.java b/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/TransformationException.java
deleted file mode 100644
index aa0acaf..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/TransformationException.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.invoker;
-
-/**
- * Checked Exception for transformation errors.
- *
- * @author Doug Satchwell
- */
-public class TransformationException extends Exception
-{
- private static final long serialVersionUID = 1L;
-
- /**
- * Create a new instance of this with the given message.
- *
- * @param message the message
- */
- public TransformationException(String message)
- {
- super(message);
- }
-
- /**
- * Create a new instance of this with the given message and cause.
- *
- * @param message the message
- * @param cause the cause
- */
- public TransformationException(String message, Throwable cause)
- {
- super(message, cause);
- }
-} \ No newline at end of file
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/TypedValue.java b/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/TypedValue.java
deleted file mode 100644
index ed27220..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/TypedValue.java
+++ /dev/null
@@ -1,112 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.invoker;
-
-import org.eclipse.wst.xsl.jaxp.debug.invoker.internal.CreationException;
-
-/**
- * A value that is to be instantiated from a particular type e.g. Double,
- * Object.
- *
- * @author Doug Satchwell
- */
-public class TypedValue {
- public static final String TYPE_STRING = "string"; //$NON-NLS-1$
- public static final String TYPE_BOOLEAN = "boolean"; //$NON-NLS-1$
- public static final String TYPE_INT = "int"; //$NON-NLS-1$
- public static final String TYPE_DOUBLE = "double"; //$NON-NLS-1$
- public static final String TYPE_FLOAT = "float"; //$NON-NLS-1$
- public static final String TYPE_CLASS = "class"; //$NON-NLS-1$
- public static final String TYPE_OBJECT = "object"; //$NON-NLS-1$
-
- final String name;
- final String type;
- final String value;
-
- /**
- * Create a new instance of this from the given information.
- *
- * @param name
- * the parameter name
- * @param type
- * the type of value
- * @param value
- * the value
- */
- public TypedValue(String name, String type, String value) {
- this.name = name;
- this.type = type;
- this.value = value;
- }
-
- /**
- * Create the type of object defined by this.
- *
- * @return the value
- * @throws CreationException
- * if a problem occurred
- */
- public Object createValue() throws CreationException {
- Object o = null;
- if (TYPE_STRING.equals(type)) {
- o = value;
- } else if (TYPE_BOOLEAN.equals(type)) {
- boolean b = "yes".equalsIgnoreCase(value) || "true".equalsIgnoreCase(value); //$NON-NLS-1$ //$NON-NLS-2$
- o = Boolean.valueOf(b);
- } else if (TYPE_INT.equals(type)) {
- try {
- o = new Integer(value);
- } catch (NumberFormatException e) {
- throw new CreationException(
- Messages.getString("TypedValue.9") + value + Messages.getString("TypedValue.10"), e); //$NON-NLS-1$ //$NON-NLS-2$
- }
- } else if (TYPE_DOUBLE.equals(type)) {
- try {
- o = new Double(value);
- } catch (NumberFormatException e) {
- throw new CreationException(
- Messages.getString("TypedValue.11") + value + Messages.getString("TypedValue.12"), e); //$NON-NLS-1$ //$NON-NLS-2$
- }
- } else if (TYPE_FLOAT.equals(type)) {
- try {
- o = new Float(value);
- } catch (NumberFormatException e) {
- throw new CreationException(
- Messages.getString("TypedValue.13") + value + Messages.getString("TypedValue.14"), e); //$NON-NLS-1$ //$NON-NLS-2$
- }
- } else if (TYPE_CLASS.equals(type)) {
- try {
- o = Class.forName(value);
- } catch (ClassNotFoundException e) {
- throw new CreationException(
- Messages.getString("TypedValue.15") + value + Messages.getString("TypedValue.16"), e); //$NON-NLS-1$ //$NON-NLS-2$
- }
- } else if (TYPE_OBJECT.equals(type)) {
- try {
- Class<?> c = Class.forName(value);
- o = c.newInstance();
- } catch (ClassNotFoundException e) {
- throw new CreationException(
- Messages.getString("TypedValue.17") + value + Messages.getString("TypedValue.18"), e); //$NON-NLS-1$ //$NON-NLS-2$
- } catch (InstantiationException e) {
- throw new CreationException(
- Messages.getString("TypedValue.19") + value + Messages.getString("TypedValue.20"), e); //$NON-NLS-1$ //$NON-NLS-2$
- } catch (IllegalAccessException e) {
- throw new CreationException(
- Messages.getString("TypedValue.21") + value + Messages.getString("TypedValue.22"), e); //$NON-NLS-1$ //$NON-NLS-2$
- }
- } else {
- throw new CreationException(
- Messages.getString("TypedValue.23") + type + Messages.getString("TypedValue.24")); //$NON-NLS-1$ //$NON-NLS-2$
- }
- return o;
- }
-} \ No newline at end of file
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/internal/ConfigurationException.java b/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/internal/ConfigurationException.java
deleted file mode 100644
index 7526c73..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/internal/ConfigurationException.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.invoker.internal;
-
-/**
- * An exception thrown when configuration of an XSL transform pipeline fails.
- *
- * @author Doug Satchwell
- */
-public class ConfigurationException extends Exception
-{
- private static final long serialVersionUID = 1L;
-
- /**
- * Create the exception.
- *
- * @param msg the exception message
- * @param t the underlying cause
- */
- public ConfigurationException(String msg, Throwable t)
- {
- super(msg, t);
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/internal/CreationException.java b/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/internal/CreationException.java
deleted file mode 100644
index bba07bf..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/internal/CreationException.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.invoker.internal;
-
-/**
- * Checked Exception for object creation errors.
- *
- * @author Doug Satchwell
- */
-public class CreationException extends Exception
-{
- private static final long serialVersionUID = 1L;
-
- /**
- * Create a new instance of this with the given message.
- *
- * @param message the message
- */
- public CreationException(String message)
- {
- super(message);
- }
-
- /**
- * Create a new instance of this with the given message and cause.
- *
- * @param message the message
- * @param cause the cause
- */
- public CreationException(String message, Throwable cause)
- {
- super(message, cause);
- }
-} \ No newline at end of file
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/internal/JAXPSAXProcessorInvoker.java b/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/internal/JAXPSAXProcessorInvoker.java
deleted file mode 100644
index 28ec4cd..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/internal/JAXPSAXProcessorInvoker.java
+++ /dev/null
@@ -1,228 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.invoker.internal;
-
-import java.net.URL;
-import java.util.Collections;
-import java.util.Iterator;
-import java.util.Map;
-import java.util.Properties;
-
-import javax.xml.parsers.ParserConfigurationException;
-import javax.xml.parsers.SAXParserFactory;
-import javax.xml.transform.ErrorListener;
-import javax.xml.transform.Result;
-import javax.xml.transform.Source;
-import javax.xml.transform.Transformer;
-import javax.xml.transform.TransformerConfigurationException;
-import javax.xml.transform.TransformerException;
-import javax.xml.transform.TransformerFactory;
-import javax.xml.transform.TransformerFactoryConfigurationError;
-import javax.xml.transform.URIResolver;
-import javax.xml.transform.sax.SAXResult;
-import javax.xml.transform.sax.SAXSource;
-import javax.xml.transform.sax.SAXTransformerFactory;
-import javax.xml.transform.sax.TransformerHandler;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.eclipse.wst.xsl.jaxp.debug.invoker.IProcessorInvoker;
-import org.eclipse.wst.xsl.jaxp.debug.invoker.TransformationException;
-import org.xml.sax.InputSource;
-import org.xml.sax.SAXException;
-import org.xml.sax.SAXNotRecognizedException;
-import org.xml.sax.SAXNotSupportedException;
-import org.xml.sax.XMLReader;
-
-/**
- * An implementation of <code>IProcessorInvoker</code> that uses JAXP as the underlying
- * transformation mechanism.
- *
- * @author Doug Satchwell
- */
-public class JAXPSAXProcessorInvoker implements IProcessorInvoker
-{
- private static final Log log = LogFactory.getLog(JAXPSAXProcessorInvoker.class);
-
- private XMLReader reader;
- private SAXTransformerFactory tFactory;
- private TransformerHandler th;
-
- /**
- * Create a new instance of this.
- *
- * @throws SAXException if errors occur while creating an <code>XMLReader</code>
- * @throws ParserConfigurationException if errors occur while creating an <code>XMLReader</code>
- */
- public JAXPSAXProcessorInvoker() throws SAXException, ParserConfigurationException
- {
- reader = createReader();
- }
-
- protected XMLReader createReader() throws SAXException, ParserConfigurationException
- {
- SAXParserFactory spf = SAXParserFactory.newInstance();
- spf.setNamespaceAware(true);
- return spf.newSAXParser().getXMLReader();
- }
-
- public void setAttributes(Map attributes) throws TransformerFactoryConfigurationError
- {
- createTransformerFactory();
- for (Iterator iter = attributes.entrySet().iterator(); iter.hasNext();)
- {
- Map.Entry entry = (Map.Entry) iter.next();
- String uri = (String) entry.getKey();
- Object value = entry.getValue();
- log.info(Messages.getString("JAXPSAXProcessorInvoker.0") + uri + Messages.getString("JAXPSAXProcessorInvoker.1") + value); //$NON-NLS-1$ //$NON-NLS-2$
- tFactory.setAttribute(uri, value);
- }
- }
-
- protected TransformerFactory createTransformerFactory()
- {
- tFactory = (SAXTransformerFactory) TransformerFactory.newInstance();
- tFactory.setErrorListener(new ErrorListener()
- {
-
- public void error(TransformerException exception) throws TransformerException
- {
- log.error(exception.getMessageAndLocation());
- }
-
- public void fatalError(TransformerException exception) throws TransformerException
- {
- log.error(exception.getMessageAndLocation(), exception);
- throw exception;
- }
-
- public void warning(TransformerException exception) throws TransformerException
- {
- log.warn(exception.getMessageAndLocation());
- }
-
- });
- return tFactory;
- }
-
- public void addStylesheet(URL stylesheet, Map parameters, Properties outputProperties, URIResolver resolver) throws TransformerConfigurationException
- {
- InputSource inputsource = new InputSource(stylesheet.toString());
-
- // TODO parse document with linenumbers
-
- // XMLReader reader = createReader();
- // LineReadingContentHandler ch = new LineReadingContentHandler();
- // reader.setContentHandler(ch);
- SAXSource source = new SAXSource(inputsource);
-
- addStylesheet(source, resolver, parameters, outputProperties);
-
- }
-
- protected Transformer addStylesheet(Source source, URIResolver resolver, Map parameters, Properties outputProperties) throws TransformerConfigurationException
- {
- if (tFactory == null)
- createTransformerFactory();
-
- TransformerHandler newTh = tFactory.newTransformerHandler(source);
- Transformer transformer = newTh.getTransformer();
-
- if (resolver != null)
- transformer.setURIResolver(resolver);
-
- if (parameters != null)
- {
- for (Iterator iter = parameters.entrySet().iterator(); iter.hasNext();)
- {
- Map.Entry entry = (Map.Entry) iter.next();
- String name = (String) entry.getKey();
- Object value = entry.getValue();
- log.info(Messages.getString("JAXPSAXProcessorInvoker.2") + name + Messages.getString("JAXPSAXProcessorInvoker.3") + value); //$NON-NLS-1$ //$NON-NLS-2$
- transformer.setParameter(name, value);
- }
- }
- if (outputProperties != null)
- {
- StringBuffer sb = new StringBuffer();
- for (Iterator iter = outputProperties.entrySet().iterator(); iter.hasNext();)
- {
- Map.Entry entry = (Map.Entry) iter.next();
- sb.append(entry.getKey()).append("=").append(entry.getValue()).append(" "); //$NON-NLS-1$ //$NON-NLS-2$
- }
- if (outputProperties.size() > 0)
- {
- log.info(Messages.getString("JAXPSAXProcessorInvoker.6") + sb.toString()); //$NON-NLS-1$
- transformer.setOutputProperties(outputProperties);
- }
- }
-
- if (th != null)
- th.setResult(new SAXResult(newTh));
- else {
- reader.setContentHandler(newTh);
- try {
- reader.setProperty("http://xml.org/sax/properties/lexical-handler", newTh); //$NON-NLS-1$
- } catch (SAXNotRecognizedException ex) {
- log.warn(Messages.getString("JAXPSAXProcessorInvoker_4")); //$NON-NLS-1$
- } catch (SAXNotSupportedException e) {
- log.warn(Messages.getString("JAXPSAXProcessorInvoker_5")); //$NON-NLS-1$
- }
- }
- th = newTh;
- return th.getTransformer();
- }
-
- public void transform(URL sourceURL, Result res) throws TransformationException
- {
- transform(new InputSource(sourceURL.toExternalForm()), res);
- }
-
- /**
- * Transform using an InputSource rather than a URL
- *
- * @param inputsource the InputSource to use
- * @param res the Result
- * @throws TransformationException if an error occurred during transformation
- */
- public void transform(InputSource inputsource, Result res) throws TransformationException
- {
- try
- {
- if (th == null)
- {// no stylesheets have been added, so try to use embedded...
- SAXSource saxSource = new SAXSource(inputsource);
- Source src = saxSource;
- String media = null, title = null, charset = null;
- while (true)
- {
- src = tFactory.getAssociatedStylesheet(src, media, title, charset);
- if (src != null)
- {
- addStylesheet(saxSource, null, Collections.EMPTY_MAP, new Properties());
- }
- else
- {
- throw new TransformationException(Messages.getString("JAXPSAXProcessorInvoker.7") + inputsource.getSystemId()); //$NON-NLS-1$
- }
- }
- }
- th.setResult(res);
- log.info(Messages.getString("JAXPSAXProcessorInvoker.8")); //$NON-NLS-1$
- reader.parse(inputsource);
- log.info(Messages.getString("JAXPSAXProcessorInvoker.9")); //$NON-NLS-1$
- }
- catch (Exception e)
- {
- throw new TransformationException(e.getMessage(), e);
- }
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/internal/Main.java b/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/internal/Main.java
deleted file mode 100644
index 1ccdce8..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/internal/Main.java
+++ /dev/null
@@ -1,86 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.invoker.internal;
-
-import java.io.File;
-import java.io.FileOutputStream;
-import java.net.URL;
-
-import javax.xml.transform.stream.StreamResult;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.eclipse.wst.xsl.jaxp.debug.invoker.IProcessorInvoker;
-import org.eclipse.wst.xsl.jaxp.debug.invoker.PipelineDefinition;
-
-/**
- * The class whose <code>main</code> method is called when launching the transformation process from
- * Eclipse.
- *
- * @author Doug Satchwell
- */
-public class Main
-{
- private static final Log log = LogFactory.getLog(Main.class);
-
- /**
- * The <code>main</code> method called when launching the transformation process.
- * There are 4 required arguments:
- * <ol>
- * <li>The class name of the <code>IProcessorInvoker</code> to use
- * <li>The launch file (serialized <code>PipelineDefinition</code>)
- * <li>The URL of the source XML document
- * <li>The file where output will be written
- * </ol>
- *
- * @param args the 4 required arguments
- */
- public static void main(String[] args)
- {
- log.info("javax.xml.transform.TransformerFactory=" + System.getProperty("javax.xml.transform.TransformerFactory")); //$NON-NLS-1$ //$NON-NLS-2$
- log.info("java.endorsed.dirs=" + System.getProperty("java.endorsed.dirs")); //$NON-NLS-1$ //$NON-NLS-2$
-
- String invokerClassName = args[0];
- File launchFile = new File(args[1]);
- String src = args[2];
- String target = args[3];
-
- log.info(Messages.getString("Main.4") + launchFile); //$NON-NLS-1$
-
- // create the invoker
- IProcessorInvoker invoker = null;
- try
- {
- Class clazz = Class.forName(invokerClassName);
- invoker = (IProcessorInvoker) clazz.newInstance();
- }
- catch (Exception e)
- {
- handleFatalError(Messages.getString("Main.5") + invokerClassName, e); //$NON-NLS-1$
- }
- try
- {
- PipelineDefinition pipeline = new PipelineDefinition(launchFile);
- pipeline.configure(invoker);
- invoker.transform(new URL(src), new StreamResult(new FileOutputStream(new File(target))));
- }
- catch (Exception e)
- {
- handleFatalError(e.getMessage(), e);
- }
- }
-
- private static void handleFatalError(String msg, Throwable t)
- {
- log.fatal(msg, t);
- System.exit(1);
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/internal/Messages.java b/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/internal/Messages.java
deleted file mode 100644
index 7ee3995..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/internal/Messages.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.invoker.internal;
-
-import java.util.MissingResourceException;
-import java.util.ResourceBundle;
-
-/**
- * Messages for the transformation.
- *
- * @author Doug Satchwell
- */
-public class Messages
-{
- private static final String BUNDLE_NAME = "org.eclipse.wst.xsl.jaxp.debug.invoker.internal.messages"; //$NON-NLS-1$
-
- private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME);
-
- private Messages()
- {
- }
-
- /**
- * Get a message for the given key.
- *
- * @param key the message key
- * @return the message
- */
- public static String getString(String key)
- {
- try
- {
- return RESOURCE_BUNDLE.getString(key);
- }
- catch (MissingResourceException e)
- {
- return '!' + key + '!';
- }
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/internal/messages.properties b/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/internal/messages.properties
deleted file mode 100644
index 2c5aeec..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/internal/messages.properties
+++ /dev/null
@@ -1,12 +0,0 @@
-JAXPSAXProcessorInvoker_4=Unable to set lexical content handler. Comments and Processing instructions may be skipped
-JAXPSAXProcessorInvoker_5=Lexical property not supported. Comments and Processing instructions may be skipped
-JAXPSAXProcessorInvoker.0=Setting attribute '
-JAXPSAXProcessorInvoker.1=' to value
-JAXPSAXProcessorInvoker.2=Setting parameter '
-JAXPSAXProcessorInvoker.3=' to value
-JAXPSAXProcessorInvoker.6=Setting properties:
-JAXPSAXProcessorInvoker.7=No embedded stylesheet instruction for file:
-JAXPSAXProcessorInvoker.8=Transforming...
-JAXPSAXProcessorInvoker.9=Done.
-Main.4=launchFile:
-Main.5=Could not instantiate invoker:
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/messages.properties b/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/messages.properties
deleted file mode 100644
index fea9b3c..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug/src/org/eclipse/wst/xsl/jaxp/debug/invoker/messages.properties
+++ /dev/null
@@ -1,25 +0,0 @@
-PipelineDefinition.10=Error with stylesheet:
-PipelineDefinition.8=Could not instantiate parameter
-PipelineDefinition.9=Invalid stylesheet URL:
-TransformDefinition.1=url
-TransformDefinition.18=Parameters
-TransformDefinition.19=Parameter
-TransformDefinition.20=name
-TransformDefinition.21=type
-TransformDefinition.22=value
-TypedValue.10=' to an Integer
-TypedValue.11=Could not convert value '
-TypedValue.12=' to a Double
-TypedValue.13=Could not convert value '
-TypedValue.14=' to a Float
-TypedValue.15=Class '
-TypedValue.16=' could not be located (check the classpath)
-TypedValue.17=Class '
-TypedValue.18=' could not be located (check the classpath)
-TypedValue.19=Object '
-TypedValue.20=' could not be instantiated
-TypedValue.21=Object '
-TypedValue.22=\ could not be instantiated
-TypedValue.23=Attribute type '
-TypedValue.24=' is not recognised
-TypedValue.9=Could not convert value '
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/.classpath b/bundles/org.eclipse.wst.xsl.jaxp.launching/.classpath
deleted file mode 100644
index 64c5e31..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/.classpath
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/.project b/bundles/org.eclipse.wst.xsl.jaxp.launching/.project
deleted file mode 100644
index 8dea7ec..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/.project
+++ /dev/null
@@ -1,34 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.wst.xsl.jaxp.launching</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>
- <buildCommand>
- <name>org.eclipse.pde.api.tools.apiAnalysisBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- <nature>org.eclipse.pde.api.tools.apiAnalysisNature</nature>
- </natures>
-</projectDescription>
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/.settings/org.eclipse.jdt.core.prefs b/bundles/org.eclipse.wst.xsl.jaxp.launching/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 8212296..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,87 +0,0 @@
-#Thu Jun 11 01:37:28 GMT 2009
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
-org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=1.5
-org.eclipse.jdt.core.compiler.debug.lineNumber=generate
-org.eclipse.jdt.core.compiler.debug.localVariable=generate
-org.eclipse.jdt.core.compiler.debug.sourceFile=generate
-org.eclipse.jdt.core.compiler.doc.comment.support=enabled
-org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
-org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning
-org.eclipse.jdt.core.compiler.problem.deadCode=warning
-org.eclipse.jdt.core.compiler.problem.deprecation=warning
-org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
-org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled
-org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
-org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore
-org.eclipse.jdt.core.compiler.problem.fatalOptionalError=enabled
-org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
-org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
-org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
-org.eclipse.jdt.core.compiler.problem.forbiddenReference=error
-org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
-org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
-org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore
-org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore
-org.eclipse.jdt.core.compiler.problem.invalidJavadoc=ignore
-org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=disabled
-org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=disabled
-org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=disabled
-org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=public
-org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
-org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
-org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore
-org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore
-org.eclipse.jdt.core.compiler.problem.missingJavadocComments=ignore
-org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=disabled
-org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=public
-org.eclipse.jdt.core.compiler.problem.missingJavadocTagDescription=return_tag
-org.eclipse.jdt.core.compiler.problem.missingJavadocTags=ignore
-org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled
-org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=public
-org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
-org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
-org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore
-org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
-org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
-org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=error
-org.eclipse.jdt.core.compiler.problem.nullReference=warning
-org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
-org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
-org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore
-org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore
-org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning
-org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore
-org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore
-org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
-org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
-org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
-org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
-org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
-org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning
-org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
-org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
-org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
-org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore
-org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
-org.eclipse.jdt.core.compiler.problem.unusedImport=warning
-org.eclipse.jdt.core.compiler.problem.unusedLabel=warning
-org.eclipse.jdt.core.compiler.problem.unusedLocal=warning
-org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
-org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
-org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
-org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
-org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
-org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
-org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
-org.eclipse.jdt.core.compiler.source=1.5
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/JREDefaultAttributes.properties b/bundles/org.eclipse.wst.xsl.jaxp.launching/JREDefaultAttributes.properties
deleted file mode 100644
index 9c244d2..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/JREDefaultAttributes.properties
+++ /dev/null
@@ -1,10 +0,0 @@
-###############################################################################
-# Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Eclipse Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Contributors:
-# Doug Satchwell (Chase Technology Ltd) - initial API and implementation
-############################################################################### \ No newline at end of file
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/JREDefaultOutputProperties.properties b/bundles/org.eclipse.wst.xsl.jaxp.launching/JREDefaultOutputProperties.properties
deleted file mode 100644
index ad23e9d..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/JREDefaultOutputProperties.properties
+++ /dev/null
@@ -1,40 +0,0 @@
-###############################################################################
-# Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Eclipse Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Contributors:
-# Doug Satchwell (Chase Technology Ltd) - initial API and implementation
-###############################################################################
-
-method=method
-method.DESC="xml" | "html" | "text" | qname-but-not-ncname
-
-version=version
-version.DESC=specifies the version of the output method
-
-indent=indent
-indent.DESC=specifies whether the XSLT processor may add additional whitespace when outputting the result tree; the value must be yes or no
-
-encoding=encoding
-encoding.DESC=specifies the preferred character encoding that the XSLT processor should use to encode sequences of characters as sequences of bytes; the value of the attribute should be treated case-insensitively; the value must contain only characters in the range #x21 to #x7E (i.e. printable ASCII characters); the value should either be a charset registered with the Internet Assigned Numbers Authority [IANA], [RFC2278] or start with X-
-
-media-type=media-type
-media-type.DESC=specifies the media type (MIME content type) of the data that results from outputting the result tree; the charset parameter should not be specified explicitly; instead, when the top-level media type is text, a charset parameter should be added according to the character encoding actually used by the output method
-
-doctype-system=doctype-system
-doctype-system.DESC=specifies the system identifier to be used in the document type declaration
-
-doctype-public=doctype-public
-doctype-public.DESC=specifies the public identifier to be used in the document type declaration
-
-omit-xml-declaration=omit-xml-declaration
-omit-xml-declaration.DESC=specifies whether the XSLT processor should output an XML declaration; the value must be yes or no
-
-standalone=standalone
-standalone.DESC=specifies whether the XSLT processor should output a standalone document declaration; the value must be yes or no
-
-cdata-section-elements=cdata-section-elements
-cdata-section-elements.DESC=specifies a list of the names of elements whose text node children should be output using CDATA sections \ No newline at end of file
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/META-INF/MANIFEST.MF b/bundles/org.eclipse.wst.xsl.jaxp.launching/META-INF/MANIFEST.MF
deleted file mode 100644
index b4bd5c8..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,23 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: %Bundle-Name.0
-Bundle-SymbolicName: org.eclipse.wst.xsl.jaxp.launching;singleton:=true
-Bundle-Version: 1.0.100.qualifier
-Bundle-Activator: org.eclipse.wst.xsl.jaxp.launching.internal.JAXPLaunchingPlugin
-Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.core.variables;bundle-version="[3.2.100,4.0.0)",
- org.eclipse.debug.core;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.jdt.launching;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.wst.xsl.launching;bundle-version="[1.0.0,2.0.0)",
- org.eclipse.wst.xsl.jaxp.debug;bundle-version="[1.0.0,2.0.0)",
- org.eclipse.jface;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.ui;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.osgi.util;bundle-version="[3.2.0,4.0.0)"
-Bundle-ActivationPolicy: lazy
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Bundle-Vendor: %Bundle-Vendor.0
-Export-Package: org.eclipse.wst.xsl.jaxp.launching,
- org.eclipse.wst.xsl.jaxp.launching.internal;x-internal:=true,
- org.eclipse.wst.xsl.jaxp.launching.internal.registry;x-internal:=true,
- org.eclipse.wst.xsl.jaxp.launching.model
-Bundle-Localization: plugin
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/about.html b/bundles/org.eclipse.wst.xsl.jaxp.launching/about.html
deleted file mode 100644
index ed30003..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/about.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<HTML>
-
-<head>
-<title>About</title>
-<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
-</head>
-
-<BODY lang="EN-US">
-
-<H3>About This Content</H3>
-
-<P>August, 2008</P>
-
-<H3>License</H3>
-
-<P>The Eclipse Foundation makes available all content in this plug-in
-("Content"). Unless otherwise indicated below, the Content is provided to you
-under the terms and conditions of the Eclipse Public License Version 1.0
-("EPL"). A copy of the EPL is available at
-<A href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/org/documents/epl-v10.php</A>.
-For purposes of the EPL, "Program" will mean the Content.</P>
-
-<P>If you did not receive this Content directly from the Eclipse Foundation, the
-Content is being redistributed by another party ("Redistributor") and different
-terms and conditions may apply to your use of any object code in the Content.
-Check the Redistributor’s license that was provided with the Content. If no such
-license exists, contact the Redistributor. Unless otherwise indicated below, the
-terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at
-<A href="http://www.eclipse.org/">http://www.eclipse.org/</A>.</P>
-
-</BODY>
-</HTML>
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/build.properties b/bundles/org.eclipse.wst.xsl.jaxp.launching/build.properties
deleted file mode 100644
index cfc36a5..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/build.properties
+++ /dev/null
@@ -1,10 +0,0 @@
-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- plugin.xml,\
- about.html,\
- schema/,\
- JREDefaultAttributes.properties,\
- JREDefaultOutputProperties.properties,\
- plugin.properties
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/log4j.debug.properties b/bundles/org.eclipse.wst.xsl.jaxp.launching/log4j.debug.properties
deleted file mode 100644
index 62dfb61..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/log4j.debug.properties
+++ /dev/null
@@ -1,10 +0,0 @@
-# Set root logger level to DEBUG and its appenders are A1 and A2
-log4j.rootLogger=ERROR, A2
-
-# A2 is set to be a ConsoleAppender
-log4j.appender.A2=org.apache.log4j.ConsoleAppender
-
-# A2 uses PatternLayout.
-log4j.appender.A2.layout=org.apache.log4j.PatternLayout
-log4j.appender.A2.layout.ConversionPattern=%d{HH:mm:ss,SSS} %-5p [%t] %c{1} %x - %m%n
-
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/plugin.properties b/bundles/org.eclipse.wst.xsl.jaxp.launching/plugin.properties
deleted file mode 100644
index 872a2ca..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/plugin.properties
+++ /dev/null
@@ -1,9 +0,0 @@
-Bundle-Vendor.0 = Eclipse.org
-Bundle-Name.0 = XSL JAXP Launching
-launchDelegate.name.0 = Java
-processorType.label.1 = JRE Default
-processor.label.1 = JRE Instance Default
-debugger = debugger
-invoke = invoke
-processor = processor
-processorType = processorType \ No newline at end of file
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/plugin.xml b/bundles/org.eclipse.wst.xsl.jaxp.launching/plugin.xml
deleted file mode 100644
index e52549f..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/plugin.xml
+++ /dev/null
@@ -1,51 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.2"?>
-<plugin>
- <extension-point id="debugger" name="%debugger" schema="schema/debugger.exsd"/>
- <extension-point id="invoke" name="%invoke" schema="schema/invoke.exsd"/>
- <extension-point id="processor" name="%processor" schema="schema/processor.exsd"/>
- <extension-point id="processorType" name="%processorType" schema="schema/processorType.exsd"/>
- <extension
- point="org.eclipse.debug.core.launchDelegates">
- <launchDelegate
- delegate="org.eclipse.wst.xsl.jaxp.launching.internal.JAXPJavaLaunchConfigurationDelegate"
- delegateDescription="The XSLT Launcher for JAXP supports running and debugging transformations using JAXP-compliant XSLT processors"
- id="org.eclipse.wst.xsl.launching.internal.jaxp.JAXPLaunchConfigurationDelegate"
- modes="run, debug"
- name="%launchDelegate.name.0"
- type="org.eclipse.wst.xsl.launching.launchConfigurationType">
- </launchDelegate>
- </extension>
-
- <extension point="org.eclipse.core.runtime.preferences">
- <initializer
- class="org.eclipse.wst.xsl.jaxp.launching.internal.PreferenceInitializer">
- </initializer>
- </extension>
-
- <extension point="org.eclipse.wst.xsl.jaxp.launching.invoke">
- <invoker id="org.eclipse.wst.xsl.launching.jaxp.invoke"
- class="org.eclipse.wst.xsl.jaxp.debug.invoker.internal.JAXPSAXProcessorInvoker"
- classpath="${eclipse_orbit:org.eclipse.wst.xsl.jaxp.debug};${eclipse_orbit:org.apache.commons.logging};${eclipse_orbit:org.apache.log4j}" />
- </extension>
-
- <extension
- point="org.eclipse.wst.xsl.jaxp.launching.processorType">
- <processorType
- attributeProperties="JREDefaultAttributes.properties"
- id="org.eclipse.wst.xsl.launching.processorType.jreDefault"
- label="%processorType.label.1"
- outputProperties="JREDefaultOutputProperties.properties" />
- </extension>
-
- <extension
- point="org.eclipse.wst.xsl.jaxp.launching.processor">
- <processor
- classpath=""
- id="org.eclipse.wst.xsl.launching.jre.default"
- label="%processor.label.1"
- processorTypeId="org.eclipse.wst.xsl.launching.processorType.jreDefault"
- supports="1.0"/>
- </extension>
-
-</plugin>
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/schema/debugger.exsd b/bundles/org.eclipse.wst.xsl.jaxp.launching/schema/debugger.exsd
deleted file mode 100644
index ef80f04..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/schema/debugger.exsd
+++ /dev/null
@@ -1,145 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!-- Schema file written by PDE -->
-<schema targetNamespace="org.eclipse.wst.xsl.launching.jaxp" xmlns="http://www.w3.org/2001/XMLSchema">
-<annotation>
- <appinfo>
- <meta.schema plugin="org.eclipse.wst.xsl.launching.jaxp" id="debugger" name="XSLT Debugger"/>
- </appinfo>
- <documentation>
- Contribute a debugger for a particular JAXP processor type (e.g. Saxon). The extension point primarily defines the classpath and transformer factory to be used when debugging.
- </documentation>
- </annotation>
-
- <element name="extension">
- <annotation>
- <appinfo>
- <meta.element />
- </appinfo>
- </annotation>
- <complexType>
- <sequence>
- <element ref="debugger" minOccurs="1" maxOccurs="unbounded"/>
- </sequence>
- <attribute name="point" type="string" use="required">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- <attribute name="id" type="string">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- <attribute name="name" type="string">
- <annotation>
- <documentation>
-
- </documentation>
- <appinfo>
- <meta.attribute translatable="true"/>
- </appinfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <element name="debugger">
- <annotation>
- <documentation>
- A debugger for a processor type
- </documentation>
- </annotation>
- <complexType>
- <attribute name="id" type="string" use="required">
- <annotation>
- <documentation>
- A unique id for this debugger
- </documentation>
- </annotation>
- </attribute>
- <attribute name="name" type="string" use="required">
- <annotation>
- <documentation>
- A name to be displayed in the UI
- </documentation>
- </annotation>
- </attribute>
- <attribute name="classpath" type="string" use="required">
- <annotation>
- <documentation>
- A &apos;;&apos;-separated classpath required to run the debugger (in addition to that already added by the processor itself).
- </documentation>
- </annotation>
- </attribute>
- <attribute name="processorTypeId" type="string" use="required">
- <annotation>
- <documentation>
- The processor type that this debugger works with
- </documentation>
- </annotation>
- </attribute>
- <attribute name="className" type="string" use="required">
- <annotation>
- <documentation>
- A fully-qualified class that implement the IXSLDebugger interface. It is easier to extend AbstractXSLDebugger.
- </documentation>
- <appinfo>
- <meta.attribute kind="java" basedOn=":org.eclipse.wst.xsl.jaxp.debug.debugger.IXSLDebugger"/>
- </appinfo>
- </annotation>
- </attribute>
- <attribute name="transformerFactoryClass" type="string" use="required">
- <annotation>
- <documentation>
- The fully-qualified class name of the transformer factory to use for debugging. This must be one of the transformer factories belonging to the processor type.
- </documentation>
- <appinfo>
- <meta.attribute kind="java" basedOn="javax.xml.transform.TransformerFactory:"/>
- </appinfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
-
- <annotation>
- <appinfo>
- <meta.section type="examples"/>
- </appinfo>
- <documentation>
- &lt;pre&gt;
- &lt;extension
- point=&quot;org.eclipse.wst.xsl.jaxp.launching.debugger&quot;&gt;
- &lt;debugger
- className=&quot;org.eclipse.wst.xsl.xalan.debugger.XalanDebugger&quot;
- classpath=&quot;${eclipse_orbit:org.eclipse.wst.xsl.xalan}&quot;
- id=&quot;org.eclipse.wst.xsl.xalan.debugger&quot;
- name=&quot;Xalan 2.5.1 or greater&quot;
- processorTypeId=&quot;org.eclipse.wst.xsl.xalan.processorType&quot;
- transformerFactoryClass=&quot;org.apache.xalan.processor.TransformerFactoryImpl&quot;&gt;
- &lt;/debugger&gt;
- &lt;/extension&gt;
-&lt;/pre&gt;
- </documentation>
- </annotation>
-
-
-
- <annotation>
- <appinfo>
- <meta.section type="copyright"/>
- </appinfo>
- <documentation>
- Copyright (c) 2007 Chase Technology Ltd - &lt;a href=&quot;http://www.chasetechnology.co.uk&quot;&gt;http://www.chasetechnology.co.uk&lt;/a&gt;.&lt;br&gt;
-All rights reserved. This program and the accompanying materials are made
-available under the terms of the Eclipse Public License v1.0 which accompanies
-this distribution, and is available at &lt;a
-href=&quot;http://www.eclipse.org/legal/epl-v10.html&quot;&gt;http://www.eclipse.org/legal/epl-v10.html&lt;/a&gt;
- </documentation>
- </annotation>
-
-</schema>
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/schema/invoke.exsd b/bundles/org.eclipse.wst.xsl.jaxp.launching/schema/invoke.exsd
deleted file mode 100644
index 8f0c1f2..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/schema/invoke.exsd
+++ /dev/null
@@ -1,93 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!-- Schema file written by PDE -->
-<schema targetNamespace="org.eclipse.wst.xsl.launching.jaxp" xmlns="http://www.w3.org/2001/XMLSchema">
-<annotation>
- <appinfo>
- <meta.schema plugin="org.eclipse.wst.xsl.launching.jaxp" id="invoke" name="XSLT Processor Invoker"/>
- </appinfo>
- <documentation>
- &lt;b&gt;This extension point is internal and should not be used by any other plugins.&lt;/b&gt;
- </documentation>
- </annotation>
-
- <element name="extension">
- <annotation>
- <appinfo>
- <meta.element internal="true" />
- </appinfo>
- </annotation>
- <complexType>
- <sequence>
- <element ref="invoker"/>
- </sequence>
- <attribute name="point" type="string" use="required">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- <attribute name="id" type="string">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- <attribute name="name" type="string">
- <annotation>
- <documentation>
-
- </documentation>
- <appinfo>
- <meta.attribute translatable="true"/>
- </appinfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <element name="invoker">
- <complexType>
- <attribute name="id" type="string" use="required">
- <annotation>
- <documentation>
- Unique id for this invoker
- </documentation>
- </annotation>
- </attribute>
- <attribute name="class" type="string" use="required">
- <annotation>
- <documentation>
- A class that implements the IProcessorInvoker interface
- </documentation>
- </annotation>
- </attribute>
- <attribute name="classpath" type="string" use="required">
- <annotation>
- <documentation>
- A semi-colon separated list of jars relative to the root of the contributing plugin. One of the jars must contain the Invoker class named in the class attribute.
- </documentation>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
-
-
-
-
- <annotation>
- <appinfo>
- <meta.section type="copyright"/>
- </appinfo>
- <documentation>
- Copyright (c) 2007 Chase Technology Ltd - &lt;a href=&quot;http://www.chasetechnology.co.uk&quot;&gt;http://www.chasetechnology.co.uk&lt;/a&gt;.&lt;br&gt;
-All rights reserved. This program and the accompanying materials are made
-available under the terms of the Eclipse Public License v1.0 which accompanies
-this distribution, and is available at &lt;a
-href=&quot;http://www.eclipse.org/legal/epl-v10.html&quot;&gt;http://www.eclipse.org/legal/epl-v10.html&lt;/a&gt;
- </documentation>
- </annotation>
-
-</schema>
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/schema/processor.exsd b/bundles/org.eclipse.wst.xsl.jaxp.launching/schema/processor.exsd
deleted file mode 100644
index e59e08c..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/schema/processor.exsd
+++ /dev/null
@@ -1,147 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!-- Schema file written by PDE -->
-<schema targetNamespace="org.eclipse.wst.xsl.launching.jaxp" xmlns="http://www.w3.org/2001/XMLSchema">
-<annotation>
- <appinfo>
- <meta.schema plugin="org.eclipse.wst.xsl.launching.jaxp" id="processor" name="XSLT Processor"/>
- </appinfo>
- <documentation>
- Contribute a Java XSLT processor instance (e.g. Xalan 2.7.0). The extension point primarily defines the classpath to be used when launching an XSLT transformation.
- </documentation>
- </annotation>
-
- <element name="extension">
- <annotation>
- <appinfo>
- <meta.element />
- </appinfo>
- </annotation>
- <complexType>
- <sequence>
- <element ref="processor" minOccurs="1" maxOccurs="unbounded"/>
- </sequence>
- <attribute name="point" type="string" use="required">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- <attribute name="id" type="string">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- <attribute name="name" type="string">
- <annotation>
- <documentation>
-
- </documentation>
- <appinfo>
- <meta.attribute translatable="true"/>
- </appinfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <element name="processor">
- <annotation>
- <appinfo>
- <meta.element labelAttribute="label"/>
- </appinfo>
- <documentation>
- An instance of a JAXP-compliant XSLT processor
- </documentation>
- </annotation>
- <complexType>
- <attribute name="id" type="string" use="required">
- <annotation>
- <documentation>
- A unique id for this processor instance
- </documentation>
- </annotation>
- </attribute>
- <attribute name="label" type="string" use="required">
- <annotation>
- <documentation>
- A label for this instance to be displayed in the UI
- </documentation>
- <appinfo>
- <meta.attribute translatable="true"/>
- </appinfo>
- </annotation>
- </attribute>
- <attribute name="processorTypeId" type="string" use="required">
- <annotation>
- <documentation>
- The id for the processor type
- </documentation>
- </annotation>
- </attribute>
- <attribute name="classpath" type="string" use="required">
- <annotation>
- <documentation>
- The classpath to use when this processor is launched
- </documentation>
- </annotation>
- </attribute>
- <attribute name="debuggerId" type="string">
- <annotation>
- <documentation>
- The id of a debugger to associate with the processor
- </documentation>
- </annotation>
- </attribute>
- <attribute name="supports" type="string" use="required">
- <annotation>
- <documentation>
- A comma-separated list of supported XSLT versions e.g. 1.0,2.0
- </documentation>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
-
- <annotation>
- <appinfo>
- <meta.section type="examples"/>
- </appinfo>
- <documentation>
- &lt;pre&gt;
- &lt;extension
- point=&quot;org.eclipse.wst.xsl.jaxp.launching.processor&quot;&gt;
- &lt;!-- An adopter can specify the ${eclipse_orbit: } variable to indicate which eclipse
- bundle should be added to the class path. --&gt;
- &lt;processor
- classpath=&quot;${eclipse_orbit:org.apache.xalan};${eclipse_orbit:org.apache.xml.serializer};${eclipse_orbit:org.apache.bcel};${eclipse_orbit:java_cup.runtime}&quot;
- id=&quot;org.eclipse.wst.xsl.launching.xalan.processor&quot;
- label=&quot;%processor.label.1&quot;
- processorTypeId=&quot;org.eclipse.wst.xsl.xalan.processorType&quot;
- debuggerId=&quot;org.eclipse.wst.xsl.xalan.debugger&quot;
- supports=&quot;1.0&quot;&gt;
- &lt;/processor&gt;
- &lt;/extension&gt;
-&lt;/pre&gt;
- </documentation>
- </annotation>
-
-
-
- <annotation>
- <appinfo>
- <meta.section type="copyright"/>
- </appinfo>
- <documentation>
- Copyright (c) 2007 Chase Technology Ltd - &lt;a href=&quot;http://www.chasetechnology.co.uk&quot;&gt;http://www.chasetechnology.co.uk&lt;/a&gt;.&lt;br&gt;
-All rights reserved. This program and the accompanying materials are made
-available under the terms of the Eclipse Public License v1.0 which accompanies
-this distribution, and is available at &lt;a
-href=&quot;http://www.eclipse.org/legal/epl-v10.html&quot;&gt;http://www.eclipse.org/legal/epl-v10.html&lt;/a&gt;
- </documentation>
- </annotation>
-
-</schema>
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/schema/processorType.exsd b/bundles/org.eclipse.wst.xsl.jaxp.launching/schema/processorType.exsd
deleted file mode 100644
index eaada5f..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/schema/processorType.exsd
+++ /dev/null
@@ -1,167 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!-- Schema file written by PDE -->
-<schema targetNamespace="org.eclipse.wst.xsl.launching.jaxp" xmlns="http://www.w3.org/2001/XMLSchema">
-<annotation>
- <appinfo>
- <meta.schema plugin="org.eclipse.wst.xsl.launching.jaxp" id="processorType" name="XSLT Processor Type"/>
- </appinfo>
- <documentation>
- Contribute a Java XSLT processor type (e.g. Xalan, Saxon). The processor type defines which JAXP attributes and output properies are supported, and also the transformer factory classes it contains.
- </documentation>
- </annotation>
-
- <element name="extension">
- <annotation>
- <appinfo>
- <meta.element />
- </appinfo>
- </annotation>
- <complexType>
- <sequence>
- <element ref="processorType" minOccurs="1" maxOccurs="unbounded"/>
- </sequence>
- <attribute name="point" type="string" use="required">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- <attribute name="id" type="string">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- <attribute name="name" type="string">
- <annotation>
- <documentation>
-
- </documentation>
- <appinfo>
- <meta.attribute translatable="true"/>
- </appinfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <element name="processorType">
- <annotation>
- <appinfo>
- <meta.element labelAttribute="label"/>
- </appinfo>
- </annotation>
- <complexType>
- <sequence>
- <element ref="transformerFactory" minOccurs="0" maxOccurs="unbounded"/>
- </sequence>
- <attribute name="id" type="string" use="required">
- <annotation>
- <documentation>
- Unique id for the processor type
- </documentation>
- </annotation>
- </attribute>
- <attribute name="label" type="string" use="required">
- <annotation>
- <documentation>
- Name for display in the UI
- </documentation>
- <appinfo>
- <meta.attribute translatable="true"/>
- </appinfo>
- </annotation>
- </attribute>
- <attribute name="outputProperties" type="string">
- <annotation>
- <documentation>
- Location of a properties file containing the list of the processors output properties. Must be a path relative to the root of the bundle.
- </documentation>
- </annotation>
- </attribute>
- <attribute name="attributeProperties" type="string">
- <annotation>
- <documentation>
- Location of a properties file containing the list of the attributes supported by this processor. Must be a path relative to the root of the bundle.
- </documentation>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <element name="transformerFactory">
- <annotation>
- <documentation>
- A TransformerFactory for this type
- </documentation>
- </annotation>
- <complexType>
- <attribute name="factoryClass" type="string" use="required">
- <annotation>
- <documentation>
- The fully-qualified transformer factory class
- </documentation>
- <appinfo>
- <meta.attribute kind="java" basedOn="javax.xml.transform.TransformerFactory:"/>
- </appinfo>
- </annotation>
- </attribute>
- <attribute name="name" type="string" use="required">
- <annotation>
- <documentation>
- A name for this transformer factory to be displayed in the UI
- </documentation>
- <appinfo>
- <meta.attribute translatable="true"/>
- </appinfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
-
- <annotation>
- <appinfo>
- <meta.section type="examples"/>
- </appinfo>
- <documentation>
- &lt;pre&gt;
- &lt;extension
- point=&quot;org.eclipse.wst.xsl.jaxp.launching.processorType&quot;&gt;
- &lt;processorType
- attributeProperties=&quot;XalanAttributes.properties&quot;
- id=&quot;org.eclipse.wst.xsl.xalan.processorType&quot;
- label=&quot;%processorType.label.0&quot;
- outputProperties=&quot;XalanOutputProperties.properties&quot;&gt;
- &lt;transformerFactory
- factoryClass=&quot;org.apache.xalan.processor.TransformerFactoryImpl&quot;
- name=&quot;Interpretive&quot;&gt;
- &lt;/transformerFactory&gt;
- &lt;transformerFactory
- factoryClass=&quot;org.apache.xalan.xsltc.trax.TransformerFactoryImpl&quot;
- name=&quot;Compiling&quot;&gt;
- &lt;/transformerFactory&gt;
- &lt;/processorType&gt;
- &lt;/extension&gt;
-&lt;/pre&gt;
- </documentation>
- </annotation>
-
-
-
- <annotation>
- <appinfo>
- <meta.section type="copyright"/>
- </appinfo>
- <documentation>
- Copyright (c) 2007 Chase Technology Ltd - &lt;a href=&quot;http://www.chasetechnology.co.uk&quot;&gt;http://www.chasetechnology.co.uk&lt;/a&gt;.&lt;br&gt;
-All rights reserved. This program and the accompanying materials are made
-available under the terms of the Eclipse Public License v1.0 which accompanies
-this distribution, and is available at &lt;a
-href=&quot;http://www.eclipse.org/legal/epl-v10.html&quot;&gt;http://www.eclipse.org/legal/epl-v10.html&lt;/a&gt;
- </documentation>
- </annotation>
-
-</schema>
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/IAttribute.java b/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/IAttribute.java
deleted file mode 100644
index 467914b..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/IAttribute.java
+++ /dev/null
@@ -1,89 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.launching;
-
-import org.eclipse.core.runtime.IStatus;
-
-/**
- * A attribute supported by an XSLT processor.
- *
- * @author Doug Satchwell
- */
-public interface IAttribute
-{
- /**
- * Constant for attributes of type <code>string</code>
- * @see #getType()
- */
- String TYPE_STRING = "string"; //$NON-NLS-1$
-
- /**
- * Constant for attributes of type <code>boolean</code>
- * @see #getType()
- */
- String TYPE_BOOLEAN = "boolean"; //$NON-NLS-1$
-
- /**
- * Constant for attributes of type <code>int</code>
- * @see #getType()
- */
- String TYPE_INT = "int"; //$NON-NLS-1$
-
- /**
- * Constant for attributes of type <code>double</code>
- * @see #getType()
- */
- String TYPE_DOUBLE = "double"; //$NON-NLS-1$
-
- /**
- * Constant for attributes of type <code>float</code>
- * @see #getType()
- */
- String TYPE_FLOAT = "float"; //$NON-NLS-1$
-
- /**
- * Constant for attributes of type <code>class</code>
- * @see #getType()
- */
- String TYPE_CLASS = "class"; //$NON-NLS-1$
-
- /**
- * Constant for attributes of type <code>object</code>
- * @see #getType()
- */
- String TYPE_OBJECT = "object"; //$NON-NLS-1$
-
- /**
- * Get the URI for this attribute
- * @return the attribute URI
- */
- String getURI();
-
- /**
- * Get a description for this attribute
- * @return the attribute description
- */
- String getDescription();
-
- /**
- * Get the type of this attribute. Will match one of the TYPE constants in this interface.
- * @return the attribute type: one of <code>TYPE_STRING</code>, <code>TYPE_BOOLEAN</code>,
- * <code>TYPE_INT</code>, <code>TYPE_DOUBLE</code>, <code>TYPE_FLOAT</code>, <code>TYPE_CLASS</code>,
- * or <code>TYPE_OBJECT</code>
- */
- String getType();
-
- /**
- * Determine whether the given value is a valid one for this attribute.
- * @return an <code>IStatus</code> with severity <code>OK</code> if valid, or <code>ERROR</code> if invalid.
- */
- IStatus validateValue(String value);
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/IDebugger.java b/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/IDebugger.java
deleted file mode 100644
index 5502f95..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/IDebugger.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.launching;
-
-/**
- * An XSLT debugger. Typically this will have been
- * contributed via the <code>org.eclipse.wst.xsl.launching.debugger</code> extension point.
- *
- * @author Doug Satchwell
- */
-public interface IDebugger
-{
- /**
- * Get the unique id for this debugger.
- * @return debugger id
- */
- String getId();
-
- /**
- * Get the set of bundle-relative jar files to add to the classpath.
- * @return array of bundle-relative jars
- */
- String[] getClassPath();
-
- /**
- * Get a unique name for this debugger
- * @return the name for the debugger
- */
- String getName();
-
- /**
- * Get the processor type that this debugger is associated with
- * @return the processor type
- */
- IProcessorType getProcessorType();
-
- /**
- * Get the class name for this debugger
- * @return the class name
- */
- String getClassName();
-
- /**
- * Get the transformer factory this debugger is associated with
- * @return the transformer factory
- */
- String getTransformerFactory();
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/IOutputProperty.java b/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/IOutputProperty.java
deleted file mode 100644
index 9bd2c76..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/IOutputProperty.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.launching;
-
-/**
- * An output property supported by an XSLT processor.
- *
- * @author Doug Satchwell
- */
-public interface IOutputProperty
-{
- /**
- * Get the URI of this output property.
- * @return a unique URI
- */
- String getURI();
-
- /**
- * Get a description for this output property.
- * @return a description
- */
- String getDescription();
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/IProcessorInstall.java b/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/IProcessorInstall.java
deleted file mode 100644
index 4cab27b..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/IProcessorInstall.java
+++ /dev/null
@@ -1,69 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.launching;
-
-/**
- * An instance of an XSLT processor (e.g. Xalan 2.7.0).
- *
- * @see IProcessorInstall
- * @author Doug Satchwell
- */
-public interface IProcessorInstall
-{
- /**
- * Get the unqiue id of this install
- * @return the unique id
- */
- String getId();
-
- /**
- * Get the name of this install
- * @return the name of this install
- */
- String getName();
-
- /**
- * Get the the processor type associated with this install
- * @return the processor type id
- */
- IProcessorType getProcessorType();
-
- /**
- * Get the jar files for this processor
- * @return a set of jar files
- */
- IProcessorJar[] getProcessorJars();
-
- /**
- * Get whether this install has been contributed via the <code>org.eclipse.wst.xsl.launching.processor</code> extension point.
- * @return <code>true</code> if contributed via the extension point, otherwise <code>false</code>.
- */
- boolean isContributed();
-
- /**
- * Get the list of supported XSLT versions
- * @return <code>true</code> if this install has a debugger, otherwise <code>false</code>.
- */
- // TODO deprecate and use boolean supports instaed
- String getSupports();
-
- /**
- * Get whether this install supports the specified xslt version.
- * @return <code>true</code> if this install supports the version, otherwise <code>false</code>.
- */
- boolean supports(String xsltVersion);
-
- /**
- * Get the debugger associated with this install
- * @return the debugger, or null if no debugger has been set
- */
- IDebugger getDebugger();
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/IProcessorInvoker.java b/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/IProcessorInvoker.java
deleted file mode 100644
index 540101a..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/IProcessorInvoker.java
+++ /dev/null
@@ -1,20 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.launching;
-
-public interface IProcessorInvoker
-{
- String getId();
-
- String getInvokerClassName();
-
- String[] getClasspathEntries();
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/IProcessorJar.java b/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/IProcessorJar.java
deleted file mode 100644
index 53052bb..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/IProcessorJar.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.launching;
-
-import java.net.URL;
-
-import org.eclipse.core.runtime.IPath;
-
-/**
- * A jar file for an XSLT processor
- *
- * @see IProcessorInstall
- * @author Doug Satchwell
- */
-public interface IProcessorJar
-{
- /**
- * The path may be relative or absolute; in the workspace or external.
- * @return the path to this jar
- */
- IPath getPath();
-
- /**
- * The URL will always be absolute and can be opened.
- * @return a URL to the jar
- */
- URL asURL();
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/IProcessorType.java b/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/IProcessorType.java
deleted file mode 100644
index d13e700..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/IProcessorType.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.launching;
-
-import java.util.Map;
-
-/**
- * A particular type of XSLT Processor (e.g. Xalan) for which there may be any number of installs.
- *
- * @see IProcessorInstall
- * @author Doug Satchwell
- */
-public interface IProcessorType
-{
- String getId();
-
- String getLabel();
-
- boolean isJREDefault();
-
- ITransformerFactory[] getTransformerFactories();
-
- IAttribute[] getAttributes();
-
- Map<String, String> getAttributeValues();
-
- IOutputProperty[] getOutputProperties();
-
- Map<String, String> getOutputPropertyValues();
-
- ITransformerFactory getDefaultTransformerFactory();
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/ITransformerFactory.java b/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/ITransformerFactory.java
deleted file mode 100644
index 64716ab..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/ITransformerFactory.java
+++ /dev/null
@@ -1,7 +0,0 @@
-package org.eclipse.wst.xsl.jaxp.launching;
-
-public interface ITransformerFactory
-{
- String getName();
- String getFactoryClass();
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/JAXPLaunchConfigurationConstants.java b/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/JAXPLaunchConfigurationConstants.java
deleted file mode 100644
index 7ffdfe1..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/JAXPLaunchConfigurationConstants.java
+++ /dev/null
@@ -1,28 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.launching;
-
-import org.eclipse.wst.xsl.jaxp.launching.internal.JAXPLaunchingPlugin;
-
-public class JAXPLaunchConfigurationConstants
-{
- public static final String INVOKER_DESCRIPTOR = JAXPLaunchingPlugin.PLUGIN_ID + ".INVOKER_DESCRIPTOR"; //$NON-NLS-1$
- public static final String ATTR_PROCESSOR = JAXPLaunchingPlugin.PLUGIN_ID + ".ATTR_PROCESSOR"; //$NON-NLS-1$
- public static final String ATTR_OUTPUT_PROPERTIES = JAXPLaunchingPlugin.PLUGIN_ID + ".ATTR_OUTPUT_PROPERTIES"; //$NON-NLS-1$
- public static final String ATTR_ATTRIBUTES = JAXPLaunchingPlugin.PLUGIN_ID + ".ATTR_ATTRIBUTES"; //$NON-NLS-1$
- public static final String ATTR_DEFAULT_DEBUGGING_INSTALL_ID = JAXPLaunchingPlugin.PLUGIN_ID + ".ATTR_DEFAULT_DEBUGGING_INSTALL_ID"; //$NON-NLS-1$
- public static final String ATTR_USE_DEFAULT_PROCESSOR = JAXPLaunchingPlugin.PLUGIN_ID + ".ATTR_USE_DEFAULT_PROCESSOR"; //$NON-NLS-1$
- public static final String ATTR_TRANSFORMER_FACTORY = JAXPLaunchingPlugin.PLUGIN_ID + ".ATTR_TRANSFORMER_FACTORY"; //$NON-NLS-1$
-
- public static final String XALAN_TYPE_ID = "org.eclipse.wst.xsl.xalan.processorType"; //$NON-NLS-1$
- public static final String SAXON_TYPE_ID = "org.eclipse.wst.xsl.saxon.processorType"; //$NON-NLS-1$
- public static final String SAXON_1_0_TYPE_ID = "org.eclipse.wst.xsl.saxon_1_0.processorType"; //$NON-NLS-1$
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/JAXPRuntime.java b/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/JAXPRuntime.java
deleted file mode 100644
index e1ce9fe..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/JAXPRuntime.java
+++ /dev/null
@@ -1,331 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.launching;
-
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Preferences;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.wst.xsl.jaxp.launching.internal.FeaturePreferences;
-import org.eclipse.wst.xsl.jaxp.launching.internal.JAXPLaunchingPlugin;
-import org.eclipse.wst.xsl.jaxp.launching.internal.Messages;
-import org.eclipse.wst.xsl.jaxp.launching.internal.OutputPropertyPreferences;
-import org.eclipse.wst.xsl.jaxp.launching.internal.ProcessorJar;
-import org.eclipse.wst.xsl.jaxp.launching.internal.ProcessorPreferences;
-import org.eclipse.wst.xsl.jaxp.launching.internal.registry.DebuggerRegistry;
-import org.eclipse.wst.xsl.jaxp.launching.internal.registry.InvokerRegistry;
-import org.eclipse.wst.xsl.jaxp.launching.internal.registry.ProcessorRegistry;
-import org.eclipse.wst.xsl.jaxp.launching.internal.registry.ProcessorTypeRegistry;
-
-public class JAXPRuntime
-{
- public static final String PREF_PROCESSOR_XML = "PREF_PROCESSOR_XML"; //$NON-NLS-1$
- public static final String PREF_FEATURE_XML = "PREF_FEATURE_XML"; //$NON-NLS-1$
- public static final String PREF_OUTPUT_PROPERTIES_XML = "PREF_OUTPUT_PROPERTIES_XML"; //$NON-NLS-1$
- public static final String JRE_DEFAULT_PROCESSOR_ID = "org.eclipse.wst.xsl.launching.jre.default"; //$NON-NLS-1$
- public static final String JRE_DEFAULT_PROCESSOR_TYPE_ID = "org.eclipse.wst.xsl.launching.processorType.jreDefault"; //$NON-NLS-1$
-
- private static byte[] NEXT_ID_LOCK = new byte[0];
- private static byte[] REGISTRY_LOCK = new byte[0];
-
- private static int lastStandinID;
- private static ProcessorTypeRegistry processorTypeRegistry;
- private static ProcessorRegistry processorRegistry;
- private static InvokerRegistry invokerRegistry;
- private static DebuggerRegistry debuggerRegistry;
-
- private static ProcessorTypeRegistry getProcessorTypeRegistry()
- {
- synchronized (REGISTRY_LOCK)
- {
- if (processorTypeRegistry == null)
- processorTypeRegistry = new ProcessorTypeRegistry();
- }
- return processorTypeRegistry;
- }
-
- private static ProcessorRegistry getProcessorRegistry()
- {
- synchronized (REGISTRY_LOCK)
- {
- if (processorRegistry == null)
- processorRegistry = new ProcessorRegistry();
- }
- return processorRegistry;
- }
-
- private static InvokerRegistry getInvokerRegistry()
- {
- synchronized (REGISTRY_LOCK)
- {
- if (invokerRegistry == null)
- invokerRegistry = new InvokerRegistry();
- }
- return invokerRegistry;
- }
-
- private static DebuggerRegistry getDebuggerRegistry()
- {
- synchronized (REGISTRY_LOCK)
- {
- if (debuggerRegistry == null)
- debuggerRegistry = new DebuggerRegistry();
- }
- return debuggerRegistry;
- }
-
- private static void savePreferences()
- {
- JAXPLaunchingPlugin.getDefault().savePluginPreferences();
- synchronized (REGISTRY_LOCK)
- {
- // force the registries to be re-initialised next time it is required
- processorRegistry = null;
- processorTypeRegistry = null;
- }
- }
-
- /**
- * Find a unique processor install id. Check existing 'real' processors, as
- * well as the last id used for a standin.
- */
- public static String createUniqueProcessorId(IProcessorType type)
- {
- IProcessorInstall[] installs = JAXPRuntime.getProcessors(type.getId());
- String id = null;
- synchronized (NEXT_ID_LOCK)
- {
- do
- {
- id = String.valueOf(++lastStandinID);
- }
- while (isTaken(id, installs));
- }
- return id;
- }
-
- public static IProcessorJar createProcessorJar(IPath path)
- {
- return new ProcessorJar(path);
- }
-
- private static boolean isTaken(String id, IProcessorInstall[] installs)
- {
- for (IProcessorInstall install : installs)
- {
- if (install.getId().equals(id))
- return true;
- }
- return false;
- }
-
- public static IDebugger[] getDebuggers()
- {
- return getDebuggerRegistry().getDebuggers();
- }
-
- public static IDebugger getDebugger(String id)
- {
- return getDebuggerRegistry().getDebugger(id);
- }
-
- public static IProcessorInstall[] getProcessors()
- {
- return getProcessorRegistry().getProcessors();
- }
-
- public static IProcessorInstall[] getProcessors(String typeId)
- {
- return getProcessorRegistry().getProcessors(typeId);
- }
-
- public static IProcessorInstall getProcessor(String processorId)
- {
- IProcessorInstall[] processors = getProcessors();
- for (IProcessorInstall install : processors)
- {
- if (install.getId().equals(processorId))
- return install;
- }
- return null;
- }
-
- public static IProcessorInstall getDefaultProcessor()
- {
- return getProcessorRegistry().getDefaultProcessor();
- }
-
- public static IProcessorInstall getJREDefaultProcessor()
- {
- return getProcessorRegistry().getJREDefaultProcessor();
- }
-
- public static IProcessorType[] getProcessorTypes()
- {
- return getProcessorTypeRegistry().getProcessorTypes();
- }
-
- public static IProcessorType[] getProcessorTypesExclJREDefault()
- {
- return getProcessorTypeRegistry().getProcessorTypesExclJREDefault();
- }
-
- public static IProcessorType getProcessorType(String id)
- {
- return getProcessorTypeRegistry().getProcessorType(id);
- }
-
- public static IProcessorInvoker getProcessorInvoker(String invokerId)
- {
- return getInvokerRegistry().getProcessorInvoker(invokerId);
- }
-
- public static IProcessorInvoker[] getProcessorInvokers()
- {
- return getInvokerRegistry().getProcessorInvokers();
- }
-
- private static Preferences getPreferences()
- {
- return JAXPLaunchingPlugin.getDefault().getPluginPreferences();
- }
-
- public static void saveFeaturePreferences(Map<IProcessorType, Map<String, String>> typeFeatures, IProgressMonitor monitor) throws CoreException
- {
- if (monitor.isCanceled())
- return;
- try
- {
- monitor.beginTask(Messages.XSLTRuntime_5, 100);
- FeaturePreferences prefs = new FeaturePreferences();
- Map<String,Map<String,String>> typeIdFeatures = new HashMap<String,Map<String,String>>(typeFeatures.size());
- for (IProcessorType type : typeFeatures.keySet())
- {
- Map<String,String> values = typeFeatures.get(type);
- typeIdFeatures.put(type.getId(), values);
- }
- prefs.setTypeFeatures(typeIdFeatures);
- String xml = prefs.getAsXML();
- monitor.worked(40);
- if (monitor.isCanceled())
- return;
- JAXPRuntime.getPreferences().setValue(JAXPRuntime.PREF_FEATURE_XML, xml);
- monitor.worked(30);
- if (monitor.isCanceled())
- return;
- JAXPRuntime.savePreferences();
- monitor.worked(30);
- }
- catch (Exception e)
- {
- throw new CoreException(new Status(IStatus.ERROR,JAXPLaunchingPlugin.PLUGIN_ID,Messages.XSLTRuntime_6,e));
- }
- finally
- {
- monitor.done();
- }
- }
-
- public static void saveOutputPropertyPreferences(Map<IProcessorType, Map<String,String>> typeProperties, IProgressMonitor monitor) throws CoreException
- {
- if (monitor.isCanceled())
- return;
- try
- {
- monitor.beginTask(Messages.XSLTRuntime_7, 100);
- OutputPropertyPreferences prefs = new OutputPropertyPreferences();
- for (IProcessorType type : typeProperties.keySet())
- {
- prefs.setOutputPropertyValues(type.getId(), typeProperties.get(type));
- }
- String xml = prefs.getAsXML();
- monitor.worked(40);
- if (monitor.isCanceled())
- return;
- JAXPRuntime.getPreferences().setValue(JAXPRuntime.PREF_OUTPUT_PROPERTIES_XML, xml);
- monitor.worked(30);
- if (monitor.isCanceled())
- return;
- JAXPRuntime.savePreferences();
- monitor.worked(30);
- }
- catch (Exception e)
- {
- throw new CoreException(new Status(IStatus.ERROR,JAXPLaunchingPlugin.PLUGIN_ID,Messages.XSLTRuntime_8,e));
- }
- finally
- {
- monitor.done();
- }
- }
-
- public static void saveProcessorPreferences(IProcessorInstall[] installs, IProcessorInstall defaultInstall, IProgressMonitor monitor) throws CoreException
- {
- if (monitor.isCanceled())
- return;
- try
- {
- monitor.beginTask(Messages.XSLTRuntime_9, 100);
- ProcessorPreferences prefs = new ProcessorPreferences();
- if (defaultInstall != null)
- prefs.setDefaultProcessorId(defaultInstall.getId());
- prefs.setProcessors(new ArrayList<IProcessorInstall>(Arrays.asList(installs)));
- String xml = prefs.getAsXML();
- monitor.worked(40);
- if (monitor.isCanceled())
- return;
- JAXPRuntime.getPreferences().setValue(JAXPRuntime.PREF_PROCESSOR_XML, xml);
- monitor.worked(30);
- if (monitor.isCanceled())
- return;
- JAXPRuntime.savePreferences();
- monitor.worked(30);
- }
- catch (Exception e)
- {
- throw new CoreException(new Status(IStatus.ERROR,JAXPLaunchingPlugin.PLUGIN_ID,Messages.XSLTRuntime_10,e));
- }
- finally
- {
- monitor.done();
- }
- }
-
- public static Map<String,String> createDefaultOutputProperties(String typeId)
- {
- Map<String,String> props = new HashMap<String,String>();
- if (JRE_DEFAULT_PROCESSOR_TYPE_ID.equals(typeId))
- props.put("indent", "yes"); //$NON-NLS-1$ //$NON-NLS-2$
- else if (JAXPLaunchConfigurationConstants.XALAN_TYPE_ID.equals(typeId))
- {
- props.put("indent", "yes"); //$NON-NLS-1$ //$NON-NLS-2$
- props.put("{http://xml.apache.org/xslt}indent-amount", "4"); //$NON-NLS-1$ //$NON-NLS-2$
- }
- else if (JAXPLaunchConfigurationConstants.SAXON_TYPE_ID.equals(typeId))
- {
- props.put("indent", "yes"); //$NON-NLS-1$ //$NON-NLS-2$
- props.put("{http://saxon.sf.net/}indent-spaces", "4"); //$NON-NLS-1$ //$NON-NLS-2$
- }
- else if (JAXPLaunchConfigurationConstants.SAXON_1_0_TYPE_ID.equals(typeId))
- {
- props.put("indent", "yes"); //$NON-NLS-1$ //$NON-NLS-2$
- props.put("{http://saxon.sf.net/}indent-spaces", "4"); //$NON-NLS-1$ //$NON-NLS-2$
- }
- return props;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/LaunchAttributes.java b/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/LaunchAttributes.java
deleted file mode 100644
index bfd8691..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/LaunchAttributes.java
+++ /dev/null
@@ -1,104 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.launching;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.Set;
-
-import javax.xml.parsers.ParserConfigurationException;
-import javax.xml.transform.TransformerException;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.wst.xsl.launching.config.LaunchAttribute;
-import org.eclipse.wst.xsl.launching.config.PreferenceUtil;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-import org.w3c.dom.NodeList;
-
-public class LaunchAttributes
-{
- private final Set<LaunchAttribute> attributes = new HashSet<LaunchAttribute>();
-
- public Set<LaunchAttribute> getAttributes()
- {
- return attributes;
- }
-
- public void addAttribute(LaunchAttribute attribute)
- {
- attributes.add(attribute);
- }
-
- public LaunchAttribute getAttribute(String uri)
- {
- for (Iterator<LaunchAttribute> iter = attributes.iterator(); iter.hasNext();)
- {
- LaunchAttribute tv = iter.next();
- if (tv.uri.equals(uri))
- return tv;
- }
- return null;
- }
-
- public void removeAtribute(String uri)
- {
- for (Iterator<LaunchAttribute> iter = attributes.iterator(); iter.hasNext();)
- {
- LaunchAttribute attribute = iter.next();
- if (attribute.uri.equals(uri))
- iter.remove();
- }
- }
-
- public String toXML() throws ParserConfigurationException, IOException, TransformerException
- {
- Document doc = PreferenceUtil.getDocument();
-
- Element attributesEl = doc.createElement("Attributes"); //$NON-NLS-1$
- doc.appendChild(attributesEl);
-
- for (Iterator<LaunchAttribute> iter = attributes.iterator(); iter.hasNext();)
- {
- LaunchAttribute attribute = iter.next();
- Element attributeEl = doc.createElement("Attribute"); //$NON-NLS-1$
- attributeEl.setAttribute("name", attribute.uri); //$NON-NLS-1$
- attributeEl.setAttribute("type", attribute.type); //$NON-NLS-1$
- attributeEl.setAttribute("value", attribute.value); //$NON-NLS-1$
- attributesEl.appendChild(attributeEl);
- }
-
- return PreferenceUtil.serializeDocument(doc);
- }
-
- public static LaunchAttributes fromXML(InputStream inputStream) throws CoreException
- {
- Document doc = PreferenceUtil.getDocument(inputStream);
-
- LaunchAttributes pdef = new LaunchAttributes();
-
- Element attributesEl = doc.getDocumentElement();
-
- NodeList attributeEls = attributesEl.getElementsByTagName("Attribute"); //$NON-NLS-1$
- for (int i = 0; i < attributeEls.getLength(); i++)
- {
- Element attributeEl = (Element) attributeEls.item(i);
- String name = attributeEl.getAttribute("name"); //$NON-NLS-1$
- String type = attributeEl.getAttribute("type"); //$NON-NLS-1$
- String value = attributeEl.getAttribute("value"); //$NON-NLS-1$
- pdef.addAttribute(new LaunchAttribute(name, type, value));
- }
-
- return pdef;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/LaunchProperties.java b/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/LaunchProperties.java
deleted file mode 100644
index 469614f..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/LaunchProperties.java
+++ /dev/null
@@ -1,90 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.launching;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.HashMap;
-import java.util.Map;
-
-import javax.xml.parsers.ParserConfigurationException;
-import javax.xml.transform.TransformerException;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.wst.xsl.launching.config.PreferenceUtil;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-import org.w3c.dom.NodeList;
-
-public class LaunchProperties
-{
- private final Map<String, String> properties = new HashMap<String, String>();
-
- public Map<String, String> getProperties()
- {
- return properties;
- }
-
- public void setProperty(String name, String value)
- {
- properties.put(name, value);
- }
-
- public String getProperty(String name)
- {
- return properties.get(name);
- }
-
- public void removeProperty(String name)
- {
- properties.remove(name);
- }
-
- public String toXML() throws ParserConfigurationException, IOException, TransformerException
- {
- Document doc = PreferenceUtil.getDocument();
-
- Element propertysEl = doc.createElement("Properties"); //$NON-NLS-1$
- doc.appendChild(propertysEl);
-
- for (Map.Entry<String, String> property : properties.entrySet())
- {
- String name = property.getKey();
- String value = property.getValue();
- Element propertyEl = doc.createElement("Property"); //$NON-NLS-1$
- propertyEl.setAttribute("name", name); //$NON-NLS-1$
- propertyEl.setAttribute("value", value); //$NON-NLS-1$
- propertysEl.appendChild(propertyEl);
- }
-
- return PreferenceUtil.serializeDocument(doc);
- }
-
- public static LaunchProperties fromXML(InputStream inputStream) throws CoreException
- {
- Document doc = PreferenceUtil.getDocument(inputStream);
-
- LaunchProperties pdef = new LaunchProperties();
-
- Element propertysEl = doc.getDocumentElement();
-
- NodeList propertyEls = propertysEl.getElementsByTagName("Property"); //$NON-NLS-1$
- for (int i = 0; i < propertyEls.getLength(); i++)
- {
- Element propertyEl = (Element) propertyEls.item(i);
- String name = propertyEl.getAttribute("name"); //$NON-NLS-1$
- String value = propertyEl.getAttribute("value"); //$NON-NLS-1$
- pdef.setProperty(name, value);
- }
-
- return pdef;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/ProcessorInstall.java b/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/ProcessorInstall.java
deleted file mode 100644
index 6ee8717..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/ProcessorInstall.java
+++ /dev/null
@@ -1,148 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.launching;
-
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.wst.xsl.jaxp.launching.internal.JAXPLaunchingPlugin;
-import org.eclipse.wst.xsl.jaxp.launching.internal.PluginProcessorJar;
-import org.eclipse.wst.xsl.jaxp.launching.internal.Utils;
-
-public class ProcessorInstall implements IProcessorInstall
-{
- private final String id;
- private String name;
- private String type;
- private IProcessorJar[] jars;
- private final boolean contributed;
- private String debuggerId;
- private String supports;
-
- public ProcessorInstall(String id, String label, String typeId, IProcessorJar[] jars, String debuggerId, String supports, boolean contributed)
- {
- this.id = id;
- name = label;
- type = typeId;
- this.debuggerId = debuggerId;
- this.contributed = contributed;
- this.jars = jars;
- this.supports = supports;
- }
-
- public String getId()
- {
- return id;
- }
-
- public String getName()
- {
- return name;
- }
-
- public void setName(String name)
- {
- this.name = name;
- }
-
- public IProcessorJar[] getProcessorJars()
- {
- return jars;
- }
-
- public void setProcessorJars(IProcessorJar[] jars)
- {
- this.jars = jars;
- }
-
- public String getProcessorTypeId()
- {
- return type;
- }
-
- public IProcessorType getProcessorType()
- {
- return JAXPRuntime.getProcessorType(type);
- }
-
- public void setProcessorTypeId(String id)
- {
- type = id;
- }
-
- public boolean isContributed()
- {
- return contributed;
- }
-
- public static IProcessorJar[] createJars(String bundleId, String classpath)
- {
- IProcessorJar[] jars;
- if (classpath == null)
- return new IProcessorJar[0];
- String[] jarstring = classpath.split(";"); //$NON-NLS-1$
- jars = new IProcessorJar[jarstring.length];
- for (int i = 0; i < jarstring.length; i++)
- {
- String jar = jarstring[i];
- try
- {
- if (jar.startsWith("${eclipse_orbit:") && jar.endsWith("}")) //$NON-NLS-1$ //$NON-NLS-2$
- {
- jar = jar.substring("${eclipse_orbit:".length()); //$NON-NLS-1$
- jar = jar.substring(0,jar.length()-1);
- //jar = Utils.getFileLocation(jar,"");
- jars[i] = new PluginProcessorJar(jar, null);
- }
- else
- {
- jar = Utils.getFileLocation(bundleId,jar);
- jars[i] = new PluginProcessorJar(bundleId, new Path(jar));
- }
- }
- catch (CoreException e)
- {
- JAXPLaunchingPlugin.log(e);
- }
- }
- return jars;
- }
-
- public boolean hasDebugger()
- {
- return debuggerId != null;
- }
-
- public boolean supports(String xsltVersion)
- {
- return supports.indexOf(xsltVersion) >= 0;
- }
-
- public String getSupports()
- {
- return supports;
- }
-
- public void setSupports(String supports)
- {
- this.supports = supports;
- }
-
- public IDebugger getDebugger()
- {
- return JAXPRuntime.getDebugger(debuggerId);
- }
-
- public void setDebuggerId(String debuggerId)
- {
- this.debuggerId = debuggerId;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/Attribute.java b/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/Attribute.java
deleted file mode 100644
index b7cacca..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/Attribute.java
+++ /dev/null
@@ -1,85 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.launching.internal;
-
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.wst.xsl.jaxp.launching.IAttribute;
-
-public class Attribute implements IAttribute, Comparable<Object> {
- private final String uri;
- private final String description;
- private final String type;
-
- public Attribute(String uri, String type, String description) {
- this.uri = uri;
- this.type = type;
- this.description = description;
- }
-
- public String getDescription() {
- return description;
- }
-
- public String getType() {
- return type;
- }
-
- public String getURI() {
- return uri;
- }
-
- public IStatus validateValue(String value) {
- IStatus status = null;
- if (TYPE_BOOLEAN.equals(type)) {
- boolean valid = "true".equals(value) || "false".equals(value); //$NON-NLS-1$ //$NON-NLS-2$
- if (!valid)
- status = new Status(IStatus.ERROR,
- JAXPLaunchingPlugin.PLUGIN_ID, 0, Messages.Attribute_2,
- null);
- } else if (TYPE_INT.equals(type)) {
- try {
- Integer.parseInt(value);
- } catch (NumberFormatException e) {
- status = new Status(IStatus.ERROR,
- JAXPLaunchingPlugin.PLUGIN_ID, 0, Messages.Attribute_1,
- null);
- }
- } else if (TYPE_DOUBLE.equals(type)) {
- try {
- Double.parseDouble(value);
- } catch (NumberFormatException e) {
- status = new Status(IStatus.ERROR,
- JAXPLaunchingPlugin.PLUGIN_ID, 0, Messages.Attribute_0,
- null);
- }
- } else if (TYPE_FLOAT.equals(type)) {
- try {
- Float.parseFloat(value);
- } catch (NumberFormatException e) {
- status = new Status(IStatus.ERROR,
- JAXPLaunchingPlugin.PLUGIN_ID, 0, Messages.Attribute_5,
- null);
- }
- } else if (TYPE_CLASS.equals(type) || TYPE_OBJECT.equals(type)) {
- // status = JavaConventions.validateJavaTypeName(value);
- }
- return status;
- }
-
- public int compareTo(Object o) {
- if (o instanceof IAttribute) {
- IAttribute f = (IAttribute) o;
- return f.getURI().compareTo(getURI());
- }
- return 0;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/DebuggerDescriptor.java b/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/DebuggerDescriptor.java
deleted file mode 100644
index 421dc71..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/DebuggerDescriptor.java
+++ /dev/null
@@ -1,67 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.launching.internal;
-
-import org.eclipse.wst.xsl.jaxp.launching.IDebugger;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorType;
-import org.eclipse.wst.xsl.jaxp.launching.JAXPRuntime;
-
-public class DebuggerDescriptor implements IDebugger
-{
- private final String[] classpath;
- private final String id;
- private final String bundleId;
- private final String name;
- private final String processorTypeId;
- private final String className;
- private final String transformerFactory;
-
- public DebuggerDescriptor(String id, String bundleId, String className, String[] classpath, String name, String processorTypeId, String transformerFactory)
- {
- this.id = id;
- this.classpath = classpath;
- this.bundleId = bundleId;
- this.name = name;
- this.processorTypeId = processorTypeId;
- this.className = className;
- this.transformerFactory = transformerFactory;
- }
-
- public String getClassName()
- {
- return className;
- }
-
- public String[] getClassPath()
- {
- return ProcessorInvokerDescriptor.createEntries(bundleId, classpath);
- }
-
- public String getId()
- {
- return id;
- }
-
- public String getName()
- {
- return name;
- }
-
- public IProcessorType getProcessorType()
- {
- return JAXPRuntime.getProcessorType(processorTypeId);
- }
-
- public String getTransformerFactory()
- {
- return transformerFactory;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/FeaturePreferences.java b/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/FeaturePreferences.java
deleted file mode 100644
index 52dc5f9..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/FeaturePreferences.java
+++ /dev/null
@@ -1,122 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.launching.internal;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.HashMap;
-import java.util.Map;
-
-import javax.xml.parsers.ParserConfigurationException;
-import javax.xml.transform.TransformerException;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.wst.xsl.launching.config.PreferenceUtil;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-
-public class FeaturePreferences
-{
- private Map<String, Map<String, String>> typeFeatures;
-
- public Map<String, String> getFeaturesValues(String typeId)
- {
- return typeFeatures.get(typeId);
- }
-
- public void setTypeFeatures(Map<String, Map<String, String>> typeFeatures)
- {
- this.typeFeatures = typeFeatures;
- }
-
- public String getAsXML() throws ParserConfigurationException, IOException, TransformerException
- {
- Document doc = PreferenceUtil.getDocument();
- Element config = doc.createElement("featurePreferences"); //$NON-NLS-1$
- doc.appendChild(config);
-
- for (String typeId : typeFeatures.keySet())
- {
- Element processorTypeElement = typeAsElement(doc, typeId);
- Map<String, String> featureValues = typeFeatures.get(typeId);
- featureValuesAsElement(doc, processorTypeElement, featureValues);
- config.appendChild(processorTypeElement);
- }
-
- // Serialize the Document and return the resulting String
- return PreferenceUtil.serializeDocument(doc);
- }
-
- public static FeaturePreferences fromXML(InputStream inputStream) throws CoreException
- {
- FeaturePreferences prefs = new FeaturePreferences();
-
- // Do the parsing and obtain the top-level node
- Document doc = PreferenceUtil.getDocument(inputStream);
- Element config = doc.getDocumentElement();
-
- Map<String, Map<String, String>> typeFeatures = new HashMap<String, Map<String, String>>();
- Element[] processorTypeEls = PreferenceUtil.getChildElements(config, "processorType"); //$NON-NLS-1$
- for (int i = 0; i < processorTypeEls.length; ++i)
- {
- Element processorTypeEl = processorTypeEls[i];
- String type = elementAsType(processorTypeEl);
- Map<String, String> featureValues = elementAsFeatureValues(processorTypeEl);
- typeFeatures.put(type, featureValues);
- }
-
- prefs.setTypeFeatures(typeFeatures);
-
- return prefs;
- }
-
- private static String elementAsType(Element parent)
- {
- String id = parent.getAttribute("id"); //$NON-NLS-1$
- return id;
- }
-
- private static Element typeAsElement(Document doc, String type)
- {
- Element element = doc.createElement("processorType"); //$NON-NLS-1$
- element.setAttribute("id", type); //$NON-NLS-1$
- return element;
- }
-
- private static Map<String, String> elementAsFeatureValues(Element element)
- {
- Element[] featureEls = PreferenceUtil.getChildElements(element, "feature"); //$NON-NLS-1$
- Map<String, String> featureValues = new HashMap<String, String>(featureEls.length);
- for (Element featureEl : featureEls)
- {
- String uri = featureEl.getAttribute("uri"); //$NON-NLS-1$
- String value = featureEl.getAttribute("value"); //$NON-NLS-1$
- featureValues.put(uri, value);
- }
- return featureValues;
- }
-
- private static void featureValuesAsElement(Document doc, Element featuresEl, Map<String, String> featureValues)
- {
- if (featureValues != null)
- {
- for (Map.Entry<String,String> entry2 : featureValues.entrySet())
- {
- String uri = entry2.getKey();
- String value = entry2.getValue();
- Element element = doc.createElement("feature"); //$NON-NLS-1$
- element.setAttribute("uri", uri); //$NON-NLS-1$
- element.setAttribute("value", value); //$NON-NLS-1$
- featuresEl.appendChild(element);
- }
- }
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/JAXPJavaLaunchConfigurationDelegate.java b/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/JAXPJavaLaunchConfigurationDelegate.java
deleted file mode 100644
index 59a98aa..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/JAXPJavaLaunchConfigurationDelegate.java
+++ /dev/null
@@ -1,471 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.launching.internal;
-
-import java.io.BufferedInputStream;
-import java.io.BufferedOutputStream;
-import java.io.File;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.net.URL;
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.debug.core.DebugPlugin;
-import org.eclipse.debug.core.IBreakpointManager;
-import org.eclipse.debug.core.IDebugEventSetListener;
-import org.eclipse.debug.core.ILaunch;
-import org.eclipse.debug.core.ILaunchConfiguration;
-import org.eclipse.debug.core.ILaunchManager;
-import org.eclipse.debug.core.model.IBreakpoint;
-import org.eclipse.debug.core.model.IDebugTarget;
-import org.eclipse.debug.core.model.ISourceLocator;
-import org.eclipse.debug.core.model.IStackFrame;
-import org.eclipse.jdt.launching.IVMRunner;
-import org.eclipse.jdt.launching.JavaLaunchDelegate;
-import org.eclipse.jface.dialogs.IDialogConstants;
-import org.eclipse.jface.dialogs.MessageDialog;
-import org.eclipse.ui.IWorkbenchWindow;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.wst.xsl.jaxp.launching.IDebugger;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorInstall;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorInvoker;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorJar;
-import org.eclipse.wst.xsl.jaxp.launching.ITransformerFactory;
-import org.eclipse.wst.xsl.jaxp.launching.JAXPLaunchConfigurationConstants;
-import org.eclipse.wst.xsl.jaxp.launching.JAXPRuntime;
-import org.eclipse.wst.xsl.jaxp.launching.model.JAXPDebugTarget;
-import org.eclipse.wst.xsl.launching.model.IXSLConstants;
-
-public class JAXPJavaLaunchConfigurationDelegate extends JavaLaunchDelegate
- implements IDebugEventSetListener {
- private String mode;
- LaunchHelper launchHelper;
-
- @Override
- public synchronized void launch(ILaunchConfiguration configuration,
- final String mode, final ILaunch launch, IProgressMonitor monitor)
- throws CoreException {
- this.mode = mode;
- launchHelper.save(getLaunchConfigFile());
-
- // set the launch name
- IProcessorInstall install = getProcessorInstall(configuration, mode);
- String tfactory = getTransformerFactory(install);
- String name = install.getName();
- if (tfactory != null)
- name += "[" + tfactory + "]"; //$NON-NLS-1$//$NON-NLS-2$
- launch.setAttribute("launchName", name); //$NON-NLS-1$
-
- // the super.launch will add a Java source director if we set it to null
- // here
- final ISourceLocator configuredLocator = launch.getSourceLocator();
- launch.setSourceLocator(null);
-
- super.launch(configuration, mode, launch, monitor);
-
- // now get the java source locator
- final ISourceLocator javaSourceLookupDirector = launch
- .getSourceLocator();
- // now add our own participant to the java director
- launch.setSourceLocator(new ISourceLocator() {
-
- public Object getSourceElement(IStackFrame stackFrame) {
- // simply look at one and then the other
- Object sourceElement = javaSourceLookupDirector
- .getSourceElement(stackFrame);
- if (sourceElement == null)
- sourceElement = configuredLocator
- .getSourceElement(stackFrame);
- return sourceElement;
- }
- });
-
- // IJavaDebugTarget javaTarget =
- // (IJavaDebugTarget)launch.getDebugTarget();
- // launch.removeDebugTarget(javaTarget);
-
- IDebugTarget javaTarget = launch.getDebugTarget();
- IDebugTarget xslTarget = new JAXPDebugTarget(launch, launch
- .getProcesses()[0], launchHelper);
-
- // remove java as the primary target and make xsl the primary target
- launch.removeDebugTarget(javaTarget);
- launch.addDebugTarget(xslTarget);
- // add this here to make java the non-primary target
- // launch.addDebugTarget(javaTarget);
-
- // launch.addDebugTarget(new JavaXSLDebugTarget(launch,
- // launch.getProcesses()[0], launchHelper, javaTarget));
-
- }
-
- /**
- * Get the Java breakpoint and the XSL breakpoints
- */
- @Override
- protected IBreakpoint[] getBreakpoints(ILaunchConfiguration configuration) {
- IBreakpointManager breakpointManager = DebugPlugin.getDefault()
- .getBreakpointManager();
- if (!breakpointManager.isEnabled())
- return null;
-
- IBreakpoint[] javaBreakpoints = super.getBreakpoints(configuration);
- IBreakpoint[] xslBreakpoints = breakpointManager
- .getBreakpoints(IXSLConstants.ID_XSL_DEBUG_MODEL);
- IBreakpoint[] breakpoints = new IBreakpoint[javaBreakpoints.length
- + xslBreakpoints.length];
- System.arraycopy(javaBreakpoints, 0, breakpoints, 0,
- javaBreakpoints.length);
- System.arraycopy(xslBreakpoints, 0, breakpoints,
- javaBreakpoints.length, xslBreakpoints.length);
-
- return breakpoints;
- }
-
- @Override
- public boolean preLaunchCheck(ILaunchConfiguration configuration,
- String mode, IProgressMonitor monitor) throws CoreException {
- this.launchHelper = new LaunchHelper(configuration);
- if (mode.equals(ILaunchManager.DEBUG_MODE)) {
- // TODO don't like having UI code in the launching plugin...where
- // else can it go?
- final IProcessorInstall install = getProcessorInstall(
- configuration, ILaunchManager.RUN_MODE);
- if (install.getDebugger() == null) {
- final boolean[] result = new boolean[] { false };
- // open a dialog for choosing a different install that does have
- // an associated debugger
- PlatformUI.getWorkbench().getDisplay().syncExec(new Runnable() {
- public void run() {
- String debuggingInstallId = JAXPLaunchingPlugin
- .getDefault()
- .getPluginPreferences()
- .getString(
- JAXPLaunchConfigurationConstants.ATTR_DEFAULT_DEBUGGING_INSTALL_ID);
- IProcessorInstall processor = JAXPRuntime
- .getProcessor(debuggingInstallId);
-
- IWorkbenchWindow dw = PlatformUI.getWorkbench()
- .getActiveWorkbenchWindow();
-
- String title = Messages.XSLTLaunchConfigurationDelegate_0;
- String message = Messages.XSLTLaunchConfigurationDelegate_1
- + install.getName()
- + Messages.XSLTLaunchConfigurationDelegate_2
- + Messages.XSLTLaunchConfigurationDelegate_3
- + processor.getName()
- + Messages.XSLTLaunchConfigurationDelegate_4;
-
- MessageDialog dialog = new MessageDialog(dw.getShell(),
- title, null, message, MessageDialog.QUESTION,
- new String[] { IDialogConstants.OK_LABEL,
- IDialogConstants.CANCEL_LABEL }, 0); // yes
- // is
- // the
- // default
-
- result[0] = dialog.open() == 0;
- }
- });
- return result[0];
- } else {
- String debuggerTF = install.getDebugger()
- .getTransformerFactory();
- String installTF = launchHelper.getTransformerFactory() == null ? null
- : launchHelper.getTransformerFactory()
- .getFactoryClass();
- if (!debuggerTF.equals(installTF)) {
- PlatformUI.getWorkbench().getDisplay().syncExec(
- new Runnable() {
- public void run() {
- IWorkbenchWindow dw = PlatformUI
- .getWorkbench()
- .getActiveWorkbenchWindow();
-
- String title = Messages.JAXPJavaLaunchConfigurationDelegate_0;
- String message = install.getName()
- + Messages.JAXPJavaLaunchConfigurationDelegate_1
- + launchHelper
- .getTransformerFactory()
- .getName()
- + Messages.JAXPJavaLaunchConfigurationDelegate_2
- + Messages.JAXPJavaLaunchConfigurationDelegate_3
- + launchHelper
- .getTransformerFactory()
- .getName()
- + Messages.JAXPJavaLaunchConfigurationDelegate_4;
-
- MessageDialog dialog = new MessageDialog(
- dw.getShell(),
- title,
- null,
- message,
- MessageDialog.WARNING,
- new String[] {
- IDialogConstants.OK_LABEL,
- IDialogConstants.CANCEL_LABEL },
- 0); // yes is the default
- dialog.open();
- }
- });
- }
- }
- }
- return super.preLaunchCheck(configuration, mode, monitor);
- }
-
- @Override
- public IVMRunner getVMRunner(ILaunchConfiguration configuration, String mode)
- throws CoreException {
- // comment this out in order to get java debugging as well as XSL
- // debugging
- // if (ILaunchManager.DEBUG_MODE.equals(mode))
- // return super.getVMRunner(configuration, ILaunchManager.RUN_MODE);
- return super.getVMRunner(configuration, mode);
- }
-
- private File getLaunchConfigFile() {
- IPath launchPath = Platform.getStateLocation(
- JAXPLaunchingPlugin.getDefault().getBundle()).append("launch"); //$NON-NLS-1$
- File launchDir = launchPath.toFile();
- if (!launchDir.exists()) {
- launchDir.mkdir();
- }
- File file = new File(launchDir, "launch.xml"); //$NON-NLS-1$
- return file;
- }
-
- @Override
- public IPath getWorkingDirectoryPath(ILaunchConfiguration configuration)
- throws CoreException {
- return launchHelper.getWorkingDir();
- }
-
- private IProcessorInvoker getProcessorInvokerDescriptor(
- ILaunchConfiguration configuration) throws CoreException {
- String invokerId = configuration.getAttribute(
- JAXPLaunchConfigurationConstants.INVOKER_DESCRIPTOR,
- Messages.JAXPJavaLaunchConfigurationDelegate_5);
- return JAXPRuntime.getProcessorInvoker(invokerId);
- }
-
- public static IProcessorInstall getProcessorInstall(
- ILaunchConfiguration configuration, String mode)
- throws CoreException {
- IProcessorInstall install = LaunchHelper
- .getProcessorInstall(configuration);
- if (mode.equals(ILaunchManager.DEBUG_MODE)
- && install.getDebugger() == null) {
- String debuggingInstallId = JAXPLaunchingPlugin
- .getDefault()
- .getPluginPreferences()
- .getString(
- JAXPLaunchConfigurationConstants.ATTR_DEFAULT_DEBUGGING_INSTALL_ID);
- install = JAXPRuntime.getProcessor(debuggingInstallId);
- }
- return install;
- }
-
- @Override
- public String getMainTypeName(ILaunchConfiguration configuration)
- throws CoreException {
- if (ILaunchManager.DEBUG_MODE.equals(mode))
- return "org.eclipse.wst.xsl.jaxp.debug.debugger.DebugRunner"; //$NON-NLS-1$
- return "org.eclipse.wst.xsl.jaxp.debug.invoker.internal.Main"; //$NON-NLS-1$
- }
-
- @Override
- public String getProgramArguments(ILaunchConfiguration configuration)
- throws CoreException {
- // classname, sourceurl, output file
- IProcessorInvoker invoker = getProcessorInvokerDescriptor(configuration);
- String clazz = invoker.getInvokerClassName();
-
- StringBuffer sb = new StringBuffer();
- sb.append(clazz);
- sb.append(" "); //$NON-NLS-1$
- sb.append("\"" + getLaunchConfigFile().getAbsolutePath() + "\""); //$NON-NLS-1$ //$NON-NLS-2$
- sb.append(" "); //$NON-NLS-1$
- sb.append("\"" + launchHelper.getSource() + "\""); //$NON-NLS-1$ //$NON-NLS-2$
- sb.append(" "); //$NON-NLS-1$
- sb.append("\"" + launchHelper.getTarget().getAbsolutePath() + "\""); //$NON-NLS-1$ //$NON-NLS-2$
- if (ILaunchManager.DEBUG_MODE.equals(mode)) {
- IProcessorInstall install = getProcessorInstall(configuration, mode);
- if (install.getDebugger() != null) {
- IDebugger debugger = install.getDebugger();
- String className = debugger.getClassName();
- sb.append(" -debug ").append(className).append(" "); //$NON-NLS-1$ //$NON-NLS-2$
- sb.append(launchHelper.getRequestPort());
- sb.append(" ").append(launchHelper.getEventPort()); //$NON-NLS-1$
- sb.append(" ").append(launchHelper.getGeneratePort()); //$NON-NLS-1$
- }
- }
-
- return sb.toString();
- }
-
- @Override
- public String[] getClasspath(ILaunchConfiguration configuration)
- throws CoreException {
- // get the classpath defined by the user
- String[] userClasspath = super.getClasspath(configuration);
-
- // get the classpath required for the transformation
- IProcessorInvoker invoker = getProcessorInvokerDescriptor(configuration);
- List<String> invokerCP = new ArrayList<String>();
- for (String entry : invoker.getClasspathEntries()) {
- invokerCP.add(entry);
- }
-
- // add the debugger...
- IProcessorInstall install = getProcessorInstall(configuration, mode);
- if (ILaunchManager.DEBUG_MODE.equals(mode)
- && install.getDebugger() != null) {
- String[] jars = install.getDebugger().getClassPath();
- for (String jar : jars) {
- invokerCP.add(jar);
- }
- }
-
- String[] invokerClasspath = invokerCP.toArray(new String[0]);
-
- // add them together
- String[] classpath = new String[userClasspath.length
- + invokerClasspath.length];
- System.arraycopy(invokerClasspath, 0, classpath, 0,
- invokerClasspath.length);
- System.arraycopy(userClasspath, 0, classpath, invokerClasspath.length,
- userClasspath.length);
-
- return classpath;
- }
-
- @Override
- public String getVMArguments(ILaunchConfiguration configuration)
- throws CoreException {
- String vmargs = super.getVMArguments(configuration);
-
- IProcessorInstall install = getProcessorInstall(configuration, mode);
- if (install != null && !install.getProcessorType().isJREDefault()) {
- // clear the endorsed dir
- File tempDir = getEndorsedDir();
- if (tempDir.exists()) {
- File[] children = tempDir.listFiles();
- for (File child : children) {
- child.delete();
- }
- tempDir.delete();
- }
- tempDir.mkdir();
-
- // move the required jars to the endorsed dir
- IProcessorJar[] jars = install.getProcessorJars();
- for (int i = 0; i < jars.length; i++) {
- URL entry = jars[i].asURL();
- if (entry == null)
- throw new CoreException(new Status(IStatus.ERROR,
- JAXPLaunchingPlugin.PLUGIN_ID, IStatus.ERROR,
- Messages.XSLTLaunchConfigurationDelegate_23
- + jars[i], null));
- File file = new File(tempDir, "END_" + i + ".jar"); //$NON-NLS-1$ //$NON-NLS-2$
- moveFile(entry, file);
- }
- // add the endorsed dir
- vmargs += " -Djava.endorsed.dirs=\"" + tempDir.getAbsolutePath() + "\""; //$NON-NLS-1$ //$NON-NLS-2$
-
- String tfactory = getTransformerFactory(install);
- if (tfactory != null)
- vmargs += " -Djavax.xml.transform.TransformerFactory=" + tfactory; //$NON-NLS-1$
-
- // if (ILaunchManager.DEBUG_MODE.equals(mode))
- // {
- // // in debug mode, set the logging to ERROR. This prevents the
- // console from popping up on top of the result view!
- // try
- // {
- // URL url =
- // FileLocator.resolve(FileLocator.find(Platform.getBundle(JAXPLaunchingPlugin.PLUGIN_ID),
- // new Path("/log4j.debug.properties"), null));
- // vmargs += " -Dlog4j.configuration=\""+url.toExternalForm()+"\""; //$NON-NLS-1$
- // }
- // catch (IOException e)
- // {
- // JAXPLaunchingPlugin.log(e);
- // }
- // }
- }
- return vmargs;
- }
-
- private String getTransformerFactory(IProcessorInstall install) {
- String tfactory = null;
- if (ILaunchManager.DEBUG_MODE.equals(mode))
- tfactory = install.getDebugger().getTransformerFactory();
- else {
- ITransformerFactory t = launchHelper.getTransformerFactory();
- if (t != null)
- tfactory = t.getFactoryClass();
- }
- return tfactory;
- }
-
- private File getEndorsedDir() {
- IPath tempLocation = Platform.getStateLocation(
- JAXPLaunchingPlugin.getDefault().getBundle())
- .append("endorsed"); //$NON-NLS-1$
- return tempLocation.toFile();
- }
-
- private static void moveFile(URL src, File target) throws CoreException {
- BufferedOutputStream bos = null;
- BufferedInputStream bis = null;
- try {
- bos = new BufferedOutputStream(new FileOutputStream(target));
- bis = new BufferedInputStream(src.openStream());
- while (bis.available() > 0) {
- int size = bis.available();
- if (size > 1024)
- size = 1024;
- byte[] b = new byte[size];
- bis.read(b, 0, b.length);
- bos.write(b);
- }
- } catch (IOException e) {
- throw new CoreException(new Status(IStatus.ERROR,
- JAXPLaunchingPlugin.PLUGIN_ID, IStatus.ERROR,
- Messages.XSLTLaunchConfigurationDelegate_7 + src
- + Messages.XSLTLaunchConfigurationDelegate_31
- + target, e));
- } finally {
- if (bis != null) {
- try {
- bis.close();
- } catch (IOException e) {
- JAXPLaunchingPlugin.log(e);
- }
- }
- if (bos != null) {
- try {
- bos.close();
- } catch (IOException e) {
- JAXPLaunchingPlugin.log(e);
- }
- }
- }
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/JAXPLaunchingPlugin.java b/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/JAXPLaunchingPlugin.java
deleted file mode 100644
index 3896bc6..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/JAXPLaunchingPlugin.java
+++ /dev/null
@@ -1,64 +0,0 @@
-package org.eclipse.wst.xsl.jaxp.launching.internal;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Plugin;
-import org.eclipse.core.runtime.Status;
-import org.osgi.framework.BundleContext;
-
-/**
- * The activator class controls the plug-in life cycle
- */
-public class JAXPLaunchingPlugin extends Plugin {
-
- // The plug-in ID
- public static final String PLUGIN_ID = "org.eclipse.wst.xsl.jaxp.launching"; //$NON-NLS-1$
-
- // The shared instance
- private static JAXPLaunchingPlugin plugin;
-
- /**
- * The constructor
- */
- public JAXPLaunchingPlugin() {
- }
-
- /*
- * (non-Javadoc)
- * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
- */
- @Override
- 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)
- */
- @Override
- public void stop(BundleContext context) throws Exception {
- plugin = null;
- super.stop(context);
- }
-
- /**
- * Returns the shared instance
- *
- * @return the shared instance
- */
- public static JAXPLaunchingPlugin getDefault() {
- return plugin;
- }
-
- public static void log(Exception e)
- {
- getDefault().getLog().log(new Status(IStatus.ERROR, PLUGIN_ID, 0, "", e)); //$NON-NLS-1$
- }
-
- public static void log(CoreException e)
- {
- getDefault().getLog().log(e.getStatus());
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/LaunchHelper.java b/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/LaunchHelper.java
deleted file mode 100644
index 3dc9dea..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/LaunchHelper.java
+++ /dev/null
@@ -1,239 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.launching.internal;
-
-import java.io.BufferedWriter;
-import java.io.ByteArrayInputStream;
-import java.io.File;
-import java.io.FileNotFoundException;
-import java.io.FileWriter;
-import java.io.IOException;
-import java.net.URL;
-import java.util.Iterator;
-import java.util.Map;
-
-import javax.xml.parsers.ParserConfigurationException;
-import javax.xml.transform.TransformerException;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.debug.core.ILaunchConfiguration;
-import org.eclipse.wst.xsl.jaxp.debug.invoker.PipelineDefinition;
-import org.eclipse.wst.xsl.jaxp.debug.invoker.TransformDefinition;
-import org.eclipse.wst.xsl.jaxp.debug.invoker.TypedValue;
-import org.eclipse.wst.xsl.jaxp.launching.IAttribute;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorInstall;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorType;
-import org.eclipse.wst.xsl.jaxp.launching.ITransformerFactory;
-import org.eclipse.wst.xsl.jaxp.launching.JAXPLaunchConfigurationConstants;
-import org.eclipse.wst.xsl.jaxp.launching.JAXPRuntime;
-import org.eclipse.wst.xsl.jaxp.launching.LaunchAttributes;
-import org.eclipse.wst.xsl.jaxp.launching.LaunchProperties;
-import org.eclipse.wst.xsl.launching.config.BaseLaunchHelper;
-import org.eclipse.wst.xsl.launching.config.LaunchAttribute;
-import org.eclipse.wst.xsl.launching.config.LaunchTransform;
-import org.eclipse.wst.xsl.launching.config.PreferenceUtil;
-import org.w3c.dom.Document;
-
-public class LaunchHelper extends BaseLaunchHelper {
- private final LaunchAttributes attributes;
- private final LaunchProperties outputProperties;
- private final ITransformerFactory transformerFactory;
-
- public LaunchHelper(ILaunchConfiguration configuration)
- throws CoreException {
- super(configuration);
- attributes = hydrateAttributes(configuration);
- outputProperties = hydrateOutputProperties(configuration);
- transformerFactory = hydrateTransformerFactory(configuration);
- }
-
- public LaunchProperties getProperties() {
- return outputProperties;
- }
-
- public LaunchAttributes getAttributes() {
- return attributes;
- }
-
- public void save(File file) throws CoreException {
- BufferedWriter writer = null;
- try {
- // ensure it exists
- file.createNewFile();
- writer = new BufferedWriter(new FileWriter(file));
- PipelineDefinition pdef = new PipelineDefinition();
- for (Iterator<?> iter = attributes.getAttributes().iterator(); iter
- .hasNext();) {
- LaunchAttribute att = (LaunchAttribute) iter.next();
- pdef.addAttribute(new TypedValue(att.uri,
- TypedValue.TYPE_STRING, att.value));
- }
- for (Iterator<?> iter = pipeline.getTransformDefs().iterator(); iter
- .hasNext();) {
- LaunchTransform lt = (LaunchTransform) iter.next();
- TransformDefinition tdef = new TransformDefinition();
- URL url = pathToURL(lt.getLocation());
- tdef.setStylesheetURL(url.toExternalForm());
- tdef.setResolverClass(lt.getResolver());
- for (Iterator<?> iterator = lt.getParameters().iterator(); iterator
- .hasNext();) {
- LaunchAttribute att = (LaunchAttribute) iterator.next();
- tdef.addParameter(new TypedValue(att.uri,
- TypedValue.TYPE_STRING, att.getResolvedValue()));
- }
- // set the output props for the LAST transform only
- if (!iter.hasNext()) {
- for (Map.Entry<String, String> entry : outputProperties
- .getProperties().entrySet()) {
- String name = entry.getKey();
- String value = entry.getValue();
- if (name != null && value != null)
- tdef.setOutputProperty(name, value);
- }
- }
- pdef.addTransformDef(tdef);
- }
-
- Document doc = pdef.toXML();
- String s = PreferenceUtil.serializeDocument(doc);
- writer.write(s);
- } catch (FileNotFoundException e) {
- throw new CoreException(new Status(IStatus.ERROR,
- JAXPLaunchingPlugin.PLUGIN_ID, IStatus.ERROR,
- Messages.LaunchHelper_0, e));
- } catch (IOException e) {
- throw new CoreException(new Status(IStatus.ERROR,
- JAXPLaunchingPlugin.PLUGIN_ID, IStatus.ERROR,
- Messages.LaunchHelper_1, e));
- } catch (ParserConfigurationException e) {
- throw new CoreException(new Status(IStatus.ERROR,
- JAXPLaunchingPlugin.PLUGIN_ID, IStatus.ERROR,
- "ParserConfigurationException", e)); //$NON-NLS-1$
- } catch (TransformerException e) {
- throw new CoreException(new Status(IStatus.ERROR,
- JAXPLaunchingPlugin.PLUGIN_ID, IStatus.ERROR,
- "TransformerException", e)); //$NON-NLS-1$
- } finally {
- if (writer != null) {
- try {
- writer.close();
- } catch (IOException e) {
- JAXPLaunchingPlugin.log(e);
- }
- }
- }
- }
-
- public static LaunchProperties hydrateOutputProperties(
- ILaunchConfiguration configuration) throws CoreException {
- LaunchProperties properties = new LaunchProperties();
- boolean usePreferenceProperties = false; // configuration.getAttribute(JAXPLaunchConfigurationConstants.ATTR_USE_PROPERTIES_FROM_PREFERENCES,
- // true);
- IProcessorType pt = getProcessorInstall(configuration)
- .getProcessorType();
- if (usePreferenceProperties) {
- for (Map.Entry<String, String> entry : pt.getOutputPropertyValues()
- .entrySet()) {
- String name = entry.getKey();
- String value = entry.getValue();
- properties.setProperty(name, value);
- }
- } else {
- String s = configuration.getAttribute(
- JAXPLaunchConfigurationConstants.ATTR_OUTPUT_PROPERTIES,
- (String) null);
- if (s != null && s.length() > 0) {
- ByteArrayInputStream inputStream = new ByteArrayInputStream(s
- .getBytes());
- properties = LaunchProperties.fromXML(inputStream);
- }
- }
- return properties;
- }
-
- private static LaunchAttributes hydrateAttributes(
- ILaunchConfiguration configuration) throws CoreException {
- LaunchAttributes attributes = new LaunchAttributes();
- boolean useDefaultAttributes = false; // configuration.getAttribute(JAXPLaunchConfigurationConstants.ATTR_USE_FEATURES_FROM_PREFERENCES,
- // true);
- if (useDefaultAttributes) {
- IProcessorType pt = getProcessorInstall(configuration)
- .getProcessorType();
- Map<String, String> fvals = pt.getAttributeValues();
- for (Map.Entry<String, String> entry : fvals.entrySet()) {
- String uri = entry.getKey();
- getAttribute(pt.getAttributes(), uri);
- attributes.addAttribute(new LaunchAttribute(uri,
- "string", entry.getValue())); //$NON-NLS-1$
- }
- } else {
- String s = configuration.getAttribute(
- JAXPLaunchConfigurationConstants.ATTR_ATTRIBUTES,
- (String) null);
- if (s != null && s.length() > 0) {
- ByteArrayInputStream inputStream = new ByteArrayInputStream(s
- .getBytes());
- attributes = LaunchAttributes.fromXML(inputStream);
- }
- }
- return attributes;
- }
-
- private static IAttribute getAttribute(IAttribute[] attributes, String uri) {
- for (IAttribute attribute : attributes) {
- if (attribute.getURI().equals(uri))
- return attribute;
- }
- return null;
- }
-
- public static IProcessorInstall getProcessorInstall(
- ILaunchConfiguration configuration) throws CoreException {
- boolean useDefaultProcessor = configuration.getAttribute(
- JAXPLaunchConfigurationConstants.ATTR_USE_DEFAULT_PROCESSOR,
- true);
- if (useDefaultProcessor)
- return JAXPRuntime.getDefaultProcessor();
- String processorId = configuration.getAttribute(
- JAXPLaunchConfigurationConstants.ATTR_PROCESSOR, ""); //$NON-NLS-1$
- IProcessorInstall processor = JAXPRuntime.getProcessor(processorId);
- return processor;
- }
-
- private static ITransformerFactory hydrateTransformerFactory(
- ILaunchConfiguration configuration) throws CoreException {
- IProcessorType type = getProcessorInstall(configuration)
- .getProcessorType();
- boolean useDefaultFactory = configuration.getAttribute(
- JAXPLaunchConfigurationConstants.ATTR_USE_DEFAULT_PROCESSOR,
- true);
- if (useDefaultFactory)
- return type.getDefaultTransformerFactory();
-
- String factoryId = configuration.getAttribute(
- JAXPLaunchConfigurationConstants.ATTR_TRANSFORMER_FACTORY,
- (String) null);
- if (factoryId == null)
- return null;
-
- for (ITransformerFactory factory : type.getTransformerFactories()) {
- if (factory.getFactoryClass().equals(factoryId))
- return factory;
- }
- return null;
- }
-
- public ITransformerFactory getTransformerFactory() {
- return transformerFactory;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/Messages.java b/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/Messages.java
deleted file mode 100644
index 1304051..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/Messages.java
+++ /dev/null
@@ -1,73 +0,0 @@
-package org.eclipse.wst.xsl.jaxp.launching.internal;
-
-import org.eclipse.osgi.util.NLS;
-
-public class Messages extends NLS {
- private static final String BUNDLE_NAME = "org.eclipse.wst.xsl.jaxp.launching.internal.messages"; //$NON-NLS-1$
-
- public static String XSLTRuntime_10;
- public static String XSLTRuntime_5;
- public static String XSLTRuntime_6;
- public static String XSLTRuntime_7;
- public static String XSLTRuntime_8;
- public static String XSLTRuntime_9;
-
- public static String Attribute_0;
- public static String Attribute_1;
- public static String Attribute_2;
- public static String Attribute_5;
- public static String PluginProcessorJar_0;
- public static String ProcessorType_2;
- public static String ProcessorType_3;
- public static String ProcessorType_4;
- public static String ProcessorType_5;
- public static String Utils_0;
- public static String Utils_1;
- public static String XSLTLaunchConfigurationDelegate_0;
- public static String XSLTLaunchConfigurationDelegate_1;
- public static String XSLTLaunchConfigurationDelegate_2;
- public static String XSLTLaunchConfigurationDelegate_23;
- public static String XSLTLaunchConfigurationDelegate_3;
- public static String XSLTLaunchConfigurationDelegate_31;
- public static String XSLTLaunchConfigurationDelegate_4;
- public static String XSLTLaunchConfigurationDelegate_5;
- public static String XSLTLaunchConfigurationDelegate_6;
- public static String XSLTLaunchConfigurationDelegate_7;
-
- public static String AbstractRegistryReader_3;
- public static String AbstractRegistryReader_5;
- public static String AbstractRegistryReader_6;
- public static String AbstractRegistryReader_7;
- public static String AbstractRegistryReader_8;
- public static String AbstractRegistryReader_9;
-
- public static String JAXPJavaLaunchConfigurationDelegate_0;
-
- public static String JAXPJavaLaunchConfigurationDelegate_1;
-
- public static String JAXPJavaLaunchConfigurationDelegate_2;
-
- public static String JAXPJavaLaunchConfigurationDelegate_3;
-
- public static String JAXPJavaLaunchConfigurationDelegate_4;
-
- public static String JAXPJavaLaunchConfigurationDelegate_5;
- public static String LaunchHelper_0;
- public static String LaunchHelper_1;
-
- public static String XSLDebugTarget_0;
- public static String XSLDebugTarget_1;
- public static String XSLDebugTarget_19;
- public static String XSLDebugTarget_2;
- public static String XSLDebugTarget_20;
- public static String XSLDebugTarget_3;
- public static String XSLDebugTarget_4;
-
- private Messages() {
- }
-
- static {
- NLS.initializeMessages(BUNDLE_NAME, Messages.class);
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/OutputProperty.java b/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/OutputProperty.java
deleted file mode 100644
index c00c96f..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/OutputProperty.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.launching.internal;
-
-import org.eclipse.wst.xsl.jaxp.launching.IOutputProperty;
-
-public class OutputProperty implements IOutputProperty
-{
- private final String name;
- private final String desc;
-
- public OutputProperty(String key, String desc)
- {
- this.name = key;
- this.desc = desc;
- }
-
- public String getDescription()
- {
- return desc;
- }
-
- public String getURI()
- {
- return name;
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/OutputPropertyPreferences.java b/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/OutputPropertyPreferences.java
deleted file mode 100644
index 4073133..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/OutputPropertyPreferences.java
+++ /dev/null
@@ -1,119 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.launching.internal;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.HashMap;
-import java.util.Map;
-
-import javax.xml.parsers.ParserConfigurationException;
-import javax.xml.transform.TransformerException;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.wst.xsl.launching.config.PreferenceUtil;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-
-public class OutputPropertyPreferences
-{
- private final Map<String, Map<String,String>> typeProperties = new HashMap<String, Map<String,String>>();
-
- public Map<String,String> getOutputPropertyValues(String typeId)
- {
- return typeProperties.get(typeId);
- }
-
- public void setOutputPropertyValues(String typeId, Map<String,String> properties)
- {
- typeProperties.put(typeId, properties);
- }
-
- public String getAsXML() throws ParserConfigurationException, IOException, TransformerException
- {
- Document doc = PreferenceUtil.getDocument();
- Element config = doc.createElement("outputPropertyPreferences"); //$NON-NLS-1$
- doc.appendChild(config);
-
- for (String type : typeProperties.keySet())
- {
- Element processorTypeElement = typeAsElement(doc, type);
- Map<String,String> propertyValues = typeProperties.get(type);
- featureValuesAsElement(doc, processorTypeElement, propertyValues);
- config.appendChild(processorTypeElement);
- }
-
- // Serialize the Document and return the resulting String
- return PreferenceUtil.serializeDocument(doc);
- }
-
- public static OutputPropertyPreferences fromXML(InputStream inputStream) throws CoreException
- {
- OutputPropertyPreferences prefs = new OutputPropertyPreferences();
-
- // Do the parsing and obtain the top-level node
- Document doc = PreferenceUtil.getDocument(inputStream);
- Element config = doc.getDocumentElement();
-
- Element[] processorTypeEls = PreferenceUtil.getChildElements(config, "processorType"); //$NON-NLS-1$
- for (int i = 0; i < processorTypeEls.length; ++i)
- {
- Element processorTypeEl = processorTypeEls[i];
- String type = elementAsType(processorTypeEl);
- Map<String,String> featureValues = elementAsPropertyValues(processorTypeEl);
- prefs.setOutputPropertyValues(type, featureValues);
- }
-
- return prefs;
- }
-
- private static String elementAsType(Element parent)
- {
- String id = parent.getAttribute("id"); //$NON-NLS-1$
- return id;
- }
-
- private static Element typeAsElement(Document doc, String type)
- {
- Element element = doc.createElement("processorType"); //$NON-NLS-1$
- element.setAttribute("id", type); //$NON-NLS-1$
- return element;
- }
-
- private static Map<String, String> elementAsPropertyValues(Element element)
- {
- Element[] propertyEls = PreferenceUtil.getChildElements(element, "property"); //$NON-NLS-1$
- Map<String, String> propertyValues = new HashMap<String,String>();
- for (Element featureEl : propertyEls)
- {
- String name = featureEl.getAttribute("name"); //$NON-NLS-1$
- String value = featureEl.getAttribute("value"); //$NON-NLS-1$
- propertyValues.put(name, value);
- }
- return propertyValues;
- }
-
- private static void featureValuesAsElement(Document doc, Element featuresEl, Map<String, String> propertyValues)
- {
- if (propertyValues != null)
- {
- for (Map.Entry<String, String> entry : propertyValues.entrySet())
- {
- String name = entry.getKey();
- String value = entry.getValue();
- Element element = doc.createElement("property"); //$NON-NLS-1$
- element.setAttribute("name", name); //$NON-NLS-1$
- element.setAttribute("value", value); //$NON-NLS-1$
- featuresEl.appendChild(element);
- }
- }
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/PluginProcessorJar.java b/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/PluginProcessorJar.java
deleted file mode 100644
index f6ce3ff..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/PluginProcessorJar.java
+++ /dev/null
@@ -1,78 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.launching.internal;
-
-import java.io.IOException;
-import java.net.URL;
-
-import org.eclipse.core.runtime.FileLocator;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorJar;
-import org.osgi.framework.Bundle;
-
-public class PluginProcessorJar implements IProcessorJar
-{
- private final String pluginId;
- private final IPath path;
-
- public PluginProcessorJar(String pluginId, IPath path)
- {
- this.pluginId = pluginId;
- this.path = path;
- }
-
- public URL asURL()
- {
- URL url = null;
- try
- {
- // FIXME very clumsy way to get location orbit jar file
- // There is surely a better way, but I can'd find it.
- if (path == null)
- {
- url = Platform.getBundle(pluginId).getEntry("/"); //$NON-NLS-1$
- url = FileLocator.resolve(url);
- String s = url.getPath();
- if (s.endsWith("!/")) //$NON-NLS-1$
- {
- s = s.substring(0,s.length()-2);
- }
- url = new URL(s);
- }
- else
- {
- Bundle bundle = Platform.getBundle(pluginId);
- IPath jarPath = new Path("/" + path); //$NON-NLS-1$
- url = FileLocator.find(bundle, jarPath, null);
- if (url != null)
- url = FileLocator.resolve(url);
- }
- }
- catch (IOException e)
- {
- JAXPLaunchingPlugin.log(e);
- }
- return url;
- }
-
- public IPath getPath()
- {
- return path;
- }
-
- @Override
- public String toString()
- {
- return "Plugin " + pluginId + Messages.PluginProcessorJar_0 + path; //$NON-NLS-1$
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/PreferenceInitializer.java b/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/PreferenceInitializer.java
deleted file mode 100644
index 0bf1bca..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/PreferenceInitializer.java
+++ /dev/null
@@ -1,67 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.launching.internal;
-
-import java.io.IOException;
-
-import javax.xml.parsers.ParserConfigurationException;
-import javax.xml.transform.TransformerException;
-
-import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
-import org.eclipse.core.runtime.preferences.DefaultScope;
-import org.eclipse.core.runtime.preferences.IEclipsePreferences;
-import org.eclipse.wst.xsl.jaxp.launching.JAXPLaunchConfigurationConstants;
-import org.eclipse.wst.xsl.jaxp.launching.JAXPRuntime;
-
-/**
- * Class used to initialize default preference values.
- */
-public class PreferenceInitializer extends AbstractPreferenceInitializer
-{
-
- @Override
- public void initializeDefaultPreferences()
- {
- IEclipsePreferences node = new DefaultScope().getNode(JAXPLaunchingPlugin.PLUGIN_ID);
-
- ProcessorPreferences prefs = new ProcessorPreferences();
- prefs.setDefaultProcessorId(JAXPRuntime.JRE_DEFAULT_PROCESSOR_ID);
-
- OutputPropertyPreferences outputPrefs = new OutputPropertyPreferences();
- outputPrefs.setOutputPropertyValues(JAXPRuntime.JRE_DEFAULT_PROCESSOR_TYPE_ID, JAXPRuntime.createDefaultOutputProperties(JAXPRuntime.JRE_DEFAULT_PROCESSOR_TYPE_ID));
- outputPrefs.setOutputPropertyValues(JAXPLaunchConfigurationConstants.XALAN_TYPE_ID, JAXPRuntime.createDefaultOutputProperties(JAXPLaunchConfigurationConstants.XALAN_TYPE_ID));
- outputPrefs.setOutputPropertyValues(JAXPLaunchConfigurationConstants.SAXON_TYPE_ID, JAXPRuntime.createDefaultOutputProperties(JAXPLaunchConfigurationConstants.SAXON_TYPE_ID));
- outputPrefs.setOutputPropertyValues(JAXPLaunchConfigurationConstants.SAXON_1_0_TYPE_ID, JAXPRuntime.createDefaultOutputProperties(JAXPLaunchConfigurationConstants.SAXON_1_0_TYPE_ID));
-
- try
- {
- String xml = prefs.getAsXML();
- node.put(JAXPRuntime.PREF_PROCESSOR_XML, xml);
-
- xml = outputPrefs.getAsXML();
- node.put(JAXPRuntime.PREF_OUTPUT_PROPERTIES_XML, xml);
-
- node.put(JAXPLaunchConfigurationConstants.ATTR_DEFAULT_DEBUGGING_INSTALL_ID, "org.eclipse.wst.xsl.launching.xalan.processor"); //$NON-NLS-1$
- }
- catch (ParserConfigurationException e)
- {
- JAXPLaunchingPlugin.log(e);
- }
- catch (IOException e)
- {
- JAXPLaunchingPlugin.log(e);
- }
- catch (TransformerException e)
- {
- JAXPLaunchingPlugin.log(e);
- }
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/ProcessorInvokerDescriptor.java b/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/ProcessorInvokerDescriptor.java
deleted file mode 100644
index 038fa9e..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/ProcessorInvokerDescriptor.java
+++ /dev/null
@@ -1,85 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.launching.internal;
-
-import java.io.File;
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.FileLocator;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorInvoker;
-
-public class ProcessorInvokerDescriptor implements IProcessorInvoker {
-
- private final String invokerClass;
- private final String[] classpath;
- private final String id;
- private final String bundleId;
-
- public ProcessorInvokerDescriptor(String id, String bundleId,
- String invokerClass, String[] classpath) {
- this.id = id;
- this.bundleId = bundleId;
- this.invokerClass = invokerClass;
- this.classpath = classpath;
- }
-
- public String[] getClasspathEntries() {
- return createEntries(bundleId, classpath);
- }
-
- public static String[] createEntries(String bundleId, String[] classpath) {
- List<String> entries = new ArrayList<String>();
- try {
- // if in dev mode, use the bin dir
- if (Platform.inDevelopmentMode())
- entries.add(Utils.getFileLocation(bundleId, "/bin")); //$NON-NLS-1$
- for (String jar : classpath) {
- String entry = null;
- if (jar.startsWith("${eclipse_orbit:") && jar.endsWith("}")) //$NON-NLS-1$ //$NON-NLS-2$
- {
- jar = jar.substring("${eclipse_orbit:".length()); //$NON-NLS-1$
- jar = jar.substring(0, jar.length() - 1);
- try {
- File bundleFile = FileLocator.getBundleFile(Platform
- .getBundle(jar));
- if (bundleFile.isDirectory())
- entry = Utils.getPluginLocation(jar) + "/bin"; //$NON-NLS-1$
- else
- entry = Utils.getPluginLocation(jar);
- } catch (IOException e) {
- }
- } else {
- entry = Utils.getFileLocation(bundleId, jar);
- }
- if (entry != null)
- entries.add(entry);
- }
- } catch (CoreException e) {
- JAXPLaunchingPlugin.log(e);
- }
- return entries.toArray(new String[0]);
- }
-
- /**
- * The name of the class that implements IProcessorInvoker
- */
- public String getInvokerClassName() {
- return invokerClass;
- }
-
- public String getId() {
- return id;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/ProcessorJar.java b/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/ProcessorJar.java
deleted file mode 100644
index d43d9cb..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/ProcessorJar.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.launching.internal;
-
-import java.io.File;
-import java.net.MalformedURLException;
-import java.net.URL;
-
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorJar;
-
-public class ProcessorJar implements IProcessorJar {
- private final IPath path;
-
- public ProcessorJar(IPath path) {
- this.path = path;
- }
-
- public URL asURL() {
- URL url = null;
- try {
- // first try to resolve as workspace-relative path
- IPath rootPath = ResourcesPlugin.getWorkspace().getRoot()
- .getLocation();
- File file = new File(rootPath.append(path).toOSString());
- if (file.exists())
- url = file.toURI().toURL();
- else {
- // now try to resolve as an absolute path
- file = new File(path.toOSString());
- url = file.toURI().toURL();
- }
- } catch (MalformedURLException e) {
- JAXPLaunchingPlugin.log(e);
- }
- return url;
- }
-
- public IPath getPath() {
- return path;
- }
-
- @Override
- public String toString() {
- return path.toString();
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/ProcessorPreferences.java b/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/ProcessorPreferences.java
deleted file mode 100644
index 6dc12b1..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/ProcessorPreferences.java
+++ /dev/null
@@ -1,169 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.launching.internal;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-import javax.xml.parsers.ParserConfigurationException;
-import javax.xml.transform.TransformerException;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorInstall;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorJar;
-import org.eclipse.wst.xsl.jaxp.launching.ProcessorInstall;
-import org.eclipse.wst.xsl.launching.config.PreferenceUtil;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-import org.w3c.dom.Node;
-import org.w3c.dom.Text;
-
-public class ProcessorPreferences
-{
- private String defaultProcessorId;
- private List<IProcessorInstall> processors = new ArrayList<IProcessorInstall>();
-
- public void setProcessors(List<IProcessorInstall> processors)
- {
- this.processors = processors;
- }
-
- public List<IProcessorInstall> getProcessors()
- {
- return processors;
- }
-
- public String getDefaultProcessorId()
- {
- return defaultProcessorId;
- }
-
- public void setDefaultProcessorId(String defaultProcessorId)
- {
- this.defaultProcessorId = defaultProcessorId;
- }
-
- public String getAsXML() throws ParserConfigurationException, IOException, TransformerException
- {
- Document doc = PreferenceUtil.getDocument();
- Element config = doc.createElement("processorSettings"); //$NON-NLS-1$
- doc.appendChild(config);
-
- // Set the defaultVM attribute on the top-level node
- if (defaultProcessorId != null)
- {
- config.setAttribute("defaultProcessor", defaultProcessorId); //$NON-NLS-1$
- }
-
- for (Iterator<IProcessorInstall> iter = processors.iterator(); iter.hasNext();)
- {
- IProcessorInstall install = iter.next();
- if (!install.isContributed())
- {
- Element vmTypeElement = installAsElement(doc, install);
- config.appendChild(vmTypeElement);
- }
- }
-
- // Serialize the Document and return the resulting String
- return PreferenceUtil.serializeDocument(doc);
- }
-
- public static ProcessorPreferences fromXML(InputStream inputStream) throws CoreException
- {
- ProcessorPreferences prefs = new ProcessorPreferences();
-
- Document doc = PreferenceUtil.getDocument(inputStream);
- Element config = doc.getDocumentElement();
-
- // Populate the default VM-related fields
- prefs.setDefaultProcessorId(config.getAttribute("defaultProcessor")); //$NON-NLS-1$
-
- List<IProcessorInstall> processors = new ArrayList<IProcessorInstall>();
- // Traverse the parsed structure and populate the VMType to VM Map
- Element[] processorEls = PreferenceUtil.getChildElements(config, "processor"); //$NON-NLS-1$
- for (int i = 0; i < processorEls.length; ++i)
- {
- IProcessorInstall processor = elementAsInstall(processorEls[i]);
- processors.add(processor);
- }
-
- prefs.setProcessors(processors);
-
- return prefs;
- }
-
- private static IProcessorInstall elementAsInstall(Element parent)
- {
- String id = parent.getAttribute("id"); //$NON-NLS-1$
- String label = parent.getAttribute("label"); //$NON-NLS-1$
- String typeId = parent.getAttribute("type"); //$NON-NLS-1$
- String supports = parent.getAttribute("supports"); //$NON-NLS-1$
- String debuggerId = parent.getAttribute("debuggerId"); //$NON-NLS-1$
-
- IProcessorJar[] jars = null;
- Element[] jarsEls = PreferenceUtil.getChildElements(parent, "jars"); //$NON-NLS-1$
- if (jarsEls.length == 1)
- {
- jars = elementAsJars(jarsEls[0]);
- }
- IProcessorInstall install = new ProcessorInstall(id, label, typeId, jars, debuggerId, supports, false);
- return install;
- }
-
- private static Element installAsElement(Document doc, IProcessorInstall install)
- {
- Element element = doc.createElement("processor"); //$NON-NLS-1$
- element.setAttribute("id", install.getId()); //$NON-NLS-1$
- element.setAttribute("label", install.getName()); //$NON-NLS-1$
- element.setAttribute("type", install.getProcessorType().getId()); //$NON-NLS-1$
- element.setAttribute("supports", install.getSupports()); //$NON-NLS-1$
- element.setAttribute("debuggerId", install.getDebugger() != null ? install.getDebugger().getId() : null); //$NON-NLS-1$
- element.appendChild(jarsAsElement(doc, install.getProcessorJars()));
- return element;
- }
-
- private static IProcessorJar[] elementAsJars(Element element)
- {
- Element[] jarEls = PreferenceUtil.getChildElements(element, "jar"); //$NON-NLS-1$
- List<ProcessorJar> jars = new ArrayList<ProcessorJar>(jarEls.length);
- for (Element jarEl : jarEls)
- {
- Node node = jarEl.getFirstChild();
- if (node != null && node.getNodeType() == Node.TEXT_NODE)
- {
- String path = ((Text) node).getNodeValue();
- jars.add(new ProcessorJar(Path.fromPortableString(path)));
- }
- }
- return jars.toArray(new IProcessorJar[0]);
- }
-
- private static Element jarsAsElement(Document doc, IProcessorJar[] jars)
- {
- Element jarsEl = doc.createElement("jars"); //$NON-NLS-1$
- for (IProcessorJar jar : jars)
- {
- if (jar != null && jar.getPath() != null)
- {
- Element jarEl = doc.createElement("jar"); //$NON-NLS-1$
- Text text = doc.createTextNode(jar.getPath().toPortableString());
- jarEl.appendChild(text);
- jarsEl.appendChild(jarEl);
- }
- }
- return jarsEl;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/ProcessorType.java b/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/ProcessorType.java
deleted file mode 100644
index cbbc5a8..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/ProcessorType.java
+++ /dev/null
@@ -1,192 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.launching.internal;
-
-import java.io.BufferedInputStream;
-import java.io.IOException;
-import java.net.URL;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.List;
-import java.util.Map;
-import java.util.Properties;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.wst.xsl.jaxp.launching.IAttribute;
-import org.eclipse.wst.xsl.jaxp.launching.IOutputProperty;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorType;
-import org.eclipse.wst.xsl.jaxp.launching.ITransformerFactory;
-import org.eclipse.wst.xsl.jaxp.launching.JAXPRuntime;
-
-public class ProcessorType implements IProcessorType {
- private static final String DESC_SUFFIX = ".DESC"; //$NON-NLS-1$
- private static final String TYPE_SUFFIX = ".TYPE"; //$NON-NLS-1$
-
- private final String id;
- private final String name;
- private final ITransformerFactory[] transformerFactories;
- private final URL attributePropertiesURL;
- private final URL outputPropertiesURL;
-
- private IAttribute[] attributes;
- private IOutputProperty[] outputProperties;
- private Map<String, String> outputPropertyValues;
- private Map<String, String> attributeValues;
-
- public ProcessorType(String id, String name, URL attributePropertiesURL,
- URL outputPropertiesURL, Map<String, String> attributeValues,
- Map<String, String> outputPropertyValues,
- ITransformerFactory[] transformerFactories) {
- this.id = id;
- this.name = name;
- this.attributePropertiesURL = attributePropertiesURL;
- this.outputPropertiesURL = outputPropertiesURL;
- this.attributeValues = attributeValues;
- this.transformerFactories = transformerFactories;
- this.outputPropertyValues = outputPropertyValues;
- }
-
- public String getId() {
- return id;
- }
-
- public String getLabel() {
- return name;
- }
-
- public Map<String, String> getAttributeValues() {
- return attributeValues;
- }
-
- public IAttribute[] getAttributes() {
- if (attributes == null) {
- if (attributePropertiesURL != null)
- attributes = loadAttributes();
- else
- attributes = new IAttribute[0];
- }
- return attributes;
- }
-
- public Map<String, String> getOutputPropertyValues() {
- return outputPropertyValues;
- }
-
- public boolean isJREDefault() {
- return JAXPRuntime.JRE_DEFAULT_PROCESSOR_TYPE_ID.equals(id);
- }
-
- public ITransformerFactory[] getTransformerFactories() {
- return transformerFactories;
- }
-
- public ITransformerFactory getDefaultTransformerFactory() {
- if (transformerFactories.length > 0)
- return transformerFactories[0];
- return null;
- }
-
- public IOutputProperty[] getOutputProperties() {
- if (outputProperties == null) {
- if (outputPropertiesURL != null)
- outputProperties = loadOutputProperties();
- else
- outputProperties = new IOutputProperty[0];
- }
- return outputProperties;
- }
-
- private IOutputProperty[] loadOutputProperties() {
- BufferedInputStream is = null;
- List<OutputProperty> outputs = new ArrayList<OutputProperty>();
- Properties props = new Properties();
- try {
-
- is = new BufferedInputStream(outputPropertiesURL.openStream());
- props.load(is);
- for (Object element : props.keySet()) {
- String key = (String) element;
- if (!key.endsWith(DESC_SUFFIX)) {
- String name = key;
- String uri = props.getProperty(key);
- String desc = props.getProperty(key + DESC_SUFFIX);
- if (uri != null && name != null && desc != null) {
- OutputProperty prop = new OutputProperty(uri.trim(),
- desc);
- outputs.add(prop);
- } else {
- JAXPLaunchingPlugin.log(new CoreException(new Status(
- IStatus.WARNING, JAXPLaunchingPlugin.PLUGIN_ID,
- Messages.ProcessorType_2 + outputPropertiesURL
- + Messages.ProcessorType_3 + key)));
- }
- }
- }
- } catch (IOException e) {
- JAXPLaunchingPlugin.log(e);
- } finally {
- if (is != null) {
- try {
- is.close();
- } catch (IOException e) {
- JAXPLaunchingPlugin.log(e);
- }
- }
- }
- return outputs.toArray(new IOutputProperty[0]);
- }
-
- private IAttribute[] loadAttributes() {
- BufferedInputStream is = null;
- List<Attribute> attributesList = new ArrayList<Attribute>();
- try {
- is = new BufferedInputStream(attributePropertiesURL.openStream());
- Properties props = new Properties();
- props.load(is);
-
- for (Object element : props.keySet()) {
- String key = (String) element;
- if (!key.endsWith(DESC_SUFFIX) && !key.endsWith(TYPE_SUFFIX)) {
- String uri = props.getProperty(key);
- String type = props.getProperty(key + TYPE_SUFFIX);
- String desc = props.getProperty(key + DESC_SUFFIX);
- if (uri != null && type != null && desc != null) {
- Attribute attribute = new Attribute(uri.trim(), type
- .trim(), desc);
- attributesList.add(attribute);
- } else {
- JAXPLaunchingPlugin.log(new CoreException(new Status(
- IStatus.WARNING, JAXPLaunchingPlugin.PLUGIN_ID,
- Messages.ProcessorType_4
- + attributePropertiesURL
- + Messages.ProcessorType_5 + key)));
- }
- }
- }
-
- } catch (IOException e) {
- JAXPLaunchingPlugin.log(e);
- } finally {
- if (is != null) {
- try {
- is.close();
- } catch (IOException e) {
- JAXPLaunchingPlugin.log(e);
- }
- }
- }
- IAttribute[] attributes = attributesList.toArray(new IAttribute[0]);
- Arrays.sort(attributes);
- return attributes;
- }
-} \ No newline at end of file
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/TransformerFactory.java b/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/TransformerFactory.java
deleted file mode 100644
index 4049d42..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/TransformerFactory.java
+++ /dev/null
@@ -1,27 +0,0 @@
-package org.eclipse.wst.xsl.jaxp.launching.internal;
-
-import org.eclipse.wst.xsl.jaxp.launching.ITransformerFactory;
-
-public class TransformerFactory implements ITransformerFactory
-{
- private final String factoryClass;
- private final String name;
-
- public TransformerFactory(String name,String factoryClass)
- {
- super();
- this.factoryClass = factoryClass;
- this.name = name;
- }
-
- public String getFactoryClass()
- {
- return factoryClass;
- }
-
- public String getName()
- {
- return name;
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/Utils.java b/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/Utils.java
deleted file mode 100644
index 829976f..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/Utils.java
+++ /dev/null
@@ -1,57 +0,0 @@
-package org.eclipse.wst.xsl.jaxp.launching.internal;
-
-import java.io.File;
-import java.io.IOException;
-import java.net.URL;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.FileLocator;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.core.runtime.Status;
-
-public class Utils
-{
-
- public static String getFileLocation(String bundleId, String path) throws CoreException
- {
- String location = null;
- try
- {
- URL url = FileLocator.find(Platform.getBundle(bundleId), new Path(path), null);
- if (url != null)
- {
- URL fileUrl = FileLocator.toFileURL(url);
- File file = new File(fileUrl.getFile());
- location = file.getAbsolutePath();
- }
- }
- catch (IOException e)
- {
- throw new CoreException(new Status(IStatus.ERROR, JAXPLaunchingPlugin.PLUGIN_ID, IStatus.ERROR, Messages.Utils_0 + path + Messages.Utils_1 + bundleId, e));
- }
- return location;
- }
-
- public static String getPluginLocation(String bundleId) throws CoreException
- {
- String location = null;
- try
- {
- URL url = new URL("platform:/plugin/"+bundleId); //$NON-NLS-1$
- if (url != null)
- {
- URL fileUrl = FileLocator.toFileURL(url);
- File file = new File(fileUrl.getFile());
- location = file.getAbsolutePath();
- }
- }
- catch (IOException e)
- {
- throw new CoreException(new Status(IStatus.ERROR, JAXPLaunchingPlugin.PLUGIN_ID, IStatus.ERROR, Messages.Utils_0 + bundleId + Messages.Utils_1 + bundleId, e));
- }
- return location;
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/messages.properties b/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/messages.properties
deleted file mode 100644
index 71ccc04..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/messages.properties
+++ /dev/null
@@ -1,53 +0,0 @@
-XSLTRuntime_10=Failed to save process preferences
-XSLTRuntime_5=Saving attributes...
-XSLTRuntime_6=Failed to save attribute preferences
-XSLTRuntime_7=Saving properties...
-XSLTRuntime_8=Failed to save output property preferences
-XSLTRuntime_9=Saving processors...
-
-Attribute_0=Value must be a double
-Attribute_1=Value must be an integer
-Attribute_2=Valid values are 'true' or 'false'
-Attribute_5=Value must be a float
-PluginProcessorJar_0=, path
-ProcessorType_2=Output properties file
-ProcessorType_3=\ not configured properly for key
-ProcessorType_4=Attribute properties file
-ProcessorType_5=\ not configured properly for key
-Utils_0=Error determining jar file location:
-Utils_1=\ from bundle:
-XSLTLaunchConfigurationDelegate_0=Switch to Default Debugger
-XSLTLaunchConfigurationDelegate_1=The
-XSLTLaunchConfigurationDelegate_2=\ XSLT processor does not support debugging_\n
-XSLTLaunchConfigurationDelegate_23=Could not locate jar file
-XSLTLaunchConfigurationDelegate_3=Would you like to debug using the default
-XSLTLaunchConfigurationDelegate_31=\ to
-XSLTLaunchConfigurationDelegate_4=\ processor instead?
-XSLTLaunchConfigurationDelegate_5=launch
-XSLTLaunchConfigurationDelegate_6=launch.xml
-XSLTLaunchConfigurationDelegate_7=Error copying url
-
-AbstractRegistryReader_3=, extension
-AbstractRegistryReader_5=Required attribute '
-AbstractRegistryReader_6=' not defined
-AbstractRegistryReader_7=Required sub element '
-AbstractRegistryReader_8=' not defined
-AbstractRegistryReader_9=Unknown extension tag found:
-JAXPJavaLaunchConfigurationDelegate_0=Change Transformer Factory
-JAXPJavaLaunchConfigurationDelegate_1=\ must use the
-JAXPJavaLaunchConfigurationDelegate_2=\ transformer factory when debugging.\n
-JAXPJavaLaunchConfigurationDelegate_3=Be aware that this may give different results to the
-JAXPJavaLaunchConfigurationDelegate_4=\ transformer factory configured for this launch configuration.
-JAXPJavaLaunchConfigurationDelegate_5=org.eclipse.wst.xsl.launching.jaxp.invoke
-
-LaunchHelper_0=File not found
-LaunchHelper_1=IO Exception
-
-XSLDebugTarget_0=Unable to connect to debugger
-XSLDebugTarget_1=localhost
-XSLDebugTarget_19=Request failed:
-XSLDebugTarget_2=Could not connect to socket
-XSLDebugTarget_20=Event Dispatch
-XSLDebugTarget_3=\ after
-XSLDebugTarget_4=\ attempts
-
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/registry/AbstractRegistryReader.java b/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/registry/AbstractRegistryReader.java
deleted file mode 100644
index b5a5f60..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/registry/AbstractRegistryReader.java
+++ /dev/null
@@ -1,126 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.launching.internal.registry;
-
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.Comparator;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IConfigurationElement;
-import org.eclipse.core.runtime.IExtension;
-import org.eclipse.core.runtime.IExtensionPoint;
-import org.eclipse.core.runtime.IExtensionRegistry;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.wst.xsl.jaxp.launching.internal.JAXPLaunchingPlugin;
-import org.eclipse.wst.xsl.jaxp.launching.internal.Messages;
-
-public abstract class AbstractRegistryReader
-{
- public static final String ATT_CLASS = "class"; //$NON-NLS-1$
- public static final String TAG_DESCRIPTION = "description"; //$NON-NLS-1$
-
- protected static void logError(IConfigurationElement element, String text)
- {
- IExtension extension = element.getDeclaringExtension();
- StringBuffer buf = new StringBuffer();
- buf.append("Plugin " + extension.getNamespaceIdentifier() + Messages.AbstractRegistryReader_3 + extension.getExtensionPointUniqueIdentifier()); //$NON-NLS-1$
- buf.append("\n" + text); //$NON-NLS-1$
- JAXPLaunchingPlugin.log(new CoreException(new Status(IStatus.ERROR, JAXPLaunchingPlugin.PLUGIN_ID, IStatus.OK, buf.toString(), null)));
- }
-
- protected static void logMissingAttribute(IConfigurationElement element, String attributeName)
- {
- logError(element, Messages.AbstractRegistryReader_5 + attributeName + Messages.AbstractRegistryReader_6);
- }
-
- protected static void logMissingElement(IConfigurationElement element, String elementName)
- {
- logError(element, Messages.AbstractRegistryReader_7 + elementName + Messages.AbstractRegistryReader_8);
- }
-
- protected static void logUnknownElement(IConfigurationElement element)
- {
- logError(element, Messages.AbstractRegistryReader_9 + element.getName());
- }
-
- public static IExtension[] orderExtensions(IExtension[] extensions)
- {
- IExtension[] sortedExtension = new IExtension[extensions.length];
- System.arraycopy(extensions, 0, sortedExtension, 0, extensions.length);
- Comparator<IExtension> comparer = new Comparator<IExtension>()
- {
- public int compare(IExtension arg0, IExtension arg1)
- {
- String s1 = arg0.getNamespaceIdentifier();
- String s2 = arg1.getNamespaceIdentifier();
- return s1.compareToIgnoreCase(s2);
- }
- };
- Collections.sort(Arrays.asList(sortedExtension), comparer);
- return sortedExtension;
- }
-
- protected abstract boolean readElement(IConfigurationElement element);
-
- protected void readElementChildren(IConfigurationElement element)
- {
- readElements(element.getChildren());
- }
-
- protected void readElements(IConfigurationElement[] elements)
- {
- for (int i = 0; i < elements.length; i++)
- {
- if (!readElement(elements[i]))
- logUnknownElement(elements[i]);
- }
- }
-
- protected void readExtension(IExtension extension)
- {
- readElements(extension.getConfigurationElements());
- }
-
- public void readRegistry(IExtensionRegistry registry, String pluginId, String extensionPoint)
- {
- IExtensionPoint point = registry.getExtensionPoint(pluginId, extensionPoint);
- if (point == null)
- return;
- IExtension[] extensions = point.getExtensions();
- extensions = orderExtensions(extensions);
- for (IExtension element : extensions)
- readExtension(element);
- }
-
- public static String getDescription(IConfigurationElement configElement)
- {
- IConfigurationElement[] children = configElement.getChildren(TAG_DESCRIPTION);
- if (children.length >= 1)
- {
- return children[0].getValue();
- }
- return ""; //$NON-NLS-1$
- }
-
- public static String getClassValue(IConfigurationElement configElement, String classAttributeName)
- {
- String className = configElement.getAttribute(classAttributeName);
- if (className != null)
- return className;
- IConfigurationElement[] candidateChildren = configElement.getChildren(classAttributeName);
- if (candidateChildren.length == 0)
- return null;
-
- return candidateChildren[0].getAttribute(ATT_CLASS);
- }
-} \ No newline at end of file
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/registry/DebuggerRegistry.java b/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/registry/DebuggerRegistry.java
deleted file mode 100644
index 68a0bbd..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/registry/DebuggerRegistry.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.launching.internal.registry;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import org.eclipse.wst.xsl.jaxp.launching.IDebugger;
-import org.eclipse.wst.xsl.jaxp.launching.internal.DebuggerDescriptor;
-
-public class DebuggerRegistry
-{
- private final Map<String, DebuggerDescriptor> debuggers = new HashMap<String, DebuggerDescriptor>();
-
- public DebuggerRegistry()
- {
- DebuggerRegistryReader registryReader = new DebuggerRegistryReader();
- registryReader.addConfigs(this);
- }
-
- public IDebugger getDebugger(String id)
- {
- return debuggers.get(id);
- }
-
- public IDebugger[] getDebuggers()
- {
- return debuggers.values().toArray(new IDebugger[0]);
- }
-
- public void addDebugger(DebuggerDescriptor desc)
- {
- debuggers.put(desc.getId(), desc);
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/registry/DebuggerRegistryReader.java b/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/registry/DebuggerRegistryReader.java
deleted file mode 100644
index 98b9ee8..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/registry/DebuggerRegistryReader.java
+++ /dev/null
@@ -1,97 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.launching.internal.registry;
-
-import org.eclipse.core.runtime.IConfigurationElement;
-import org.eclipse.core.runtime.IExtensionRegistry;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.wst.xsl.jaxp.launching.internal.DebuggerDescriptor;
-import org.eclipse.wst.xsl.jaxp.launching.internal.JAXPLaunchingPlugin;
-
-public class DebuggerRegistryReader extends AbstractRegistryReader
-{
- public static final String TAG_DEBUGGER = "debugger"; //$NON-NLS-1$
- public static final String ATT_ID = "id"; //$NON-NLS-1$
- public static final String ATT_CLASSNAME = "className"; //$NON-NLS-1$
- public static final String ATT_CLASSPATH = "classpath"; //$NON-NLS-1$
- public static final String ATT_NAME = "name"; //$NON-NLS-1$
- public static final String ATT_PROCESSOR_TYPE_ID = "processorTypeId"; //$NON-NLS-1$
- public static final String ATT_TRANSFORMER_FACTORY = "transformerFactoryClass"; //$NON-NLS-1$
-
- private DebuggerRegistry registry;
-
- @Override
- protected boolean readElement(IConfigurationElement element)
- {
- if (!element.getName().equals(TAG_DEBUGGER))
- return false;
-
- String id = element.getAttribute(ATT_ID);
- if (id == null)
- {
- logMissingAttribute(element, ATT_ID);
- return true;
- }
-
- String className = element.getAttribute(ATT_CLASSNAME);
- if (className == null)
- {
- logMissingAttribute(element, ATT_CLASSNAME);
- return true;
- }
-
- String classpath = element.getAttribute(ATT_CLASSPATH);
- if (classpath == null)
- {
- logMissingAttribute(element, ATT_CLASSPATH);
- return true;
- }
-
- String[] entries = classpath.split(";"); //$NON-NLS-1$
- for (int i = 0; i < entries.length; i++)
- {
- String string = entries[i];
- entries[i] = string.trim();
- }
-
- String name = element.getAttribute(ATT_NAME);
- if (name == null)
- {
- logMissingAttribute(element, ATT_NAME);
- return true;
- }
-
- String processorTypeId = element.getAttribute(ATT_PROCESSOR_TYPE_ID);
- if (processorTypeId == null)
- {
- logMissingAttribute(element, ATT_PROCESSOR_TYPE_ID);
- return true;
- }
- String tFact = element.getAttribute(ATT_TRANSFORMER_FACTORY);
-
- registry.addDebugger(new DebuggerDescriptor(id, element.getContributor().getName(), className, entries, name, processorTypeId, tFact));
-
- return true;
- }
-
- public void readElement(DebuggerRegistry registry, IConfigurationElement element)
- {
- this.registry = registry;
- readElement(element);
- }
-
- public void addConfigs(DebuggerRegistry registry)
- {
- IExtensionRegistry extensionRegistry = Platform.getExtensionRegistry();
- this.registry = registry;
- readRegistry(extensionRegistry, JAXPLaunchingPlugin.PLUGIN_ID, "debugger"); //$NON-NLS-1$
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/registry/InvokerRegistry.java b/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/registry/InvokerRegistry.java
deleted file mode 100644
index 5cb816f..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/registry/InvokerRegistry.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.launching.internal.registry;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorInvoker;
-
-public class InvokerRegistry
-{
- private final Map<String, IProcessorInvoker> invokers = new HashMap<String, IProcessorInvoker>();
-
- public InvokerRegistry()
- {
- InvokerRegistryReader registryReader = new InvokerRegistryReader();
- registryReader.addConfigs(this);
- }
-
- public IProcessorInvoker getProcessorInvoker(String id)
- {
- return invokers.get(id);
- }
-
- public IProcessorInvoker[] getProcessorInvokers()
- {
- return invokers.values().toArray(new IProcessorInvoker[0]);
- }
-
- public void addInvokerDescriptor(IProcessorInvoker desc)
- {
- invokers.put(desc.getId(), desc);
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/registry/InvokerRegistryReader.java b/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/registry/InvokerRegistryReader.java
deleted file mode 100644
index b9e6137..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/registry/InvokerRegistryReader.java
+++ /dev/null
@@ -1,79 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.launching.internal.registry;
-
-import org.eclipse.core.runtime.IConfigurationElement;
-import org.eclipse.core.runtime.IExtensionRegistry;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.wst.xsl.jaxp.launching.internal.JAXPLaunchingPlugin;
-import org.eclipse.wst.xsl.jaxp.launching.internal.ProcessorInvokerDescriptor;
-
-public class InvokerRegistryReader extends AbstractRegistryReader
-{
- public static final String TAG_INVOKE = "invoker"; //$NON-NLS-1$
- public static final String ATT_ID = "id"; //$NON-NLS-1$
- public static final String ATT_CLASS = "class"; //$NON-NLS-1$
- public static final String ATT_CLASSPATH = "classpath"; //$NON-NLS-1$
-
- private InvokerRegistry registry;
-
- @Override
- protected boolean readElement(IConfigurationElement element)
- {
- if (!element.getName().equals(TAG_INVOKE))
- return false;
-
- String id = element.getAttribute(ATT_ID);
- if (id == null)
- {
- logMissingAttribute(element, ATT_ID);
- return true;
- }
-
- String classname = element.getAttribute(ATT_CLASS);
- if (classname == null)
- {
- logMissingAttribute(element, ATT_CLASS);
- return true;
- }
-
- String classpath = element.getAttribute(ATT_CLASSPATH);
- if (classpath == null)
- {
- logMissingAttribute(element, ATT_CLASSPATH);
- return true;
- }
-
- String[] entries = classpath.split(";"); //$NON-NLS-1$
- for (int i = 0; i < entries.length; i++)
- {
- String string = entries[i];
- entries[i] = string.trim();
- }
-
- registry.addInvokerDescriptor(new ProcessorInvokerDescriptor(id, element.getContributor().getName(), classname, entries));
-
- return true;
- }
-
- public void readElement(InvokerRegistry registry, IConfigurationElement element)
- {
- this.registry = registry;
- readElement(element);
- }
-
- public void addConfigs(InvokerRegistry registry)
- {
- IExtensionRegistry extensionRegistry = Platform.getExtensionRegistry();
- this.registry = registry;
- readRegistry(extensionRegistry, JAXPLaunchingPlugin.PLUGIN_ID, "invoke"); //$NON-NLS-1$
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/registry/ProcessorRegistry.java b/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/registry/ProcessorRegistry.java
deleted file mode 100644
index 7dd4008..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/registry/ProcessorRegistry.java
+++ /dev/null
@@ -1,181 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.launching.internal.registry;
-
-import java.io.ByteArrayInputStream;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorInstall;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorJar;
-import org.eclipse.wst.xsl.jaxp.launching.JAXPRuntime;
-import org.eclipse.wst.xsl.jaxp.launching.ProcessorInstall;
-import org.eclipse.wst.xsl.jaxp.launching.internal.JAXPLaunchingPlugin;
-import org.eclipse.wst.xsl.jaxp.launching.internal.ProcessorPreferences;
-
-public class ProcessorRegistry
-{
- private final List<ProcessorInstall> contributedInstalls = new ArrayList<ProcessorInstall>();
- private List<IProcessorInstall> userInstalls = new ArrayList<IProcessorInstall>();
- private IProcessorInstall defaultProcessor;
- private IProcessorInstall jreDefaultProcessor;
- private IProcessorInstall[] installs;
-
- public ProcessorRegistry()
- {
- initializeFromStorage();
- }
-
- private void initializeFromStorage()
- {
- // read from the registry
- ProcessorRegistryReader registryReader = new ProcessorRegistryReader();
- registryReader.addConfigs(this);
- // find the jre default
- for (Iterator<ProcessorInstall> iter = contributedInstalls.iterator(); iter.hasNext();)
- {
- IProcessorInstall install = iter.next();
- if (install.getId().equals(JAXPRuntime.JRE_DEFAULT_PROCESSOR_ID))
- {
- jreDefaultProcessor = install;
- break;
- }
- }
- // read from the preferences
- addPersistedVMs();
- }
-
- private void addPersistedVMs()
- {
- // Try retrieving the VM preferences from the preference store
- String vmXMLString = JAXPLaunchingPlugin.getDefault().getPluginPreferences().getString(JAXPRuntime.PREF_PROCESSOR_XML);
-
- // If the preference was found, load VMs from it into memory
- if (vmXMLString.length() > 0)
- {
- try
- {
- ByteArrayInputStream inputStream = new ByteArrayInputStream(vmXMLString.getBytes());
- ProcessorPreferences prefs = ProcessorPreferences.fromXML(inputStream);
- String defaultProcessorId = prefs.getDefaultProcessorId();
- userInstalls = prefs.getProcessors();
- for (Iterator<IProcessorInstall> iter = userInstalls.iterator(); iter.hasNext();)
- {
- IProcessorInstall install = iter.next();
- if (install.getId().equals(defaultProcessorId))
- {
- defaultProcessor = install;
- }
- }
- if (defaultProcessor == null)
- {
- for (Iterator<ProcessorInstall> iter = contributedInstalls.iterator(); iter.hasNext();)
- {
- IProcessorInstall install = iter.next();
- if (defaultProcessor == null && install.getId().equals(defaultProcessorId))
- {
- defaultProcessor = install;
- }
- }
- }
- }
- catch (CoreException e)
- {
- JAXPLaunchingPlugin.log(e);
- }
- }
- // make the JRE the default default
- if (defaultProcessor == null)
- {
- defaultProcessor = jreDefaultProcessor;
- }
- }
-
- public void addProcessor(String bundleId, String id, String label, String processorTypeId, String classpath, String debuggerId, String supports)
- {
- IProcessorJar[] jars = ProcessorInstall.createJars(bundleId, classpath);
- contributedInstalls.add(new ProcessorInstall(id, label, processorTypeId, jars, debuggerId, supports, true));
- }
-
- public void addProcessor(IProcessorInstall install)
- {
- if (!install.isContributed())
- userInstalls.add(install);
- IProcessorInstall[] newinstalls = new IProcessorInstall[installs.length + 1];
- System.arraycopy(installs, 0, newinstalls, 0, installs.length);
- newinstalls[installs.length] = install;
- installs = newinstalls;
- }
-
- public void removeProcessor(int index)
- {
- IProcessorInstall removed = installs[index];
- if (!removed.isContributed())
- userInstalls.remove(removed);
- IProcessorInstall[] newinstalls = new IProcessorInstall[installs.length - 1];
- System.arraycopy(installs, 0, newinstalls, 0, index);
- System.arraycopy(installs, index + 1, newinstalls, index, newinstalls.length - index);
- installs = newinstalls;
- }
-
- public IProcessorInstall[] getProcessors()
- {
- if (installs == null)
- {
- installs = new IProcessorInstall[contributedInstalls.size() + userInstalls.size()];
- int startIndex = 0;
- for (int i = 0; i < contributedInstalls.size(); i++)
- {
- installs[i] = contributedInstalls.get(i);
- startIndex = i + 1;
- }
- for (int i = 0; i < userInstalls.size(); i++)
- {
- installs[startIndex + i] = userInstalls.get(i);
- }
- }
- return installs;
- }
-
- public IProcessorInstall[] getProcessors(String id)
- {
- IProcessorInstall[] installs = getProcessors();
- List<IProcessorInstall> result = new ArrayList<IProcessorInstall>();
- for (IProcessorInstall type : installs)
- {
- if (type.getProcessorType().getId().equals(id))
- result.add(type);
- }
- return result.toArray(new IProcessorInstall[0]);
- }
-
- public void setDefaultProcessor(IProcessorInstall defaultInstall)
- {
- defaultProcessor = defaultInstall;
- }
-
- public IProcessorInstall getDefaultProcessor()
- {
- return defaultProcessor;
- }
-
- public IProcessorInstall getJREDefaultProcessor()
- {
- return jreDefaultProcessor;
- }
-
- public IProcessorInstall[] getContributedProcessors()
- {
- return contributedInstalls.toArray(new IProcessorInstall[0]);
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/registry/ProcessorRegistryReader.java b/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/registry/ProcessorRegistryReader.java
deleted file mode 100644
index 1be3d31..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/registry/ProcessorRegistryReader.java
+++ /dev/null
@@ -1,90 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.launching.internal.registry;
-
-import org.eclipse.core.runtime.IConfigurationElement;
-import org.eclipse.core.runtime.IExtensionRegistry;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.wst.xsl.jaxp.launching.internal.JAXPLaunchingPlugin;
-
-public class ProcessorRegistryReader extends AbstractRegistryReader
-{
- public static final String TAG_processor = "processor"; //$NON-NLS-1$
- public static final String ATT_ID = "id"; //$NON-NLS-1$
- public static final String ATT_LABEL = "label"; //$NON-NLS-1$
- public static final String ATT_TYPE_ID = "processorTypeId"; //$NON-NLS-1$
- public static final String ATT_DEBUGGER_ID = "debuggerId"; //$NON-NLS-1$
- public static final String ATT_CLASSPATH = "classpath"; //$NON-NLS-1$
- public static final String ATT_SUPPORTS = "supports"; //$NON-NLS-1$
-
- private ProcessorRegistry registry;
-
- @Override
- protected boolean readElement(IConfigurationElement element)
- {
- if (!element.getName().equals(TAG_processor))
- return false;
-
- String id = element.getAttribute(ATT_ID);
- if (id == null)
- {
- logMissingAttribute(element, ATT_ID);
- return true;
- }
-
- String label = element.getAttribute(ATT_LABEL);
- if (label == null)
- {
- logMissingAttribute(element, ATT_LABEL);
- return true;
- }
-
- String processorTypeId = element.getAttribute(ATT_TYPE_ID);
- if (processorTypeId == null)
- {
- logMissingAttribute(element, ATT_TYPE_ID);
- return true;
- }
-
- String classpath = element.getAttribute(ATT_CLASSPATH);
- if (classpath == null)
- {
- logMissingAttribute(element, ATT_CLASSPATH);
- return true;
- }
-
- String debuggerId = element.getAttribute(ATT_DEBUGGER_ID);
-
- String supports = element.getAttribute(ATT_SUPPORTS);
- if (classpath == null)
- {
- logMissingAttribute(element, ATT_SUPPORTS);
- return true;
- }
-
- registry.addProcessor(element.getContributor().getName(), id, label, processorTypeId, classpath, debuggerId, supports);
-
- return true;
- }
-
- public void readElement(ProcessorRegistry registry, IConfigurationElement element)
- {
- this.registry = registry;
- readElement(element);
- }
-
- public void addConfigs(ProcessorRegistry registry)
- {
- IExtensionRegistry extensionRegistry = Platform.getExtensionRegistry();
- this.registry = registry;
- readRegistry(extensionRegistry, JAXPLaunchingPlugin.PLUGIN_ID, "processor"); //$NON-NLS-1$
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/registry/ProcessorTypeRegistry.java b/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/registry/ProcessorTypeRegistry.java
deleted file mode 100644
index e5ff44c..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/registry/ProcessorTypeRegistry.java
+++ /dev/null
@@ -1,146 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.launching.internal.registry;
-
-import java.io.ByteArrayInputStream;
-import java.net.URL;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.FileLocator;
-import org.eclipse.core.runtime.IConfigurationElement;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorType;
-import org.eclipse.wst.xsl.jaxp.launching.ITransformerFactory;
-import org.eclipse.wst.xsl.jaxp.launching.JAXPRuntime;
-import org.eclipse.wst.xsl.jaxp.launching.internal.FeaturePreferences;
-import org.eclipse.wst.xsl.jaxp.launching.internal.JAXPLaunchingPlugin;
-import org.eclipse.wst.xsl.jaxp.launching.internal.OutputPropertyPreferences;
-import org.eclipse.wst.xsl.jaxp.launching.internal.ProcessorType;
-import org.eclipse.wst.xsl.jaxp.launching.internal.TransformerFactory;
-
-public class ProcessorTypeRegistry
-{
- protected static final String DESC_SUFFIX = ".DESC"; //$NON-NLS-1$
- protected static final String TYPE_SUFFIX = ".TYPE"; //$NON-NLS-1$
-
- private final List<IConfigurationElement> elements = new ArrayList<IConfigurationElement>();
- private IProcessorType[] installTypes;
-
- public ProcessorTypeRegistry()
- {
- ProcessorTypeRegistryReader registryReader = new ProcessorTypeRegistryReader();
- registryReader.addConfigs(this);
- }
-
- public IProcessorType[] getProcessorTypes()
- {
- if (installTypes == null)
- {
- List<ProcessorType> types = new ArrayList<ProcessorType>();
- String featureXMLString = JAXPLaunchingPlugin.getDefault().getPluginPreferences().getString(JAXPRuntime.PREF_FEATURE_XML);
- // If the preference was found, load VMs from it into memory
- FeaturePreferences prefs = null;
- if (featureXMLString.length() > 0)
- {
- try
- {
- ByteArrayInputStream inputStream = new ByteArrayInputStream(featureXMLString.getBytes());
- prefs = FeaturePreferences.fromXML(inputStream);
- }
- catch (CoreException e)
- {
- JAXPLaunchingPlugin.log(e);
- }
- }
-
- String propXMLString = JAXPLaunchingPlugin.getDefault().getPluginPreferences().getString(JAXPRuntime.PREF_OUTPUT_PROPERTIES_XML);
- // If the preference was found, load VMs from it into memory
- OutputPropertyPreferences outputprefs = null;
- if (propXMLString.length() > 0)
- {
- try
- {
- ByteArrayInputStream inputStream = new ByteArrayInputStream(propXMLString.getBytes());
- outputprefs = OutputPropertyPreferences.fromXML(inputStream);
- }
- catch (CoreException e)
- {
- JAXPLaunchingPlugin.log(e);
- }
- }
-
- for (Iterator<IConfigurationElement> iter = elements.iterator(); iter.hasNext();)
- {
- IConfigurationElement element = iter.next();
- String id = element.getAttribute(ProcessorTypeRegistryReader.ATT_ID);
- String label = element.getAttribute(ProcessorTypeRegistryReader.ATT_LABEL);
- Map<String, String> featureValues = new HashMap<String, String>();
- Map<String, String> propertyValues = new HashMap<String, String>();
- if (prefs != null && prefs.getFeaturesValues(id) != null)
- featureValues.putAll(prefs.getFeaturesValues(id));
- if (outputprefs != null && outputprefs.getOutputPropertyValues(id) != null)
- propertyValues.putAll(outputprefs.getOutputPropertyValues(id));
-
- String outputProperties = element.getAttribute(ProcessorTypeRegistryReader.ATT_OUTPUT_PROPERTIES);
- URL outputPropertiesURL = FileLocator.find(Platform.getBundle(element.getContributor().getName()), new Path(outputProperties), null);
- String featureProperties = element.getAttribute(ProcessorTypeRegistryReader.ATT_ATTRIBUTE_PROPERTIES);
- URL featurePropertiesURL = FileLocator.find(Platform.getBundle(element.getContributor().getName()), new Path(featureProperties), null);
-
- List<ITransformerFactory> transFactoryList = new ArrayList<ITransformerFactory>();
- IConfigurationElement[] transFactEls = element.getChildren(ProcessorTypeRegistryReader.EL_TRANSFORMER_FACTORY);
- for (IConfigurationElement transFactEl : transFactEls)
- {
- String transFactoryName = transFactEl.getAttribute(ProcessorTypeRegistryReader.ATT_TRANSFORMER_FACTORY_NAME);
- String transFactoryClass = transFactEl.getAttribute(ProcessorTypeRegistryReader.ATT_TRANSFORMER_FACTORY_CLASS);
- transFactoryList.add(new TransformerFactory(transFactoryName,transFactoryClass));
- }
-
- types.add(new ProcessorType(id, label, featurePropertiesURL, outputPropertiesURL, featureValues, propertyValues, transFactoryList.toArray(new ITransformerFactory[0])));
- }
- installTypes = types.toArray(new IProcessorType[0]);
- }
- return installTypes;
- }
-
- public IProcessorType[] getProcessorTypesExclJREDefault()
- {
- IProcessorType[] installTypes = getProcessorTypes();
- List<IProcessorType> exclTypes = new ArrayList<IProcessorType>(installTypes.length - 1);
- for (IProcessorType type : installTypes)
- {
- if (!type.isJREDefault())
- exclTypes.add(type);
- }
- return exclTypes.toArray(new IProcessorType[0]);
- }
-
- public void addType(IConfigurationElement element)
- {
- elements.add(element);
- }
-
- public IProcessorType getProcessorType(String id)
- {
- IProcessorType[] installTypes = getProcessorTypes();
- for (IProcessorType type : installTypes)
- {
- if (type.getId().equals(id))
- return type;
- }
- return null;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/registry/ProcessorTypeRegistryReader.java b/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/registry/ProcessorTypeRegistryReader.java
deleted file mode 100644
index e030c40..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/internal/registry/ProcessorTypeRegistryReader.java
+++ /dev/null
@@ -1,82 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.launching.internal.registry;
-
-import org.eclipse.core.runtime.IConfigurationElement;
-import org.eclipse.core.runtime.IExtensionRegistry;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.wst.xsl.jaxp.launching.internal.JAXPLaunchingPlugin;
-
-public class ProcessorTypeRegistryReader extends AbstractRegistryReader
-{
- public static final String TAG_processorType = "processorType"; //$NON-NLS-1$
- public static final String ATT_ID = "id"; //$NON-NLS-1$
- public static final String ATT_LABEL = "label"; //$NON-NLS-1$
- public static final String ATT_OUTPUT_PROPERTIES = "outputProperties"; //$NON-NLS-1$
- public static final String ATT_ATTRIBUTE_PROPERTIES = "attributeProperties"; //$NON-NLS-1$
- public static final String EL_TRANSFORMER_FACTORY = "transformerFactory"; //$NON-NLS-1$
- public static final String ATT_TRANSFORMER_FACTORY_NAME = "name"; //$NON-NLS-1$
- public static final String ATT_TRANSFORMER_FACTORY_CLASS = "factoryClass"; //$NON-NLS-1$
-
- private ProcessorTypeRegistry registry;
-
- @Override
- protected boolean readElement(IConfigurationElement element)
- {
- if (!element.getName().equals(TAG_processorType))
- return false;
-
- String id = element.getAttribute(ATT_ID);
- if (id == null)
- {
- logMissingAttribute(element, ATT_ID);
- return true;
- }
-
- String label = element.getAttribute(ATT_LABEL);
- if (label == null)
- {
- logMissingAttribute(element, ATT_LABEL);
- return true;
- }
-
- String outputProperties = element.getAttribute(ATT_OUTPUT_PROPERTIES);
- if (outputProperties == null)
- {
- logMissingAttribute(element, ATT_OUTPUT_PROPERTIES);
- return true;
- }
-
- String featureProperties = element.getAttribute(ATT_ATTRIBUTE_PROPERTIES);
- if (featureProperties == null)
- {
- logMissingAttribute(element, ATT_ATTRIBUTE_PROPERTIES);
- return true;
- }
-
- registry.addType(element);
-
- return true;
- }
-
- public void readElement(ProcessorTypeRegistry registry, IConfigurationElement element)
- {
- this.registry = registry;
- readElement(element);
- }
-
- protected void addConfigs(ProcessorTypeRegistry registry)
- {
- IExtensionRegistry extensionRegistry = Platform.getExtensionRegistry();
- this.registry = registry;
- readRegistry(extensionRegistry, JAXPLaunchingPlugin.PLUGIN_ID, "processorType"); //$NON-NLS-1$
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/model/JAXPDebugTarget.java b/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/model/JAXPDebugTarget.java
deleted file mode 100644
index 4670642..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.launching/src/org/eclipse/wst/xsl/jaxp/launching/model/JAXPDebugTarget.java
+++ /dev/null
@@ -1,583 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.launching.model;
-
-import java.io.BufferedReader;
-import java.io.IOException;
-import java.io.InputStreamReader;
-import java.io.PrintWriter;
-import java.io.Reader;
-import java.net.ConnectException;
-import java.net.MalformedURLException;
-import java.net.Socket;
-import java.net.URL;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-import org.eclipse.core.resources.IMarker;
-import org.eclipse.core.resources.IMarkerDelta;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.core.runtime.jobs.Job;
-import org.eclipse.debug.core.DebugEvent;
-import org.eclipse.debug.core.DebugException;
-import org.eclipse.debug.core.DebugPlugin;
-import org.eclipse.debug.core.ILaunch;
-import org.eclipse.debug.core.model.IBreakpoint;
-import org.eclipse.debug.core.model.IDebugTarget;
-import org.eclipse.debug.core.model.ILineBreakpoint;
-import org.eclipse.debug.core.model.IMemoryBlock;
-import org.eclipse.debug.core.model.IProcess;
-import org.eclipse.debug.core.model.IStackFrame;
-import org.eclipse.debug.core.model.IThread;
-import org.eclipse.debug.core.model.IValue;
-import org.eclipse.wst.xsl.jaxp.debug.debugger.DebugConstants;
-import org.eclipse.wst.xsl.jaxp.launching.internal.JAXPLaunchingPlugin;
-import org.eclipse.wst.xsl.jaxp.launching.internal.Messages;
-import org.eclipse.wst.xsl.launching.config.BaseLaunchHelper;
-import org.eclipse.wst.xsl.launching.model.IXSLConstants;
-import org.eclipse.wst.xsl.launching.model.IXSLDebugTarget;
-import org.eclipse.wst.xsl.launching.model.XSLDebugElement;
-import org.eclipse.wst.xsl.launching.model.XSLStackFrame;
-import org.eclipse.wst.xsl.launching.model.XSLThread;
-import org.eclipse.wst.xsl.launching.model.XSLValue;
-import org.eclipse.wst.xsl.launching.model.XSLVariable;
-
-public class JAXPDebugTarget extends XSLDebugElement implements IXSLDebugTarget {
- private final byte[] STACK_FRAMES_LOCK = new byte[0];
- private final byte[] VALUE_MAP_LOCK = new byte[0];
- private final byte[] WRITE_LOCK = new byte[0];
-
- private static final int CONNECT_ATTEMPTS = 60;
- private static final int CONNECT_WAIT = 1000;
-
- private final IProcess process;
- private final ILaunch launch;
- private XSLThread thread;
- private IThread[] threads = new IThread[0];
- private IStackFrame[] stackFramesCache = new IStackFrame[0];
-
- private EventDispatchJob eventDispatch;
-
- private final Map<Integer, XSLVariable> variableMapCache = new HashMap<Integer, XSLVariable>();
- private final Map<XSLVariable, XSLValue> valueMapCache = new HashMap<XSLVariable, XSLValue>();
- private String name;
- private boolean suspended;
-
- private Socket requestSocket;
- private Socket eventSocket;
- private Socket generateSocket;
- private BufferedReader requestReader;
- private BufferedReader eventReader;
- private PrintWriter requestWriter;
- private Reader generateReader;
- private boolean stale;
-
- public JAXPDebugTarget(ILaunch launch, IProcess process,
- BaseLaunchHelper BaseLaunchHelper) throws CoreException {
- super(null);
- this.launch = launch;
- this.process = process;
- this.requestSocket = attemptConnect(BaseLaunchHelper.getRequestPort());
- this.eventSocket = attemptConnect(BaseLaunchHelper.getEventPort());
- this.generateSocket = attemptConnect(BaseLaunchHelper.getGeneratePort());
-
- if (!process.isTerminated()) {
- try {
- this.eventReader = new BufferedReader(new InputStreamReader(eventSocket.getInputStream()));
- this.requestWriter = new PrintWriter(requestSocket.getOutputStream());
- this.requestReader = new BufferedReader(new InputStreamReader(requestSocket.getInputStream()));
- this.generateReader = new InputStreamReader(generateSocket.getInputStream());
- } catch (IOException e) {
- abort(Messages.XSLDebugTarget_0, e);
- }
- this.thread = new XSLThread(this);
- this.threads = new IThread[] { thread };
- this.eventDispatch = new EventDispatchJob();
- this.eventDispatch.schedule();
-
- DebugPlugin.getDefault().getBreakpointManager().addBreakpointListener(this);
- }
- }
-
- public Reader getGenerateReader()
- {
- return generateReader;
- }
-
- private void abort(String message, Throwable e) throws DebugException {
- if (!getDebugTarget().isTerminated())
- getDebugTarget().getProcess().terminate();
- throw new DebugException(new Status(IStatus.ERROR,
- JAXPLaunchingPlugin.PLUGIN_ID, DebugPlugin.INTERNAL_ERROR, message,
- e));
- }
-
- private Socket attemptConnect(int port) throws CoreException {
- Socket socket = null;
- for (int i = 0; i < CONNECT_ATTEMPTS; i++) {
- // break out if process is terminated
- if (process.isTerminated())
- break;
- try {
- socket = new Socket(
- Messages.XSLDebugTarget_1, port);
- } catch (ConnectException e) {
- } catch (IOException e) {
- }
- if (socket != null)
- break;
- try {
- Thread.sleep(CONNECT_WAIT);
- } catch (InterruptedException e) {
- }
- }
- if (socket == null && !process.isTerminated())
- throw new CoreException(
- new Status(
- IStatus.ERROR,
- JAXPLaunchingPlugin.PLUGIN_ID,
- Messages.XSLDebugTarget_2 + port + Messages.XSLDebugTarget_3 + CONNECT_ATTEMPTS + Messages.XSLDebugTarget_4));
- return socket;
- }
-
- public IProcess getProcess() {
- return process;
- }
-
- public IThread[] getThreads() throws DebugException {
- return threads;
- }
-
- public boolean hasThreads() throws DebugException {
- return threads != null && threads.length > 0;
- }
-
- public String getName() throws DebugException {
- if (name == null) {
- name = launch.getAttribute("launchName"); //$NON-NLS-1$
- }
- return name;
- }
-
- public boolean supportsBreakpoint(IBreakpoint breakpoint) {
- if (breakpoint.getModelIdentifier().equals(
- IXSLConstants.ID_XSL_DEBUG_MODEL)
- && breakpoint instanceof ILineBreakpoint) {
- // try
- // {
- // ILineBreakpoint lb = (ILineBreakpoint) breakpoint;
- // IMarker marker = lb.getMarker();
- // for (Iterator<?> iter =
- // BaseLaunchHelper.getPipeline().getTransformDefs().iterator();
- // iter.hasNext();)
- // {
- // LaunchTransform lt = (LaunchTransform) iter.next();
- // if (marker.getResource().getLocation().equals(lt.getLocation()))
- // return true;
- // }
- // }
- // catch (CoreException e)
- // {
- // JAXPLaunchingPlugin.log(e);
- // }
- return true;
- }
- return false;
- }
-
- @Override
- public IDebugTarget getDebugTarget() {
- return this;
- }
-
- @Override
- public ILaunch getLaunch() {
- return launch;
- }
-
- public boolean canTerminate() {
- return getProcess().canTerminate();
- }
-
- public boolean isTerminated() {
- return getProcess().isTerminated();
- }
-
- public void terminate() throws DebugException {
- synchronized (WRITE_LOCK) {
- getProcess().terminate();
- }
- }
-
- public boolean canResume() {
- return !isTerminated() && isSuspended();
- }
-
- public boolean canSuspend() {
- return !isTerminated() && !isSuspended();
- }
-
- public boolean isSuspended() {
- return suspended;
- }
-
- public void resume() throws DebugException {
- sendRequest(DebugConstants.REQUEST_RESUME);
- }
-
- private void resumed(int detail) {
- suspended = false;
- thread.fireResumeEvent(detail);
- }
-
- private void suspended(int detail) {
- suspended = true;
- thread.fireSuspendEvent(detail);
- }
-
- public void suspend() throws DebugException {
- sendRequest(DebugConstants.REQUEST_SUSPEND);
- }
-
- public void breakpointAdded(IBreakpoint breakpoint) {
- if (supportsBreakpoint(breakpoint)) {
- try {
- ILineBreakpoint lb = (ILineBreakpoint) breakpoint;
- if (breakpoint.isEnabled()) {
- try {
- IMarker marker = lb.getMarker();
- if (marker != null) {
- URL file = marker.getResource().getLocation()
- .toFile().toURI().toURL();
- sendRequest(DebugConstants.REQUEST_ADD_BREAKPOINT
- + " " + file + " " + lb.getLineNumber()); //$NON-NLS-1$ //$NON-NLS-2$
- }
- } catch (CoreException e) {
- JAXPLaunchingPlugin.log(e);
- } catch (MalformedURLException e) {
- JAXPLaunchingPlugin.log(e);
- }
- }
- } catch (CoreException e) {
- }
- }
- }
-
- public void breakpointRemoved(IBreakpoint breakpoint, IMarkerDelta delta) {
- if (supportsBreakpoint(breakpoint)) {
- try {
- ILineBreakpoint lb = (ILineBreakpoint) breakpoint;
- IMarker marker = lb.getMarker();
- if (marker != null) {
- URL file = marker.getResource().getLocation().toFile()
- .toURI().toURL();
- sendRequest(DebugConstants.REQUEST_REMOVE_BREAKPOINT
- + " " + file + " " + lb.getLineNumber()); //$NON-NLS-1$ //$NON-NLS-2$
- }
- } catch (CoreException e) {
- JAXPLaunchingPlugin.log(e);
- } catch (MalformedURLException e) {
- JAXPLaunchingPlugin.log(e);
- }
- }
- }
-
- public void breakpointChanged(IBreakpoint breakpoint, IMarkerDelta delta) {
- if (supportsBreakpoint(breakpoint)) {
- try {
- if (breakpoint.isEnabled()) {
- breakpointAdded(breakpoint);
- } else {
- breakpointRemoved(breakpoint, null);
- }
- } catch (CoreException e) {
- }
- }
- }
-
- @Override
- public boolean canDisconnect() {
- // TODO implement disconnect
- return false;
- }
-
- @Override
- public void disconnect() throws DebugException {
- // TODO implement disconnect
- }
-
- @Override
- public boolean isDisconnected() {
- // TODO implement disconnect
- return false;
- }
-
- public boolean supportsStorageRetrieval() {
- return false;
- }
-
- public IMemoryBlock getMemoryBlock(long startAddress, long length)
- throws DebugException {
- return null;
- }
-
- private void ready() {
- fireCreationEvent();
- installDeferredBreakpoints();
- try {
- sendRequest(DebugConstants.REQUEST_START);
- } catch (DebugException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * Install breakpoints that are already registered with the breakpoint
- * manager.
- */
- private void installDeferredBreakpoints() {
- IBreakpoint[] breakpoints = DebugPlugin.getDefault()
- .getBreakpointManager().getBreakpoints(
- IXSLConstants.ID_XSL_DEBUG_MODEL);
- for (IBreakpoint element : breakpoints) {
- breakpointAdded(element);
- }
- }
-
- private void terminated() {
- suspended = true;
- DebugPlugin.getDefault().getBreakpointManager().removeBreakpointListener(this);
- threads = new IThread[0];
- fireTerminateEvent();
- }
-
- /**
- * Returns the current stack frames in the target.
- */
- public IStackFrame[] getStackFrames() throws DebugException {
- synchronized (STACK_FRAMES_LOCK) {
- if (stale) {
- stale = false;
- String framesData = sendRequest(DebugConstants.REQUEST_STACK);
- String[] frames = framesData.split("\\$\\$\\$"); //$NON-NLS-1$
- IStackFrame[] sf = new IStackFrame[frames.length];
- List<IStackFrame> currentFrames = Arrays
- .asList(stackFramesCache);
- for (int i = 0; i < frames.length; i++) {
- String data = frames[i];
- XSLStackFrame frame = new XSLStackFrame(thread, data, i);
- int index;
- if ((index = currentFrames.indexOf(frame)) != -1) {
- XSLStackFrame curr = (XSLStackFrame) currentFrames
- .get(index);
- curr.setLineNumber(frame.getLineNumber());
- curr.setVariables(frame.getVariables());
- frame = curr;
- }
- sf[frames.length - i - 1] = frame;
- }
- stackFramesCache = sf;
- }
- return stackFramesCache;
- }
- }
-
- private void ressetStackFramesCache() {
- stale = true;
- synchronized (VALUE_MAP_LOCK) {
- valueMapCache.clear();
- }
- }
-
- /**
- * Single step the interpreter.
- */
- public void stepOver() throws DebugException {
- sendRequest(DebugConstants.REQUEST_STEP_OVER);
- }
-
- public void stepInto() throws DebugException {
- sendRequest(DebugConstants.REQUEST_STEP_INTO);
- }
-
- public void stepReturn() throws DebugException {
- sendRequest(DebugConstants.REQUEST_STEP_RETURN);
- }
-
- public XSLVariable getVariable(int varId) throws DebugException {
- synchronized (variableMapCache) {
- XSLVariable var = variableMapCache.get(varId);
- if (var == null) {
- var = new XSLVariable(this, varId);
- String res = sendRequest(DebugConstants.REQUEST_VARIABLE
- + " " + varId); //$NON-NLS-1$
- String[] data = res.split("&"); //$NON-NLS-1$
- var.setScope(data[0]);
- var.setName(data[1]);
- variableMapCache.put(varId, var);
- }
- return var;
- }
- }
-
- public IValue getVariableValue(XSLVariable variable) throws DebugException {
- synchronized (VALUE_MAP_LOCK) {
- XSLValue value = valueMapCache.get(variable);
- if (value == null) {
- if (isSuspended()) {
- String res = sendRequest(DebugConstants.REQUEST_VALUE
- + " " + variable.getId()); //$NON-NLS-1$
- String[] data = res.split("&"); //$NON-NLS-1$
- String type = data[0];
- String theval;
- if (data.length > 1)
- theval = data[1];
- else
- theval = ""; //$NON-NLS-1$
- value = new XSLValue(this, type, theval);
- valueMapCache.put(variable, value);
- } else {
- // anything as long as not null!
- value = new XSLValue(this, "G", ""); //$NON-NLS-1$ //$NON-NLS-2$
- }
- }
- return value;
- }
- }
-
- private String sendRequest(String request) throws DebugException {
- String response = null;
- synchronized (WRITE_LOCK) {
-// if (Debug.debugLauncher) {
-// System.out.println("REQUEST: " + request);
-// }
- requestWriter.println(request);
- requestWriter.flush();
- try {
- // wait for response
- response = requestReader.readLine();
-// if (Debug.debugLauncher) {
-// System.out.println("RESPONSE: " + response);
-// }
- } catch (IOException e) {
- abort(Messages.XSLDebugTarget_19 + request, e);
- }
- }
- return response;
- }
-
- private void breakpointHit(String event) {
- // determine which breakpoint was hit, and set the thread's breakpoint
- int lastSpace = event.lastIndexOf(' ');
- if (lastSpace > 0) {
- String line = event.substring(lastSpace + 1);
- int lineNumber = Integer.parseInt(line);
- IBreakpoint[] breakpoints = DebugPlugin.getDefault()
- .getBreakpointManager().getBreakpoints(
- IXSLConstants.ID_XSL_DEBUG_MODEL);
- for (IBreakpoint breakpoint : breakpoints) {
- if (supportsBreakpoint(breakpoint)) {
- if (breakpoint instanceof ILineBreakpoint) {
- ILineBreakpoint lineBreakpoint = (ILineBreakpoint) breakpoint;
- try {
- if (lineBreakpoint.getLineNumber() == lineNumber) {
- thread
- .setBreakpoints(new IBreakpoint[] { breakpoint });
- break;
- }
- } catch (CoreException e) {
- }
- }
- }
- }
- }
- suspended(DebugEvent.BREAKPOINT);
- }
-
- private class EventDispatchJob extends Job {
-
- public EventDispatchJob() {
- super(Messages.XSLDebugTarget_20);
- setSystem(true);
- }
-
- @Override
- protected IStatus run(IProgressMonitor monitor) {
- String event = ""; //$NON-NLS-1$
- while (!isTerminated() && event != null) {
- try {
- event = eventReader.readLine();
- if (event != null) {
- thread.setBreakpoints(null);
- thread.setStepping(false);
- if (event.equals("ready")) //$NON-NLS-1$
- {
- ready();
- } else if (event.equals("stopped")) //$NON-NLS-1$
- {
- try {
- terminate();
- } catch (DebugException e) {
- }
- } else if (event.equals("terminated")) //$NON-NLS-1$
- {
- terminated();
- } else if (event.startsWith("resumed")) //$NON-NLS-1$
- {
- if (event.endsWith("step")) //$NON-NLS-1$
- {
- thread.setStepping(true);
- resumed(DebugEvent.STEP_OVER);
- } else if (event.endsWith("client")) //$NON-NLS-1$
- {
- resumed(DebugEvent.CLIENT_REQUEST);
- } else {
- debugEventMsg(event);
- }
- } else if (event.startsWith("suspended")) //$NON-NLS-1$
- {
- // clear down the frames so that they are re-fetched
- ressetStackFramesCache();
- if (event.endsWith("client")) //$NON-NLS-1$
- {
- suspended(DebugEvent.CLIENT_REQUEST);
- } else if (event.endsWith("step")) //$NON-NLS-1$
- {
- suspended(DebugEvent.STEP_END);
- } else if (event.indexOf("breakpoint") >= 0) //$NON-NLS-1$
- {
- breakpointHit(event);
- } else {
- debugEventMsg(event);
- }
- } else {
- debugEventMsg(event);
- }
- }
- } catch (IOException e) {
- terminated();
- }
- }
- return Status.OK_STATUS;
- }
-
- private void debugEventMsg(String event) {
-// if (Debug.debugLauncher) {
-// System.out.println("Did not understand event:" + event);
-// }
- }
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.launching/.classpath b/bundles/org.eclipse.wst.xsl.launching/.classpath
deleted file mode 100644
index 304e861..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/.classpath
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/bundles/org.eclipse.wst.xsl.launching/.cvsignore b/bundles/org.eclipse.wst.xsl.launching/.cvsignore
deleted file mode 100644
index d4a255d..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/.cvsignore
+++ /dev/null
@@ -1,4 +0,0 @@
-build.xml
-javaCompiler...args
-temp.folder
-@dot
diff --git a/bundles/org.eclipse.wst.xsl.launching/.project b/bundles/org.eclipse.wst.xsl.launching/.project
deleted file mode 100644
index f123aca..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/.project
+++ /dev/null
@@ -1,34 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.wst.xsl.launching</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>
- <buildCommand>
- <name>org.eclipse.pde.api.tools.apiAnalysisBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- <nature>org.eclipse.pde.api.tools.apiAnalysisNature</nature>
- </natures>
-</projectDescription>
diff --git a/bundles/org.eclipse.wst.xsl.launching/.settings/org.eclipse.core.resources.prefs b/bundles/org.eclipse.wst.xsl.launching/.settings/org.eclipse.core.resources.prefs
deleted file mode 100644
index 3bacc8f..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/.settings/org.eclipse.core.resources.prefs
+++ /dev/null
@@ -1,3 +0,0 @@
-#Thu Jan 03 22:24:25 EST 2008
-eclipse.preferences.version=1
-encoding/<project>=ISO-8859-1
diff --git a/bundles/org.eclipse.wst.xsl.launching/.settings/org.eclipse.jdt.core.prefs b/bundles/org.eclipse.wst.xsl.launching/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 51760c2..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,87 +0,0 @@
-#Thu Jun 11 01:37:54 GMT 2009
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
-org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=1.5
-org.eclipse.jdt.core.compiler.debug.lineNumber=generate
-org.eclipse.jdt.core.compiler.debug.localVariable=generate
-org.eclipse.jdt.core.compiler.debug.sourceFile=generate
-org.eclipse.jdt.core.compiler.doc.comment.support=enabled
-org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
-org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning
-org.eclipse.jdt.core.compiler.problem.deadCode=warning
-org.eclipse.jdt.core.compiler.problem.deprecation=warning
-org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
-org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled
-org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
-org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore
-org.eclipse.jdt.core.compiler.problem.fatalOptionalError=enabled
-org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
-org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
-org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
-org.eclipse.jdt.core.compiler.problem.forbiddenReference=error
-org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
-org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
-org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore
-org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore
-org.eclipse.jdt.core.compiler.problem.invalidJavadoc=ignore
-org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=disabled
-org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=disabled
-org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=disabled
-org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=public
-org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
-org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
-org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore
-org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore
-org.eclipse.jdt.core.compiler.problem.missingJavadocComments=ignore
-org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=disabled
-org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=public
-org.eclipse.jdt.core.compiler.problem.missingJavadocTagDescription=return_tag
-org.eclipse.jdt.core.compiler.problem.missingJavadocTags=ignore
-org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled
-org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=public
-org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
-org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
-org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore
-org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
-org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
-org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=error
-org.eclipse.jdt.core.compiler.problem.nullReference=warning
-org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
-org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
-org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore
-org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore
-org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning
-org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore
-org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore
-org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
-org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
-org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
-org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
-org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
-org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning
-org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
-org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
-org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
-org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore
-org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
-org.eclipse.jdt.core.compiler.problem.unusedImport=warning
-org.eclipse.jdt.core.compiler.problem.unusedLabel=warning
-org.eclipse.jdt.core.compiler.problem.unusedLocal=warning
-org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
-org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
-org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
-org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
-org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
-org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
-org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
-org.eclipse.jdt.core.compiler.source=1.5
diff --git a/bundles/org.eclipse.wst.xsl.launching/.settings/org.eclipse.pde.prefs b/bundles/org.eclipse.wst.xsl.launching/.settings/org.eclipse.pde.prefs
deleted file mode 100644
index c1fc3ed..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/.settings/org.eclipse.pde.prefs
+++ /dev/null
@@ -1,24 +0,0 @@
-#Wed Jul 30 20:56:56 BST 2008
-compilers.f.unresolved-features=1
-compilers.f.unresolved-plugins=1
-compilers.incompatible-environment=1
-compilers.p.build=0
-compilers.p.deprecated=1
-compilers.p.discouraged-class=1
-compilers.p.internal=1
-compilers.p.missing-bundle-classpath-entries=0
-compilers.p.missing-packages=2
-compilers.p.no-required-att=0
-compilers.p.not-externalized-att=1
-compilers.p.unknown-attribute=0
-compilers.p.unknown-class=1
-compilers.p.unknown-element=0
-compilers.p.unknown-identifier=1
-compilers.p.unknown-resource=1
-compilers.p.unresolved-ex-points=0
-compilers.p.unresolved-import=0
-compilers.s.create-docs=false
-compilers.s.doc-folder=doc
-compilers.s.open-tags=1
-compilers.use-project=true
-eclipse.preferences.version=1
diff --git a/bundles/org.eclipse.wst.xsl.launching/META-INF/MANIFEST.MF b/bundles/org.eclipse.wst.xsl.launching/META-INF/MANIFEST.MF
deleted file mode 100644
index d843989..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,24 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: %Bundle-Name.0
-Bundle-SymbolicName: org.eclipse.wst.xsl.launching;singleton:=true
-Bundle-Version: 1.0.100.qualifier
-Bundle-Activator: org.eclipse.wst.xsl.internal.launching.LaunchingPlugin
-Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.core.expressions;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.core.filesystem;bundle-version="[1.2.0,2.0.0)",
- org.eclipse.core.variables;bundle-version="[3.2.0,4.0.0)",
- org.eclipse.debug.core;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.ui;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.ui.ide;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.wst.xsl.core;bundle-version="[1.0.0,2.0.0)",
- org.eclipse.osgi.util;bundle-version="[3.2.0,4.0.0)"
-Bundle-ActivationPolicy: lazy
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Bundle-ClassPath: .
-Bundle-Localization: plugin
-Bundle-Vendor: %Bundle-Vendor.0
-Export-Package: org.eclipse.wst.xsl.internal.launching;x-internal:=true,
- org.eclipse.wst.xsl.launching,
- org.eclipse.wst.xsl.launching.config,
- org.eclipse.wst.xsl.launching.model
diff --git a/bundles/org.eclipse.wst.xsl.launching/about.html b/bundles/org.eclipse.wst.xsl.launching/about.html
deleted file mode 100644
index 2199df3..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/about.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<HTML>
-
-<head>
-<title>About</title>
-<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
-</head>
-
-<BODY lang="EN-US">
-
-<H3>About This Content</H3>
-
-<P>June, 2008</P>
-
-<H3>License</H3>
-
-<P>The Eclipse Foundation makes available all content in this plug-in
-("Content"). Unless otherwise indicated below, the Content is provided to you
-under the terms and conditions of the Eclipse Public License Version 1.0
-("EPL"). A copy of the EPL is available at
-<A href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/org/documents/epl-v10.php</A>.
-For purposes of the EPL, "Program" will mean the Content.</P>
-
-<P>If you did not receive this Content directly from the Eclipse Foundation, the
-Content is being redistributed by another party ("Redistributor") and different
-terms and conditions may apply to your use of any object code in the Content.
-Check the Redistributor’s license that was provided with the Content. If no such
-license exists, contact the Redistributor. Unless otherwise indicated below, the
-terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at
-<A href="http://www.eclipse.org/">http://www.eclipse.org/</A>.</P>
-
-</BODY>
-</HTML>
diff --git a/bundles/org.eclipse.wst.xsl.launching/build.properties b/bundles/org.eclipse.wst.xsl.launching/build.properties
deleted file mode 100644
index 9a7834a..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/build.properties
+++ /dev/null
@@ -1,8 +0,0 @@
-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- plugin.xml,\
- about.html,\
- plugin.properties
-jars.compile.order = . \ No newline at end of file
diff --git a/bundles/org.eclipse.wst.xsl.launching/plugin.properties b/bundles/org.eclipse.wst.xsl.launching/plugin.properties
deleted file mode 100644
index b8fa505..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/plugin.properties
+++ /dev/null
@@ -1,9 +0,0 @@
-#Properties file for org.eclipse.wst.xsl.launching
-Bundle-Name.0 = XSL Transform Launching
-launchConfigurationType.name.0 = XSL
-sourceLocator.name.0 = XSLT Source Lookup Director
-extension-point.name.0 = XSLT Processor Invoker
-extension-point.name.1 = XSLT Processor Type
-extension-point.name.2 = XSLT Processor
-extension-point.name.3 = XSLT Debugger
-Bundle-Vendor.0 = Eclipse.org \ No newline at end of file
diff --git a/bundles/org.eclipse.wst.xsl.launching/plugin.xml b/bundles/org.eclipse.wst.xsl.launching/plugin.xml
deleted file mode 100644
index cbb1e6a..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/plugin.xml
+++ /dev/null
@@ -1,50 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.2"?>
-<plugin>
- <extension
- point="org.eclipse.debug.core.launchConfigurationTypes">
- <launchConfigurationType
- sourceLocatorId="org.eclipse.wst.xsl.launching.sourceLookupDirector"
- sourcePathComputerId="org.eclipse.wst.xsl.launching.sourcePathComputer"
- id="org.eclipse.wst.xsl.launching.launchConfigurationType"
- name="%launchConfigurationType.name.0" />
- </extension>
-
- <extension
- point="org.eclipse.debug.core.sourceLocators">
- <sourceLocator
- name="%sourceLocator.name.0"
- class="org.eclipse.wst.xsl.internal.launching.XSLTSourceLookupDirector"
- id="org.eclipse.wst.xsl.launching.sourceLookupDirector">
- </sourceLocator>
- </extension>
-
- <extension
- point="org.eclipse.debug.core.sourcePathComputers">
- <sourcePathComputer
- class="org.eclipse.wst.xsl.internal.launching.XSLTSourcePathComputerDelegate"
- id="org.eclipse.wst.xsl.launching.sourcePathComputer">
- </sourcePathComputer>
- </extension>
-
- <extension
- point="org.eclipse.debug.core.breakpoints">
- <breakpoint
- id="xslLineBreakpoint"
- markerType="org.eclipse.wst.xsl.launching.xslLineBreakpointMarker"
- class="org.eclipse.wst.xsl.launching.model.XSLLineBreakpoint">
- </breakpoint>
- </extension>
-
- <extension
- id="xslLineBreakpointMarker"
- point="org.eclipse.core.resources.markers">
- <super
- type="org.eclipse.debug.core.lineBreakpointMarker">
- </super>
- <persistent
- value="true">
- </persistent>
- </extension>
-
-</plugin>
diff --git a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/LaunchingPlugin.java b/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/LaunchingPlugin.java
deleted file mode 100644
index d8abb17..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/LaunchingPlugin.java
+++ /dev/null
@@ -1,71 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.launching;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Plugin;
-import org.eclipse.core.runtime.Status;
-import org.osgi.framework.BundleContext;
-
-/**
- * The activator class controls the plug-in life cycle
- */
-public class LaunchingPlugin extends Plugin
-{
-
- // The plug-in ID
- public static final String PLUGIN_ID = "org.eclipse.wst.xsl.launching"; //$NON-NLS-1$
-
- // The shared instance
- private static LaunchingPlugin plugin;
-
- /**
- * The constructor
- */
- public LaunchingPlugin()
- {
- plugin = this;
- }
-
- @Override
- public void start(BundleContext context) throws Exception
- {
- super.start(context);
- }
-
- @Override
- public void stop(BundleContext context) throws Exception
- {
- plugin = null;
- super.stop(context);
- }
-
- /**
- * Returns the shared instance
- *
- * @return the shared instance
- */
- public static LaunchingPlugin getDefault()
- {
- return plugin;
- }
-
- public static void log(Exception e)
- {
- getDefault().getLog().log(new Status(IStatus.ERROR, PLUGIN_ID, 0, "", e)); //$NON-NLS-1$
- }
-
- public static void log(CoreException e)
- {
- getDefault().getLog().log(e.getStatus());
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/Messages.java b/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/Messages.java
deleted file mode 100644
index 362e3a8..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/Messages.java
+++ /dev/null
@@ -1,21 +0,0 @@
-package org.eclipse.wst.xsl.internal.launching;
-
-import org.eclipse.osgi.util.NLS;
-
-public class Messages extends NLS{
- private static final String BUNDLE_NAME = "org.eclipse.wst.xsl.internal.launching.messages"; //$NON-NLS-1$
-
- public static String Utils_0;
- public static String Utils_1;
-
- public static String XSLLineBreakpoint_0;
- public static String XSLStackFrame_5;
-
- private Messages() {
- }
-
- static {
- NLS.initializeMessages(BUNDLE_NAME, Messages.class);
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/Utils.java b/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/Utils.java
deleted file mode 100644
index 29b8010..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/Utils.java
+++ /dev/null
@@ -1,57 +0,0 @@
-package org.eclipse.wst.xsl.internal.launching;
-
-import java.io.File;
-import java.io.IOException;
-import java.net.URL;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.FileLocator;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.core.runtime.Status;
-
-public class Utils
-{
-
- public static String getFileLocation(String bundleId, String path) throws CoreException
- {
- String location = null;
- try
- {
- URL url = FileLocator.find(Platform.getBundle(bundleId), new Path(path), null);
- if (url != null)
- {
- URL fileUrl = FileLocator.toFileURL(url);
- File file = new File(fileUrl.getFile());
- location = file.getAbsolutePath();
- }
- }
- catch (IOException e)
- {
- throw new CoreException(new Status(IStatus.ERROR, LaunchingPlugin.PLUGIN_ID, IStatus.ERROR, Messages.Utils_0 + path + Messages.Utils_1 + bundleId, e));
- }
- return location;
- }
-
- public static String getPluginLocation(String bundleId) throws CoreException
- {
- String location = null;
- try
- {
- URL url = new URL("platform:/plugin/"+bundleId); //$NON-NLS-1$
- if (url != null)
- {
- URL fileUrl = FileLocator.toFileURL(url);
- File file = new File(fileUrl.getFile());
- location = file.getAbsolutePath();
- }
- }
- catch (IOException e)
- {
- throw new CoreException(new Status(IStatus.ERROR, LaunchingPlugin.PLUGIN_ID, IStatus.ERROR, Messages.Utils_0 + bundleId + Messages.Utils_1 + bundleId, e));
- }
- return location;
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/XSLPropertyTester.java b/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/XSLPropertyTester.java
deleted file mode 100644
index 12dd6b3..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/XSLPropertyTester.java
+++ /dev/null
@@ -1,21 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.launching;
-
-import org.eclipse.core.expressions.PropertyTester;
-
-public class XSLPropertyTester extends PropertyTester
-{
- public boolean test(Object arg0, String arg1, Object[] arg2, Object arg3)
- {
- return true;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/XSLTSourceLookupDirector.java b/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/XSLTSourceLookupDirector.java
deleted file mode 100644
index ea3e73c..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/XSLTSourceLookupDirector.java
+++ /dev/null
@@ -1,22 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.launching;
-
-import org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector;
-import org.eclipse.debug.core.sourcelookup.ISourceLookupParticipant;
-
-public class XSLTSourceLookupDirector extends AbstractSourceLookupDirector
-{
- public void initializeParticipants()
- {
- addParticipants(new ISourceLookupParticipant[]{ new XSLTSourceLookupParticipant() });
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/XSLTSourceLookupParticipant.java b/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/XSLTSourceLookupParticipant.java
deleted file mode 100644
index 2e23289..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/XSLTSourceLookupParticipant.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.launching;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.debug.core.sourcelookup.AbstractSourceLookupParticipant;
-import org.eclipse.wst.xsl.launching.model.XSLStackFrame;
-
-/**
- * Translate a stack frame into a source file name
- */
-public class XSLTSourceLookupParticipant extends AbstractSourceLookupParticipant
-{
- public String getSourceName(Object object) throws CoreException
- {
- if (object instanceof XSLStackFrame)
- {
- return ((XSLStackFrame) object).getSourceName();
- }
- return null;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/XSLTSourcePathComputerDelegate.java b/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/XSLTSourcePathComputerDelegate.java
deleted file mode 100644
index 7509a80..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/XSLTSourcePathComputerDelegate.java
+++ /dev/null
@@ -1,105 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.launching;
-
-import java.io.ByteArrayInputStream;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.core.resources.IContainer;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.variables.VariablesPlugin;
-import org.eclipse.debug.core.ILaunchConfiguration;
-import org.eclipse.debug.core.sourcelookup.ISourceContainer;
-import org.eclipse.debug.core.sourcelookup.ISourcePathComputerDelegate;
-import org.eclipse.debug.core.sourcelookup.containers.DirectorySourceContainer;
-import org.eclipse.debug.core.sourcelookup.containers.FolderSourceContainer;
-import org.eclipse.debug.core.sourcelookup.containers.ProjectSourceContainer;
-import org.eclipse.wst.xsl.launching.XSLLaunchConfigurationConstants;
-import org.eclipse.wst.xsl.launching.config.LaunchPipeline;
-import org.eclipse.wst.xsl.launching.config.LaunchTransform;
-
-public class XSLTSourcePathComputerDelegate implements ISourcePathComputerDelegate
-{
- public ISourceContainer[] computeSourceContainers(ILaunchConfiguration configuration, IProgressMonitor monitor) throws CoreException
- {
- List<ISourceContainer> containers = new ArrayList<ISourceContainer>();
-
- String sourceFileExpr = configuration.getAttribute(XSLLaunchConfigurationConstants.ATTR_INPUT_FILE, (String) null);
- IPath sourceFile = getSubstitutedPath(sourceFileExpr);
- LaunchPipeline pipeline = hydratePipeline(configuration);
-
- // TODO have some way of knowing whether it is an IResource or not
- containers.add(new DirectorySourceContainer(sourceFile, false));
-
- for (Iterator<?> iter = pipeline.getTransformDefs().iterator(); iter.hasNext();)
- {
- LaunchTransform transform = (LaunchTransform) iter.next();
- IPath path = transform.getPath();
- ISourceContainer sourceContainer = null;
- if (transform.getPathType().equals(LaunchTransform.RESOURCE_TYPE))
- {
- IResource resource = ResourcesPlugin.getWorkspace().getRoot().findMember(path);
- IContainer container = resource.getParent();
- if (container.getType() == IResource.PROJECT)
- {
- sourceContainer = new ProjectSourceContainer((IProject) container, false);
- }
- else if (container.getType() == IResource.FOLDER)
- {
- sourceContainer = new FolderSourceContainer(container, false);
- }
- }
- else
- {
- sourceContainer = new DirectorySourceContainer(path, false);
- }
- containers.add(sourceContainer);
- }
-
- // if (sourceContainer == null)
- // {
- // sourceContainer = new WorkspaceSourceContainer();
- // }
-
- return containers.toArray(new ISourceContainer[0]);
- }
-
- private static LaunchPipeline hydratePipeline(ILaunchConfiguration configuration) throws CoreException
- {
- LaunchPipeline pipeline = null;
- String s = configuration.getAttribute(XSLLaunchConfigurationConstants.ATTR_PIPELINE, (String) null);
- if (s != null && s.length() > 0)
- {
- ByteArrayInputStream inputStream = new ByteArrayInputStream(s.getBytes());
- pipeline = LaunchPipeline.fromXML(inputStream);
- }
- return pipeline;
- }
-
- private static IPath getSubstitutedPath(String path) throws CoreException
- {
- if (path != null)
- {
- path = VariablesPlugin.getDefault().getStringVariableManager().performStringSubstitution(path);
- return new Path(path);
- }
- return null;
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/messages.properties b/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/messages.properties
deleted file mode 100644
index 148157c..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/messages.properties
+++ /dev/null
@@ -1,4 +0,0 @@
-Utils_0=Error determining jar file location:
-Utils_1=\ from bundle:
-XSLLineBreakpoint_0=Line Breakpoint:
-XSLStackFrame_5=\ line: \ No newline at end of file
diff --git a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/XSLLaunchConfigurationConstants.java b/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/XSLLaunchConfigurationConstants.java
deleted file mode 100644
index 1c226a4..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/XSLLaunchConfigurationConstants.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.launching;
-
-import org.eclipse.wst.xsl.internal.launching.LaunchingPlugin;
-
-public class XSLLaunchConfigurationConstants
-{
- public static final String ATTR_INPUT_FILE = LaunchingPlugin.PLUGIN_ID + ".ATTR_INPUT_FILE"; //$NON-NLS-1$
- public static final String ATTR_USE_DEFAULT_OUTPUT_FILE = LaunchingPlugin.PLUGIN_ID + ".ATTR_USE_DEFAULT_OUTPUT_FILE"; //$NON-NLS-1$
-
- /**
- * @since 1.0
- */
- public static final String ATTR_OUTPUT_FOLDER = LaunchingPlugin.PLUGIN_ID + ".ATTR_OUTPUT_FOLDER"; //$NON-NLS-1$
-
- /**
- * @since 1.0
- */
- public static final String ATTR_OUTPUT_FILENAME = LaunchingPlugin.PLUGIN_ID + ".ATTR_OUTPUT_FILENAME"; //$NON-NLS-1$
- public static final String ID_LAUNCH_CONFIG_TYPE = LaunchingPlugin.PLUGIN_ID + ".launchConfigurationType"; //$NON-NLS-1$
- public static final String ATTR_PIPELINE = LaunchingPlugin.PLUGIN_ID + ".ATTR_PIPELINE"; //$NON-NLS-1$
- public static final String ATTR_OPEN_FILE = LaunchingPlugin.PLUGIN_ID + ".ATTR_OPEN_FILE"; //$NON-NLS-1$
-
- /**
- * @since 1.0
- */
- public static final String ATTR_FORMAT_FILE = LaunchingPlugin.PLUGIN_ID + ".ATTR_FORMAT_FILE"; //$NON-NLS-1$
- /**
- * @since 1.0
- */
- public static final String ATTR_WORKING_DIR = LaunchingPlugin.PLUGIN_ID + ".ATTR_WORKING_DIR"; //$NON-NLS-1$;
-}
diff --git a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/XSLTRuntime.java b/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/XSLTRuntime.java
deleted file mode 100644
index 1164cbd..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/XSLTRuntime.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007, 2010 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- * David Carver (Intalio) - clean up find bugs
- *******************************************************************************/
-package org.eclipse.wst.xsl.launching;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Preferences;
-import org.eclipse.core.variables.VariablesPlugin;
-import org.eclipse.wst.xsl.internal.launching.LaunchingPlugin;
-
-public class XSLTRuntime {
- private static void savePreferences() {
- LaunchingPlugin.getDefault().savePluginPreferences();
- }
-
- private static Preferences getPreferences() {
- return LaunchingPlugin.getDefault().getPluginPreferences();
- }
-
- /**
- * Creates a default Output File for the given input file string.
- *
- * @return Returns an IPath for the Output File.
- * @since 1.0
- */
- public static IPath defaultOutputFileForInputFile(String inputFileExpression)
- throws CoreException {
- String file = VariablesPlugin.getDefault().getStringVariableManager()
- .performStringSubstitution(inputFileExpression);
- IPath inputFilePath = new Path(file);
- inputFilePath = inputFilePath.removeFileExtension();
- inputFilePath = inputFilePath.addFileExtension("out.xml"); //$NON-NLS-1$
- return inputFilePath;
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/config/BaseLaunchHelper.java b/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/config/BaseLaunchHelper.java
deleted file mode 100644
index 8c2eb6e..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/config/BaseLaunchHelper.java
+++ /dev/null
@@ -1,204 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.launching.config;
-
-import java.io.ByteArrayInputStream;
-import java.io.File;
-import java.io.IOException;
-import java.net.MalformedURLException;
-import java.net.ServerSocket;
-import java.net.URL;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.core.variables.VariablesPlugin;
-import org.eclipse.debug.core.ILaunchConfiguration;
-import org.eclipse.wst.xsl.internal.launching.LaunchingPlugin;
-import org.eclipse.wst.xsl.launching.XSLLaunchConfigurationConstants;
-import org.eclipse.wst.xsl.launching.XSLTRuntime;
-
-/**
- * @since 1.0
- */
-public class BaseLaunchHelper {
- private final URL source;
- private final File target;
- protected final LaunchPipeline pipeline;
- private int requestPort = -1;
- private int eventPort = -1;
- private int generatePort = -1;
- private final boolean openFileOnCompletion;
- private final boolean formatFileOnCompletion;
- private final IPath workingDir;
-
- public BaseLaunchHelper(ILaunchConfiguration configuration)
- throws CoreException {
- workingDir = hydrateWorkingDir(configuration);
- source = hydrateSourceFileURL(configuration);
- target = hydrateOutputFile(configuration);
- pipeline = hydratePipeline(configuration);
- openFileOnCompletion = configuration.getAttribute(
- XSLLaunchConfigurationConstants.ATTR_OPEN_FILE, true);
- formatFileOnCompletion = configuration.getAttribute(
- XSLLaunchConfigurationConstants.ATTR_FORMAT_FILE, false);
- }
-
- public int getRequestPort() {
- if (requestPort == -1)
- requestPort = findFreePort();
- return requestPort;
- }
-
- public int getEventPort() {
- if (eventPort == -1)
- eventPort = findFreePort();
- return eventPort;
- }
-
- public int getGeneratePort() {
- if (generatePort == -1)
- generatePort = findFreePort();
- return generatePort;
- }
-
- public LaunchPipeline getPipeline() {
- return pipeline;
- }
-
- public URL getSource() {
- return source;
- }
-
- public File getTarget() {
- return target;
- }
-
- public IPath getWorkingDir() {
- return workingDir;
- }
-
- private static LaunchPipeline hydratePipeline(
- ILaunchConfiguration configuration) throws CoreException {
- LaunchPipeline pipeline = null;
- String s = configuration.getAttribute(
- XSLLaunchConfigurationConstants.ATTR_PIPELINE, (String) null);
- if (s != null && s.length() > 0) {
- ByteArrayInputStream inputStream = new ByteArrayInputStream(s
- .getBytes());
- pipeline = LaunchPipeline.fromXML(inputStream);
- }
- return pipeline;
- }
-
- public static URL hydrateSourceFileURL(ILaunchConfiguration configuration)
- throws CoreException {
- IPath sourceFile = hydrateSourceFile(configuration);
- return pathToURL(sourceFile);
- }
-
- private static IPath hydrateWorkingDir(ILaunchConfiguration configuration)
- throws CoreException {
- String expr = configuration
- .getAttribute(XSLLaunchConfigurationConstants.ATTR_WORKING_DIR,
- (String) null);
- return getSubstitutedPath(expr);
- }
-
- private static IPath hydrateSourceFile(ILaunchConfiguration configuration)
- throws CoreException {
- String sourceFileExpr = configuration.getAttribute(
- XSLLaunchConfigurationConstants.ATTR_INPUT_FILE, (String) null);
- return getSubstitutedPath(sourceFileExpr);
- }
-
- protected static URL pathToURL(IPath sourceFile) throws CoreException {
- URL url = null;
- try {
- url = sourceFile.toFile().toURI().toURL();
- } catch (MalformedURLException e) {
- throw new CoreException(new Status(IStatus.ERROR,
- LaunchingPlugin.PLUGIN_ID, IStatus.ERROR, sourceFile
- .toString(), e));
- }
- return url;
- }
-
- public static File hydrateOutputFile(ILaunchConfiguration configuration)
- throws CoreException {
- IPath outputFile = null;
- boolean useDefaultOutputFile = configuration.getAttribute(
- XSLLaunchConfigurationConstants.ATTR_USE_DEFAULT_OUTPUT_FILE,
- true);
- if (!useDefaultOutputFile) {
- String outputFileName = configuration.getAttribute(
- XSLLaunchConfigurationConstants.ATTR_OUTPUT_FILENAME,
- (String) null);
- String outputFolderExpr = configuration.getAttribute(
- XSLLaunchConfigurationConstants.ATTR_OUTPUT_FOLDER,
- (String) null);
- outputFile = getSubstitutedPath(outputFolderExpr).append(
- outputFileName);
- } else {
- outputFile = XSLTRuntime
- .defaultOutputFileForInputFile(configuration.getAttribute(
- XSLLaunchConfigurationConstants.ATTR_INPUT_FILE,
- (String) null));
- }
- return outputFile.toFile();
- }
-
- private static IPath getSubstitutedPath(String path) throws CoreException {
- if (path != null) {
- path = VariablesPlugin.getDefault().getStringVariableManager()
- .performStringSubstitution(path);
- return new Path(path);
- }
- return null;
- }
-
- /**
- * Returns a free port number on localhost, or -1 if unable to find a free
- * port.
- *
- * @return a free port number on localhost, or -1 if unable to find a free
- * port
- */
- public static int findFreePort() {
- ServerSocket socket = null;
- try {
- socket = new ServerSocket(0);
- return socket.getLocalPort();
- } catch (IOException e) {
- LaunchingPlugin.log(e);
- } finally {
- if (socket != null) {
- try {
- socket.close();
- } catch (IOException e) {
- LaunchingPlugin.log(e);
- }
- }
- }
- return -1;
- }
-
- public boolean getOpenFileOnCompletion() {
- return openFileOnCompletion;
- }
-
- public boolean getFormatFileOnCompletion() {
- return formatFileOnCompletion;
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/config/LaunchAttribute.java b/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/config/LaunchAttribute.java
deleted file mode 100644
index 26f1c9d..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/config/LaunchAttribute.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.launching.config;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.variables.VariablesPlugin;
-
-public class LaunchAttribute
-{
- public final String uri;
- public String type;
- public String value;
-
- public LaunchAttribute(String uri, String type, String value)
- {
- this.uri = uri;
- this.type = type;
- this.value = value;
- }
-
- public void setValue(String value)
- {
- this.value = value;
- }
-
- public String getResolvedValue() throws CoreException
- {
- return VariablesPlugin.getDefault().getStringVariableManager().performStringSubstitution(value);
- }
-
- @Override
- public int hashCode()
- {
- return uri.hashCode();
- }
-
- @Override
- public boolean equals(Object obj)
- {
- if (obj instanceof LaunchAttribute)
- {
- LaunchAttribute att = (LaunchAttribute) obj;
- return att.uri.equals(uri);
- }
- return false;
- }
-} \ No newline at end of file
diff --git a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/config/LaunchPipeline.java b/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/config/LaunchPipeline.java
deleted file mode 100644
index c3533dc..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/config/LaunchPipeline.java
+++ /dev/null
@@ -1,133 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007, 2010 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- * David Carver (Intalio) - clean up find bugs
- *******************************************************************************/
-package org.eclipse.wst.xsl.launching.config;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-import java.util.Properties;
-
-import javax.xml.parsers.ParserConfigurationException;
-import javax.xml.transform.TransformerException;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.wst.xsl.internal.launching.LaunchingPlugin;
-import org.w3c.dom.DOMException;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-import org.w3c.dom.NodeList;
-
-public class LaunchPipeline {
- private List<LaunchTransform> transformDefs = new ArrayList<LaunchTransform>();
- private final Properties outputProperties = new Properties();
-
- public Properties getOutputProperties() {
- return outputProperties;
- }
-
- public void addOutputProperty(String name, String value) {
- outputProperties.put(name, value);
- }
-
- public List<LaunchTransform> getTransformDefs() {
- return transformDefs;
- }
-
- public void setTransformDefs(List<LaunchTransform> transforms) {
- transformDefs = transforms;
- }
-
- public void addTransformDef(LaunchTransform tdef) {
- tdef.setPipeline(this);
- transformDefs.add(tdef);
- }
-
- public void removeTransformDef(LaunchTransform tdef) {
- transformDefs.remove(tdef);
- }
-
- public String toXML() throws CoreException {
- String xml = null;
- try {
- Document doc = PreferenceUtil.getDocument();
- Element rootEl = doc.createElement("Pipeline"); //$NON-NLS-1$
- doc.appendChild(rootEl);
-
- Element opEl = doc.createElement("OutputProperties"); //$NON-NLS-1$
- rootEl.appendChild(opEl);
- for (Object element : outputProperties.entrySet()) {
- Map.Entry entry = (Map.Entry) element;
- Element propEl = doc.createElement("Property"); //$NON-NLS-1$
- propEl.setAttribute("name", (String) entry.getKey()); //$NON-NLS-1$
- propEl.setAttribute("value", (String) entry.getValue()); //$NON-NLS-1$
- opEl.appendChild(propEl);
- }
-
- for (Iterator<LaunchTransform> iter = transformDefs.iterator(); iter
- .hasNext();) {
- LaunchTransform tdef = iter.next();
- Element tdefEl = tdef.asXML(doc);
- rootEl.appendChild(tdefEl);
- }
-
- xml = PreferenceUtil.serializeDocument(doc);
- } catch (DOMException e) {
- throw new CoreException(new Status(IStatus.ERROR,
- LaunchingPlugin.PLUGIN_ID, 0, e.getMessage(), e));
- } catch (ParserConfigurationException e) {
- throw new CoreException(new Status(IStatus.ERROR,
- LaunchingPlugin.PLUGIN_ID, 0, e.getMessage(), e));
- } catch (IOException e) {
- throw new CoreException(new Status(IStatus.ERROR,
- LaunchingPlugin.PLUGIN_ID, 0, e.getMessage(), e));
- } catch (TransformerException e) {
- throw new CoreException(new Status(IStatus.ERROR,
- LaunchingPlugin.PLUGIN_ID, 0, e.getMessage(), e));
- }
- return xml;
- }
-
- public static LaunchPipeline fromXML(InputStream inputStream)
- throws CoreException {
- Document doc = PreferenceUtil.getDocument(inputStream);
-
- LaunchPipeline pdef = new LaunchPipeline();
-
- Element rootEl = doc.getDocumentElement();
-
- Element opEl = (Element) rootEl
- .getElementsByTagName("OutputProperties").item(0); //$NON-NLS-1$
- if (opEl != null) {
- NodeList propEls = opEl.getElementsByTagName("Property"); //$NON-NLS-1$
- for (int i = 0; i < propEls.getLength(); i++) {
- Element propEl = (Element) propEls.item(i);
- String name = propEl.getAttribute("name"); //$NON-NLS-1$
- String value = propEl.getAttribute("value"); //$NON-NLS-1$
- pdef.addOutputProperty(name, value);
- }
- }
-
- NodeList transformEls = rootEl.getElementsByTagName("Transform"); //$NON-NLS-1$
- for (int i = 0; i < transformEls.getLength(); i++) {
- Element transformEl = (Element) transformEls.item(i);
- LaunchTransform tdef = LaunchTransform.fromXML(transformEl);
- pdef.addTransformDef(tdef);
- }
-
- return pdef;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/config/LaunchTransform.java b/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/config/LaunchTransform.java
deleted file mode 100644
index da2528a..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/config/LaunchTransform.java
+++ /dev/null
@@ -1,205 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.launching.config;
-
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.Set;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.variables.VariablesPlugin;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-import org.w3c.dom.NodeList;
-
-public class LaunchTransform
-{
- public static final String RESOURCE_TYPE = "resource"; //$NON-NLS-1$
- public static final String EXTERNAL_TYPE = "external"; //$NON-NLS-1$
-
- private final String stylesheet;
- private final String pathType;
- private String resolver;
- private final Set<LaunchAttribute> parameters = new HashSet<LaunchAttribute>();
- private LaunchPipeline pipeline;
-
- /**
- * The path may be an IResource to a file in the workspace, or an IPath to a
- * file outside of the workspace - depending on the pathType. The path
- * should be created using IPath.toPortableString(). The path may also
- * contain variables defined by the VariablePlugin.
- *
- * @param path
- * @param pathType
- */
- public LaunchTransform(String path, String pathType)
- {
- stylesheet = path;
- this.pathType = pathType;
- }
-
- public Set<LaunchAttribute> getParameters()
- {
- return parameters;
- }
-
- public void addParameter(LaunchAttribute parameter)
- {
- parameters.add(parameter);
- }
-
- public String getResolver()
- {
- return resolver;
- }
-
- public void setResolver(String resolver)
- {
- this.resolver = resolver;
- }
-
- public IPath getPath() throws CoreException
- {
- String substitutedValue = VariablesPlugin.getDefault().getStringVariableManager().performStringSubstitution(stylesheet);
- return Path.fromPortableString(substitutedValue);
- }
-
- public String getPathType()
- {
- return pathType;
- }
-
- /**
- * The full path to the file in the local file system (with any string
- * subsitutions already made).
- *
- * @return
- * @throws CoreException
- */
- public IPath getLocation() throws CoreException
- {
- IPath partialPath = getPath();
- IPath fullPath = null;
- if (RESOURCE_TYPE.equals(pathType))
- {
- IFile file = (IFile) ResourcesPlugin.getWorkspace().getRoot().findMember(partialPath);
- fullPath = file.getLocation();
- }
- else if (EXTERNAL_TYPE.equals(pathType))
- {
- fullPath = partialPath;
- }
- return fullPath;
- }
-
- public Element asXML(Document doc)
- {
- Element tdefEl = doc.createElement("Transform"); //$NON-NLS-1$
- tdefEl.setAttribute("path", stylesheet); //$NON-NLS-1$
- tdefEl.setAttribute("pathType", pathType); //$NON-NLS-1$
- if (resolver != null)
- tdefEl.setAttribute("uriResolver", resolver); //$NON-NLS-1$
- Element paramsEl = doc.createElement("Parameters"); //$NON-NLS-1$
- tdefEl.appendChild(paramsEl);
- for (Iterator<LaunchAttribute> iter = parameters.iterator(); iter.hasNext();)
- {
- LaunchAttribute param = iter.next();
- Element propEl = doc.createElement("Parameter"); //$NON-NLS-1$
- propEl.setAttribute("name", param.uri); //$NON-NLS-1$
- propEl.setAttribute("value", param.value); //$NON-NLS-1$
- paramsEl.appendChild(propEl);
- }
- return tdefEl;
- }
-
- public static LaunchTransform fromXML(Element transformEl)
- {
- String path = transformEl.getAttribute("path"); //$NON-NLS-1$
- String pathType = transformEl.getAttribute("pathType"); //$NON-NLS-1$
-
- LaunchTransform tdef = new LaunchTransform(path, pathType);
-
- String uriResolver = transformEl.getAttribute("uriResolver"); //$NON-NLS-1$
- tdef.setResolver(uriResolver);
-
- Element paramsEl = (Element) transformEl.getElementsByTagName("Parameters").item(0); //$NON-NLS-1$
- NodeList paramEls = paramsEl.getElementsByTagName("Parameter"); //$NON-NLS-1$
- for (int i = 0; i < paramEls.getLength(); i++)
- {
- Element paramEl = (Element) paramEls.item(i);
- String name = paramEl.getAttribute("name"); //$NON-NLS-1$
- String type = paramEl.getAttribute("type"); //$NON-NLS-1$
- String value = paramEl.getAttribute("value"); //$NON-NLS-1$
- tdef.addParameter(new LaunchAttribute(name, type, value));
- }
-
- return tdef;
- }
-
- public void setPipeline(LaunchPipeline pipeline)
- {
- this.pipeline = pipeline;
- }
-
- public LaunchPipeline getPipeline()
- {
- return pipeline;
- }
-
- /*
- * private File getURIResolverDirectory(ILaunchConfiguration configuration)
- * throws CoreException { File resolverDir = null; String baseURIType =
- * configuration.getAttribute(XSLLaunchConfigurationConstants.ATTR_BASE_URI_TYPE,
- * XSLLaunchConfigurationConstants.BASE_URI_WORKING_DIR_RELATIVE); if
- * (XSLLaunchConfigurationConstants.BASE_URI_ABSOLUTE.equals(baseURIType)) {
- * String uriDir =
- * configuration.getAttribute(XSLLaunchConfigurationConstants.ATTR_BASE_URI_DIRECTORY,
- * (String)null); if (uriDir!=null) { String pathExpr =
- * VariablesPlugin.getDefault().getStringVariableManager().performStringSubstitution(uriDir);
- * Path path = new Path(pathExpr); if (path.isAbsolute()) { File dir = new
- * File(path.toOSString()); if (dir.isDirectory() && dir.exists()) { return
- * dir; } // This may be a workspace relative path returned by a variable. //
- * However variable paths start with a slash and thus are thought to // be
- * absolute, so fall through to below } IResource res =
- * ResourcesPlugin.getWorkspace().getRoot().findMember(path); if (res
- * instanceof IContainer && res.exists()) return res.getLocation().toFile();
- * abort("URI path is invalid",null,0); } } else if
- * (XSLLaunchConfigurationConstants.BASE_URI_STYLESHEET_RELATIVE.equals(baseURIType)) {
- * resolverDir = getStylesheetRelativeURIResolver(configuration); } // no
- * need to handle the case of working_dir relative - this is the default for
- * JAXP so return null return resolverDir; }
- *
- * private File getStylesheetRelativeURIResolver(ILaunchConfiguration
- * configuration) throws CoreException { List stylesheets =
- * configuration.getAttribute(XSLLaunchConfigurationConstants.ATTR_STYLESHEETS_LIST,(List)null);
- * if (stylesheets == null || stylesheets.size() == 0) abort("No stylesheets
- * defined for this launch configuration", null, 0); else { String sheet =
- * (String)stylesheets.get(0); String pathExpr =
- * VariablesPlugin.getDefault().getStringVariableManager().performStringSubstitution(sheet);
- * Path path = new Path(pathExpr); if (path.isAbsolute()) { File file = new
- * File(path.toOSString()); if (file.exists()) { File dir =
- * file.getParentFile(); return dir; } // This may be a workspace relative
- * path returned by a variable. // However variable paths start with a slash
- * and thus are thought to // be absolute IResource res =
- * ResourcesPlugin.getWorkspace().getRoot().findMember(path); IContainer
- * parent = res.getParent(); if (parent.exists()) return
- * parent.getLocation().toFile(); abort("Stylesheet path is
- * invalid",null,0); } else { IResource res =
- * ResourcesPlugin.getWorkspace().getRoot().findMember(path); IContainer
- * parent = res.getParent(); if (parent.exists()) return
- * parent.getLocation().toFile(); abort("Stylesheet path is
- * invalid",null,0); } } return null; }
- */
-}
diff --git a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/config/PreferenceUtil.java b/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/config/PreferenceUtil.java
deleted file mode 100644
index 00ec0d6..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/config/PreferenceUtil.java
+++ /dev/null
@@ -1,159 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.launching.config;
-
-import java.io.ByteArrayOutputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.ArrayList;
-import java.util.List;
-
-import javax.xml.parsers.DocumentBuilder;
-import javax.xml.parsers.DocumentBuilderFactory;
-import javax.xml.parsers.FactoryConfigurationError;
-import javax.xml.parsers.ParserConfigurationException;
-import javax.xml.transform.OutputKeys;
-import javax.xml.transform.Transformer;
-import javax.xml.transform.TransformerException;
-import javax.xml.transform.TransformerFactory;
-import javax.xml.transform.dom.DOMSource;
-import javax.xml.transform.stream.StreamResult;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.wst.xsl.internal.launching.LaunchingPlugin;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-import org.w3c.dom.Node;
-import org.w3c.dom.NodeList;
-import org.xml.sax.InputSource;
-import org.xml.sax.SAXException;
-import org.xml.sax.helpers.DefaultHandler;
-
-/**
- * @since 1.0
- */
-public class PreferenceUtil
-{
-
- public static void createCoreException(Throwable e) throws CoreException
- {
- throw new CoreException(new Status(IStatus.ERROR, LaunchingPlugin.PLUGIN_ID, 0, e.getMessage(), e));
- }
-
- public static Document getDocument() throws ParserConfigurationException
- {
- DocumentBuilderFactory dfactory = DocumentBuilderFactory.newInstance();
- DocumentBuilder docBuilder = dfactory.newDocumentBuilder();
- Document doc = docBuilder.newDocument();
- return doc;
- }
-
- public static String serializeDocument(Document doc) throws IOException, TransformerException
- {
- ByteArrayOutputStream s = new ByteArrayOutputStream();
-
- TransformerFactory factory = TransformerFactory.newInstance();
- Transformer transformer = factory.newTransformer();
- transformer.setOutputProperty(OutputKeys.METHOD, "xml"); //$NON-NLS-1$
- transformer.setOutputProperty(OutputKeys.INDENT, "yes"); //$NON-NLS-1$
-
- DOMSource source = new DOMSource(doc);
- StreamResult outputTarget = new StreamResult(s);
- transformer.transform(source, outputTarget);
-
- return s.toString("UTF8"); //$NON-NLS-1$
- }
-
- public static Element[] getChildElements(Element parent, String name)
- {
- List<Element> children = new ArrayList<Element>();
- NodeList list = parent.getChildNodes();
- int length = list.getLength();
- for (int i = 0; i < length; ++i)
- {
- Node node = list.item(i);
- short type = node.getNodeType();
- if (type == Node.ELEMENT_NODE)
- {
- Element processorElement = (Element) node;
- if (processorElement.getNodeName().equals(name))
- {
- children.add(processorElement);
- }
- }
- }
- return children.toArray(new Element[0]);
- }
-
- public static String getNodeText(Node node)
- {
- switch (node.getNodeType())
- {
- case Node.ELEMENT_NODE:
- NodeList childNodes = node.getChildNodes();
- StringBuffer sb = new StringBuffer();
- for (int i = 0; i < childNodes.getLength(); i++)
- {
- Node child = childNodes.item(i);
- if (child.getNodeType() == Node.TEXT_NODE)
- {
- sb.append(child.getNodeValue());
- }
- }
- return sb.toString();
- case Node.TEXT_NODE:
- case Node.ATTRIBUTE_NODE:
- default:
- return node.getNodeValue();
- }
- }
-
- public static Document getDocument(InputStream stream) throws CoreException
- {
- Document doc = null;
- try
- {
- DocumentBuilder parser = DocumentBuilderFactory.newInstance().newDocumentBuilder();
- parser.setErrorHandler(new DefaultHandler());
- doc = parser.parse(new InputSource(stream));
- }
- catch (SAXException e)
- {
- PreferenceUtil.createCoreException(e);
- }
- catch (IOException e)
- {
- PreferenceUtil.createCoreException(e);
- }
- catch (ParserConfigurationException e)
- {
- PreferenceUtil.createCoreException(e);
- }
- catch (FactoryConfigurationError e)
- {
- PreferenceUtil.createCoreException(e);
- }
- finally
- {
- try
- {
- stream.close();
- }
- catch (IOException e)
- {
- PreferenceUtil.createCoreException(e);
- }
- }
- return doc;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/IXSLConstants.java b/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/IXSLConstants.java
deleted file mode 100644
index 1fa47da..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/IXSLConstants.java
+++ /dev/null
@@ -1,19 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.launching.model;
-
-public interface IXSLConstants
-{
-
- public static final String ID_XSL_DEBUG_MODEL = "org.eclipse.wst.xsl.launching.XSLDebugModel"; //$NON-NLS-1$
- public static final String MARKER_ID = "org.eclipse.wst.xsl.launching.xslLineBreakpointMarker"; //$NON-NLS-1$
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/IXSLDebugTarget.java b/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/IXSLDebugTarget.java
deleted file mode 100644
index 3e9e554..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/IXSLDebugTarget.java
+++ /dev/null
@@ -1,21 +0,0 @@
-package org.eclipse.wst.xsl.launching.model;
-
-import org.eclipse.debug.core.DebugException;
-import org.eclipse.debug.core.model.IDebugTarget;
-import org.eclipse.debug.core.model.IStackFrame;
-import org.eclipse.debug.core.model.IValue;
-
-public interface IXSLDebugTarget extends IDebugTarget
-{
- XSLVariable getVariable(int varId) throws DebugException;
-
- IStackFrame[] getStackFrames() throws DebugException;
-
- void stepInto() throws DebugException;
-
- void stepOver() throws DebugException;
-
- void stepReturn() throws DebugException;
-
- IValue getVariableValue(XSLVariable variable) throws DebugException;
-}
diff --git a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/NodeListVariable.java b/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/NodeListVariable.java
deleted file mode 100644
index 4887ab2..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/NodeListVariable.java
+++ /dev/null
@@ -1,92 +0,0 @@
-/*******************************************************************************
- *Copyright (c) 2008 STAR and others.
- *All rights reserved. This program and the accompanying materials
- *are made available under the terms of the Eclipse Public License v1.0
- *which accompanies this distribution, and is available at
- *http://www.eclipse.org/legal/epl-v10.html
- *
- *Contributors:
- * David Carver (STAR) - bug 214235 - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.launching.model;
-
-import org.eclipse.debug.core.DebugException;
-import org.eclipse.debug.core.model.IDebugTarget;
-import org.eclipse.debug.core.model.IValue;
-import org.eclipse.debug.core.model.IVariable;
-import org.w3c.dom.Node;
-
-/**
- * NodeListVariable represents a XSL Nodeset. This is typically a group of nodes that
- * matched a particular XPath expression, and are stored in an XSLT variable.
- *
- * @since 1.0
- */
-public class NodeListVariable extends XSLDebugElement implements IVariable {
-
- private Node node = null;
-
- private IDebugTarget debugTarget;
-
- public NodeListVariable(IDebugTarget target, Node nodeListNode) {
- super(target);
- node = nodeListNode;
- debugTarget = target;
- }
-
- public String getName() throws DebugException {
- // TODO Auto-generated method stub
- String nodeName = ""; //$NON-NLS-1$
- if (node.getPrefix() != null) {
- nodeName = nodeName + node.getPrefix() + ":"; //$NON-NLS-1$
- }
- if (node.getNodeName() != null) {
- nodeName = nodeName + node.getNodeName();
- }
- return nodeName;
- }
-
- public String getReferenceTypeName() throws DebugException {
- // TODO Auto-generated method stub
- return null;
- }
-
- public IValue getValue() throws DebugException {
- IValue value = new XSLValue(debugTarget, "string", node); //$NON-NLS-1$
- return value;
- }
-
- public boolean hasValueChanged() throws DebugException {
- return false;
- }
-
- public boolean supportsValueModification() {
- // TODO Auto-generated method stub
- return false;
- }
-
- public boolean verifyValue(String expression) throws DebugException {
- // TODO Auto-generated method stub
- return false;
- }
-
- public boolean verifyValue(IValue value) throws DebugException {
- // TODO Auto-generated method stub
- return false;
- }
-
- public void setValue(String expression) throws DebugException {
- // TODO Auto-generated method stub
-
- }
-
- public void setValue(IValue value) throws DebugException {
- // TODO Auto-generated method stub
-
- }
-
- public Node getNode() {
- return node;
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/XSLDebugElement.java b/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/XSLDebugElement.java
deleted file mode 100644
index 3eb2e04..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/XSLDebugElement.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.launching.model;
-
-import org.eclipse.debug.core.DebugException;
-import org.eclipse.debug.core.model.DebugElement;
-import org.eclipse.debug.core.model.IDebugTarget;
-import org.eclipse.debug.core.model.IDisconnect;
-import org.eclipse.debug.core.model.ITerminate;
-
-public abstract class XSLDebugElement extends DebugElement implements IDisconnect
-{
- public XSLDebugElement(IDebugTarget target)
- {
- super(target);
- }
-
- public String getModelIdentifier()
- {
- return IXSLConstants.ID_XSL_DEBUG_MODEL;
- }
-
- @Override
- public Object getAdapter(Class adapter) {
- if (adapter == ITerminate.class) {
- return getDebugTarget();
- }
- return super.getAdapter(adapter);
- }
-
- public boolean canDisconnect()
- {
- return getDebugTarget().canDisconnect();
- }
-
- public void disconnect() throws DebugException
- {
- getDebugTarget().disconnect();
- }
-
- public boolean isDisconnected()
- {
- return getDebugTarget().isDisconnected();
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/XSLLineBreakpoint.java b/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/XSLLineBreakpoint.java
deleted file mode 100644
index d1c6934..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/XSLLineBreakpoint.java
+++ /dev/null
@@ -1,79 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- * Bjorn Freeman-Benson - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.launching.model;
-
-import org.eclipse.core.resources.IMarker;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.IWorkspaceRunnable;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.debug.core.DebugPlugin;
-import org.eclipse.debug.core.model.IBreakpoint;
-import org.eclipse.debug.core.model.LineBreakpoint;
-import org.eclipse.wst.xsl.internal.launching.Messages;
-
-public class XSLLineBreakpoint extends LineBreakpoint
-{
- private int lineNumber;
-
- public XSLLineBreakpoint()
- {
- }
-
- public XSLLineBreakpoint(final IResource resource, final int lineNumber, final int charStart, final int charEnd) throws CoreException
- {
- this.lineNumber = lineNumber;
- IWorkspaceRunnable runnable = new IWorkspaceRunnable()
- {
- public void run(IProgressMonitor monitor) throws CoreException
- {
- IMarker marker = resource.createMarker(IXSLConstants.MARKER_ID);
- setMarker(marker);
- marker.setAttribute(IBreakpoint.ID, getModelIdentifier());
- marker.setAttribute(IBreakpoint.ENABLED, Boolean.TRUE);
- marker.setAttribute(IMarker.MESSAGE, Messages.XSLLineBreakpoint_0 + resource.getName() + " [line: " + lineNumber + "]"); //$NON-NLS-1$ //$NON-NLS-2$
-
- marker.setAttribute(IMarker.LINE_NUMBER, lineNumber);
- marker.setAttribute(IMarker.CHAR_START, Integer.valueOf(charStart));
- marker.setAttribute(IMarker.CHAR_END, Integer.valueOf(charEnd));
-
- register(true);
- }
- };
- run(getMarkerRule(resource), runnable);
- }
-
- @Override
- public int getLineNumber() throws CoreException
- {
- int line = super.getLineNumber();
- return line == -1 ? lineNumber : line;
- }
-
- protected void register(boolean register) throws CoreException
- {
- DebugPlugin plugin = DebugPlugin.getDefault();
- if (plugin != null && register)
- {
- plugin.getBreakpointManager().addBreakpoint(this);
- }
- else
- {
- setRegistered(false);
- }
- }
-
- public String getModelIdentifier()
- {
- return IXSLConstants.ID_XSL_DEBUG_MODEL;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/XSLStackFrame.java b/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/XSLStackFrame.java
deleted file mode 100644
index 432600f..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/XSLStackFrame.java
+++ /dev/null
@@ -1,249 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.launching.model;
-
-import java.net.MalformedURLException;
-import java.net.URL;
-
-import org.eclipse.core.runtime.Path;
-import org.eclipse.debug.core.DebugException;
-import org.eclipse.debug.core.model.IRegisterGroup;
-import org.eclipse.debug.core.model.IStackFrame;
-import org.eclipse.debug.core.model.IThread;
-import org.eclipse.debug.core.model.IVariable;
-import org.eclipse.wst.xsl.internal.launching.LaunchingPlugin;
-import org.eclipse.wst.xsl.internal.launching.Messages;
-
-/**
- * XSL stack frame.
- */
-public class XSLStackFrame extends XSLDebugElement implements IStackFrame
-{
- private final XSLThread xslThread;
- private int id;
- private String name;
- private int lineNumber;
- private String xslFileName;
- private IVariable[] variables;
-
- public XSLStackFrame(XSLThread thread, String data, int index)
- {
- super(thread.getDebugTarget());
- this.xslThread = thread;
- init(data,(IXSLDebugTarget) thread.getDebugTarget());
- }
-
- private void init(String data,IXSLDebugTarget debugTarget)
- {
-
- String[] strings = data.split("\\|"); //$NON-NLS-1$
- String fileName = strings[0];
- try
- {
- URL url = new URL(fileName);
- Path p = new Path(url.getFile());
- xslFileName = (new Path(fileName)).lastSegment();
-
- String idString = strings[1];
- id = Integer.parseInt(idString);
- String pc = strings[2];
- lineNumber = Integer.parseInt(pc);
- String safename = strings[3];
-
- int theIndex;
- while ((theIndex = safename.indexOf("%@_PIPE_@%")) != -1) //$NON-NLS-1$
- {
- safename = safename.substring(0, theIndex) + "|" + safename.substring(theIndex + "%@_PIPE_@%".length(), safename.length()); //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- name = p.lastSegment() + " " + safename; //$NON-NLS-1$
-
- variables = new XSLVariable[strings.length-4];
- for (int i=0;i<variables.length;i++)
- {
- int varId = Integer.parseInt(strings[i+4]);
- try
- {
- XSLVariable var = debugTarget.getVariable(varId);
- variables[i] = var;
- }
- catch (DebugException e)
- {
- LaunchingPlugin.log(e);
- }
- }
- }
- catch (MalformedURLException e)
- {
- LaunchingPlugin.log(e);
- }
- }
-
- public IThread getThread()
- {
- return xslThread;
- }
-
- public IVariable[] getVariables() throws DebugException
- {
- return variables;
- }
-
- public boolean hasVariables() throws DebugException
- {
- return variables.length > 0;
- }
-
- public int getLineNumber() throws DebugException
- {
- return lineNumber;
- }
-
- public int getCharStart() throws DebugException
- {
- return -1;
- }
-
- public int getCharEnd() throws DebugException
- {
- return -1;
- }
-
- public String getName() throws DebugException
- {
- return name + Messages.XSLStackFrame_5 + lineNumber;
- }
-
- public IRegisterGroup[] getRegisterGroups() throws DebugException
- {
- return null;
- }
-
- public boolean hasRegisterGroups() throws DebugException
- {
- return false;
- }
-
- public boolean canStepInto()
- {
- return getThread().canStepInto();
- }
-
- public boolean canStepOver()
- {
- return getThread().canStepOver();
- }
-
- public boolean canStepReturn()
- {
- return getThread().canStepReturn();
- }
-
- public boolean isStepping()
- {
- return getThread().isStepping();
- }
-
- public void stepInto() throws DebugException
- {
- getThread().stepInto();
- }
-
- public void stepOver() throws DebugException
- {
- getThread().stepOver();
- }
-
- public void stepReturn() throws DebugException
- {
- getThread().stepReturn();
- }
-
- public boolean canResume()
- {
- return getThread().canResume();
- }
-
- public boolean canSuspend()
- {
- return getThread().canSuspend();
- }
-
- public boolean isSuspended()
- {
- return getThread().isSuspended();
- }
-
- public void resume() throws DebugException
- {
- getThread().resume();
- }
-
- public void suspend() throws DebugException
- {
- getThread().suspend();
- }
-
- public boolean canTerminate()
- {
- return getThread().canTerminate();
- }
-
- public boolean isTerminated()
- {
- return getThread().isTerminated();
- }
-
- public void terminate() throws DebugException
- {
- getThread().terminate();
- }
-
- /**
- * Returns the name of the source file this stack frame is associated with.
- */
- public String getSourceName()
- {
- return xslFileName;
- }
-
- @Override
- public boolean equals(Object obj)
- {
- if (obj instanceof XSLStackFrame)
- {
- XSLStackFrame sf = (XSLStackFrame) obj;
- return sf.id == id;
- }
- return false;
- }
-
- @Override
- public int hashCode()
- {
- return getSourceName().hashCode() + id;
- }
-
- protected int getIdentifier()
- {
- return id;
- }
-
- public void setLineNumber(int lineNumber)
- {
- this.lineNumber = lineNumber;
- }
-
- public void setVariables(IVariable[] variables)
- {
- this.variables = variables;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/XSLThread.java b/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/XSLThread.java
deleted file mode 100644
index e92f16e..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/XSLThread.java
+++ /dev/null
@@ -1,182 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.launching.model;
-
-import org.eclipse.debug.core.DebugException;
-import org.eclipse.debug.core.model.IBreakpoint;
-import org.eclipse.debug.core.model.IDebugTarget;
-import org.eclipse.debug.core.model.IStackFrame;
-import org.eclipse.debug.core.model.IThread;
-
-public class XSLThread extends XSLDebugElement implements IThread
-{
-
- /**
- * Breakpoints this thread is suspended at or <code>null</code> if none.
- */
- private IBreakpoint[] fBreakpoints;
-
- /**
- * Whether this thread is stepping
- */
- private boolean fStepping = false;
-
- /**
- * Constructs a new thread for the given target
- */
- public XSLThread(IDebugTarget target)
- {
- super(target);
- }
-
- public IStackFrame[] getStackFrames() throws DebugException
- {
- if (isSuspended())
- {
- return ((IXSLDebugTarget) getDebugTarget()).getStackFrames();
- }
- else
- {
- return new IStackFrame[0];
- }
- }
-
- public boolean hasStackFrames() throws DebugException
- {
- return isSuspended();
- }
-
- public int getPriority() throws DebugException
- {
- return 0;
- }
-
- public IStackFrame getTopStackFrame() throws DebugException
- {
- IStackFrame[] frames = getStackFrames();
- if (frames.length > 0)
- {
- return frames[0];
- }
- return null;
- }
-
- public String getName() throws DebugException
- {
- return "Thread[1]"; //$NON-NLS-1$
- }
-
- public IBreakpoint[] getBreakpoints()
- {
- if (fBreakpoints == null)
- {
- return new IBreakpoint[0];
- }
- return fBreakpoints;
- }
-
- /**
- * Sets the breakpoints this thread is suspended at, or <code>null</code>
- * if none.
- *
- * @param breakpoints
- * the breakpoints this thread is suspended at, or
- * <code>null</code> if none
- * @since 1.0
- */
- public void setBreakpoints(IBreakpoint[] breakpoints)
- {
- fBreakpoints = breakpoints;
- }
-
- public boolean canResume()
- {
- return isSuspended();
- }
-
- public boolean canSuspend()
- {
- return !isSuspended();
- }
-
- public boolean isSuspended()
- {
- return getDebugTarget().isSuspended();
- }
-
- public void resume() throws DebugException
- {
- getDebugTarget().resume();
- }
-
- public void suspend() throws DebugException
- {
- getDebugTarget().suspend();
- }
-
- public boolean canStepInto()
- {
- return isSuspended();
- }
-
- public boolean canStepOver()
- {
- return isSuspended();
- }
-
- public boolean canStepReturn()
- {
- return isSuspended();
- }
-
- public boolean isStepping()
- {
- return fStepping;
- }
-
- public void stepInto() throws DebugException
- {
- ((IXSLDebugTarget) getDebugTarget()).stepInto();
- }
-
- public void stepOver() throws DebugException
- {
- ((IXSLDebugTarget) getDebugTarget()).stepOver();
- }
-
- public void stepReturn() throws DebugException
- {
- ((IXSLDebugTarget) getDebugTarget()).stepReturn();
- }
-
- public boolean canTerminate()
- {
- return !isTerminated();
- }
-
- public boolean isTerminated()
- {
- return getDebugTarget().isTerminated();
- }
-
- public void terminate() throws DebugException
- {
- getDebugTarget().terminate();
- }
-
- /**
- * @since 1.0
- */
- public void setStepping(boolean stepping)
- {
- fStepping = stepping;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/XSLValue.java b/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/XSLValue.java
deleted file mode 100644
index c007f0b..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/XSLValue.java
+++ /dev/null
@@ -1,157 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- * David Carver (STAR) - bug 214235 - Node List expansion
- *******************************************************************************/
-package org.eclipse.wst.xsl.launching.model;
-
-import java.io.ByteArrayInputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.ArrayList;
-import java.util.List;
-
-import javax.xml.parsers.DocumentBuilder;
-import javax.xml.parsers.DocumentBuilderFactory;
-import javax.xml.parsers.ParserConfigurationException;
-
-import org.eclipse.debug.core.DebugException;
-import org.eclipse.debug.core.model.IDebugTarget;
-import org.eclipse.debug.core.model.IValue;
-import org.eclipse.debug.core.model.IVariable;
-import org.w3c.dom.Attr;
-import org.w3c.dom.Document;
-import org.w3c.dom.NamedNodeMap;
-import org.w3c.dom.Node;
-import org.w3c.dom.NodeList;
-import org.xml.sax.SAXException;
-
-public class XSLValue extends XSLDebugElement implements IValue
-{
- private static final String NODESET = "nodeset"; //$NON-NLS-1$
- private static final String EMPTY_NODESET = "<EMPTY NODESET>"; //$NON-NLS-1$
- private String fValue;
- private String type;
- private boolean hasVariables;
- private Node actualNode;
-
- /**
- * @since 1.0
- */
- public XSLValue(IDebugTarget target, String type, Node node) {
- super(target);
- actualNode = node;
- String value = ""; //$NON-NLS-1$
- if (node.getNodeValue() != null) {
- value = node.getNodeValue();
- }
- init(target, type, value);
- }
- public XSLValue(IDebugTarget target, String type, String value)
- {
- super(target);
- init(target, type, value);
- }
-
- private void init(IDebugTarget target, String type, String value) {
- this.type = type;
- fValue = value;
- }
-
-
-
- public String getReferenceTypeName() throws DebugException
- {
- return type;
- }
-
- public String getValueString() throws DebugException
- {
- if ("string".equals(type)) //$NON-NLS-1$
- return "'"+fValue+"'"; //$NON-NLS-1$ //$NON-NLS-2$
- return fValue;
- }
-
- public boolean isAllocated() throws DebugException
- {
- return true;
- }
-
- public IVariable[] getVariables() throws DebugException
- {
- List<IVariable> variableList = new ArrayList<IVariable>();
- if (actualNode != null) {
- if (actualNode.hasAttributes()) {
- getAttributes(variableList, actualNode);
- }
- variableList.addAll(getNodeListVariables(actualNode.getChildNodes()));
- }
- if (type.equals(NODESET) && !(fValue.equals(EMPTY_NODESET))) {
- createNodeSetVariables(variableList);
- }
- IVariable[] variables = new IVariable[variableList.size()];
- variableList.toArray(variables);
- return variables;
- }
- private void createNodeSetVariables(List<IVariable> variableList) {
- DocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance();
- NodeList nodeList = null;
- try {
- DocumentBuilder builder = builderFactory.newDocumentBuilder();
- String nodeSet = "<nodeset>" + fValue + "</nodeset>"; //$NON-NLS-1$ //$NON-NLS-2$
- InputStream is = new ByteArrayInputStream(nodeSet.getBytes());
- Document doc = builder.parse(is);
- Node firstChild = doc.getFirstChild();
- nodeList = firstChild.getChildNodes();
- variableList.addAll(getNodeListVariables(nodeList));
- } catch (ParserConfigurationException e) {
- e.printStackTrace();
- } catch (SAXException e) {
- e.printStackTrace();
- } catch (IOException e) {
- e.printStackTrace();
- }
- }
- private List<IVariable> getNodeListVariables(NodeList nodeList) {
- List<IVariable> variableList = new ArrayList<IVariable>();
- if (nodeList != null) {
- for (int i = 0; i < nodeList.getLength(); i++) {
- Node node = nodeList.item(i);
- IVariable variable = new NodeListVariable(getDebugTarget(), node);
- variableList.add(variable);
- }
- }
- return variableList;
- }
- private void getAttributes(List<IVariable> variableList, Node node) {
- NamedNodeMap nodeMap = node.getAttributes();
- for (int item = 0; item < nodeMap.getLength(); item++) {
- Attr attribute = (Attr) nodeMap.item(item);
- IVariable variable = new NodeListVariable(getDebugTarget(), attribute);
- variableList.add(variable);
- }
- }
-
- public boolean hasVariables() throws DebugException
- {
- hasVariables = false;
- if (actualNode != null) {
- hasVariables = actualNode.hasChildNodes();
- } else if (type.equals(NODESET)) {
- hasVariables = true;
- } else {
- hasVariables = false;
- }
- if (fValue.equals(EMPTY_NODESET)) {
- hasVariables = false;
- }
-
- return hasVariables;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/XSLVariable.java b/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/XSLVariable.java
deleted file mode 100644
index 2c8d094..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/XSLVariable.java
+++ /dev/null
@@ -1,99 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.launching.model;
-
-import org.eclipse.debug.core.DebugException;
-import org.eclipse.debug.core.model.IDebugTarget;
-import org.eclipse.debug.core.model.IValue;
-import org.eclipse.debug.core.model.IVariable;
-
-public class XSLVariable extends XSLDebugElement implements IVariable
-{
- public static final String LOCAL_SCOPE = "L"; //$NON-NLS-1$
- public static final String TUNNEL_SCOPE = "T"; //$NON-NLS-1$
- public static final String GLOBAL_SCOPE = "G"; //$NON-NLS-1$
-
- private final int id;
- private String fName;
- private String scope;
-
- public XSLVariable(IDebugTarget target, int id)
- {
- super(target);
- this.id = id;
- }
-
- public int getId()
- {
- return id;
- }
-
- public IValue getValue() throws DebugException
- {
- return ((IXSLDebugTarget) getDebugTarget()).getVariableValue(this);
- }
-
- public void setName(String name)
- {
- this.fName = name;
- }
-
- public String getName() throws DebugException
- {
- return fName;
- }
-
- public String getReferenceTypeName() throws DebugException
- {
- if (GLOBAL_SCOPE.equals(scope))
- return "global"; //$NON-NLS-1$
- return "local"; //$NON-NLS-1$
- }
-
- public boolean hasValueChanged() throws DebugException
- {
- return false;
- }
-
- public void setValue(String expression) throws DebugException
- {
- }
-
- public void setValue(IValue value) throws DebugException
- {
- }
-
- public boolean supportsValueModification()
- {
- return false;
- }
-
- public boolean verifyValue(String expression) throws DebugException
- {
- return false;
- }
-
- public boolean verifyValue(IValue value) throws DebugException
- {
- return false;
- }
-
- public void setScope(String scope)
- {
- this.scope = scope;
- }
-
- public String getScope()
- {
- return scope;
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.saxon/.classpath b/bundles/org.eclipse.wst.xsl.saxon/.classpath
deleted file mode 100644
index de15a1a..0000000
--- a/bundles/org.eclipse.wst.xsl.saxon/.classpath
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="src" path="src-debugger"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.4"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/bundles/org.eclipse.wst.xsl.saxon/.project b/bundles/org.eclipse.wst.xsl.saxon/.project
deleted file mode 100644
index 43a6584..0000000
--- a/bundles/org.eclipse.wst.xsl.saxon/.project
+++ /dev/null
@@ -1,34 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.wst.xsl.saxon</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>
- <buildCommand>
- <name>org.eclipse.pde.api.tools.apiAnalysisBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- <nature>org.eclipse.pde.api.tools.apiAnalysisNature</nature>
- </natures>
-</projectDescription>
diff --git a/bundles/org.eclipse.wst.xsl.saxon/.settings/org.eclipse.jdt.core.prefs b/bundles/org.eclipse.wst.xsl.saxon/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index eca9f36..0000000
--- a/bundles/org.eclipse.wst.xsl.saxon/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,15 +0,0 @@
-#Tue Feb 10 05:24:56 GMT 2009
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.doc.comment.support=enabled
-org.eclipse.jdt.core.compiler.problem.invalidJavadoc=ignore
-org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=disabled
-org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=disabled
-org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=disabled
-org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=public
-org.eclipse.jdt.core.compiler.problem.missingJavadocComments=ignore
-org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=disabled
-org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=public
-org.eclipse.jdt.core.compiler.problem.missingJavadocTagDescription=return_tag
-org.eclipse.jdt.core.compiler.problem.missingJavadocTags=ignore
-org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled
-org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=public
diff --git a/bundles/org.eclipse.wst.xsl.saxon/META-INF/MANIFEST.MF b/bundles/org.eclipse.wst.xsl.saxon/META-INF/MANIFEST.MF
deleted file mode 100644
index d384048..0000000
--- a/bundles/org.eclipse.wst.xsl.saxon/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,8 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: %Bundle-Name.0
-Bundle-SymbolicName: org.eclipse.wst.xsl.saxon;singleton:=true
-Bundle-Version: 1.0.100.qualifier
-Bundle-RequiredExecutionEnvironment: J2SE-1.4
-Bundle-Localization: plugin
-Bundle-Vendor: %Bundle-Vendor.0
diff --git a/bundles/org.eclipse.wst.xsl.saxon/SaxonAttributes.properties b/bundles/org.eclipse.wst.xsl.saxon/SaxonAttributes.properties
deleted file mode 100644
index d64ab0e..0000000
--- a/bundles/org.eclipse.wst.xsl.saxon/SaxonAttributes.properties
+++ /dev/null
@@ -1,89 +0,0 @@
-###############################################################################
-# Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Eclipse Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Contributors:
-# Doug Satchwell (Chase Technology Ltd) - initial API and implementation
-###############################################################################
-ALLOW_EXTERNAL_FUNCTIONS=http://saxon.sf.net/feature/allow-external-functions
-ALLOW_EXTERNAL_FUNCTIONS.TYPE=boolean
-ALLOW_EXTERNAL_FUNCTIONS.DESC=true if the stylesheet allows external functions to be called. Default is true. The setting false is recommended in an environment where untrusted stylesheets may be executed. Setting this value to false also disables user-defined extension elements, together with the writing of multiple output files, all of which carry similar security risks.
-
-TRACE_EXTERNAL_FUNCTIONS=http://saxon.sf.net/feature/trace-external-functions
-TRACE_EXTERNAL_FUNCTIONS.TYPE=boolean
-TRACE_EXTERNAL_FUNCTIONS.DESC=true if the tracing of calls to external Java methods is required. Default is false. This switch is useful when analyzing why Saxon fails to find a Java method to match an extension function call in the stylesheet, or why it chooses one method over another when several are available. The trace output is sent to System.err.
-
-TIMING=http://saxon.sf.net/feature/timing
-TIMING.TYPE=boolean
-TIMING.DESC=true if basic timing information is to be output to the standard error output stream.
-
-TREE_MODEL=http://saxon.sf.net/feature/treeModel
-TREE_MODEL.TYPE=int
-TREE_MODEL.DESC=Builder.STANDARD_TREE or Builder.TINY_TREE. Selects an implementation of the Saxon tree model. The default is Builder.TINY_TREE.
-
-TRACE_LISTENER=http://saxon.sf.net/feature/traceListener
-TRACE_LISTENER.TYPE=object
-TRACE_LISTENER.DESC=an instance of the class net.sf.saxon.trace.TraceListener. This object will be notified of significant events occurring during the transformation, for tracing or debugging purposes.
-
-LINE_NUMBERING=http://saxon.sf.net/feature/linenumbering
-LINE_NUMBERING.TYPE=boolean
-LINE_NUMBERING.DESC=indicates whether line numbers are to be maintained for the source document. This will not be possible if the source document is supplied as a DOM. The line numbers are accessible through the tracing interface, and also via the saxon:line-number() extension function.
-
-RECOVERY_POLICY=http://saxon.sf.net/feature/recoveryPolicy
-RECOVERY_POLICY.TYPE=int
-RECOVERY_POLICY.DESC=An Integer. Indicates how dynamic errors should be handled. One of the values (defined as constants in the Controller class) RECOVER_SILENTLY, RECOVER_WITH_WARNINGS, or DO_NOT_RECOVER).
-
-MESSAGE_EMITTER_CLASS=http://saxon.sf.net/feature/messageEmitterClass
-MESSAGE_EMITTER_CLASS.TYPE=class
-MESSAGE_EMITTER_CLASS.DESC=The full name of a saxon emitter class. that implements the net.sf.saxon.output.Emitter interface; the class will be used to format the output of the xsl:message instruction.
-
-SOURCE_PARSER_CLASS=http://saxon.sf.net/feature/sourceParserClass
-SOURCE_PARSER_CLASS.TYPE=class
-SOURCE_PARSER_CLASS.DESC=The full name of a class that implements the org.xml.sax.XMLReader interface; the class will be used to parse source documents (that is, the principal source document plus any secondary source documents read using the document() function)
-
-STYLE_PARSER_CLASS=http://saxon.sf.net/feature/styleParserClass
-STYLE_PARSER_CLASS.TYPE=class
-STYLE_PARSER_CLASS.DESC=The full name of a class that implements the org.xml.sax.XMLReader interface; the class will be used to parse stylesheet documents (that is, the principal stylesheet module plus any secondary source documents read using xsl:include or xsl:import)
-
-OUTPUT_URI_RESOLVER=http://saxon.sf.net/feature/outputURIResolver
-OUTPUT_URI_RESOLVER.TYPE=object
-OUTPUT_URI_RESOLVER.DESC=An instance of the class net.sf.saxon.OutputURIResolver; this object will be used to resolve URIs of secondary result documents specified in the href attribute of the xsl:result-document instruction
-
-DTD_VALIDATION=http://saxon.sf.net/feature/validation
-DTD_VALIDATION.TYPE=boolean
-DTD_VALIDATION.DESC=Indicates whether the XML parser should be asked to validate source documents against their DTD. This applies to the initial source document and any source documents read using the document() function, unless handled by a user-written URIResolver.
-
-VALIDATION_WARNINGS=http://saxon.sf.net/feature/validation-warnings
-VALIDATION_WARNINGS.TYPE=boolean
-VALIDATION_WARNINGS.DESC=This determines whether validation errors in result documents should be treated as fatal. By default they are fatal; with this option set, they are treated as warnings.
-
-SCHEMA_VALIDATION=http://saxon.sf.net/feature/schema-validation
-SCHEMA_VALIDATION.TYPE=boolean
-SCHEMA_VALIDATION.DESC=This determines whether source documents should be parsed with schema-validation enabled.
-
-VERSION_WARNING=http://saxon.sf.net/feature/version-warning
-VERSION_WARNING.TYPE=boolean
-VERSION_WARNING.DESC=This determines whether a warning should be output when running an XSLT 2.0 processor against an XSLT 1.0 stylesheet. The XSLT specification requires this to be done by default.
-
-NAME_POOL=http://saxon.sf.net/feature/namePool
-NAME_POOL.TYPE=object
-NAME_POOL.DESC=A instance of class net.sf.saxon.om.NamePool. Indicates that the supplied NamePool should be used as the target (run-time) NamePool by all stylesheets compiled (using newTemplates()) after this call on setAttribute. Normally a single system-allocated NamePool is used for all stylesheets compiled while the Java VM remains loaded; this attribute allows user control over the allocation of NamePools. Note that source trees used as input to a transformation must be built using the same NamePool that is used when the stylesheet is compiled: this will happen automatically if the input to a transformation is supplied as a SAXSource or StreamSource but it is under user control if you build the source tree yourself.
-
-RECOGNIZE_URI_QUERY_PARAMETERS=http://saxon.sf.net/feature/recognize-uri-query-parameters
-RECOGNIZE_URI_QUERY_PARAMETERS.TYPE=boolean
-RECOGNIZE_URI_QUERY_PARAMETERS.DESC=determines whether query parameters (things after "?")\n\
- in a URI passed to the document() or doc() function are specially recognized by the system default URIResolver.\n\
- Allowed parameters include, for example validation=strict to perform schema validation, and strip-space=yes\n\
- to perform stripping of all whitespace-only text nodes
-
-COLLATION_URI_RESOLVER=http://saxon.sf.net/feature/collation-uri-resolver
-COLLATION_URI_RESOLVER.TYPE=object
-COLLATION_URI_RESOLVER.DESC=A net.sf.saxon.sort.CollationURIResolver used to resolve collation URIs used in stylesheets compiled or executed under the\n\
- control of this TransformerFactory
-
-COLLECTION_URI_RESOLVER=http://saxon.sf.net/feature/collection-uri-resolver
-COLLECTION_URI_RESOLVER.TYPE=object
-COLLECTION_URI_RESOLVER.DESC=A net.sf.saxon.sort.CollectionURIResolver used to resolve collection URIs used in calls of the collection() function \ No newline at end of file
diff --git a/bundles/org.eclipse.wst.xsl.saxon/SaxonOutputProperties.properties b/bundles/org.eclipse.wst.xsl.saxon/SaxonOutputProperties.properties
deleted file mode 100644
index e979071..0000000
--- a/bundles/org.eclipse.wst.xsl.saxon/SaxonOutputProperties.properties
+++ /dev/null
@@ -1,27 +0,0 @@
-###############################################################################
-# Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Eclipse Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Contributors:
-# Doug Satchwell (Chase Technology Ltd) - initial API and implementation
-###############################################################################
-INDENT_SPACES={http://saxon.sf.net/}indent-spaces
-INDENT_SPACES.DESC=(integer value).Defines the number of spaces used for indentation of output
-
-UNDECLARE_NAMESPACES={http://saxon.sf.net/}undeclare-namespaces
-UNDECLARE_NAMESPACES.DESC=include-content-type = "yes" | "no". This attribute is defined in XSLT 2.0. Indicates XML 1.1 namespace declarations are to be output.
-
-CHARACTER_REPRESENTATION={http://saxon.sf.net/}character-representation
-CHARACTER_REPRESENTATION.DESC=(rep1[;rep2]). Indicates the preferred way of representing non-ASCII characters in HTML and XML output. rep1 is for characters in the range 128-256, rep2 for those above 256.
-
-NEXT_IN_CHAIN={http://saxon.sf.net/}next-in-chain
-NEXT_IN_CHAIN.DESC=(uri). Indicates that the output is to be piped into another XSLT stylesheet to perform another transformation. The auxiliary property NEXT_IN_CHAIN_BASE_URI records the base URI of the stylesheet element where this attribute was found.
-
-TYPE_INFORMATION={http://saxon.sf.net/}type-information
-TYPE_INFORMATION.DESC=(none|preserve|strict|lax). Indicates the value of the type-information attribute: "none", "preserve", "strict", "lax"
-
-REQUIRE_WELL_FORMED={http://saxon.sf.net/}require-well-formed
-REQUIRE_WELL_FORMED.DESC=(yes|no). Indicates whether a user-supplied ContentHandler requires the stream of SAX events to be well-formed (that is, to have a single element node and no text nodes as children of the root). The default is "no". \ No newline at end of file
diff --git a/bundles/org.eclipse.wst.xsl.saxon/about.html b/bundles/org.eclipse.wst.xsl.saxon/about.html
deleted file mode 100644
index 2199df3..0000000
--- a/bundles/org.eclipse.wst.xsl.saxon/about.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<HTML>
-
-<head>
-<title>About</title>
-<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
-</head>
-
-<BODY lang="EN-US">
-
-<H3>About This Content</H3>
-
-<P>June, 2008</P>
-
-<H3>License</H3>
-
-<P>The Eclipse Foundation makes available all content in this plug-in
-("Content"). Unless otherwise indicated below, the Content is provided to you
-under the terms and conditions of the Eclipse Public License Version 1.0
-("EPL"). A copy of the EPL is available at
-<A href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/org/documents/epl-v10.php</A>.
-For purposes of the EPL, "Program" will mean the Content.</P>
-
-<P>If you did not receive this Content directly from the Eclipse Foundation, the
-Content is being redistributed by another party ("Redistributor") and different
-terms and conditions may apply to your use of any object code in the Content.
-Check the Redistributor’s license that was provided with the Content. If no such
-license exists, contact the Redistributor. Unless otherwise indicated below, the
-terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at
-<A href="http://www.eclipse.org/">http://www.eclipse.org/</A>.</P>
-
-</BODY>
-</HTML>
diff --git a/bundles/org.eclipse.wst.xsl.saxon/build.properties b/bundles/org.eclipse.wst.xsl.saxon/build.properties
deleted file mode 100644
index b44dde2..0000000
--- a/bundles/org.eclipse.wst.xsl.saxon/build.properties
+++ /dev/null
@@ -1,9 +0,0 @@
-source.. = src-debugger/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- SaxonAttributes.properties,\
- SaxonOutputProperties.properties,\
- about.html,\
- plugin.xml,\
- plugin.properties
diff --git a/bundles/org.eclipse.wst.xsl.saxon/plugin.properties b/bundles/org.eclipse.wst.xsl.saxon/plugin.properties
deleted file mode 100644
index 7aec9e4..0000000
--- a/bundles/org.eclipse.wst.xsl.saxon/plugin.properties
+++ /dev/null
@@ -1,7 +0,0 @@
-#Properties file for org.eclipse.wst.xsl.saxon
-Bundle-Name.0 = XSL Saxon Support
-processorType.label.0 = Saxon (XSLT 2.0)
-processorType.label.1 = Saxon (XSLT 1.0)
-Bundle-Vendor.0 = Eclipse.org
-transformerFactorySaxon6 = Saxon 6
-transformerSaxonXSLT2 = Saxon 7 \ No newline at end of file
diff --git a/bundles/org.eclipse.wst.xsl.saxon/plugin.xml b/bundles/org.eclipse.wst.xsl.saxon/plugin.xml
deleted file mode 100644
index 8be0a82..0000000
--- a/bundles/org.eclipse.wst.xsl.saxon/plugin.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.2"?>
-<plugin>
- <extension
- point="org.eclipse.wst.xsl.jaxp.launching.processorType">
- <processorType
- attributeProperties="SaxonAttributes.properties"
- id="org.eclipse.wst.xsl.saxon_1_0.processorType"
- label="%processorType.label.1"
- outputProperties="SaxonOutputProperties.properties">
- <transformerFactory
- factoryClass="com.icl.saxon.TransformerFactoryImpl"
- name="%transformerFactorySaxon6">
- </transformerFactory>
- </processorType>
- <processorType
- attributeProperties="SaxonAttributes.properties"
- id="org.eclipse.wst.xsl.saxon.processorType"
- label="%processorType.label.0"
- outputProperties="SaxonOutputProperties.properties">
- <transformerFactory
- factoryClass="net.sf.saxon.TransformerFactoryImpl"
- name="%transformerSaxonXSLT2">
- </transformerFactory>
- </processorType>
- </extension>
-
-</plugin>
diff --git a/bundles/org.eclipse.wst.xsl.saxon/src-debugger/README.txt b/bundles/org.eclipse.wst.xsl.saxon/src-debugger/README.txt
deleted file mode 100644
index 1063a57..0000000
--- a/bundles/org.eclipse.wst.xsl.saxon/src-debugger/README.txt
+++ /dev/null
@@ -1 +0,0 @@
-Just a placeholder to ensure src folder appears. \ No newline at end of file
diff --git a/bundles/org.eclipse.wst.xsl.xalan/.classpath b/bundles/org.eclipse.wst.xsl.xalan/.classpath
deleted file mode 100644
index 8fdf8e9..0000000
--- a/bundles/org.eclipse.wst.xsl.xalan/.classpath
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.4"/>
- <classpathentry kind="src" path="src-debugger"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/bundles/org.eclipse.wst.xsl.xalan/.cvsignore b/bundles/org.eclipse.wst.xsl.xalan/.cvsignore
deleted file mode 100644
index 50b76ba..0000000
--- a/bundles/org.eclipse.wst.xsl.xalan/.cvsignore
+++ /dev/null
@@ -1,4 +0,0 @@
-javaCompiler.xalan-debugger.jar.args
-build.xml
-xalan-debugger.jar
-temp.folder
diff --git a/bundles/org.eclipse.wst.xsl.xalan/.project b/bundles/org.eclipse.wst.xsl.xalan/.project
deleted file mode 100644
index 3c56bc2..0000000
--- a/bundles/org.eclipse.wst.xsl.xalan/.project
+++ /dev/null
@@ -1,34 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.wst.xsl.xalan</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>
- <buildCommand>
- <name>org.eclipse.pde.api.tools.apiAnalysisBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- <nature>org.eclipse.pde.api.tools.apiAnalysisNature</nature>
- </natures>
-</projectDescription>
diff --git a/bundles/org.eclipse.wst.xsl.xalan/.settings/org.eclipse.core.resources.prefs b/bundles/org.eclipse.wst.xsl.xalan/.settings/org.eclipse.core.resources.prefs
deleted file mode 100644
index 8ba1309..0000000
--- a/bundles/org.eclipse.wst.xsl.xalan/.settings/org.eclipse.core.resources.prefs
+++ /dev/null
@@ -1,3 +0,0 @@
-#Thu Jan 03 22:24:50 EST 2008
-eclipse.preferences.version=1
-encoding/<project>=ISO-8859-1
diff --git a/bundles/org.eclipse.wst.xsl.xalan/.settings/org.eclipse.jdt.core.prefs b/bundles/org.eclipse.wst.xsl.xalan/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 50bc347..0000000
--- a/bundles/org.eclipse.wst.xsl.xalan/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,12 +0,0 @@
-#Sun Dec 16 08:48:52 GMT 2007
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=disabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.2
-org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=1.4
-org.eclipse.jdt.core.compiler.debug.lineNumber=generate
-org.eclipse.jdt.core.compiler.debug.localVariable=generate
-org.eclipse.jdt.core.compiler.debug.sourceFile=generate
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=warning
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=warning
-org.eclipse.jdt.core.compiler.source=1.3
diff --git a/bundles/org.eclipse.wst.xsl.xalan/.settings/org.eclipse.pde.prefs b/bundles/org.eclipse.wst.xsl.xalan/.settings/org.eclipse.pde.prefs
deleted file mode 100644
index e1e68b9..0000000
--- a/bundles/org.eclipse.wst.xsl.xalan/.settings/org.eclipse.pde.prefs
+++ /dev/null
@@ -1,24 +0,0 @@
-#Wed Jul 30 20:57:15 BST 2008
-compilers.f.unresolved-features=1
-compilers.f.unresolved-plugins=1
-compilers.incompatible-environment=1
-compilers.p.build=0
-compilers.p.deprecated=1
-compilers.p.discouraged-class=1
-compilers.p.internal=1
-compilers.p.missing-bundle-classpath-entries=0
-compilers.p.missing-packages=2
-compilers.p.no-required-att=0
-compilers.p.not-externalized-att=1
-compilers.p.unknown-attribute=0
-compilers.p.unknown-class=1
-compilers.p.unknown-element=0
-compilers.p.unknown-identifier=1
-compilers.p.unknown-resource=1
-compilers.p.unresolved-ex-points=0
-compilers.p.unresolved-import=0
-compilers.s.create-docs=false
-compilers.s.doc-folder=doc
-compilers.s.open-tags=1
-compilers.use-project=true
-eclipse.preferences.version=1
diff --git a/bundles/org.eclipse.wst.xsl.xalan/META-INF/MANIFEST.MF b/bundles/org.eclipse.wst.xsl.xalan/META-INF/MANIFEST.MF
deleted file mode 100644
index c7d29a8..0000000
--- a/bundles/org.eclipse.wst.xsl.xalan/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,17 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: %Bundle-Name.0
-Bundle-SymbolicName: org.eclipse.wst.xsl.xalan;singleton:=true
-Bundle-Version: 1.0.1.qualifier
-Bundle-RequiredExecutionEnvironment: J2SE-1.4
-Bundle-Localization: plugin
-Bundle-Vendor: %Bundle-Vendor.0
-Export-Package: org.eclipse.wst.xsl.xalan.debugger;
- uses:="org.eclipse.wst.xsl.debugger,
- org.apache.xpath,
- org.apache.xalan.trace,
- javax.xml.transform,
- org.apache.xalan.templates"
-Require-Bundle: org.apache.xalan;bundle-version="[2.7.0,2.8.0)",
- org.apache.xml.serializer;bundle-version="[2.7.0,2.8.0)",
- org.eclipse.wst.xsl.jaxp.debug;bundle-version="[1.0.0,2.0.0)";resolution:=optional
diff --git a/bundles/org.eclipse.wst.xsl.xalan/XalanAttributes.properties b/bundles/org.eclipse.wst.xsl.xalan/XalanAttributes.properties
deleted file mode 100644
index 151b5c7..0000000
--- a/bundles/org.eclipse.wst.xsl.xalan/XalanAttributes.properties
+++ /dev/null
@@ -1,21 +0,0 @@
-###############################################################################
-# Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Eclipse Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Contributors:
-# Doug Satchwell (Chase Technology Ltd) - initial API and implementation
-###############################################################################
-OPTIMIZE=http://xml.apache.org/xalan/features/optimize
-OPTIMIZE.TYPE=boolean
-OPTIMIZE.DESC=Optimize stylesheet processing. By default, this attribute is set to true. You may need to set it to false for tooling applications.
-
-INCREMENTAL=http://xml.apache.org/xalan/features/incremental
-INCREMENTAL.TYPE=boolean
-INCREMENTAL.DESC=Produce output incrementally, rather than waiting to finish parsing the input before generating any output. By default this attribute is set to false. You can turn this attribute on to transform large documents where the stylesheet structure is optimized to execute individual templates without having to parse the entire document.
-
-SOURCE_LOCATION=http://xml.apache.org/xalan/features/source_location
-SOURCE_LOCATION.TYPE=boolean
-SOURCE_LOCATION.DESC=By default, this attribute is set to false. Setting this attribute to true involves a substantial increase in storage cost per source document node. If you want to use the NodeInfo extension functions (or some other mechanism) to provide this information during a transform, you must set the attribute to true before generating the Transformer and processing the stylesheet. \ No newline at end of file
diff --git a/bundles/org.eclipse.wst.xsl.xalan/XalanOutputProperties.properties b/bundles/org.eclipse.wst.xsl.xalan/XalanOutputProperties.properties
deleted file mode 100644
index ceeb071..0000000
--- a/bundles/org.eclipse.wst.xsl.xalan/XalanOutputProperties.properties
+++ /dev/null
@@ -1,37 +0,0 @@
-###############################################################################
-# Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Eclipse Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Contributors:
-# Doug Satchwell (Chase Technology Ltd) - initial API and implementation
-###############################################################################
-S_KEY_INDENT_AMOUNT={http://xml.apache.org/xalan}indent-amount
-S_KEY_INDENT_AMOUNT.DESC=The non-standard property key to use to set the\n\
- number of whitepaces to indent by, per indentation level,\n\
- if indent="yes"
-
-S_KEY_LINE_SEPARATOR={http://xml.apache.org/xalan}line-separator
-S_KEY_LINE_SEPARATOR.DESC=The non-standard property key to use to set the characters to write out as at the end of a line,\n\
- rather than the default ones from the runtime.
-
-S_KEY_CONTENT_HANDLER={http://xml.apache.org/xalan}content-handler
-S_KEY_CONTENT_HANDLER.DESC=This non-standard property key is used to set the name of the fully qualified\n\
- Java class that implements the ContentHandler interface.\n\
- Fully qualified name of class with a default constructor that\n\
- implements the ContentHandler interface, where the result tree events\n\
- will be sent to.
-
-S_KEY_ENTITIES={http://xml.apache.org/xalan}entities
-S_KEY_ENTITIES.DESC=This non-standard property key is used to specify the name of the property file\n\
- that specifies character to entity reference mappings.
-
-S_USE_URL_ESCAPING={http://xml.apache.org/xalan}use-url-escaping
-S_USE_URL_ESCAPING.DESC=This non-standard property key is used to set a value of "yes" if the href values for HTML serialization should\n\
- use %xx escaping.
-
-S_OMIT_META_TAG={http://xml.apache.org/xalan}omit-meta-tag
-S_OMIT_META_TAG.DESC=This non-standard property key is used to set a value of "yes" if the META tag should be omitted where it would\n\
- otherwise be supplied. \ No newline at end of file
diff --git a/bundles/org.eclipse.wst.xsl.xalan/about.html b/bundles/org.eclipse.wst.xsl.xalan/about.html
deleted file mode 100644
index 2199df3..0000000
--- a/bundles/org.eclipse.wst.xsl.xalan/about.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<HTML>
-
-<head>
-<title>About</title>
-<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
-</head>
-
-<BODY lang="EN-US">
-
-<H3>About This Content</H3>
-
-<P>June, 2008</P>
-
-<H3>License</H3>
-
-<P>The Eclipse Foundation makes available all content in this plug-in
-("Content"). Unless otherwise indicated below, the Content is provided to you
-under the terms and conditions of the Eclipse Public License Version 1.0
-("EPL"). A copy of the EPL is available at
-<A href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/org/documents/epl-v10.php</A>.
-For purposes of the EPL, "Program" will mean the Content.</P>
-
-<P>If you did not receive this Content directly from the Eclipse Foundation, the
-Content is being redistributed by another party ("Redistributor") and different
-terms and conditions may apply to your use of any object code in the Content.
-Check the Redistributor’s license that was provided with the Content. If no such
-license exists, contact the Redistributor. Unless otherwise indicated below, the
-terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at
-<A href="http://www.eclipse.org/">http://www.eclipse.org/</A>.</P>
-
-</BODY>
-</HTML>
diff --git a/bundles/org.eclipse.wst.xsl.xalan/build.properties b/bundles/org.eclipse.wst.xsl.xalan/build.properties
deleted file mode 100644
index db56c82..0000000
--- a/bundles/org.eclipse.wst.xsl.xalan/build.properties
+++ /dev/null
@@ -1,10 +0,0 @@
-source.. = src-debugger/
-output.. = bin/
-bin.includes = META-INF/,\
- plugin.xml,\
- .,\
- XalanOutputProperties.properties,\
- XalanAttributes.properties,\
- about.html,\
- plugin.properties
-
diff --git a/bundles/org.eclipse.wst.xsl.xalan/plugin.properties b/bundles/org.eclipse.wst.xsl.xalan/plugin.properties
deleted file mode 100644
index 3a739ee..0000000
--- a/bundles/org.eclipse.wst.xsl.xalan/plugin.properties
+++ /dev/null
@@ -1,8 +0,0 @@
-#Properties file for org.eclipse.wst.xsl.xalan
-Bundle-Name.0 = XSL Xalan Support
-processorType.label.0 = Xalan
-processor.label.0 = Xalan 2.5.1
-processor.label.1 = Xalan 2.7.1
-Bundle-Vendor.0 = Eclipse.org
-transformerFactoryNameXalan = Interpretive
-transformerFactoryNameXalanXSLTC = Compiling \ No newline at end of file
diff --git a/bundles/org.eclipse.wst.xsl.xalan/plugin.xml b/bundles/org.eclipse.wst.xsl.xalan/plugin.xml
deleted file mode 100644
index 6a60297..0000000
--- a/bundles/org.eclipse.wst.xsl.xalan/plugin.xml
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.2"?>
-<plugin>
- <extension
- point="org.eclipse.wst.xsl.jaxp.launching.processorType">
- <processorType
- attributeProperties="XalanAttributes.properties"
- id="org.eclipse.wst.xsl.xalan.processorType"
- label="%processorType.label.0"
- outputProperties="XalanOutputProperties.properties">
- <transformerFactory
- factoryClass="org.apache.xalan.processor.TransformerFactoryImpl"
- name="%transformerFactoryNameXalan">
- </transformerFactory>
- <transformerFactory
- factoryClass="org.apache.xalan.xsltc.trax.TransformerFactoryImpl"
- name="%transformerFactoryNameXalanXSLTC">
- </transformerFactory>
- </processorType>
- </extension>
- <extension
- point="org.eclipse.wst.xsl.jaxp.launching.debugger">
- <debugger
- className="org.eclipse.wst.xsl.xalan.debugger.XalanDebugger"
- classpath="${eclipse_orbit:org.eclipse.wst.xsl.xalan}"
- id="org.eclipse.wst.xsl.xalan.debugger"
- name="Xalan 2.5.1 or greater"
- processorTypeId="org.eclipse.wst.xsl.xalan.processorType"
- transformerFactoryClass="org.apache.xalan.processor.TransformerFactoryImpl">
- </debugger>
- </extension>
- <extension
- point="org.eclipse.wst.xsl.jaxp.launching.processor">
- <!-- An adopter can specify the ${eclipse_orbit: } variable to indicate which eclipse
- bundle should be added to the class path. -->
- <processor
- classpath="${eclipse_orbit:org.apache.xalan};${eclipse_orbit:org.apache.xml.serializer};${eclipse_orbit:org.apache.bcel};${eclipse_orbit:java_cup.runtime}"
- id="org.eclipse.wst.xsl.launching.xalan.processor"
- label="%processor.label.1"
- processorTypeId="org.eclipse.wst.xsl.xalan.processorType"
- debuggerId="org.eclipse.wst.xsl.xalan.debugger"
- supports="1.0">
- </processor>
- </extension>
-</plugin>
diff --git a/bundles/org.eclipse.wst.xsl.xalan/src-debugger/org/eclipse/wst/xsl/xalan/debugger/XalanDebugger.java b/bundles/org.eclipse.wst.xsl.xalan/src-debugger/org/eclipse/wst/xsl/xalan/debugger/XalanDebugger.java
deleted file mode 100644
index ef2eab3..0000000
--- a/bundles/org.eclipse.wst.xsl.xalan/src-debugger/org/eclipse/wst/xsl/xalan/debugger/XalanDebugger.java
+++ /dev/null
@@ -1,93 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.xalan.debugger;
-
-import java.util.TooManyListenersException;
-
-import javax.xml.transform.Transformer;
-import javax.xml.transform.TransformerFactory;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.apache.xalan.processor.TransformerFactoryImpl;
-import org.apache.xalan.trace.TraceManager;
-import org.apache.xalan.transformer.TransformerImpl;
-import org.eclipse.wst.xsl.jaxp.debug.debugger.AbstractDebugger;
-import org.eclipse.wst.xsl.jaxp.debug.debugger.BreakPoint;
-import org.eclipse.wst.xsl.jaxp.debug.debugger.Variable;
-import org.xml.sax.SAXException;
-
-public class XalanDebugger extends AbstractDebugger
-{
- private static final Log log = LogFactory.getLog(XalanDebugger.class);
- private XalanTraceListener currentTraceListener;
- private TransformerImpl lastTransformerInChain;
-
- public void setTransformerFactory(TransformerFactory factory)
- {
- TransformerFactoryImpl tfi = (TransformerFactoryImpl) factory;
- tfi.setAttribute(TransformerFactoryImpl.FEATURE_SOURCE_LOCATION, Boolean.TRUE);
- tfi.setAttribute(TransformerFactoryImpl.FEATURE_OPTIMIZE, Boolean.FALSE);
- }
-
- public synchronized void debuggerSuspended(BreakPoint breakpoint)
- {
- // flush the serializer (which is buffered by Xalan itself)
- try
- {
- lastTransformerInChain.getSerializationHandler().flushPending();
- }
- catch (SAXException e)
- {
- log.error("Error flushing serializer", e);
- }
- super.debuggerSuspended(breakpoint);
- }
-
- public void addTransformer(Transformer transformer)
- {
- TransformerImpl transformerImpl = (TransformerImpl) transformer;
-
- lastTransformerInChain = transformerImpl;
-
- TraceManager trMgr = transformerImpl.getTraceManager();
- try
- {
-// XalanPrintTraceListener printer = new XalanPrintTraceListener(new PrintWriter(System.err));
-// printer.m_traceElements = true;
-// printer.m_traceSelection = true;
-// printer.m_traceTemplates = true;
-// trMgr.addTraceListener(printer);
-
- XalanTraceListener traceListener = new XalanTraceListener(this);
- trMgr.addTraceListener(traceListener);
- }
- catch (TooManyListenersException e)
- {
- // ignore
- }
- }
-
- /**
- * Gets a variable by ID
- * @since 1.0
- */
- public Variable getVariable(int id)
- {
- return currentTraceListener.getVariable(id);
- }
-
- void setCurrentTraceListener(XalanTraceListener currentTraceListener)
- {
- log.debug("Setting new XalanTraceListener");
- this.currentTraceListener = currentTraceListener;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.xalan/src-debugger/org/eclipse/wst/xsl/xalan/debugger/XalanPrintTraceListener.java b/bundles/org.eclipse.wst.xsl.xalan/src-debugger/org/eclipse/wst/xsl/xalan/debugger/XalanPrintTraceListener.java
deleted file mode 100644
index 3d6c07d..0000000
--- a/bundles/org.eclipse.wst.xsl.xalan/src-debugger/org/eclipse/wst/xsl/xalan/debugger/XalanPrintTraceListener.java
+++ /dev/null
@@ -1,104 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.xalan.debugger;
-
-import java.io.PrintWriter;
-
-import javax.xml.transform.TransformerException;
-
-import org.apache.xalan.templates.Constants;
-import org.apache.xalan.templates.ElemTemplate;
-import org.apache.xalan.templates.ElemTextLiteral;
-import org.apache.xalan.trace.EndSelectionEvent;
-import org.apache.xalan.trace.PrintTraceListener;
-import org.apache.xalan.trace.SelectionEvent;
-import org.apache.xalan.trace.TracerEvent;
-
-public class XalanPrintTraceListener extends PrintTraceListener
-{
- private final PrintWriter writer;
-
- public XalanPrintTraceListener(PrintWriter pw)
- {
- super(pw);
- this.writer = pw;
- }
-
- public void _trace(TracerEvent ev)
- {
- switch (ev.m_styleNode.getXSLToken())
- {
- case Constants.ELEMNAME_TEXTLITERALRESULT:
- if (m_traceElements)
- {
- writer.print(ev.m_styleNode.getSystemId() + " Line #" + ev.m_styleNode.getLineNumber() + ", " + "Column #" + ev.m_styleNode.getColumnNumber() + " -- " + ev.m_styleNode.getNodeName()
- + ": ");
-
- ElemTextLiteral etl = (ElemTextLiteral) ev.m_styleNode;
- String chars = new String(etl.getChars(), 0, etl.getChars().length);
-
- writer.println(" " + chars.trim());
- }
- break;
- case Constants.ELEMNAME_TEMPLATE:
- if (m_traceTemplates || m_traceElements)
- {
- ElemTemplate et = (ElemTemplate) ev.m_styleNode;
-
- writer.print(et.getSystemId() + " Line #" + et.getLineNumber() + ", " + "Column #" + et.getColumnNumber() + ": " + et.getNodeName() + " ");
-
- if (null != et.getMatch())
- {
- writer.print("match='" + et.getMatch().getPatternString() + "' ");
- }
-
- if (null != et.getName())
- {
- writer.print("name='" + et.getName() + "' ");
- }
-
- writer.println();
- }
- break;
- default:
- if (m_traceElements)
- {
- writer
- .println(ev.m_styleNode.getSystemId() + " Line #" + ev.m_styleNode.getLineNumber() + ", " + "Column #" + ev.m_styleNode.getColumnNumber() + ": "
- + ev.m_styleNode.getNodeName());
- }
- }
- }
-
- public void selected(SelectionEvent ev) throws TransformerException
- {
- writer.print("selected: ");
- super.selected(ev);
- }
-
- public void selectEnd(EndSelectionEvent ev) throws TransformerException
- {
- writer.print("selectEnd: ");
- super.selectEnd(ev);
- }
-
- public void trace(TracerEvent ev)
- {
- writer.print("trace: ");
- super.trace(ev);
- }
-
- public void traceEnd(TracerEvent ev)
- {
- writer.print("traceEnd: ");
- _trace(ev);
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.xalan/src-debugger/org/eclipse/wst/xsl/xalan/debugger/XalanRootStyleFrame.java b/bundles/org.eclipse.wst.xsl.xalan/src-debugger/org/eclipse/wst/xsl/xalan/debugger/XalanRootStyleFrame.java
deleted file mode 100644
index c65b71a..0000000
--- a/bundles/org.eclipse.wst.xsl.xalan/src-debugger/org/eclipse/wst/xsl/xalan/debugger/XalanRootStyleFrame.java
+++ /dev/null
@@ -1,78 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.xalan.debugger;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.Vector;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.apache.xalan.templates.ElemVariable;
-import org.apache.xalan.templates.StylesheetRoot;
-import org.apache.xalan.trace.TracerEvent;
-import org.apache.xpath.VariableStack;
-import org.eclipse.wst.xsl.jaxp.debug.debugger.Variable;
-
-public class XalanRootStyleFrame extends XalanStyleFrame
-{
- private static final Log log = LogFactory.getLog(XalanRootStyleFrame.class);
- private Map variables;
- private ArrayList globals;
-
- public XalanRootStyleFrame(TracerEvent event)
- {
- super(null, event);
- fillGlobals(event);
- }
-
- protected List getGlobals()
- {
- return globals;
- }
-
- private void fillGlobals(TracerEvent event)
- {
- VariableStack vs = event.m_processor.getXPathContext().getVarStack();
- StylesheetRoot sr = event.m_styleNode.getStylesheetRoot();
- Vector vars = sr.getVariablesAndParamsComposed();
- variables = new HashMap(vars.size());
- globals = new ArrayList(vars.size());
- int i = vars.size();
- while (--i >= 0)
- {
- ElemVariable variable = (ElemVariable) vars.elementAt(i);
- XalanVariable xvar = new XalanVariable(this,vs,Variable.GLOBAL_SCOPE,i,variable);
- addVariable(xvar);
- globals.add(xvar);
- }
- }
-
- /**
- * Gets a Variable by ID
- * @since 1.0
- */
- public Variable getVariable(int id)
- {
-// log.debug("Getting variable with id "+id+" from variables "+variables.size());
- return (Variable)variables.get(new Integer(id));
- }
-
- public void addVariable(XalanVariable xvar)
- {
-// log.debug("Adding variable index="+xvar.getSlotNumber()+" val="+xvar);
-// variables.add(xvar.getSlotNumber(),xvar);
- log.debug("Adding variable id="+xvar.getId());
- variables.put(new Integer(xvar.getId()),xvar);
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.xalan/src-debugger/org/eclipse/wst/xsl/xalan/debugger/XalanStyleFrame.java b/bundles/org.eclipse.wst.xsl.xalan/src-debugger/org/eclipse/wst/xsl/xalan/debugger/XalanStyleFrame.java
deleted file mode 100644
index f725de2..0000000
--- a/bundles/org.eclipse.wst.xsl.xalan/src-debugger/org/eclipse/wst/xsl/xalan/debugger/XalanStyleFrame.java
+++ /dev/null
@@ -1,200 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.xalan.debugger;
-
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.Stack;
-
-import javax.xml.transform.SourceLocator;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.apache.xalan.templates.ElemCallTemplate;
-import org.apache.xalan.templates.ElemTemplate;
-import org.apache.xalan.templates.ElemTemplateElement;
-import org.apache.xalan.templates.ElemVariable;
-import org.apache.xalan.trace.TracerEvent;
-import org.apache.xml.dtm.ref.DTMNodeProxy;
-import org.apache.xml.utils.QName;
-import org.apache.xpath.VariableStack;
-import org.apache.xpath.XPath;
-import org.eclipse.wst.xsl.jaxp.debug.debugger.StyleFrame;
-import org.eclipse.wst.xsl.jaxp.debug.debugger.Variable;
-import org.w3c.dom.Node;
-
-public class XalanStyleFrame extends StyleFrame
-{
- private static final Log log = LogFactory.getLog(XalanStyleFrame.class);
-
- private final Map varNames;
- private final Stack eventStack = new Stack();
- final TracerEvent event;
- private int currentLine;
- private XalanRootStyleFrame rootStyleFrame;
-
- /**
- * @since 1.0
- */
- public XalanStyleFrame(StyleFrame parent, TracerEvent event)
- {
- super(parent);
- this.event = event;
- if (parent != null)
- this.varNames = new HashMap(((XalanStyleFrame) parent).varNames);
- else
- this.varNames = new HashMap();
- pushElement(event);
- findRootStyleFrame();
- }
-
- private void findRootStyleFrame()
- {
- XalanStyleFrame frame = this;
- do
- {
- if (frame instanceof XalanRootStyleFrame)
- rootStyleFrame = (XalanRootStyleFrame) frame;
- }
- while ((frame = (XalanStyleFrame) frame.getParent()) != null);
- }
-
- public String getFilename()
- {
- return event.m_styleNode.getStylesheet().getSystemId();
- }
-
- public String getName()
- {
- String name = event.m_styleNode.getNodeName();
- if (event.m_styleNode instanceof ElemTemplate)
- {
- ElemTemplate et = (ElemTemplate) event.m_styleNode;
- QName q = et.getName();
- if (q != null)
- {
- name += " name=\"" + q.getLocalName() + "\"";
- }
- XPath xp = et.getMatch();
- if (xp != null)
- {
- name += " match=\"" + xp.getPatternString() + "\"";
- }
- }
- else if (event.m_styleNode instanceof ElemCallTemplate)
- {
- ElemCallTemplate et = (ElemCallTemplate) event.m_styleNode;
- QName q = et.getName();
- if (q != null)
- {
- name += " name=\"" + q.getLocalName() + "\"";
- }
- }
- return name;
- }
-
- public List getVariableStack()
- {
- List vars = new ArrayList();
- vars.addAll(getLocals());
- vars.addAll(getGlobals());
- return vars;
- }
-
- public int getCurrentLine()
- {
- return currentLine;
- }
-
- public void pushElement(TracerEvent e)
- {
- currentLine = e.m_styleNode.getLineNumber();
- eventStack.push(e);
- if (log.isDebugEnabled())
- log.debug("Pushed element " + TracerEvent.printNode(e.m_styleNode) + " at line " + currentLine);
- }
-
- public TracerEvent popElement()
- {
- TracerEvent e = (TracerEvent) eventStack.pop();
- currentLine = e.m_styleNode.getEndLineNumber();
- if (log.isDebugEnabled())
- log.debug("Popped element " + TracerEvent.printNode(e.m_styleNode) + " at line " + currentLine);
-
- ElemTemplateElement element = e.m_styleNode;
- String name = element.getNodeName();
- log.debug(" name " + name);
- if (name.equals("param") || name.equals("variable"))
- addVariable((ElemVariable) e.m_styleNode);
-
- return e;
- }
-
- public TracerEvent peekElement()
- {
- if (eventStack.isEmpty())
- return null;
- return (TracerEvent) eventStack.peek();
- }
-
- private void addVariable(ElemVariable variable)
- {
- String scope = variable.getIsTopLevel() ? Variable.GLOBAL_SCOPE : Variable.LOCAL_SCOPE;
- VariableStack vs = event.m_processor.getXPathContext().getVarStack();
- XalanVariable xvar = new XalanVariable(this, vs, scope, variable.getIndex(), variable);
- rootStyleFrame.addVariable(xvar);
- varNames.put(variable.getName(), xvar);
- }
-
- private List getLocals()
- {
- List locals = new ArrayList(varNames.values());
- // sort by slotNumber
- Collections.sort(locals);
- return new ArrayList(varNames.values());
- }
-
- protected List getGlobals()
- {
- return rootStyleFrame.getGlobals();
- }
-
- public String getSourceFilename()
- {
- SourceLocator locator = getSourceLocator();
- if (locator != null)
- return locator.getSystemId();
- return "";
- }
-
- public int getSourceCurrentLine()
- {
- SourceLocator locator = getSourceLocator();
- if (locator != null)
- return locator.getLineNumber();
- return 0;
- }
-
- private SourceLocator getSourceLocator()
- {
- Node sourceNode = event.m_sourceNode;
- SourceLocator locator = null;
- if (sourceNode instanceof DTMNodeProxy)
- {
- int nodeHandler = ((DTMNodeProxy) sourceNode).getDTMNodeNumber();
- return ((DTMNodeProxy) sourceNode).getDTM().getSourceLocatorFor(nodeHandler);
- }
- return null;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.xalan/src-debugger/org/eclipse/wst/xsl/xalan/debugger/XalanTraceListener.java b/bundles/org.eclipse.wst.xsl.xalan/src-debugger/org/eclipse/wst/xsl/xalan/debugger/XalanTraceListener.java
deleted file mode 100644
index a89b321..0000000
--- a/bundles/org.eclipse.wst.xsl.xalan/src-debugger/org/eclipse/wst/xsl/xalan/debugger/XalanTraceListener.java
+++ /dev/null
@@ -1,167 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.xalan.debugger;
-
-import javax.xml.transform.TransformerException;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.apache.xalan.templates.Constants;
-import org.apache.xalan.trace.EndSelectionEvent;
-import org.apache.xalan.trace.ExtensionEvent;
-import org.apache.xalan.trace.GenerateEvent;
-import org.apache.xalan.trace.SelectionEvent;
-import org.apache.xalan.trace.TraceListenerEx2;
-import org.apache.xalan.trace.TracerEvent;
-import org.eclipse.wst.xsl.jaxp.debug.debugger.BreakPoint;
-import org.eclipse.wst.xsl.jaxp.debug.debugger.Variable;
-
-public class XalanTraceListener implements TraceListenerEx2 // TraceListenerEx3
-{
- private static final Log log = LogFactory.getLog(XalanTraceListener.class);
-
- private final XalanDebugger debugger;
- private XalanRootStyleFrame rootStyleFrame;
-
- public XalanTraceListener(XalanDebugger debugger)
- {
- this.debugger = debugger;
- }
-
- public void trace(TracerEvent ev)
- {
- XalanStyleFrame styleFrame = null;
- if (rootStyleFrame == null)
- {// this is the root of the stack
- debugger.debuggerTransformStarted();
- debugger.setCurrentTraceListener(this);
- rootStyleFrame = new XalanRootStyleFrame(ev);
- styleFrame = rootStyleFrame;
- debugger.pushStyleFrame(styleFrame);
- }
- else if (ev.m_styleNode.getOwnerXSLTemplate() == ev.m_styleNode)
- {// this is an xsl:template, so add to template stack
- styleFrame = new XalanStyleFrame(debugger.peekStyleFrame(), ev);
- debugger.pushStyleFrame(styleFrame);
- }
- else if (ev.m_styleNode.getXSLToken() != Constants.ELEMNAME_TEXTLITERALRESULT)
- {// add to current template element stack
- styleFrame = (XalanStyleFrame) debugger.peekStyleFrame();
- styleFrame.pushElement(ev);
- }
- else
- {
- log.debug("Skipped push for element " + ev.m_styleNode.getLocalName());
- }
- check(styleFrame);
- }
-
- public void traceEnd(TracerEvent ev)
- {
- XalanStyleFrame styleFrame = (XalanStyleFrame) debugger.peekStyleFrame();
- if (styleFrame != null)
- {
- if (ev.m_styleNode.getOwnerXSLTemplate() == ev.m_styleNode)
- {// remove from current template element stack
- styleFrame.popElement();
- }
- else if (ev.m_styleNode.getXSLToken() != Constants.ELEMNAME_TEXTLITERALRESULT)
- {// remove from current template element stack
- styleFrame.popElement();
- }
- else
- {
- log.debug("Skipped pop for element " + ev.m_styleNode.getLocalName());
- }
- check(styleFrame);
- if (ev.m_styleNode.getOwnerXSLTemplate() == ev.m_styleNode)
- {// end of template, so remove from stack
- debugger.popStyleFrame();
- }
- else
- {// because we don't get selectEnd events, we need to do this check
- TracerEvent tel = styleFrame.peekElement();
- // if the parent is a choose, move on to it
- switch (tel.m_styleNode.getXSLToken())
- {
- case Constants.ELEMNAME_CHOOSE:
- styleFrame.popElement();
- check(styleFrame);
- }
- }
- }
- }
-
- private void check(XalanStyleFrame styleFrame)
- {
- debugger.checkStopped();
- if (styleFrame != null)
- {
- // check breakpoint in stylesheet
- BreakPoint breakpoint = new BreakPoint(styleFrame.getFilename(), styleFrame.getCurrentLine());
- debugger.checkSuspended(styleFrame, breakpoint);
- // TODO check breakpoint in source
- /*
- * breakpoint = new BreakPoint(styleFrame.getSourceFilename(), styleFrame.getSourceCurrentLine()); System.out.println("---------------"+breakpoint); if (breakpoint.getFile() != null)
- * debugger.checkSuspended(styleFrame, breakpoint);
- */}
- }
-
- public void selected(SelectionEvent ev) throws TransformerException
- {
- }
-
- public void selectEnd(EndSelectionEvent ev) throws TransformerException
- {
- }
-
- public void generated(GenerateEvent ev)
- {
-// XSLGenerateEvent event = new XSLGenerateEvent();
-// event.m_characters = ev.m_characters;
-// event.m_data = ev.m_data;
-// event.m_eventtype = ev.m_eventtype;
-// event.m_length = ev.m_length;
-// event.m_name = ev.m_name;
-// event.m_start = ev.m_start;
-//
-// if (ev.m_atts != null)
-// {
-// event.m_atts = new ArrayList();
-// for (int i = 0; i < ev.m_atts.getLength(); i++)
-// {
-// String attName = ev.m_atts.getQName(i);
-// String attValue = ev.m_atts.getValue(i);
-// XSLElementAttribute xatt = new XSLElementAttribute(attName,attValue);
-// event.m_atts.add(xatt);
-// }
-// }
-//
-// debugger.generated(event);
- }
-
- public void extension(ExtensionEvent ee)
- {
- }
-
- public void extensionEnd(ExtensionEvent ee)
- {
- }
-
- /**
- * @since 1.0
- */
- public Variable getVariable(int id)
- {
- return rootStyleFrame.getVariable(id);
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.xalan/src-debugger/org/eclipse/wst/xsl/xalan/debugger/XalanVariable.java b/bundles/org.eclipse.wst.xsl.xalan/src-debugger/org/eclipse/wst/xsl/xalan/debugger/XalanVariable.java
deleted file mode 100644
index 379f829..0000000
--- a/bundles/org.eclipse.wst.xsl.xalan/src-debugger/org/eclipse/wst/xsl/xalan/debugger/XalanVariable.java
+++ /dev/null
@@ -1,220 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- * David Carver (STAR) - bug 214235 - Allows nodes to be expanded.
- *******************************************************************************/
-package org.eclipse.wst.xsl.xalan.debugger;
-
-import javax.xml.transform.TransformerException;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.apache.xalan.templates.ElemVariable;
-import org.apache.xpath.VariableStack;
-import org.apache.xpath.objects.XNodeSet;
-import org.apache.xpath.objects.XObject;
-import org.eclipse.wst.xsl.jaxp.debug.debugger.Variable;
-import org.w3c.dom.Attr;
-import org.w3c.dom.NamedNodeMap;
-import org.w3c.dom.Node;
-import org.w3c.dom.NodeList;
-import org.w3c.dom.ProcessingInstruction;
-
-public class XalanVariable extends Variable implements Comparable {
- private final Log log = LogFactory.getLog(XalanVariable.class);
- private final ElemVariable elemVariable;
- private final VariableStack varStack;
- private int stackFrame;
- private XObject xobject;
-
- public XalanVariable(XalanStyleFrame xalanStyleFrame,
- VariableStack varStack, String scope, int slotNumber,
- ElemVariable elemVariable) {
- super(getName(elemVariable, scope, xalanStyleFrame), scope, slotNumber
- + varStack.getStackFrame());
- this.elemVariable = elemVariable;
- this.varStack = varStack;
- // get the stack frame at this current point in time
- this.stackFrame = varStack.getStackFrame();
- try {
- xobject = getXObject();
- } catch (Exception ex) {
- ex.printStackTrace();
- }
- }
-
- private static String getName(ElemVariable elemVariable, String scope,
- XalanStyleFrame xalanStyleFrame) {
- String name = elemVariable.getName().getLocalName();
- String systemId = elemVariable.getStylesheet().getSystemId();
- if (GLOBAL_SCOPE.equals(scope) && systemId != null) {
- int index;
- if ((index = systemId.lastIndexOf('/')) > 0)
- name += " (" + systemId.substring(index + 1) + ")";
- else
- name += " (" + systemId + ")";
- }
- // else if (LOCAL_SCOPE.equals(scope))
- // {
- // name += " (" + xalanStyleFrame.getName() + ")";
- // }
- return name;
- }
-
- public String getType() {
- String value = UNKNOWN;
- // XObject xobject = getXObject();
- if (xobject != null) {
- int xalanType = xobject.getType();
- switch (xalanType) {
- case XObject.CLASS_UNRESOLVEDVARIABLE:
- value = UNRESOLVED;
- break;
- case XObject.CLASS_NODESET:
- value = NODESET;
- break;
- case XObject.CLASS_BOOLEAN:
- value = BOOLEAN;
- break;
- case XObject.CLASS_NUMBER:
- value = NUMBER;
- break;
- case XObject.CLASS_UNKNOWN:
- value = UNKNOWN;
- break;
- case XObject.CLASS_STRING:
- default:
- value = STRING;
- break;
- }
- }
- // catch (TransformerException e)
- // {
- // e.printStackTrace();
- // }
- return value;
- }
-
- public String getValue() {
- String value = "???";
- try {
- xobject = getXObject();
- if (xobject != null) {
- int xalanType = xobject.getType();
- switch (xalanType) {
- case XObject.CLASS_UNRESOLVEDVARIABLE:
- value = "";
- break;
- case XObject.CLASS_NODESET:
- XNodeSet xns = (XNodeSet) xobject;
- if (xns.nodelist().getLength() > 0) {
- value = convertNode(xns);
- }
- else
- value = "<EMPTY NODESET>";
- break;
- case XObject.CLASS_BOOLEAN:
- case XObject.CLASS_NUMBER:
- case XObject.CLASS_STRING:
- case XObject.CLASS_UNKNOWN:
- default:
- value = xobject.toString();
- break;
- }
- }
- } catch (TransformerException e) {
- e.printStackTrace();
- }
- // value = getScope()+"."+getSlotNumber()+")"+getName();
- // log.debug(getScope()+"."+getSlotNumber()+")"+getName() + "=" +
- // value);
- return value;
- }
-
- private String convertNode(XNodeSet xns) throws TransformerException {
- NodeList nodeList = xns.nodelist();
- String value = processNodeList(nodeList);
- return value;
- }
-
- private String processNodeList(NodeList nodeList) {
- String value = "";
- for (int i = 0; i < nodeList.getLength(); i++) {
- Node node = nodeList.item(i);
- if (node != null) {
- int nodeType = node.getNodeType();
- if (node.getNodeType() == Node.ELEMENT_NODE) {
- value = createElement(value, node);
- }
- if (nodeType == Node.COMMENT_NODE ) {
- value = value + "<!-- " + node.getNodeValue() + " -->";
- }
- if (nodeType == Node.PROCESSING_INSTRUCTION_NODE) {
- ProcessingInstruction pi = (ProcessingInstruction) node;
- value = value + "<?" + pi.getData() + " ?>";
- }
- }
- }
- return value;
- }
-
- private String createElement(String value, Node node) {
- value = value + "<";
-// if (node.getPrefix() != null && node.getPrefix().length() > 0) {
-// value = value + node.getPrefix() + ":";
-// }
- if (node.getNodeName() != null) {
- value = value + node.getNodeName();
- if (node.hasAttributes()) {
- NamedNodeMap attr = node.getAttributes();
- value = value + buildAttributes(attr);
- }
- value = value + ">";
- if (node.getNodeValue() != null) {
- value = value + node.getNodeValue();
- }
- }
- if (node.hasChildNodes()) {
- value = value + processNodeList(node.getChildNodes());
- }
- value = value + "</" + node.getNodeName() + ">";
- return value;
- }
-
- private String buildAttributes(NamedNodeMap attributes) {
- String value = " ";
- for (int a = 0; a < attributes.getLength(); a++) {
- Attr attribute = (Attr)attributes.item(a);
-// if (attribute.getPrefix() != null) {
-// value = value + attribute.getPrefix() + ":";
-// }
- value = value + attribute.getName() + "=\"" + attribute.getValue() + "\" ";
- }
- value = value + " ";
- return value;
- }
-
- private XObject getXObject() throws TransformerException {
- XObject xvalue;
- if (elemVariable.getIsTopLevel())
- xvalue = varStack.elementAt(slotNumber);
- else
- xvalue = varStack.getLocalVariable(elemVariable.getIndex(),
- stackFrame);
- return xvalue;
- }
-
- public int compareTo(Object arg0) {
- XalanVariable xvar = (XalanVariable) arg0;
- int comp = xvar.stackFrame - stackFrame;
- if (comp == 0)
- comp = slotNumber - xvar.slotNumber;
- return comp;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl/.project b/bundles/org.eclipse.wst.xsl/.project
deleted file mode 100644
index 525a3cd..0000000
--- a/bundles/org.eclipse.wst.xsl/.project
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.wst.xsl</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <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>
- </natures>
-</projectDescription>
diff --git a/bundles/org.eclipse.wst.xsl/META-INF/MANIFEST.MF b/bundles/org.eclipse.wst.xsl/META-INF/MANIFEST.MF
deleted file mode 100644
index 5ab4ae4..0000000
--- a/bundles/org.eclipse.wst.xsl/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,7 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: %Bundle-Name.0
-Bundle-SymbolicName: org.eclipse.wst.xsl
-Bundle-Version: 1.0.0.qualifier
-Bundle-Vendor: %Bundle-Vendor.0
-Bundle-Localization: plugin
diff --git a/bundles/org.eclipse.wst.xsl/about.html b/bundles/org.eclipse.wst.xsl/about.html
deleted file mode 100644
index 2199df3..0000000
--- a/bundles/org.eclipse.wst.xsl/about.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<HTML>
-
-<head>
-<title>About</title>
-<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
-</head>
-
-<BODY lang="EN-US">
-
-<H3>About This Content</H3>
-
-<P>June, 2008</P>
-
-<H3>License</H3>
-
-<P>The Eclipse Foundation makes available all content in this plug-in
-("Content"). Unless otherwise indicated below, the Content is provided to you
-under the terms and conditions of the Eclipse Public License Version 1.0
-("EPL"). A copy of the EPL is available at
-<A href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/org/documents/epl-v10.php</A>.
-For purposes of the EPL, "Program" will mean the Content.</P>
-
-<P>If you did not receive this Content directly from the Eclipse Foundation, the
-Content is being redistributed by another party ("Redistributor") and different
-terms and conditions may apply to your use of any object code in the Content.
-Check the Redistributor’s license that was provided with the Content. If no such
-license exists, contact the Redistributor. Unless otherwise indicated below, the
-terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at
-<A href="http://www.eclipse.org/">http://www.eclipse.org/</A>.</P>
-
-</BODY>
-</HTML>
diff --git a/bundles/org.eclipse.wst.xsl/about.ini b/bundles/org.eclipse.wst.xsl/about.ini
deleted file mode 100644
index 3090c89..0000000
--- a/bundles/org.eclipse.wst.xsl/about.ini
+++ /dev/null
@@ -1,11 +0,0 @@
-# about.ini
-# contains information about a feature
-# java.io.Properties file (ISO 8859-1 with "\" escapes)
-# "%key" are externalized strings defined in about.properties
-# This file does not need to be translated.
-
-# Property "aboutText" contains blurb for "About" dialog (translated)
-aboutText=%blurb
-
-# Property "featureImage" contains path to feature image (32x32)
-featureImage=icons/WTP_icon_x32_v2.png
diff --git a/bundles/org.eclipse.wst.xsl/about.mappings b/bundles/org.eclipse.wst.xsl/about.mappings
deleted file mode 100644
index a28390a..0000000
--- a/bundles/org.eclipse.wst.xsl/about.mappings
+++ /dev/null
@@ -1,6 +0,0 @@
-# about.mappings
-# contains fill-ins for about.properties
-# java.io.Properties file (ISO 8859-1 with "\" escapes)
-# This file does not need to be translated.
-
-0=@build@
diff --git a/bundles/org.eclipse.wst.xsl/about.properties b/bundles/org.eclipse.wst.xsl/about.properties
deleted file mode 100644
index 15f32ab..0000000
--- a/bundles/org.eclipse.wst.xsl/about.properties
+++ /dev/null
@@ -1,20 +0,0 @@
-# about.properties
-# contains externalized strings for about.ini
-# java.io.Properties file (ISO 8859-1 with "\" escapes)
-# fill-ins are supplied by about.mappings
-# This file should be translated.
-#
-# Do not translate any values surrounded by {}
-
-blurb=Eclipse XSL Developer Tools\n\
-\n\
-Version: {featureVersion}\n\
-Build id: {0}\n\
-\n\
-(c) Copyright\n\
- Doug Satchwell (Chase Technology Ltd),\n\
- David Carver (Standards for Technology in Automotive Retail)\n\
- and others 2008. All rights reserved.\n\
-\n\
-Visit http://www.eclipse.org/webtools
-
diff --git a/bundles/org.eclipse.wst.xsl/build.properties b/bundles/org.eclipse.wst.xsl/build.properties
deleted file mode 100644
index 1694922..0000000
--- a/bundles/org.eclipse.wst.xsl/build.properties
+++ /dev/null
@@ -1,7 +0,0 @@
-bin.includes = META-INF/,\
- about.html,\
- about.ini,\
- about.mappings,\
- about.properties,\
- plugin.properties,\
- icons/
diff --git a/bundles/org.eclipse.wst.xsl/icons/WTP_icon_x32_v2.png b/bundles/org.eclipse.wst.xsl/icons/WTP_icon_x32_v2.png
deleted file mode 100644
index 6f09c2a..0000000
--- a/bundles/org.eclipse.wst.xsl/icons/WTP_icon_x32_v2.png
+++ /dev/null
Binary files differ
diff --git a/bundles/org.eclipse.wst.xsl/plugin.properties b/bundles/org.eclipse.wst.xsl/plugin.properties
deleted file mode 100644
index a240e51..0000000
--- a/bundles/org.eclipse.wst.xsl/plugin.properties
+++ /dev/null
@@ -1,3 +0,0 @@
-#Properties file for org.eclipse.wst.xsl
-Bundle-Vendor.0 = Eclipse Web Tools Platform
-Bundle-Name.0 = Eclipse XSL Developer Tools \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/.cvsignore b/docs/org.eclipse.wst.xsl.doc/.cvsignore
deleted file mode 100644
index ae93dfd..0000000
--- a/docs/org.eclipse.wst.xsl.doc/.cvsignore
+++ /dev/null
@@ -1,2 +0,0 @@
-xinclude
-test.xml
diff --git a/docs/org.eclipse.wst.xsl.doc/.project b/docs/org.eclipse.wst.xsl.doc/.project
deleted file mode 100644
index f266912..0000000
--- a/docs/org.eclipse.wst.xsl.doc/.project
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.wst.xsl.doc</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.wst.validation.validationbuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- </natures>
-</projectDescription>
diff --git a/docs/org.eclipse.wst.xsl.doc/.settings/org.eclipse.jdt.core.prefs b/docs/org.eclipse.wst.xsl.doc/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index f843f0f..0000000
--- a/docs/org.eclipse.wst.xsl.doc/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,7 +0,0 @@
-#Mon Mar 10 19:41:50 GMT-05:00 2008
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.2
-org.eclipse.jdt.core.compiler.compliance=1.4
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=warning
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=warning
-org.eclipse.jdt.core.compiler.source=1.3
diff --git a/docs/org.eclipse.wst.xsl.doc/.settings/org.eclipse.wst.validation.prefs b/docs/org.eclipse.wst.xsl.doc/.settings/org.eclipse.wst.validation.prefs
deleted file mode 100644
index a9a9a29..0000000
--- a/docs/org.eclipse.wst.xsl.doc/.settings/org.eclipse.wst.validation.prefs
+++ /dev/null
@@ -1,15 +0,0 @@
-#Sat Sep 20 17:03:09 GMT 2008
-DELEGATES_PREFERENCE=delegateValidatorList
-USER_BUILD_PREFERENCE=enabledBuildValidatorList
-USER_MANUAL_PREFERENCE=enabledManualValidatorList
-USER_PREFERENCE=overrideGlobalPreferencestruedisableAllValidationfalseversion1.2.0.v200807211450
-eclipse.preferences.version=1
-override=true
-suspend=false
-vals/org.eclipse.jst.jsp.core.JSPBatchValidator/global=FF01
-vals/org.eclipse.jst.jsp.core.JSPContentValidator/global=FF01
-vals/org.eclipse.wst.html.ui.HTMLValidator/global=FF01
-vals/org.eclipse.wst.wsdl.validation.wsdl/global=FF02158org.eclipse.wst.wsdl.validation.internal.eclipse.Validator
-vals/org.eclipse.wst.xml.core.xml/groups=0107include07111contentType128org.eclipse.core.runtime.xmlT111contentType134org.eclipse.wst.xml.core.xmlsourceT111contentType134org.eclipse.wst.xml.core.xslsourceT111contentType134org.eclipse.jst.jsp.core.tldsourceT07fileext03xmlF07fileext03gphF07fileext115wdo-connectionsF0107exclude06113projectNature134org.eclipse.jst.j2ee.ejb.EJBNature113projectNature130org.eclipse.jst.j2ee.EARNature04file08.projectT0104file110.classpathT0104file110.settings/T0204file112concepts.xmlF01
-vals/org.eclipse.wst.xsd.core.xsd/global=FF02162org.eclipse.wst.xsd.core.internal.validation.eclipse.Validator
-vf.version=3
diff --git a/docs/org.eclipse.wst.xsl.doc/META-INF/MANIFEST.MF b/docs/org.eclipse.wst.xsl.doc/META-INF/MANIFEST.MF
deleted file mode 100644
index 863cea2..0000000
--- a/docs/org.eclipse.wst.xsl.doc/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,10 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: %pluginName
-Bundle-SymbolicName: org.eclipse.wst.xsl.doc;singleton:=true
-Bundle-Version: 1.0.0.qualifier
-Require-Bundle: org.eclipse.ui;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)"
-Bundle-RequiredExecutionEnvironment: J2SE-1.4
-Bundle-Vendor: %vendorName
-Bundle-Localization: plugin
diff --git a/docs/org.eclipse.wst.xsl.doc/about.html b/docs/org.eclipse.wst.xsl.doc/about.html
deleted file mode 100644
index 2199df3..0000000
--- a/docs/org.eclipse.wst.xsl.doc/about.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<HTML>
-
-<head>
-<title>About</title>
-<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
-</head>
-
-<BODY lang="EN-US">
-
-<H3>About This Content</H3>
-
-<P>June, 2008</P>
-
-<H3>License</H3>
-
-<P>The Eclipse Foundation makes available all content in this plug-in
-("Content"). Unless otherwise indicated below, the Content is provided to you
-under the terms and conditions of the Eclipse Public License Version 1.0
-("EPL"). A copy of the EPL is available at
-<A href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/org/documents/epl-v10.php</A>.
-For purposes of the EPL, "Program" will mean the Content.</P>
-
-<P>If you did not receive this Content directly from the Eclipse Foundation, the
-Content is being redistributed by another party ("Redistributor") and different
-terms and conditions may apply to your use of any object code in the Content.
-Check the Redistributor’s license that was provided with the Content. If no such
-license exists, contact the Redistributor. Unless otherwise indicated below, the
-terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at
-<A href="http://www.eclipse.org/">http://www.eclipse.org/</A>.</P>
-
-</BODY>
-</HTML>
diff --git a/docs/org.eclipse.wst.xsl.doc/build.properties b/docs/org.eclipse.wst.xsl.doc/build.properties
deleted file mode 100644
index 6cd5053..0000000
--- a/docs/org.eclipse.wst.xsl.doc/build.properties
+++ /dev/null
@@ -1,9 +0,0 @@
-output.. = bin/
-bin.includes = plugin.xml,\
- META-INF/,\
- .,\
- html/,\
- *.xml,\
- about.html,\
- plugin.properties
-generateSourceBundle=false
diff --git a/docs/org.eclipse.wst.xsl.doc/build.xml b/docs/org.eclipse.wst.xsl.doc/build.xml
deleted file mode 100644
index 3bb2901..0000000
--- a/docs/org.eclipse.wst.xsl.doc/build.xml
+++ /dev/null
@@ -1,46 +0,0 @@
-<?xml version="1.0"?>
-<project default="create-doc" basedir=".">
-
- <property name="current-loc" location="." />
- <property name="workspace" location=".." />
- <property name="htmldir" value="${current-loc}/html" />
- <property name="docbookdir" value="${workspace}/CommonUtilities/docbook-xsl/eclipse" />
- <property name="docbooksource" value="${current-loc}/docbook"/>
- <property name="xalan" value="org.apache.xalan.processor.TransformerFactoryImpl" />
-
-
- <!-- XSLT Chunking Properties -->
- <property name="base.dir" value="${htmldir}"/>
-
- <taskdef name="xsl.include" classname="org.eclipse.wst.xsl.core.internal.ant.XIncludeTask"/>
-
- <target name="merge">
- <xsl.xinclude in="${docbooksource}/xslhelp.dbk"
- out="${docbooksource}/xslhelpcombined.dbk"/>
- </target>
-
- <target name="create-doc" depends="merge">
-
- <xslt force="true" style="${docbookdir}/eclipse33.xsl" in="${docbooksource}/xslhelpcombined.dbk" out="test.xml">
- <factory name="${xalan}" />
- <param name="manifest" expression="1"/>
- <param name="base.dir" expression="${htmldir}/"/>
- <param name="create.plugin.xml" expression="0"/>
- <param name="chunker.output.indent" expression="yes"/>
- <param name="navig.showtitles" expression="0"/>
- <param name="suppress.navigation" expression="1"/>
- <param name="generate.toc" expression="book toc,title
-chapter toc,title
-section title" />
- <param name="chapter.autolabel" expression="0"/>
- <param name="section.autolabel" expression="0"/>
- <param name="html.stylesheet" expression="book.css ../book.css"/>
- <param name="chunk.section.depth" expression="3"/>
- <param name="toc.section.depth" expression="5"/>
- <param name="toc.list.type" expression="ul"/>
- </xslt>
-
- <replace file="${current-loc}/toc.xml" token="${current-loc}/" value=""/>
- </target>
-
-</project>
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/.cvsignore b/docs/org.eclipse.wst.xsl.doc/docbook/.cvsignore
deleted file mode 100644
index c0958b3..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/.cvsignore
+++ /dev/null
@@ -1 +0,0 @@
-xslhelpcombined.dbk
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/concepts/RescuingXSLTfromNicheStatus.xml b/docs/org.eclipse.wst.xsl.doc/docbook/concepts/RescuingXSLTfromNicheStatus.xml
deleted file mode 100644
index 2fc9053..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/concepts/RescuingXSLTfromNicheStatus.xml
+++ /dev/null
@@ -1,494 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
- "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
-<section id="ResucingXSLT">
- <title>Rescuing XSLT From Niche Status</title>
- <subtitle>A Gentle Introduction to XSLT through HTML Templates</subtitle>
- <note>
- <para>
- <emphasis>
- Editors Note: This originally appeared at
- <ulink url="http://www.xfront.com/rescuing-xslt.html">XFront.com</ulink>
- , and is republished here with permission. The article is written by David Jacobs.
- </emphasis>
- </para>
- </note>
- <abstract>
- <para>
- XSLT is one of the most exciting technologies to come out of the XML family. Unfortunately, its incredible
- power and associated complexity can be overwhelming to new users preventing many from experimenting with it or
- causing them to quickly give up in disgust. In fact, unless the method of teaching and the common style of use
- for XSLT is radically changed to make it more accessible, XSLT will be relegated to niche status like SGML and
- other powerful technologies.
- </para>
- </abstract>
- <section>
- <title>The Problem</title>
- <para>
- The 1990’s saw an incredible proliferation of new web related languages. Looking back we can see what
- features separated the winners and losers. The biggest key has been having a very low barrier to entry. Many
- languages accomplished this by following the following rules.
- </para>
- <itemizedlist>
- <listitem>
- <para>
- Leverage as much existing knowledge as possible.
- </para>
- </listitem>
- <listitem>
- <para>
- Make it easy to get started with "hello world" style example.
- </para>
- </listitem>
- <listitem>
- <para>
- The most common and useful language constructs should be easily conveyed with a few small examples.
- </para>
- </listitem>
- <listitem>
- <para>
- Complex programming constructs should only be required when what is trying to be accomplished is
- complex.
- </para>
- </listitem>
- </itemizedlist>
- <para>
- From these rules we can see why embedded web scripting languages like Active Server Pages (ASPs), Cold
- Fusion, PHP and
- Java Server Pages (JSPs) are so popular. They all leverage a user’s knowledge of HTML. They also
- allow the
- minimum amount of scripting to be added to accomplish the dynamic feature a developer is looking for.
- This has
- allowed numerous web developers to start off with very small projects and then through continuos
- enhancement
- and learning, find themselves using the full power of a complex programming language. Furthermore,
- because of
- the very incremental nature of that learning the developer was never scared off.
- </para>
- <para>
- HTML has also fostered the technique of learning by example. When a web author sees another site with a
- feature they
- like, they immediately bring up the source to see how it was implemented. In this way many web
- authors were
- able to learn complex HTML tricks with no formal training. While server-side scripts are not as
- easy to come
- by, there are still numerous sites that house thousands of example scripts for a blossoming
- developer to
- examine.
- </para>
- <para>
- Traditionally XSLT has been presented as a programming language for translating XML documents into another
- format, often for presentation. This frames the problem, such that for each element, the programmer has the
- task of figuring out how that element needs to be translated. As long as there are one to one mappings or one
- to zero mappings this is straightforward. For example, if every occurrence of a <![CDATA[
- <name>]]>
- element is going to
- become an HTML header. It is a simple matter to write a matching template to accomplish
- this.
- </para>
- <programlisting id="pl_NameTemplate">
-<![CDATA[
-<xsl:template match="name">
- <h1><xsl:apply-templates/></h1>
-</xsl:template>
-]]>
- </programlisting>
- <para>
- However when adding one to many mappings (i.e. when an element’s contents will appear multiple times in the
- target document with different formatting), keeping track of all the relationships quickly grows in complexity
- and becomes confusing. For example, if, after writing the previous template, the programmer discovers that the
- name also needs to be placed in the title the programmer might add the template
- </para>
- <programlisting id="pl_valueOf">
-<![CDATA[
-<xsl:template match="/">
- <title><xsl:value-of select="name"/></title>
-</xsl:template>
-]]>
- </programlisting>
- <para>
- Notice the use of the <![CDATA[<xsl:value-of>]]>
- function in this template because using <![CDATA[<apply-templates select="name">]]>
- would have caused a triggering of the previous template adding undesired header tags to my content. This means
- before adding a translation to an element the programmer must first be aware of all the existing translations
- (ugh!). Of course if the programmer became aware of the
- <![CDATA[<title>]]>
- requirement first, the contents of these templates could have been reversed. One can quickly see how
- the
- arbitrary decisions of development and discovery of requirements can lead to a set of templates that are
- no
- longer intuitive.
- </para>
- <para>
- As a programmer with more than 20 years experience with over a dozen languages, XSLT templates and default
- rules were
- not obvious to me. Over the past year or two I had looked at numerous examples trying to discern how
- they
- worked. While I could understand the general gist of what was occurring, there was too much implied
- behavior
- that I did not pick up. It was not until going through formal XSLT training that I fully understood how
- XSLT
- worked. Clearly, if the barrier to entry is that high for an experienced programmer, the average web
- developer
- was not going to find this technology very useful.
- </para>
- </section>
- <section>
- <title>The Solution</title>
- <para>
- So how do we solve this problem and help deliver XSLT’s promise to the masses? For XSLT to be successful it
- must be
- presented and used in a way that adopts those attributes discussed earlier (reuse of knowledge, fast
- start, and
- gradualism). This tutorial will attempt to ease XSLT’s introduction by focusing on these attributes.
- First, it
- is only going to focus on the generation of HTML documents and users who are familiar with HTML. If
- your goal
- is to immediately start transforming one XML document into another XML document this tutorial is not
- for you.
- </para>
- <para>
- The second is to reframe the problem so the XSLT solutions programmers write are more naturally extensible
- and
- intuitive. Instead of trying to translate an XML source document into an HTML presentation document, the
- programmer should see the XML document as a complex data structure with XSLT providing powerful tools for
- extracting that information into their HTML documents. This allows us to leverage the experience most people
- have with using an HTML templating language (e.g. ASP, PHP, JSP, Cold Fusion, Web Macro, etc). These templating
- languages are all based on the basic premise that HTML comes first and all enhancements are then embedded in
- special tags.
- </para>
- <para>
- With some caveats, this tutorial will show how XSLT can be used in this same way. The benefit of this
- approach is it
- allows the quick use of many of XSLT’s powerful functions while letting you learn its more
- esoteric
- capabilities as the need arises. In addition the resulting XSLT files are more intuitive and
- maintainable.
- </para>
- <programlisting>
-<emphasis role="bold"><![CDATA[<xsl:value-of> and {}]]></emphasis>
- </programlisting>
- <para>
- On to an example. Here is a very simple welcome page.
- </para>
- <programlisting>
-<![CDATA[
-<html>
- <head>
- <title>Welcome</title>
- </head>
- <body>
- Welcome!
- </body>
-</html>
-]]>
- </programlisting>
- <para>
- And here is an XML document with information on member.
- </para>
- <programlisting>
-<![CDATA[
-<?xml version="1.0"?>
-<member level="platinum">
- <name>Jeff</name>
- <phone type="home">555-1234</phone>
- <phone type="work">555-4321</phone>
- <favoriteColor>blue</favoriteColor>
-</member>]]>
- </programlisting>
- <para>
- There are a couple of things that need to be pointed out right away. First this is a well-formed XML
- document. This mean all HTML used must conform to the XHTML specification (i.e. all tags must be closed and
- lowercase).
- </para>
- <para>
- The lines before the <![CDATA[<html>]]>
- tag and after the <![CDATA[</html>]]>
- tag will be seen in all the examples. For now, other than realizing that they are required in any style sheet
- created, just go ahead and forget they are there. You don’t NEED to understand them right now to get useful
- work out of XSLT.
- </para>
- <para>
- Notice the HTML is identical to the original except for the introduction of a new tag
- <![CDATA[<xsl:value-of>]]>.
- This tag is the key to extracting any piece of information out an XML document. It has a "select"
- attribute that
- provides the path through the XML document to the information we seek. In this case
- <![CDATA[<member>]]>
- is the outer most tag and
- <![CDATA[<name>]]>
- is the tag underneath it. Slash characters ("/") are used to designate parent/child relationships
- between tags.
- If you are used to navigating around a Unix file system this should feel familiar.
- </para>
- <para>
- Now let’s consider further customizing this page by making the welcome in the person’s favorite color using the
- <![CDATA[<font>]]>
- tag with the "bgcolor" attribute. Because
- <![CDATA[<xsl:value-of>]]>
- is an XML tag it is not valid to insert it in an HTML attribute value. So another mechanism
- is needed to insert
- information from our XML file there.
- </para>
- <programlisting>
-<![CDATA[
-<?xml version="1.0"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0">
- <xsl:template match="/">
- <html>
- <head>
- <title>Welcome</title>
- </head>
- <body>
- <font bgcolor="{member/favoriteColor}">
- Welcome <xsl:value-of select="member/name"/>!
- </font>
- </body>
- </html>
- </xsl:template>
-</xsl:stylesheet>
-]]>
- </programlisting>
- <para>
- Notice the use of the curly brackets ("{}"). When used within an attribute assignment "{path}" has the exact
- same effect as
- <![CDATA[<xsl:value-of select="path" />]]>
- used outside of attribute assignments.
- </para>
- </section>
- <section>
- <title>Queries</title>
- <para>
- Not all paths lead to a single node. For example, what if we wanted to put a person’s home phone number on the
- page? Notice that the XML document contains two phone entries. If we simply used
- <![CDATA[<xsl:value-of select="member/phone" />]]>
- both entries would be returned. We obviously need a way to be more specific. Luckily, XSLT allows the full
- power of XPath to describe the value(s) of interest. XPath allows conditions on any attribute or tag to be
- placed in square brackets ("[]") which are then used to restrict the values returned.
- </para>
- <para>
- So to retrieve the home phone number we would use the path "member/phone[@type=’home’]". Notice the "@"
- symbol in front
- of "type". The "@" symbol signifies that we are referring to an attribute. So our new HTML
- template looks like:
- </para>
- <programlisting>
-<![CDATA[
-<?xml version="1.0"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0">
- <xsl:template match="/">
- <html>
- <head>
- <title>Welcome</title>
- </head>
- <body>
- <font bgcolor="{member/favoriteColor}">
- Welcome <xsl:value-of select="member/name"/>!
- <br/>
- Your home phone number is:
-]]> <emphasis role="bold"><![CDATA[<xsl:value-of select="member/phone[@type=’home’]"/>]]></emphasis>
-<![CDATA[ </font>
- </body
- </html
- </xsl:template>
-</xsl:stylesheet>
-]]>
- </programlisting>
- <section>
- <title>xsl:for-each</title>
- <para>
- The previous example brings up another issue. What if this
- <![CDATA[<member>]]>
- entry had numerous phone numbers and we wanted to print them all on the web page. We could simply use
- <![CDATA[<xsl:value-of select="member/phone" />]]>
- but this would not enable us to format the phone number into a nice list that describes the type of each
- number.
- </para>
- <para>
- To accomplish this requires the introduction of the
- <![CDATA[<xsl:for-each>]]>
- tag which allows us to loop through each of the elements that match a given path. So to
- create a table that
- contains the phone number type in the first column and the phone number in the second
- column, the following
- stylesheet could be used.
- </para>
- <programlisting>
-<![CDATA[
-<?xml version="1.0"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0">
- <xsl:template match="/">
- <html>
- <head>
- <title>Welcome</title>
- </head>
- <body>
- <font bgcolor="{member/favoriteColor}">
- Welcome <xsl:value-of select="member/name"/>!
- </font>
- <table>
- <tr><th>Type</th><th>Number</th></tr>
- <xsl:for-each select="member/phone">
- <tr>
- <td><xsl:value-of select="@type"/></td>
- <td><xsl:value-of select="."/></td>
- </tr>
- </xsl:for-each>
- </table>
- </body>
- </html>
- </xsl:template>
-</xsl:stylesheet>
-]]>
- </programlisting>
- <para>
- This example brings up a number of issues. First, while in the loop, all
- <![CDATA[<xsl:value-of />]]>
- accesses are relative to the current element being iterated over (in this case
- <![CDATA[<phone>)]]>.
- Notice the use of the period ("."), which like in a Unix file system means the current element.
- So in this
- case the period (".") refers to each phone element as the loop iterates. Also like in a file
- system you can
- address a parent element using a double period ("..") and can access any element in the
- document by starting
- over at the root element using a slash ("/").
- </para>
- </section>
- <section>
- <title>xsl:if</title>
- <para>
- As a last enhancement to our page let’s add a special offer to "platinum" level members. To do this requires
- the use of a new tag
- <![CDATA[<xsl:if>]]>
- which allows us to insert content based on a condition of the data in the XML document.
- </para>
- <programlisting>
-<![CDATA[
-<?xml version="1.0"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0">
- <xsl:template match="/">
- <html>
- <head>
- <title>Welcome</title>
- </head>
- <body>
- <font bgcolor="{member/favoriteColor}">
- Welcome <xsl:value-of select="member/name"/>!
- </font>
- <xsl:if test="member[@level='platinum']">
- Our special offer to platinum members today is something great
- </xsl:if>
- <table>
- <tr><th>Type</th><th>Number</th></tr>
- <xsl:for-each select="member/phone">
- <tr>
- <td><xsl:value-of select="@type"/></td>
- <td><xsl:value-of select="."/></td>
- </tr>
- </xsl:for-each>
- </table>
- </body>
- </html>
- </xsl:template>
-</xsl:stylesheet>
-]]>
- </programlisting>
- <para>
- Within the "test" attribute the full array of Boolean and relative operators are available. The only caveat
- is that since this is an XML document less than and greater than (<![CDATA["<"]]>,
- ">") signs must be escaped as <![CDATA["&lt;" and "&gt;"]]>.
- </para>
- </section>
- <section>
- <title>xsl:choose</title>
- <para>
- One nuance of the
- <![CDATA[<xsl:if>]]>
- tag that is not always obvious at first glance is the lack of an "else" statement. This means to have an
- else statement requires two ifs. The first one saying "if condition" and the second one saying “if not
- conditionâ€. This scheme quickly becomes unworkable with embedded if then else logic. Luckily XSLT
- supports an
- additional test operator called
- <![CDATA[<xsl:choose>]]>
- which works like a switch/case statement.
- </para>
- <programlisting>
-<![CDATA[
-<?xml version="1.0"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0">
- <xsl:template match="/">
- <html>
- <head>
- <title>Welcome</title>
- </head>
- <body>
- <font bgcolor="{member/favoriteColor}">
- Welcome <xsl:value-of select="member/name"/>!
- </font>
- <xsl:choose>
- <xsl:when test="member[@level='platinum']">
- Our special offer to platinum members today is something great
- </xsl:when>
- <xsl:otherwise>
- Become a platinum member today!
- </xsl:otherwise>
- </xsl:choose>
- <table>
- <tr><th>Type</th><th>Number</th></tr>
- <xsl:for-each select="member/phone">
- <tr>
- <td><xsl:value-of select="@type"/></td>
- <td><xsl:value-of select="."/></td>
- </tr>
- </xsl:for-each>
- </table>
- </body>
- </html>
- </xsl:template>
-</xsl:stylesheet>
-]]>
- </programlisting>
- <para>
- The “test†attribute has the same capabilities/ constraints as the “test†attribute in the
- <![CDATA[<xsl:if>]]>
- tag. Multiple
- <![CDATA[<xsl:when>]]>
- blocks are allowed. As soon as one “when test†is mached, it will not evaluate any further “xsl:when
- testsâ€
- in the
- <![CDATA[<xsl:choose>]]>
- block.
- </para>
- </section>
- </section>
- <section>
- <title>Conclusion</title>
- <para>
- With just these few commands (an admittedly small subset of XSLT) and a strong background in HTML (DHTML and
- JavaScript
- included), I believe web developers could meet the majority of their presentation needs. Obviously
- there will
- be cases where greater flexibility is required, but the advantage of this technique is that only
- then, does the
- developer need to learn those constructs.
- </para>
- <para>
- As a further benefit, this technique minimized the interdependence of one XLST construct on another. Local
- changes stay
- local thereby reducing the brittleness of solutions. The developer also no longer has to remember
- and account
- for XSLT’s default behaviors.
- </para>
- <para>
- I hope from these few examples, I have opened a few eyes to the power of XSLT and how a small change in how
- XSLT is framed can make a huge difference in its understandability and accessibility to web developers. If
- nothing else, I hope to encourage some good discussions.
- </para>
- </section>
-</section>
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/concepts/concepts.xml b/docs/org.eclipse.wst.xsl.doc/docbook/concepts/concepts.xml
deleted file mode 100644
index 40e3400..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/concepts/concepts.xml
+++ /dev/null
@@ -1,41 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
- "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
-<chapter>
- <?dbhtml filename="concepts/concepts.html" ?>
- <title>XSLT Concepts</title>
- <para>
- If you are new to XSLT or just need a refresher then this section may
- help get you going.
- </para>
- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="RescuingXSLTfromNicheStatus.xml"/>
- <section id="concepts_Resources">
- <?dbhtml filename="concepts/resources.html" ?>
- <title>Resources</title>
- <itemizedlist>
- <listitem>
- <para>
- <ulink url="http://www.w3.org/TR/xslt">XSLT 1.0 Specification</ulink> - The official W3C XSLT 1.0 Specification.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://www.dpawson.co.uk/xsl/index.html">XSLT FAQ</ulink> - maintained by Dave Pawson.
- </para>
- </listitem>
- <listitem>
- <para><ulink url="http://www.xfront.com/rescuing-xslt.html">Rescuing XSLT from Niche Status</ulink> - by David Jacobs.</para>
- </listitem>
- <listitem>
- <para><ulink url="http://www.xml.com/pub/a/2003/11/26/learnXSLT.html">Five XSLT Basics</ulink> - by Michael Fitzgerald author of Learning XSLT.</para>
- </listitem>
- <listitem>
- <para><ulink url="http://www.xfront.com/files/tutorials.html">XFront Tutorials</ulink> - provides several tutorials include XSLT 1.0.</para>
- </listitem>
- <listitem>
- <para><ulink url="http://www.cafeconleche.org/books/bible2/chapters/ch17.html">XSL Transformations</ulink> - Chapter 17 of the XML Bible 2nd Edition.</para>
- </listitem>
- </itemizedlist>
- </section>
-
-</chapter> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/concepts/gettingstarted.xml b/docs/org.eclipse.wst.xsl.doc/docbook/concepts/gettingstarted.xml
deleted file mode 100644
index 0e15318..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/concepts/gettingstarted.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
- "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
-<chapter>
- <?dbhtml filename="introduction/gettingstarted.html" ?>
- <title>Getting Started</title>
- <para>
- XSLT stands for the eXtensible Stylesheet Language Transformations. It is
- part of the XSL specification which includes the transformation and formatting objects
- (XSL-FO). XSL Tools primarily deals with the editing, launching, and debugging
- of XSL Style sheets.
- </para>
- <itemizedlist>
- <title>Getting Started</title>
- <listitem>
- <para><ulink url="../concepts/concepts.html">Rescuing XSLT From Niche Status</ulink> - gives a basic introduction to XSLT from the point of view of creating HTML output.</para>
- </listitem>
- <listitem>
- <para><ulink url="http://www.mulberrytech.com/quickref/">XSLT and XPath Quick Reference Cards</ulink> - a set of PDF files that can be printed to provide quick references to the XSLT and XPath commands.</para>
- </listitem>
- </itemizedlist>
-</chapter> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/editor/editor.xml b/docs/org.eclipse.wst.xsl.doc/docbook/editor/editor.xml
deleted file mode 100644
index 0528abd..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/editor/editor.xml
+++ /dev/null
@@ -1,382 +0,0 @@
-<?xml version='1.0'?>
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
- "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
-<chapter>
- <?dbhtml filename="editor/xsleditor.html" ?>
- <title>XSL Editing</title>
- <para>The XSL Tools plugins extend the ability of the Web Standard Tools XML
- editor. This extension adds specific support and functionality for working with
- and debugging XSL files.</para>
- <section id="Validation">
- <?dbhtml filename="editor/xsleditor_validation.html" ?>
- <title>Validation</title>
- <para>The XSL extensions for the eclipse XML editor include as you type
- validation for XSL specific features. This includes not only the ability to
- syntax check the grammar, but to also to validate specific XSL specification
- rules. Grammar validation will be triggered based on the version attribute for
- the style sheet that is being edited. Valid version numbers are 1.0, and 2.0.
- </para>
- </section>
- <section id="ContentAssist">
-<?dbhtml filename="editor/xsleditor_contentassist.html" ?>
- <title>Content Assist</title>
- <para>
- XSL Tools extends the existing content assistance support of the XML Editor to
- provide content assistance for several XSL namespace attributes. The content
- assistance provided covers the available XPath statements as defined in the
- <emphasis>XPath Templates</emphasis>
- preference page.
- </para>
- <important>
- <title>XPath 2.0 Support</title>
- <para>Currently XPath 2.0 is not supported directly. However, a user
- can add this support if they need it by adding the missing XPath functions
- to the XPath Templates.</para>
- </important>
- <para>To initiate content assistance press CTRL + SPACE or CMD + SPACE. This
- will bring up a dialog that will contain any proposals that are available. If
- no proposals are available an message will be displayed in the status bar.
- </para>
- <section id="ed_XSLProposals">
-<?dbhtml filename="editor/xsleditor_contentassist_xsl.html" ?>
-
- <title>XSLT Element Proposals</title>
- <para>
- Since XSLT is a templating language, it's elements must be able to be
- added to the various markup it includes. The XSLT Editor will provide
- content assistance and proposals for XSLT elements that are available to
- be used within non-XSLT namespaced elements. This is depicted in
- <xref linkend="fig_XSLProposals"/>
- .
- </para>
- <figure id="fig_XSLProposals">
- <title>XSLT Proposals within Non-XSLT elements</title>
- <mediaobject>
- <imageobject>
- <imagedata align="center" fileref="../images/editor/xslproposals.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
- <section id="SelectTest">
-<?dbhtml filename="editor/xsleditor_contentassist_selecttest.html" ?>
- <title>Select, Test, and Match Attributes</title>
- <para>
- Where ever an xsl element supports a
- <emphasis>select</emphasis>
- ,
- <emphasis>test</emphasis>
- , or
- <emphasis>match</emphasis>
- attribute, content assistance is available. This includes support for the
- following:
- </para>
- <itemizedlist>
- <title>Select, Match and Test Assistance</title>
- <listitem>
- <para>
- <emphasis>Variables</emphasis>
- - both local and global variables are supported within the current
- stylesheet. Any local or global variable will be added to the list
- and the name is prefixed with a dollar sign $ symbol.
- </para>
- </listitem>
- <listitem>
- <para>
- <emphasis>XPath 1.0</emphasis>
- - XPath 1.0 is supported through the use of templates. All of the
- XPath 1.0 and XSLT xpath extension functions are available, as
- well as
- <emphasis>axis</emphasis>
- operations. Currently XPath 2.0 is not supported directly, but
- will be added in the future.
- </para>
- </listitem>
- </itemizedlist>
- <para>Content assistance for the select and test attributes is
- intelligent enough to know that it is within an XPath expression, and will
- try to determine and provide content assistance based on the current
- cursor position. If a word has been partially typed it will filter the
- available assistance.</para>
- </section>
- <section id="ExcludeResultPrefixesContentAssist">
-<?dbhtml filename="editor/xsleditor_contentassist_exclude.html" ?>
-
- <title>Exclude-Result-Prefixes</title>
- <para>
- The
- <emphasis>exclude-result-prefixes</emphasis>
- attribute in both XSLT 1.0 and XSLT 2.0 allows for the exclusion of
- certain namespace declarations in the output document. The content
- assistance populates a list of available namespaces that have been defined
- in the stylseheet and provides them as proposals as shown in
- <xref linkend="fig_ExcludeResultPrefixesContentAssist1"/>
- .
- </para>
- <figure id="fig_ExcludeResultPrefixesContentAssist1">
- <title>Exclude-result-prefixes Content Assistance
- </title>
- <mediaobject>
- <imageobject>
- <imagedata align="center"
- fileref="../images/editor/ExcludeContentAssist1.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>
- If the attribute has no values defined, then the
- <emphasis>#all</emphasis>
- value will be available in the list. If #all is already in the attributes
- value, then no content assistance will be available.
- </para>
- <figure id="fig_ExcludeResultPrefixesContentAssist2">
- <title>Filtered exclude-result-prefixes proposals</title>
- <mediaobject>
- <imageobject>
- <imagedata align="center"
- fileref="../images/editor/ExcludeContentAssist2.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>Content assistance is intelligent enough to know when a namespace
- prefix is already in the list of excluded namespaces. In this case it will
- not show the namespace in the proposal list.</para>
- <note>
- <title> Why isn't the XSL Namespace prefix in the proposals?</title>
- <para>Currently the xsl prefix or any prefix that uses the XSL
- namespace is excluded from the list. This may be changed at a future
- date. This will depend on user feedback.</para>
- </note>
- </section>
- <section id="ed_ModeAssist">
-<?dbhtml filename="editor/xsleditor_contentassist_modeassist.html" ?>
-
- <title>Mode attribute assistance</title>
- <para>
- Content assistance is available for those xsl elements that support the
- mode attribute. For XSLT 1.0 these elements are
- <emphasis>template</emphasis>
- ,
- <emphasis>apply-templates</emphasis>
- , and
- <emphasis>apply-imports</emphasis>
- .
- </para>
- <figure id="fig_ModeAssistance">
- <title>Mode attribute assistance</title>
- <mediaobject>
- <imageobject>
- <imagedata align="center" fileref="../images/editor/modeAssistance.png"
- format="PNG"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>
- The proposal list is populated by those modes defined on templates in the
- current stylesheet, and any of the templates that are
- <emphasis>included</emphasis>
- or
- <emphasis>imported</emphasis>
- .
- </para>
- </section>
- <section id="ed_NamedTemplateAssist">
-<?dbhtml filename="editor/xsleditor_contentassist_namedtemplate.html" ?>
-
- <title>Named Template Assistance</title>
- <para>
- Call Named templates have content assistance available for their
- <emphasis>name</emphasis>
- attributes. This will provide a list of called-templates that have been
- used, but have not yet been defined or overridden within the current
- stylesheet.
- </para>
- <figure id="fig_NamedTemplates">
- <title>Named Template Assistance</title>
- <mediaobject>
- <imageobject>
- <imagedata align="center" fileref="../images/editor/namedTemplate.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
- <section id="ed_CallTemplateAssist">
-<?dbhtml filename="editor/xsleditor_contentassist_calltemplate.html" ?>
-
- <title>Call-Template Assistance</title>
- <para>
- Any
- <emphasis>call-template</emphasis>
- xslt element has content assistance available for it's name attribute.
- This will provide a list of possible XSLT named templates that can be
- called from the current stylesheet. This takes into effect all included
- and imported stylesheets as well as those defined in the current
- stylesheet.
- </para>
- <figure id="fig_CallTemplateAssist">
- <title>Call-Template Assistance</title>
- <mediaobject>
- <imageobject>
- <imagedata align="center" fileref="../images/editor/calltemplate.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
- <section id="ed_href">
-<?dbhtml filename="editor/xsleditor_contentassist_include.html" ?>
-
- <title>
- Include and Import
- <emphasis>href</emphasis>
- Assistance
- </title>
- <para>XSLT stylesheets have the ability to import and include other
- stylesheets. This allows for a modular structure for the templates to be
- created. It also allows for easier maintenance. However, if one is working
- with a large project like the DocBook Projects stylesheets it can be
- difficult to remember the names and locations of all the stylesheets.
- </para>
- <para>
- To this end, the XSLT editor provides content assistance for the
- <emphasis>href</emphasis>
- attribute. The scope of the assistance is restricted to the project that
- the current stylesheet that is being editted resides.
- </para>
- <figure id="fig_HREFAssistance">
- <title>Include/Import href Assistance</title>
- <mediaobject>
- <imageobject>
- <imagedata align="center" fileref="../images/editor/hrefAssistance.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
- </section>
- <section id="XSLEditorTemplates">
-<?dbhtml filename="editor/xsleditor_templates.html" ?>
- <title>Templates</title>
- <para>Specific XSL code completion templates can be added to the XML
- editor's Templates. This allows a user to define specific markup completion
- templates that are commonly used. In addition, the XPath Templates page can be
- enhanced to allow commonly used XPath templates to be included, in addition to
- those installed by default. This allows a user the ability to add custom
- extension functions for XSLT that may be processor specific. Adopters may also
- use the standard template extension point to add additional functionality.
- </para>
- <section>
- <title>XPath Templates</title>
- <para>The XSL XPath Templates preference page allows for a user or adopter
- to add specific xpath extensions so that they show up in the content
- assistance. See the XPath Templates documentation for more information.
- </para>
- </section>
- </section>
- <section id="xsltSyntaxColoring">
-<?dbhtml filename="editor/xsleditor_coloring.html" ?>
- <title>XSLT Syntax Coloring</title>
- <para>
- XSL Tools Editor can have syntax coloring that is specific just for the the
- XSLT Namespace as showing in
- <xref linkend="fig_editorSyntaxColoring"/>
- .
- </para>
- <figure id="fig_editorSyntaxColoring">
- <title>XSLT Specific Syntax Coloring</title>
- <mediaobject>
- <imageobject>
- <imagedata align="center" fileref="../images/editor/syntaxColoring.png"
- format="PNG"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>
- The default coloring shown is to make all XSLT elements and attributes bold.
- The settings are controled in
- <xref linkend="XSLPreferences"/>
- .
- </para>
- </section>
- <section id="xsltMarkers">
-<?dbhtml filename="editor/xsleditor_markers.html" ?>
- <title>XSLT Markers and Annotations</title>
- <para>The XSL editor supports the ability to annotate or provide markers. These
- annotations provide additional information about the templates and XSLT
- elements in the stylesheet.</para>
- <section id="xsltOverRide">
-<?dbhtml filename="editor/xsleditor_contentassist_xsltOverride.html" ?>
-
- <title>Template Override</title>
- <para>The XSLT editor will mark templates that have overriden an imported
- template of the same name.</para>
- <figure id="fig_OverRide1">
- <title>Overriden Template</title>
- <mediaobject>
- <imageobject>
- <imagedata align="center" fileref="../images/editor/override1.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>
- In
- <xref linkend="fig_OverRide1"/>
- , the template
- <emphasis>TempB</emphasis>
- overrides an imported template. By moving the mouse pointer over the
- triangle icon in the rule bar, information about which file the original
- template resides.
- </para>
- <figure id="fig_OverRide2">
- <title>Overriden Template Information</title>
- <mediaobject>
- <imageobject>
- <imagedata align="center" fileref="../images/editor/override2.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
- </section>
- <section id="XSLEditorDebugging">
-<?dbhtml filename="editor/xsleditor_debugging.html" ?>
- <title>XSL Debugging</title>
- <para>The XSL Editor supports the ability to specify break points within an XSL
- File. If the file is included or imported and the break point is encountered
- during a transformation scenario it will be respected. A break point may be
- set at any valid XSL element or other xml element within the XSLT stylesheet.
- See the Launching and Debugging section for more information on debugging XSLT
- stylesheets.</para>
- </section>
- <section>
-<?dbhtml filename="editor/xsleditor_debugging.html" ?>
- <title>Navigation</title>
- <para>
- Many of the variables, imports/includes, and templates can be navigated to
- using the
- <emphasis>Open Declaration (F3)</emphasis>
- popup menu option. They can also be navigated to directly by CTRL-Clicking on
- the name of the variable, import/include, or template. Items that currently
- have hyperlinking navigation are:
- </para>
- <itemizedlist>
- <listitem>
- <para>Called-Templates</para>
- </listitem>
- <listitem>
- <para>hrefs for Import and Includes</para>
- </listitem>
- <listitem>
- <para>With-Param variables</para>
- </listitem>
- </itemizedlist>
- <tip>
- <title>Navigation to a Named Template in an included/imported
- stylsheet</title>
- <para> The hyperlinking ability will navigate you to where ever the first
- definition of the template is defined. So if the template is defined
- within the current stylesheet it will navigate to that definition. However
- if it is defined in an imported or included stylesheet, or any of those
- imported or included stylesheets it will take you to that definition. Use
- the standard navigation errors to move back and forth during this
- hyperlinking.</para>
- </tip>
- </section>
-</chapter> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/general/general.xml b/docs/org.eclipse.wst.xsl.doc/docbook/general/general.xml
deleted file mode 100644
index b72c45a..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/general/general.xml
+++ /dev/null
@@ -1,62 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
- "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
-<chapter>
- <?dbhtml filename="general/general.html" ?>
- <title>General</title>
- <para>This section covers topics that don't have any other particular place to go.</para>
- <section id="XInclude">
- <?dbhtml filename="general/xinclude.html" ?>
- <title>XInclude</title>
- <para>
- XInclude allows a user to import or include other XML files into one xml file.
- It is used primarily with documentation file formats like Docbook and DITA. It
- allows for separating out large xml documents into more manageable chunks of information.
- </para>
- <para>
- The XSL Tools project includes an ANT task that can be run with in eclipse, eclipse
- headless, and without eclipse at all. If running outside of eclipse, you will need
- to make sure that the jar file xinclude.jar in the org.eclipse.wst.xsl.core.jar file
- is made avaiable on your class path.
- </para>
- <mediaobject>
- <objectinfo id="Xinclude">
- <title>XInclude Task</title>
- </objectinfo>
- <imageobject>
- <imagedata align="center" fileref="../images/general/xinclude.png"
- format="PNG" />
- </imageobject>
- </mediaobject>
- <para>
- The following parameters are available on the xsl.xinclude ANT task:
- </para>
- <itemizedlist>
- <listitem>
- <para>
- <emphasis role="bold">
- in
- </emphasis> - The full path to the input file that contains
- the file with the XIncludes. If the files that it includes have includes, then
- those will be brought in an expanded as well.
- </para>
- </listitem>
- <listitem>
- <para>
- <emphasis role="bold">out</emphasis> - The full path to the output file
- to be written with all includes expanded. This is typically used as the
- input to a stylesheet transformation process.
- </para>
- </listitem>
- </itemizedlist>
- <example>
- <title>XInclude Example</title>
- <programlisting xml:space="preserve">
-&lt;target name="merge">
- &lt;xsl.xinclude in="${docbooksource}/xslhelp.dbk"
- out="${docbooksource}/xslhelpcombined.dbk"/>
-&lt;/target>
- </programlisting>
- </example>
- </section>
-</chapter> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/ExcludeContentAssist1.png b/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/ExcludeContentAssist1.png
deleted file mode 100644
index 2f0f2cb..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/ExcludeContentAssist1.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/ExcludeContentAssist2.png b/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/ExcludeContentAssist2.png
deleted file mode 100644
index 2e53677..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/ExcludeContentAssist2.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/calltemplate.png b/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/calltemplate.png
deleted file mode 100644
index 3a13f07..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/calltemplate.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/hrefAssistance.png b/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/hrefAssistance.png
deleted file mode 100644
index 5f44986..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/hrefAssistance.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/modeAssistance.png b/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/modeAssistance.png
deleted file mode 100644
index f5a9875..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/modeAssistance.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/namedTemplate.png b/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/namedTemplate.png
deleted file mode 100644
index b8bd926..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/namedTemplate.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/override1.png b/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/override1.png
deleted file mode 100644
index 88b878b..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/override1.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/override2.png b/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/override2.png
deleted file mode 100644
index cfc415c..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/override2.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/syntaxColoring.png b/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/syntaxColoring.png
deleted file mode 100644
index 85e0ebd..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/syntaxColoring.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/templatesView.png b/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/templatesView.png
deleted file mode 100644
index a1e20d9..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/templatesView.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/xslproposals.png b/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/xslproposals.png
deleted file mode 100644
index ffc127a..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/xslproposals.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/images/launching/XSLDebugging.png b/docs/org.eclipse.wst.xsl.doc/docbook/images/launching/XSLDebugging.png
deleted file mode 100644
index 5cb456e..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/images/launching/XSLDebugging.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/images/launching/XSLOutputTab.png b/docs/org.eclipse.wst.xsl.doc/docbook/images/launching/XSLOutputTab.png
deleted file mode 100644
index 380e55e..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/images/launching/XSLOutputTab.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/images/launching/XSLProcessorTab.png b/docs/org.eclipse.wst.xsl.doc/docbook/images/launching/XSLProcessorTab.png
deleted file mode 100644
index e86f973..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/images/launching/XSLProcessorTab.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/images/launching/XSLRunDebugConfigurations.png b/docs/org.eclipse.wst.xsl.doc/docbook/images/launching/XSLRunDebugConfigurations.png
deleted file mode 100644
index 675a64f..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/images/launching/XSLRunDebugConfigurations.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/images/launching/launchShortct.png b/docs/org.eclipse.wst.xsl.doc/docbook/images/launching/launchShortct.png
deleted file mode 100644
index 881813a..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/images/launching/launchShortct.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/images/launching/nodesetVariable.png b/docs/org.eclipse.wst.xsl.doc/docbook/images/launching/nodesetVariable.png
deleted file mode 100644
index d3ca7ff..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/images/launching/nodesetVariable.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/images/launching/resultView.png b/docs/org.eclipse.wst.xsl.doc/docbook/images/launching/resultView.png
deleted file mode 100644
index d6d1b91..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/images/launching/resultView.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/XPathTemplates.png b/docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/XPathTemplates.png
deleted file mode 100644
index 0f89304..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/XPathTemplates.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/projectLevelValidation.png b/docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/projectLevelValidation.png
deleted file mode 100644
index 3ffe862..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/projectLevelValidation.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/xm_template_xslnewfile.png b/docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/xm_template_xslnewfile.png
deleted file mode 100644
index 7646a6d..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/xm_template_xslnewfile.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/xslSyntaxColoring.png b/docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/xslSyntaxColoring.png
deleted file mode 100644
index 66ebef3..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/xslSyntaxColoring.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/xsl_InstalledProcessors.png b/docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/xsl_InstalledProcessors.png
deleted file mode 100644
index 3295079..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/xsl_InstalledProcessors.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/xsl_outputproperties.png b/docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/xsl_outputproperties.png
deleted file mode 100644
index 4e00a42..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/xsl_outputproperties.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/xslfeatures.png b/docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/xslfeatures.png
deleted file mode 100644
index 29dbec8..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/xslfeatures.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/xslpreferences.png b/docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/xslpreferences.png
deleted file mode 100644
index dcb7187..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/xslpreferences.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/launching/launching.xml b/docs/org.eclipse.wst.xsl.doc/docbook/launching/launching.xml
deleted file mode 100644
index 841a62d..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/launching/launching.xml
+++ /dev/null
@@ -1,346 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
- "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
-<chapter>
- <?dbhtml filename="launching/launching.html" ?>
- <title>XSL Launching and Debugging</title>
- <para> XSL Tools adds support for XSL Launch and Debugging
- configurations. These allow you to setup XSL configurations for
- various jobs, and to also debug xsl stylsheet transformations.</para>
- <section
- id="XSLLaunch">
- <?dbhtml filename="launching/launching.html" ?>
- <title>XSL Launching</title>
- <para>
- In the Project Explorer, simply select the input XML file and the
- stylesheet(s) to transform it, and then right-click and select
- <emphasis>Run As > XSL Transformation</emphasis>
- .
- </para>
- <figure
- id="fig_XSLRun">
- <title>XSLT Run/Debug</title>
- <mediaobject>
- <imageobject>
- <imagedata
- align="center"
- format="PNG"
- fileref="../images/launching/launchShortct.png" />
- </imageobject>
- </mediaobject>
- </figure>
- <note>
- <title>Selecting only the XSL Stylesheet</title>
- <para>
- If only the XSL Stylesheet is selected then a dialog box will prompt you for the input file to use.
- </para>
- </note>
- <para>
- Launch can also be done through the Launch Configurations pages that are used for both debugging and normal transformations.
- These configurations can be accessed through <emphasis>Run->Run Configurations</emphasis> menu bar option.
- </para>
- <section
- id="XSLLaunchConfig">
- <title>Launch Configuration</title>
- <para>
- Currently, XSL Tools only supports the launching of java based
- processors through the Run and Debug framework. To this point, it
- leverages and extends some of the support provided by the Java
- launch configurations. XSL Tools does add it's own specific features
- for launching.
- </para>
- <figure
- id="fig_XSLLaunchConfig">
- <title>Java XSLT Launch Configuration</title>
- <mediaobject>
- <imageobject>
- <imagedata
- align="center"
- format="PNG"
- fileref="../images/launching/XSLRunDebugConfigurations.png" />
- </imageobject>
- </mediaobject>
- </figure>
- <para>
- The tabs Main, Output, and Processor control specifics for the XSLT processor and files to be run through
- the transformation.
- </para>
- <note>
- <title>XSLT Extensions</title>
- <para>If the transformation needs or makes use of extension
- functions then those jar files should be added to the Classpath tab
- so that they are picked up during the transformation. Otherwise the
- transformation will fail.</para>
- </note>
- <section id="XSLLaunch_Main">
- <title>Main Tab</title>
- <para>
- As shown in <xref linkend="fig_XSLLaunchConfig"/>, the Main Tab is where the input XML file is specified. If a particular
- XML file is not shown in the available list when browsing the Workspace, make sure that it is added to under the XML Content
- Type in the General preference page. Standard eclipse launching variables can be used to specify the location of the input file.
- </para>
- <para>
- A run configuration can also use a simple pipeline transformation. Meaning that the output from one stylesheet is used as input
- to the next stylesheet. The Stylesheet input box can have one to many stylesheets specified. At least one stylesheet is required
- for a transformation.
- </para>
- <para>
- The last optional item are parameters. Stylesheets can have parameters passed into them to setup configuration information. An
- example would be the numerous parameters that can be set for a DocBook stylesheet transformation. If the parameters are not
- specified the defaults that are defined in the stylesheet will take precedence.
- </para>
- </section>
- <section id="XSLLaunch_Output">
- <title>Output Tab</title>
- <para>
- The Output Tab allows the specification of where the transformation should store the information.
- This can be relative to the workspace or a physical location outside the workspace.
- </para>
- <figure
- id="fig_XSLOutputTab">
- <title>Java XSLT Launch Configuration</title>
- <mediaobject>
- <imageobject>
- <imagedata
- align="center"
- format="PNG"
- fileref="../images/launching/XSLOutputTab.png" />
- </imageobject>
- </mediaobject>
- </figure>
-
- </section>
- <section id="XSLLaunch_Processor">
- <title>Processor Tab</title>
- <para>
- The particular XSLT processor that will be used can be choosen from this tab. The
- default is to use the system default processor or what ever processor you have
- set as the default processor in the preference pages.
- </para>
- <figure
- id="fig_XSLProcessorTab">
- <title>Java XSLT Launch Configuration</title>
- <mediaobject>
- <imageobject>
- <imagedata
- align="center"
- format="PNG"
- fileref="../images/launching/XSLProcessorTab.png" />
- </imageobject>
- </mediaobject>
- </figure>
-
- <note>
- <title>XSLT Debugging</title>
- <para>
- If you are setting up a launch configuration for debugging, do not choose
- the JRE Default processor, you should choose either Xalan or another adopters
- processor that supports debugging.
- </para>
- </note>
- <para>
- In addition, every processor has their own configuration options that can be specified.
- This controls such items as indentation, handling of white space, etc. Refer to your
- processors documentation for the specific options available.
- </para>
- </section>
- </section>
- </section>
- <section
- id="XSLDebug">
- <?dbhtml filename="launching/debugging.html" ?>
- <title>XSLT Debugging</title>
- <para> XSL Tools provides a framework for XSLT processors to provide
- debugging support. The support provided is highly dependent on the
- processors. XSL Tools comes with built in support for the Xalan 2.7.1
- processor. Debugging is only available for those processors that
- support the feature and plug into the extension point. The XSL Tools
- debugger leverages the existing eclipse platform Debug View</para>
- <figure id="fig_XSLDebug">
- <title>XSLT Debugging</title>
- <mediaobject>
- <imageobject>
- <imagedata
- align="center"
- format="PNG"
- fileref="../images/launching/XSLDebugging.png" />
- </imageobject>
- </mediaobject>
- </figure>
- <para>
- How the debugger acts will depend on the processor being used. Not
- all XSLT processors pass the same type of information to the
- debugger. These differences will be noted in the
- <xref
- linkend="XSLDebugProcessorSpecific" />
- section.
- </para>
- <section
- id="DebugGettingStarted">
- <?dbhtml filename="launching/debugging_gettingStarted.html" ?>
- <title>Starting a Debug Session</title>
- <para> Debugging is started the same way as launching an XSL
- Tranformation is done. Except that the debug configuration is used
- instead of the normal launch configuration. If a debugging session
- is started on a processor that does not support debugging, a dialog
- will ask if you want to switch to one of the supported debuggers.
- </para>
- <note>
- <title>Default JRE</title>
- <para> The default JRE does not have built in support for debugging,
- even though it is based on Apache Xalan. It is recommended to use
- Xalan or another processor provided by an adopter to do your
- transformations. The default processor is known to have some issues
- that Xalan and other processors do not have.</para>
- </note>
- </section>
- <section
- id="XSLDebugCommon">
- <?dbhtml filename="launching/debugging_common.html" ?>
- <title>Common Debugging Operations</title>
- <para>
- XSLT debugging is handled by the eclipse platforms debugging
- framework support as outlined in the
- <ulink
- url="/help/topic/org.eclipse.platform.doc.isv/guide/debug_debug.htm">"Program Debug and Launch Support"</ulink>
- . Common operations like stepping into (F5), stepping over (F6),
- pausing, running to a breakpoint, and relaunching are supported. In
- addition to the standard Variable and Breakpoint views provided by
- the platform, there are some XSLT specific views and functionality
- as well. All of these are common regardless of the particular XSLT
- debugger being used.
- </para>
- <tip>
- <title>Introduction to Eclipse Debugging</title>
- <para>
- <ulink
- url="http://www.mcs.vuw.ac.nz/courses/COMP205/2007T1/tools/eclipse/debugging/basics.shtml">Basic Debugging in Eclipse</ulink>
- contains a good general introduction to the basic features provided
- by the Eclipse Debug view. XSL Tools leverages many of these
- features and the same concepts apply to the XSL Tools debugger.
- </para>
- </tip>
- <para> In addition to the standard features and functionality, the
- XSL Tools debugging support adds the following additional items:
- </para>
- <itemizedlist>
- <listitem>
- <para> Result View</para>
- </listitem>
- <listitem>
- <para>XSLT specific Variables</para>
- </listitem>
- <listitem>
- <para>XSLT Processor Specific Functionality</para>
- </listitem>
- </itemizedlist>
- <section
- id="XSLDebugResultView">
- <?dbhtml filename="launching/debugging_resultview.html" ?>
- <title>Result View</title>
- <para> The XSLT Debugger has a result view. This will show the
- output that the stylesheet has generated to the current break point
- or since the last step command was issued.</para>
- <mediaobject>
- <imageobject>
- <imagedata
- align="center"
- format="PNG"
- fileref="../images/launching/resultView.png" />
- </imageobject>
- </mediaobject>
- <para> The result view is updated throughout the debugging process,
- and is useful to help see what output is generated at specific
- points during a transformation.</para>
- </section>
- <section
- id="XSLDebugVariables">
- <?dbhtml filename="launching/debugging_variablesview.html" ?>
- <title>Variables View</title>
- <para> The variables view will show all the local and global
- variables and params that are currently in scope. There are two
- types of variables that can be views.</para>
- <mediaobject>
- <imageobject>
- <imagedata
- align="center"
- format="PNG"
- fileref="../images/launching/nodesetVariable.png" />
- </imageobject>
- </mediaobject>
- <itemizedlist>
- <title>Variable Types</title>
- <listitem>
- <para>
- <emphasis>String</emphasis>
- - These contain text values. This could be strings of text,
- numbers, or other characters.
- </para>
- </listitem>
- <listitem>
- <para>
- <emphasis>Nodesets</emphasis>
- - Nodesets are represented in the variables view as expandable
- variables. They contain sequences of nodes. The type of nodes are
- represented by icons for elements, attributes, text, comments or
- processing instructions.
- </para>
- </listitem>
- </itemizedlist>
- <note>
- <title>Can I change the value of variables?</title>
- <para> Currently the XSLT Debugger does not support changing the
- values or contents of a variable. All XSLT variables are read
- only.</para>
- </note>
- </section>
- </section>
- <section
- id="XSLDebugProcessorSpecific">
- <?dbhtml filename="launching/debugging_processors.html" ?>
- <title>XSLT Processor Specific Support</title>
- <para> Various XSLT processors provide various levels of debugging
- support. Many do not provide support for debugging of stylesheets,
- and thus can't be used for debugging. XSL Tools provides basic
- support for Xalan, and can be used as a guide for adopters on how to
- implement their own specific debugging support for other processors.
- </para>
- <section
- id="XSLDebugXalan">
- <title>XSL Debugging with Xalan</title>
- <para> Xalan provides general stylesheet execution and evalation
- functionality. However there are a few things that Xalan does not
- suppor that other processors do.</para>
- <orderedlist>
- <title>Xalan Debugging Issues</title>
- <listitem>
- <para>
- <emphasis>Breakpoints</emphasis>
- - Xalan does not support stopping at Global Variables or
- Parameters when a debugging session is started. It will
- automatically start at the first template. Break points must be
- placed in templates to be honored. The reason for this is that
- Xalan lazily initializes the variables only when they are first
- used.
- </para>
- </listitem>
- <listitem>
- <para>
- <emphasis>XSLT Text elements</emphasis>
- - Xalan does not send notifications of xsl:text elements. These
- are skipped over when debugging.
- </para>
- </listitem>
- <listitem>
- <para>
- <emphasis>Built In Templates</emphasis>
- - Xalan does provide notification when the built in templates are
- called, but currently the debugger does not support or display
- stepping into these templates.
- </para>
- </listitem>
- </orderedlist>
- </section>
- </section>
- </section>
-</chapter> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/legal.xml b/docs/org.eclipse.wst.xsl.doc/docbook/legal.xml
deleted file mode 100644
index 2fe8845..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/legal.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
- "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
-<chapter>
- <?dbhtml filename="legal.html" ?>
- <title>Notices</title>
- <para>
- The material in this guide is Copyright (c) Doug Satchwell (<ulink url="http://www.chasetechnology.co.uk">Chase Technology Ltd</ulink>),
- David Carver (<ulink url="http://www.starstandard.org">Standards for Technology in Automotive Retail</ulink>)
- and others 2008.
- </para>
- <para>
- This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies
- this distribution, and is available at
- <ulink url="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</ulink>.
- </para>
- <para>
- <ulink url="about.html">Terms and conditions regarding the use of this guide.</ulink>.
- </para>
-</chapter> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/preferences/preferences.xml b/docs/org.eclipse.wst.xsl.doc/docbook/preferences/preferences.xml
deleted file mode 100644
index 2f09466..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/preferences/preferences.xml
+++ /dev/null
@@ -1,197 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
- "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
-<chapter id="XSLPreferences">
- <?dbhtml filename="preferences/xslpreferences.html" ?>
- <title>XSL Tools Preferences</title>
- <para> The XSL Preference pages has several sub sections. Each of these allow for
- configuration of various aspects of the preferences. From the controlling of the
- default XSL processor to be used during transformations. To extending the content
- assist support of the XPath functions available in the XML editor.</para>
- <figure id="fig_XSLPreferences">
- <title>XSL Tools Preferences</title>
- <mediaobject>
- <imageobject>
- <imagedata align="center" fileref="../images/preferences/xslpreferences.png"
- format="PNG"/>
- </imageobject>
- </mediaobject>
- </figure>
- <section id="XSLFeatures">
- <?dbhtml filename="preferences/xslfeatures.html" ?>
- <title>Features</title>
- <para> The XSL Features preference page allows for the configuration of features
- for a particular processor. XSL Tools comes with Xalan 2.7.0 by default.
- Adopters can extend and include their own specific features for their own
- procesoors. An adopter could extend the tooling to support XSLT 2.0
- transformations, and features particular to that parser.</para>
- <mediaobject>
- <imageobject>
- <imagedata align="center" format="PNG"
- fileref="../images/preferences/xslfeatures.png"/>
- </imageobject>
- </mediaobject>
- <para>
- The
- <emphasis role="bold">Processor Type</emphasis>
- allows you to set features for a specific processor. In this case this is for
- the processor that is being installed. XSL Tools comes with Xalan 2.7.0, and
- it is the only available processor type by default.
- </para>
- <para> The feature table lists the features that are specific to the processor
- that was selected. As you select each of the features, information regarding
- that feature and it's abilities is displayed in the description box. By
- clicking in the value column, next to the feature you want to set the value
- for, the user can set the feature.</para>
- </section>
- <section id="XSLProcessors">
- <?dbhtml filename="preferences/xslprocessors.html" ?>
- <title>Installed Processors</title>
- <para> The installed processors page lets you pick which of the installed XSLT
- processors will be used by default. The default is the System Default
- Procesoor, but you can select any of the available processors to be used as
- the default processor.</para>
- <mediaobject>
- <imageobject>
- <imagedata align="center"
- fileref="../images/preferences/xsl_InstalledProcessors.png" format="PNG"/>
- </imageobject>
- </mediaobject>
- </section>
- <section id="XSLOutputProperties">
- <?dbhtml filename="preferences/xsloutputproperties.html" ?>
- <title>Output Properties</title>
- <para> The various xsl processors support a wide variety of processor specific
- tweaks. However there are several Standard processor features that all XSLT
- processors support. These options can be set and will act as the defaults for
- all transformations unless they are specifically overriden by the stylesheet
- or the launch configuration.</para>
- <mediaobject>
- <imageobject>
- <imagedata align="center"
- fileref="../images/preferences/xsl_outputproperties.png" format="PNG"/>
- </imageobject>
- </mediaobject>
- <para> In addition to the Standard Output Properties, each XSLT processor can have
- processors specific features.</para>
- </section>
- <section id="XPathTemplates">
- <?dbhtml filename="preferences/xpathtemplates.html" ?>
- <title>XPath Templates</title>
- <para> XPath template proposal is supported by the XSL Tooling project through the
- built in template functionality of eclipse. Users and Adopters can add their
- own specific xpath extensions for processor specific extensions. An example
- would be to add the EXSLT extensions for proposal support.</para>
- <mediaobject>
- <imageobject>
- <objectinfo>
- <title>XPath Templates</title>
- </objectinfo>
- <imagedata align="center" fileref="../images/preferences/XPathTemplates.png"
- format="PNG"/>
- </imageobject>
- </mediaobject>
- <para> The following content types are available:</para>
- <itemizedlist>
- <listitem>
- <para>
- <emphasis role="bold">axis</emphasis>
- - an XPath navigation axis statement.
- </para>
- </listitem>
- <listitem>
- <para>
- <emphasis role="bold">exslt</emphasis>
- - An XPath statement that is defined by the
- <ulink url="http://www.exslt.org/">EXSLT</ulink>
- library. Xalan and most other processors have built in support for the
- EXSLT library.
- </para>
- </listitem>
- <listitem>
- <para>
- <emphasis role="bold">xpath</emphasis>
- - Represents an XPATH 1.0 function. These are functions as defined by
- the XPath 1.0 specification.
- </para>
- </listitem>
- <listitem>
- <para>
- <emphasis role="bold">xpath 2.0</emphasis>
- - Represents an XPath 2.0 function.
- <emphasis>Note: That currently XSL Tools only ships with
- templates defined for XPath 1.0 .</emphasis>
- </para>
- </listitem>
- <listitem>
- <para>
- <emphasis role="bold">operator</emphasis>
- - An xpath logical operator like AND, OR, etc.
- </para>
- </listitem>
- </itemizedlist>
- <section id="XPathTemplateNew">
- <?dbhtml filename="preferences/xpathtemplatenew.html" ?>
- <title>Creating New Templates</title>
- <!-- TODO: Create Additional information on creating new templates-->
- <para> Add documentation about creating new templates.</para>
- </section>
- <section id="XPathImport">
- <?dbhtml filename="preferences/xpathimport.html" ?>
- <title>Import XPath Templates</title>
- <para> Add documentation about importing new templates.</para>
- </section>
- <section id="XPathExport">
- <?dbhtml filename="preferences/xpathexport.html" ?>
- <title>Import XPath Templates</title>
- <para> Add documentation about importing new templates.</para>
- </section>
- </section>
- <section id="pref_ProjectValidationPreferences">
- <?dbhtml filename="preferences/validation.html" ?>
- <title>Project Validation Preferences</title>
- <para>
- XSL Tools has the ability to set both workspace wide preferences for
- validation as well as project level preferences. These preferences, as shown
- in
- <xref linkend="fig_ProjectLevelPreferences"/>
- allow for the fine grain control of what the validator will consider to be an
- syntax error.
- </para>
- <figure id="fig_ProjectLevelPreferences">
- <title>Project Level Validation Preferences</title>
- <mediaobject>
- <imageobject>
- <imagedata align="center"
- fileref="../images/preferences/projectLevelValidation.png" format="PNG"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para> These preferences are accessed via the Projects properties dialog.</para>
- </section>
- <section id="pref_SyntaxColoring">
- <?dbhtml filename="preferences/syntaxColoring.html" ?>
- <title>XSLT Syntax Coloring</title>
- <para>
- XSL Tools also has the ability to syntax color the XSLT namespace items a different
- color than the rest of the XML syntax included. The default is for all XSL syntax to be
- <emphasis role="bold">bold</emphasis>.
- </para>
- <figure id="fig_XSLSyntaxColoringPreference">
- <title>XSL Tools Syntax Coloring Preference</title>
- <mediaobject>
- <imageobject>
- <imagedata align="center"
- fileref="../images/preferences/xslSyntaxColoring.png" format="PNG"/>
- </imageobject>
- </mediaobject>
- </figure>
- <note>
- <title>XML Colors</title>
- <para>
- The color for standard XML is still handled by the XML Files syntax coloring
- preference page. Changes made there are reflected in the XSL editor as well.
- </para>
- </note>
- </section>
-</chapter> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/samples/samples.xml b/docs/org.eclipse.wst.xsl.doc/docbook/samples/samples.xml
deleted file mode 100644
index 710cf1c..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/samples/samples.xml
+++ /dev/null
@@ -1,35 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
- "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
-<chapter>
- <?dbhtml filename="samples/samples.html" ?>
- <title>XSL Tooling Samples</title>
- <para>This section contains several samples and references to sample projects.</para>
- <section id="EclipseHelp">
- <?dbhtml filename="samples/eclipsehelp.html" ?>
- <title>Eclipse Help</title>
- <para></para>
- <section id="DocbookEclipseHelp">
- <?dbhtml filename="samples/docbookhelp.html" ?>
- <title>Creating Eclipse Help with Docbook and XSL Tools</title>
- <para>
- This tutorial assumes that you have knowledge of Docbook, ANT, and the
- ability to setup ANT build scripts.
- </para>
- <para>
- To Do write up the rest of the tutorial.
- </para>
- </section>
- <section id="DITAEclipseHelp">
- <?dbhtml filename="samples/ditahelp.html" ?>
- <title>Creating Eclipse Help with DITA and XSL Tools</title>
- <para>
- This tutorial assumes that you have knowledge of DITA, ANT, and the
- ability to setup ANT build scripts.
- </para>
- <para>
- To Do write up the rest of the tutorial.
- </para>
- </section>
- </section>
-</chapter> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/xslhelp.dbk b/docs/org.eclipse.wst.xsl.doc/docbook/xslhelp.dbk
deleted file mode 100644
index 0066ce9..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/xslhelp.dbk
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
- "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
-<book id="XSLUser" xmlns:xi="http://www.w3.org/2001/XInclude">
- <bookinfo>
- <title>XSL Tools User Documentation</title>
- <author>
- <firstname>David</firstname>
- <surname>Carver</surname>
- </author>
- <copyright>
- <year>2008</year>
- <holder>Eclipse Foundation and others</holder>
- </copyright>
- </bookinfo>
- <xi:include href="concepts/gettingstarted.xml"/>
- <xi:include href="concepts/concepts.xml"/>
- <xi:include href="editor/editor.xml"/>
- <xi:include href="launching/launching.xml"/>
- <xi:include href="preferences/preferences.xml"/>
- <xi:include href="general/general.xml"/>
- <xi:include href="samples/samples.xml"/>
- <xi:include href="legal.xml"/>
-</book>
-
diff --git a/docs/org.eclipse.wst.xsl.doc/html/about.html b/docs/org.eclipse.wst.xsl.doc/html/about.html
deleted file mode 100644
index 2199df3..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/about.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<HTML>
-
-<head>
-<title>About</title>
-<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
-</head>
-
-<BODY lang="EN-US">
-
-<H3>About This Content</H3>
-
-<P>June, 2008</P>
-
-<H3>License</H3>
-
-<P>The Eclipse Foundation makes available all content in this plug-in
-("Content"). Unless otherwise indicated below, the Content is provided to you
-under the terms and conditions of the Eclipse Public License Version 1.0
-("EPL"). A copy of the EPL is available at
-<A href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/org/documents/epl-v10.php</A>.
-For purposes of the EPL, "Program" will mean the Content.</P>
-
-<P>If you did not receive this Content directly from the Eclipse Foundation, the
-Content is being redistributed by another party ("Redistributor") and different
-terms and conditions may apply to your use of any object code in the Content.
-Check the Redistributor’s license that was provided with the Content. If no such
-license exists, contact the Redistributor. Unless otherwise indicated below, the
-terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at
-<A href="http://www.eclipse.org/">http://www.eclipse.org/</A>.</P>
-
-</BODY>
-</HTML>
diff --git a/docs/org.eclipse.wst.xsl.doc/html/book.css b/docs/org.eclipse.wst.xsl.doc/html/book.css
deleted file mode 100644
index e30f5af..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/book.css
+++ /dev/null
@@ -1,214 +0,0 @@
-p.Code {
- display: block;
- text-align: left;
- text-indent: 0.00pt;
- margin-top: 0.000000pt;
- margin-bottom: 0.000000pt;
- margin-right: 0.000000pt;
- margin-left: 15pt;
- font-weight: normal;
- font-style: normal;
- color: #4444CC;
- text-decoration: none;
- vertical-align: baseline;
- text-transform: none;
- font-family: "Courier New", Courier, monospace;
-}
-
-H6.CaptionFigColumn {
- display: block;
- text-align: left;
- text-indent: 0.000000pt;
- margin-top: 3.000000pt;
- margin-bottom: 11.000000pt;
- margin-right: 0.000000pt;
- margin-left: 0.000000pt;
- font-size: 75%;
- font-weight: bold;
- font-style: Italic;
- color: #000000;
- text-decoration: none;
- vertical-align: baseline;
- text-transform: none;
-}
-
-p.Note {
- display: block;
- text-align: left;
- text-indent: 0pt;
- margin-top: 19.500000pt;
- margin-bottom: 19.500000pt;
- margin-right: 0.000000pt;
- margin-left: 30pt;
- font-size: 110%;
- font-weight: normal;
- font-style: Italic;
- color: #000000;
- text-decoration: none;
- vertical-align: baseline;
- text-transform: none;
-}
-
-EM.UILabel {
- font-weight: Bold;
- font-style: normal;
- text-decoration: none;
- vertical-align: baseline;
- text-transform: none;
-}
-
-EM.CodeName {
- font-weight: Bold;
- font-style: normal;
- text-decoration: none;
- vertical-align: baseline;
- text-transform: none;
- font-family: "Courier New", Courier, monospace;
-}
-
-UL.NavList {
- margin-left: 1.5em;
- padding-left: 0px;
- list-style-type: none;
-}
-
-body,html {
- border: 0px
-}
-
-/* following font face declarations need to be removed for DBCS */
-body,h1,h2,h3,h4,h5,h6,p,table,td,caption,th,ul,ol,dl,li,dd,dt {
- font-family: Arial, Helvetica, sans-serif;
- color: #000000
-}
-
-pre,code {
- font-family: "Courier New", Courier, monospace;
-}
-
-/* end font face declarations */
-@media print {
- html {
- font-size: 12pt
- }
-}
-
-body {
- font-size: 83%;
- background: #FFFFFF;
- margin-bottom: 1em
-}
-
-h1 {
- font-size: 180%;
- margin-top: 5px;
- margin-bottom: 1px
-}
-
-h2 {
- font-size: 140%;
- margin-top: 25px;
- margin-bottom: 3px
-}
-
-h3 {
- font-size: 110%;
- margin-top: 20px;
- margin-bottom: 3px
-}
-
-h4 {
- font-size: 100%;
- margin-top: 20px;
- margin-bottom: 3px;
- font-style: italic
-}
-
-p {
- margin-top: 10px;
- margin-bottom: 10px
-}
-
-pre {
- font-size: 93%;
- margin-left: 6;
- color: #4444CC
-}
-
-code {
- font-size: 93%;
-}
-
-table {
- font-size: 100%
-} /* needed for quirks mode */
-a:link {
- color: #0000FF
-}
-
-a:hover {
- color: #000080
-}
-
-a:visited {
- text-decoration: underline
-}
-
-ul {
- margin-top: 10px;
- margin-bottom: 10px;
-}
-
-li {
- margin-top: 5px;
- margin-bottom: 5px;
-}
-
-li p {
- margin-top: 5px;
- margin-bottom: 5px;
-}
-
-ol {
- margin-top: 10px;
- margin-bottom: 10px;
-}
-
-dl {
- margin-top: 10px;
- margin-bottom: 10px;
-}
-
-dt {
- margin-top: 5px;
- margin-bottom: 5px;
- font-weight: bold;
-}
-
-dd {
- margin-top: 5px;
- margin-bottom: 5px;
-}
-
-strong {
- font-weight: bold
-}
-
-em {
- font-style: italic
-}
-
-var {
- font-style: italic
-}
-
-div.revision {
- border-left-style: solid;
- border-left-width: thin;
- border-left-color: #7B68EE;
- padding-left: 5
-}
-
-th {
- font-weight: bold
-} \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/concepts/concepts.html b/docs/org.eclipse.wst.xsl.doc/html/concepts/concepts.html
deleted file mode 100644
index 4470798..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/concepts/concepts.html
+++ /dev/null
@@ -1,411 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>XSLT Concepts</title><link href="book.css" rel="stylesheet" type="text/css"><link href="../book.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="../index.html" title="XSL Tools User Documentation"><link rel="up" href="../index.html" title="XSL Tools User Documentation"><link rel="prev" href="../introduction/gettingstarted.html" title="Getting Started"><link rel="next" href="resources.html" title="Resources"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="N10028"></a>XSLT Concepts</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><ul><li><span class="section"><a href="concepts.html#ResucingXSLT">Rescuing XSLT From Niche Status</a></span><ul><li><span class="section"><a href="concepts.html#N10043">The Problem</a></span></li><li><span class="section"><a href="concepts.html#N10069">The Solution</a></span></li><li><span class="section"><a href="concepts.html#N10090">Queries</a></span><ul><li><span class="section"><a href="concepts.html#N1009E">xsl:for-each</a></span></li><li><span class="section"><a href="concepts.html#N100AA">xsl:if</a></span></li><li><span class="section"><a href="concepts.html#N100B4">xsl:choose</a></span></li></ul></li><li><span class="section"><a href="concepts.html#N100BE">Conclusion</a></span></li></ul></li><li><span class="section"><a href="resources.html">Resources</a></span></li></ul></div><p>
- If you are new to XSLT or just need a refresher then this section may
- help get you going.
- </p><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ResucingXSLT"></a>Rescuing XSLT From Niche Status</h2></div><div><h3 class="subtitle">A Gentle Introduction to XSLT through HTML Templates</h3></div></div></div><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
- <span class="emphasis"><em>
- Editors Note: This originally appeared at
- <a class="ulink" href="http://www.xfront.com/rescuing-xslt.html" target="_top">XFront.com</a>
- , and is republished here with permission. The article is written by David Jacobs.
- </em></span>
- </p></div><div class="abstract"><p class="title"><b>Abstract</b></p><p>
- XSLT is one of the most exciting technologies to come out of the XML family. Unfortunately, its incredible
- power and associated complexity can be overwhelming to new users preventing many from experimenting with it or
- causing them to quickly give up in disgust. In fact, unless the method of teaching and the common style of use
- for XSLT is radically changed to make it more accessible, XSLT will be relegated to niche status like SGML and
- other powerful technologies.
- </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10043"></a>The Problem</h3></div></div></div><p>
- The 1990&rsquo;s saw an incredible proliferation of new web related languages. Looking back we can see what
- features separated the winners and losers. The biggest key has been having a very low barrier to entry. Many
- languages accomplished this by following the following rules.
- </p><div class="itemizedlist"><ul type="disc"><li><p>
- Leverage as much existing knowledge as possible.
- </p></li><li><p>
- Make it easy to get started with "hello world" style example.
- </p></li><li><p>
- The most common and useful language constructs should be easily conveyed with a few small examples.
- </p></li><li><p>
- Complex programming constructs should only be required when what is trying to be accomplished is
- complex.
- </p></li></ul></div><p>
- From these rules we can see why embedded web scripting languages like Active Server Pages (ASPs), Cold
- Fusion, PHP and
- Java Server Pages (JSPs) are so popular. They all leverage a user&rsquo;s knowledge of HTML. They also
- allow the
- minimum amount of scripting to be added to accomplish the dynamic feature a developer is looking for.
- This has
- allowed numerous web developers to start off with very small projects and then through continuos
- enhancement
- and learning, find themselves using the full power of a complex programming language. Furthermore,
- because of
- the very incremental nature of that learning the developer was never scared off.
- </p><p>
- HTML has also fostered the technique of learning by example. When a web author sees another site with a
- feature they
- like, they immediately bring up the source to see how it was implemented. In this way many web
- authors were
- able to learn complex HTML tricks with no formal training. While server-side scripts are not as
- easy to come
- by, there are still numerous sites that house thousands of example scripts for a blossoming
- developer to
- examine.
- </p><p>
- Traditionally XSLT has been presented as a programming language for translating XML documents into another
- format, often for presentation. This frames the problem, such that for each element, the programmer has the
- task of figuring out how that element needs to be translated. As long as there are one to one mappings or one
- to zero mappings this is straightforward. For example, if every occurrence of a
- &lt;name&gt;
- element is going to
- become an HTML header. It is a simple matter to write a matching template to accomplish
- this.
- </p><a name="pl_NameTemplate"></a><pre class="programlisting">
-
-&lt;xsl:template match="name"&gt;
- &lt;h1&gt;&lt;xsl:apply-templates/&gt;&lt;/h1&gt;
-&lt;/xsl:template&gt;
-
- </pre><p>
- However when adding one to many mappings (i.e. when an element&rsquo;s contents will appear multiple times in the
- target document with different formatting), keeping track of all the relationships quickly grows in complexity
- and becomes confusing. For example, if, after writing the previous template, the programmer discovers that the
- name also needs to be placed in the title the programmer might add the template
- </p><a name="pl_valueOf"></a><pre class="programlisting">
-
-&lt;xsl:template match="/"&gt;
- &lt;title&gt;&lt;xsl:value-of select="name"/&gt;&lt;/title&gt;
-&lt;/xsl:template&gt;
-
- </pre><p>
- Notice the use of the &lt;xsl:value-of&gt;
- function in this template because using &lt;apply-templates select="name"&gt;
- would have caused a triggering of the previous template adding undesired header tags to my content. This means
- before adding a translation to an element the programmer must first be aware of all the existing translations
- (ugh!). Of course if the programmer became aware of the
- &lt;title&gt;
- requirement first, the contents of these templates could have been reversed. One can quickly see how
- the
- arbitrary decisions of development and discovery of requirements can lead to a set of templates that are
- no
- longer intuitive.
- </p><p>
- As a programmer with more than 20 years experience with over a dozen languages, XSLT templates and default
- rules were
- not obvious to me. Over the past year or two I had looked at numerous examples trying to discern how
- they
- worked. While I could understand the general gist of what was occurring, there was too much implied
- behavior
- that I did not pick up. It was not until going through formal XSLT training that I fully understood how
- XSLT
- worked. Clearly, if the barrier to entry is that high for an experienced programmer, the average web
- developer
- was not going to find this technology very useful.
- </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10069"></a>The Solution</h3></div></div></div><p>
- So how do we solve this problem and help deliver XSLT&rsquo;s promise to the masses? For XSLT to be successful it
- must be
- presented and used in a way that adopts those attributes discussed earlier (reuse of knowledge, fast
- start, and
- gradualism). This tutorial will attempt to ease XSLT&rsquo;s introduction by focusing on these attributes.
- First, it
- is only going to focus on the generation of HTML documents and users who are familiar with HTML. If
- your goal
- is to immediately start transforming one XML document into another XML document this tutorial is not
- for you.
- </p><p>
- The second is to reframe the problem so the XSLT solutions programmers write are more naturally extensible
- and
- intuitive. Instead of trying to translate an XML source document into an HTML presentation document, the
- programmer should see the XML document as a complex data structure with XSLT providing powerful tools for
- extracting that information into their HTML documents. This allows us to leverage the experience most people
- have with using an HTML templating language (e.g. ASP, PHP, JSP, Cold Fusion, Web Macro, etc). These templating
- languages are all based on the basic premise that HTML comes first and all enhancements are then embedded in
- special tags.
- </p><p>
- With some caveats, this tutorial will show how XSLT can be used in this same way. The benefit of this
- approach is it
- allows the quick use of many of XSLT&rsquo;s powerful functions while letting you learn its more
- esoteric
- capabilities as the need arises. In addition the resulting XSLT files are more intuitive and
- maintainable.
- </p><pre class="programlisting">
-<span class="bold"><strong>&lt;xsl:value-of&gt; and {}</strong></span>
- </pre><p>
- On to an example. Here is a very simple welcome page.
- </p><pre class="programlisting">
-
-&lt;html&gt;
- &lt;head&gt;
- &lt;title&gt;Welcome&lt;/title&gt;
- &lt;/head&gt;
- &lt;body&gt;
- Welcome!
- &lt;/body&gt;
-&lt;/html&gt;
-
- </pre><p>
- And here is an XML document with information on member.
- </p><pre class="programlisting">
-
-&lt;?xml version="1.0"?&gt;
-&lt;member level="platinum"&gt;
- &lt;name&gt;Jeff&lt;/name&gt;
- &lt;phone type="home"&gt;555-1234&lt;/phone&gt;
- &lt;phone type="work"&gt;555-4321&lt;/phone&gt;
- &lt;favoriteColor&gt;blue&lt;/favoriteColor&gt;
-&lt;/member&gt;
- </pre><p>
- There are a couple of things that need to be pointed out right away. First this is a well-formed XML
- document. This mean all HTML used must conform to the XHTML specification (i.e. all tags must be closed and
- lowercase).
- </p><p>
- The lines before the &lt;html&gt;
- tag and after the &lt;/html&gt;
- tag will be seen in all the examples. For now, other than realizing that they are required in any style sheet
- created, just go ahead and forget they are there. You don&rsquo;t NEED to understand them right now to get useful
- work out of XSLT.
- </p><p>
- Notice the HTML is identical to the original except for the introduction of a new tag
- &lt;xsl:value-of&gt;.
- This tag is the key to extracting any piece of information out an XML document. It has a "select"
- attribute that
- provides the path through the XML document to the information we seek. In this case
- &lt;member&gt;
- is the outer most tag and
- &lt;name&gt;
- is the tag underneath it. Slash characters ("/") are used to designate parent/child relationships
- between tags.
- If you are used to navigating around a Unix file system this should feel familiar.
- </p><p>
- Now let&rsquo;s consider further customizing this page by making the welcome in the person&rsquo;s favorite color using the
- &lt;font&gt;
- tag with the "bgcolor" attribute. Because
- &lt;xsl:value-of&gt;
- is an XML tag it is not valid to insert it in an HTML attribute value. So another mechanism
- is needed to insert
- information from our XML file there.
- </p><pre class="programlisting">
-
-&lt;?xml version="1.0"?&gt;
-&lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0"&gt;
- &lt;xsl:template match="/"&gt;
- &lt;html&gt;
- &lt;head&gt;
- &lt;title&gt;Welcome&lt;/title&gt;
- &lt;/head&gt;
- &lt;body&gt;
- &lt;font bgcolor="{member/favoriteColor}"&gt;
- Welcome &lt;xsl:value-of select="member/name"/&gt;!
- &lt;/font&gt;
- &lt;/body&gt;
- &lt;/html&gt;
- &lt;/xsl:template&gt;
-&lt;/xsl:stylesheet&gt;
-
- </pre><p>
- Notice the use of the curly brackets ("{}"). When used within an attribute assignment "{path}" has the exact
- same effect as
- &lt;xsl:value-of select="path" /&gt;
- used outside of attribute assignments.
- </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10090"></a>Queries</h3></div></div></div><p>
- Not all paths lead to a single node. For example, what if we wanted to put a person&rsquo;s home phone number on the
- page? Notice that the XML document contains two phone entries. If we simply used
- &lt;xsl:value-of select="member/phone" /&gt;
- both entries would be returned. We obviously need a way to be more specific. Luckily, XSLT allows the full
- power of XPath to describe the value(s) of interest. XPath allows conditions on any attribute or tag to be
- placed in square brackets ("[]") which are then used to restrict the values returned.
- </p><p>
- So to retrieve the home phone number we would use the path "member/phone[@type=&rsquo;home&rsquo;]". Notice the "@"
- symbol in front
- of "type". The "@" symbol signifies that we are referring to an attribute. So our new HTML
- template looks like:
- </p><pre class="programlisting">
-
-&lt;?xml version="1.0"?&gt;
-&lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0"&gt;
- &lt;xsl:template match="/"&gt;
- &lt;html&gt;
- &lt;head&gt;
- &lt;title&gt;Welcome&lt;/title&gt;
- &lt;/head&gt;
- &lt;body&gt;
- &lt;font bgcolor="{member/favoriteColor}"&gt;
- Welcome &lt;xsl:value-of select="member/name"/&gt;!
- &lt;br/&gt;
- Your home phone number is:
- <span class="bold"><strong>&lt;xsl:value-of select="member/phone[@type=&rsquo;home&rsquo;]"/&gt;</strong></span>
- &lt;/font&gt;
- &lt;/body
- &lt;/html
- &lt;/xsl:template&gt;
-&lt;/xsl:stylesheet&gt;
-
- </pre><div class="section" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="N1009E"></a>xsl:for-each</h4></div></div></div><p>
- The previous example brings up another issue. What if this
- &lt;member&gt;
- entry had numerous phone numbers and we wanted to print them all on the web page. We could simply use
- &lt;xsl:value-of select="member/phone" /&gt;
- but this would not enable us to format the phone number into a nice list that describes the type of each
- number.
- </p><p>
- To accomplish this requires the introduction of the
- &lt;xsl:for-each&gt;
- tag which allows us to loop through each of the elements that match a given path. So to
- create a table that
- contains the phone number type in the first column and the phone number in the second
- column, the following
- stylesheet could be used.
- </p><pre class="programlisting">
-
-&lt;?xml version="1.0"?&gt;
-&lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0"&gt;
- &lt;xsl:template match="/"&gt;
- &lt;html&gt;
- &lt;head&gt;
- &lt;title&gt;Welcome&lt;/title&gt;
- &lt;/head&gt;
- &lt;body&gt;
- &lt;font bgcolor="{member/favoriteColor}"&gt;
- Welcome &lt;xsl:value-of select="member/name"/&gt;!
- &lt;/font&gt;
- &lt;table&gt;
- &lt;tr&gt;&lt;th&gt;Type&lt;/th&gt;&lt;th&gt;Number&lt;/th&gt;&lt;/tr&gt;
- &lt;xsl:for-each select="member/phone"&gt;
- &lt;tr&gt;
- &lt;td&gt;&lt;xsl:value-of select="@type"/&gt;&lt;/td&gt;
- &lt;td&gt;&lt;xsl:value-of select="."/&gt;&lt;/td&gt;
- &lt;/tr&gt;
- &lt;/xsl:for-each&gt;
- &lt;/table&gt;
- &lt;/body&gt;
- &lt;/html&gt;
- &lt;/xsl:template&gt;
-&lt;/xsl:stylesheet&gt;
-
- </pre><p>
- This example brings up a number of issues. First, while in the loop, all
- &lt;xsl:value-of /&gt;
- accesses are relative to the current element being iterated over (in this case
- &lt;phone&gt;).
- Notice the use of the period ("."), which like in a Unix file system means the current element.
- So in this
- case the period (".") refers to each phone element as the loop iterates. Also like in a file
- system you can
- address a parent element using a double period ("..") and can access any element in the
- document by starting
- over at the root element using a slash ("/").
- </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="N100AA"></a>xsl:if</h4></div></div></div><p>
- As a last enhancement to our page let&rsquo;s add a special offer to "platinum" level members. To do this requires
- the use of a new tag
- &lt;xsl:if&gt;
- which allows us to insert content based on a condition of the data in the XML document.
- </p><pre class="programlisting">
-
-&lt;?xml version="1.0"?&gt;
-&lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0"&gt;
- &lt;xsl:template match="/"&gt;
- &lt;html&gt;
- &lt;head&gt;
- &lt;title&gt;Welcome&lt;/title&gt;
- &lt;/head&gt;
- &lt;body&gt;
- &lt;font bgcolor="{member/favoriteColor}"&gt;
- Welcome &lt;xsl:value-of select="member/name"/&gt;!
- &lt;/font&gt;
- &lt;xsl:if test="member[@level='platinum']"&gt;
- Our special offer to platinum members today is something great
- &lt;/xsl:if&gt;
- &lt;table&gt;
- &lt;tr&gt;&lt;th&gt;Type&lt;/th&gt;&lt;th&gt;Number&lt;/th&gt;&lt;/tr&gt;
- &lt;xsl:for-each select="member/phone"&gt;
- &lt;tr&gt;
- &lt;td&gt;&lt;xsl:value-of select="@type"/&gt;&lt;/td&gt;
- &lt;td&gt;&lt;xsl:value-of select="."/&gt;&lt;/td&gt;
- &lt;/tr&gt;
- &lt;/xsl:for-each&gt;
- &lt;/table&gt;
- &lt;/body&gt;
- &lt;/html&gt;
- &lt;/xsl:template&gt;
-&lt;/xsl:stylesheet&gt;
-
- </pre><p>
- Within the "test" attribute the full array of Boolean and relative operators are available. The only caveat
- is that since this is an XML document less than and greater than ("&lt;",
- "&gt;") signs must be escaped as "&amp;lt;" and "&amp;gt;".
- </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="N100B4"></a>xsl:choose</h4></div></div></div><p>
- One nuance of the
- &lt;xsl:if&gt;
- tag that is not always obvious at first glance is the lack of an "else" statement. This means to have an
- else statement requires two ifs. The first one saying "if condition" and the second one saying &ldquo;if not
- condition&rdquo;. This scheme quickly becomes unworkable with embedded if then else logic. Luckily XSLT
- supports an
- additional test operator called
- &lt;xsl:choose&gt;
- which works like a switch/case statement.
- </p><pre class="programlisting">
-
-&lt;?xml version="1.0"?&gt;
-&lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0"&gt;
- &lt;xsl:template match="/"&gt;
- &lt;html&gt;
- &lt;head&gt;
- &lt;title&gt;Welcome&lt;/title&gt;
- &lt;/head&gt;
- &lt;body&gt;
- &lt;font bgcolor="{member/favoriteColor}"&gt;
- Welcome &lt;xsl:value-of select="member/name"/&gt;!
- &lt;/font&gt;
- &lt;xsl:choose&gt;
- &lt;xsl:when test="member[@level='platinum']"&gt;
- Our special offer to platinum members today is something great
- &lt;/xsl:when&gt;
- &lt;xsl:otherwise&gt;
- Become a platinum member today!
- &lt;/xsl:otherwise&gt;
- &lt;/xsl:choose&gt;
- &lt;table&gt;
- &lt;tr&gt;&lt;th&gt;Type&lt;/th&gt;&lt;th&gt;Number&lt;/th&gt;&lt;/tr&gt;
- &lt;xsl:for-each select="member/phone"&gt;
- &lt;tr&gt;
- &lt;td&gt;&lt;xsl:value-of select="@type"/&gt;&lt;/td&gt;
- &lt;td&gt;&lt;xsl:value-of select="."/&gt;&lt;/td&gt;
- &lt;/tr&gt;
- &lt;/xsl:for-each&gt;
- &lt;/table&gt;
- &lt;/body&gt;
- &lt;/html&gt;
- &lt;/xsl:template&gt;
-&lt;/xsl:stylesheet&gt;
-
- </pre><p>
- The &ldquo;test&rdquo; attribute has the same capabilities/ constraints as the &ldquo;test&rdquo; attribute in the
- &lt;xsl:if&gt;
- tag. Multiple
- &lt;xsl:when&gt;
- blocks are allowed. As soon as one &ldquo;when test&rdquo; is mached, it will not evaluate any further &ldquo;xsl:when
- tests&rdquo;
- in the
- &lt;xsl:choose&gt;
- block.
- </p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N100BE"></a>Conclusion</h3></div></div></div><p>
- With just these few commands (an admittedly small subset of XSLT) and a strong background in HTML (DHTML and
- JavaScript
- included), I believe web developers could meet the majority of their presentation needs. Obviously
- there will
- be cases where greater flexibility is required, but the advantage of this technique is that only
- then, does the
- developer need to learn those constructs.
- </p><p>
- As a further benefit, this technique minimized the interdependence of one XLST construct on another. Local
- changes stay
- local thereby reducing the brittleness of solutions. The developer also no longer has to remember
- and account
- for XSLT&rsquo;s default behaviors.
- </p><p>
- I hope from these few examples, I have opened a few eyes to the power of XSLT and how a small change in how
- XSLT is framed can make a huge difference in its understandability and accessibility to web developers. If
- nothing else, I hope to encourage some good discussions.
- </p></div></div></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/concepts/resources.html b/docs/org.eclipse.wst.xsl.doc/html/concepts/resources.html
deleted file mode 100644
index 2e83f04..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/concepts/resources.html
+++ /dev/null
@@ -1,5 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Resources</title><link href="book.css" rel="stylesheet" type="text/css"><link href="../book.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="../index.html" title="XSL Tools User Documentation"><link rel="up" href="concepts.html" title="XSLT Concepts"><link rel="prev" href="concepts.html" title="XSLT Concepts"><link rel="next" href="../editor/xsleditor.html" title="XSL Editing"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="concepts_Resources"></a>Resources</h2></div></div></div><div class="itemizedlist"><ul type="disc"><li><p>
- <a class="ulink" href="http://www.w3.org/TR/xslt" target="_top">XSLT 1.0 Specification</a> - The official W3C XSLT 1.0 Specification.
- </p></li><li><p>
- <a class="ulink" href="http://www.dpawson.co.uk/xsl/index.html" target="_top">XSLT FAQ</a> - maintained by Dave Pawson.
- </p></li><li><p><a class="ulink" href="http://www.xfront.com/rescuing-xslt.html" target="_top">Rescuing XSLT from Niche Status</a> - by David Jacobs.</p></li><li><p><a class="ulink" href="http://www.xml.com/pub/a/2003/11/26/learnXSLT.html" target="_top">Five XSLT Basics</a> - by Michael Fitzgerald author of Learning XSLT.</p></li><li><p><a class="ulink" href="http://www.xfront.com/files/tutorials.html" target="_top">XFront Tutorials</a> - provides several tutorials include XSLT 1.0.</p></li><li><p><a class="ulink" href="http://www.cafeconleche.org/books/bible2/chapters/ch17.html" target="_top">XSL Transformations</a> - Chapter 17 of the XML Bible 2nd Edition.</p></li></ul></div></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor.html b/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor.html
deleted file mode 100644
index c18bbaa..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor.html
+++ /dev/null
@@ -1,12 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>XSL Editing</title><link href="book.css" rel="stylesheet" type="text/css"><link href="../book.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="../index.html" title="XSL Tools User Documentation"><link rel="up" href="../index.html" title="XSL Tools User Documentation"><link rel="prev" href="../concepts/resources.html" title="Resources"><link rel="next" href="xsleditor_contentassist.html" title="Content Assist"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="N100F3"></a>XSL Editing</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><ul><li><span class="section"><a href="xsleditor.html#Validation">Validation</a></span></li><li><span class="section"><a href="xsleditor_contentassist.html">Content Assist</a></span><ul><li><span class="section"><a href="xsleditor_contentassist.html#ed_XSLProposals">XSLT Element Proposals</a></span></li><li><span class="section"><a href="xsleditor_contentassist_selecttest.html">Select, Test, and Match Attributes</a></span></li><li><span class="section"><a href="xsleditor_contentassist_exclude.html">Exclude-Result-Prefixes</a></span></li><li><span class="section"><a href="xsleditor_contentassist_modeassist.html">Mode attribute assistance</a></span></li><li><span class="section"><a href="xsleditor_contentassist_namedtemplate.html">Named Template Assistance</a></span></li><li><span class="section"><a href="xsleditor_contentassist_calltemplate.html">Call-Template Assistance</a></span></li><li><span class="section"><a href="xsleditor_contentassist_include.html">
- Include and Import
- href
- Assistance
- </a></span></li></ul></li><li><span class="section"><a href="xsleditor_templates.html">Templates</a></span><ul><li><span class="section"><a href="xsleditor_templates.html#N101E2">XPath Templates</a></span></li></ul></li><li><span class="section"><a href="xsleditor_coloring.html">XSLT Syntax Coloring</a></span></li><li><span class="section"><a href="xsleditor_markers.html">XSLT Markers and Annotations</a></span><ul><li><span class="section"><a href="xsleditor_markers.html#xsltOverRide">Template Override</a></span></li></ul></li><li><span class="section"><a href="xsleditor_debugging.html">XSL Debugging</a></span></li><li><span class="section"><a href="xsleditor_debugging.html">Navigation</a></span></li></ul></div><p>The XSL Tools plugins extend the ability of the Web Standard Tools XML
- editor. This extension adds specific support and functionality for working with
- and debugging XSL files.</p><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="Validation"></a>Validation</h2></div></div></div><p>The XSL extensions for the eclipse XML editor include as you type
- validation for XSL specific features. This includes not only the ability to
- syntax check the grammar, but to also to validate specific XSL specification
- rules. Grammar validation will be triggered based on the version attribute for
- the style sheet that is being edited. Valid version numbers are 1.0, and 2.0.
- </p></div></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_coloring.html b/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_coloring.html
deleted file mode 100644
index 4ecf215..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_coloring.html
+++ /dev/null
@@ -1,11 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>XSLT Syntax Coloring</title><link href="book.css" rel="stylesheet" type="text/css"><link href="../book.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="../index.html" title="XSL Tools User Documentation"><link rel="up" href="xsleditor.html" title="XSL Editing"><link rel="prev" href="xsleditor_templates.html" title="Templates"><link rel="next" href="xsleditor_markers.html" title="XSLT Markers and Annotations"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="xsltSyntaxColoring"></a>XSLT Syntax Coloring</h2></div></div></div><p>
- XSL Tools Editor can have syntax coloring that is specific just for the the
- XSLT Namespace as showing in
- <a class="xref" href="xsleditor_coloring.html#fig_editorSyntaxColoring" title="Figure&nbsp;8.&nbsp;XSLT Specific Syntax Coloring">Figure&nbsp;8, &ldquo;XSLT Specific Syntax Coloring&rdquo;</a>
- .
- </p><div class="figure"><a name="fig_editorSyntaxColoring"></a><p class="title"><b>Figure&nbsp;8.&nbsp;XSLT Specific Syntax Coloring</b></p><div class="figure-contents"><div class="mediaobject" align="center"><img src="../images/editor/syntaxColoring.png" align="middle" alt="XSLT Specific Syntax Coloring"></div></div></div><br class="figure-break"><p>
- The default coloring shown is to make all XSLT elements and attributes bold.
- The settings are controled in
- <a class="xref" href="../preferences/xslpreferences.html" title="XSL Tools Preferences"><i>XSL Tools Preferences</i></a>
- .
- </p></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_contentassist.html b/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_contentassist.html
deleted file mode 100644
index eb5c3dc..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_contentassist.html
+++ /dev/null
@@ -1,19 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Content Assist</title><link href="book.css" rel="stylesheet" type="text/css"><link href="../book.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="../index.html" title="XSL Tools User Documentation"><link rel="up" href="xsleditor.html" title="XSL Editing"><link rel="prev" href="xsleditor.html" title="XSL Editing"><link rel="next" href="xsleditor_contentassist_selecttest.html" title="Select, Test, and Match Attributes"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ContentAssist"></a>Content Assist</h2></div></div></div><p>
- XSL Tools extends the existing content assistance support of the XML Editor to
- provide content assistance for several XSL namespace attributes. The content
- assistance provided covers the available XPath statements as defined in the
- <span class="emphasis"><em>XPath Templates</em></span>
- preference page.
- </p><div class="important" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">XPath 2.0 Support</h3><p>Currently XPath 2.0 is not supported directly. However, a user
- can add this support if they need it by adding the missing XPath functions
- to the XPath Templates.</p></div><p>To initiate content assistance press CTRL + SPACE or CMD + SPACE. This
- will bring up a dialog that will contain any proposals that are available. If
- no proposals are available an message will be displayed in the status bar.
- </p><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="ed_XSLProposals"></a>XSLT Element Proposals</h3></div></div></div><p>
- Since XSLT is a templating language, it's elements must be able to be
- added to the various markup it includes. The XSLT Editor will provide
- content assistance and proposals for XSLT elements that are available to
- be used within non-XSLT namespaced elements. This is depicted in
- <a class="xref" href="xsleditor_contentassist.html#fig_XSLProposals" title="Figure&nbsp;1.&nbsp;XSLT Proposals within Non-XSLT elements">Figure&nbsp;1, &ldquo;XSLT Proposals within Non-XSLT elements&rdquo;</a>
- .
- </p><div class="figure"><a name="fig_XSLProposals"></a><p class="title"><b>Figure&nbsp;1.&nbsp;XSLT Proposals within Non-XSLT elements</b></p><div class="figure-contents"><div class="mediaobject" align="center"><img src="../images/editor/xslproposals.png" align="middle" alt="XSLT Proposals within Non-XSLT elements"></div></div></div><br class="figure-break"></div></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_contentassist_calltemplate.html b/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_contentassist_calltemplate.html
deleted file mode 100644
index f74ff33..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_contentassist_calltemplate.html
+++ /dev/null
@@ -1,9 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Call-Template Assistance</title><link href="book.css" rel="stylesheet" type="text/css"><link href="../book.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="../index.html" title="XSL Tools User Documentation"><link rel="up" href="xsleditor_contentassist.html" title="Content Assist"><link rel="prev" href="xsleditor_contentassist_namedtemplate.html" title="Named Template Assistance"><link rel="next" href="xsleditor_contentassist_include.html" title="Include and Import href Assistance"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="ed_CallTemplateAssist"></a>Call-Template Assistance</h3></div></div></div><p>
- Any
- <span class="emphasis"><em>call-template</em></span>
- xslt element has content assistance available for it's name attribute.
- This will provide a list of possible XSLT named templates that can be
- called from the current stylesheet. This takes into effect all included
- and imported stylesheets as well as those defined in the current
- stylesheet.
- </p><div class="figure"><a name="fig_CallTemplateAssist"></a><p class="title"><b>Figure&nbsp;6.&nbsp;Call-Template Assistance</b></p><div class="figure-contents"><div class="mediaobject" align="center"><img src="../images/editor/calltemplate.png" align="middle" alt="Call-Template Assistance"></div></div></div><br class="figure-break"></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_contentassist_exclude.html b/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_contentassist_exclude.html
deleted file mode 100644
index 4f6cdab..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_contentassist_exclude.html
+++ /dev/null
@@ -1,21 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Exclude-Result-Prefixes</title><link href="book.css" rel="stylesheet" type="text/css"><link href="../book.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="../index.html" title="XSL Tools User Documentation"><link rel="up" href="xsleditor_contentassist.html" title="Content Assist"><link rel="prev" href="xsleditor_contentassist_selecttest.html" title="Select, Test, and Match Attributes"><link rel="next" href="xsleditor_contentassist_modeassist.html" title="Mode attribute assistance"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="ExcludeResultPrefixesContentAssist"></a>Exclude-Result-Prefixes</h3></div></div></div><p>
- The
- <span class="emphasis"><em>exclude-result-prefixes</em></span>
- attribute in both XSLT 1.0 and XSLT 2.0 allows for the exclusion of
- certain namespace declarations in the output document. The content
- assistance populates a list of available namespaces that have been defined
- in the stylseheet and provides them as proposals as shown in
- <a class="xref" href="xsleditor_contentassist_exclude.html#fig_ExcludeResultPrefixesContentAssist1" title="Figure&nbsp;2.&nbsp;Exclude-result-prefixes Content Assistance">Figure&nbsp;2, &ldquo;Exclude-result-prefixes Content Assistance
- &rdquo;</a>
- .
- </p><div class="figure"><a name="fig_ExcludeResultPrefixesContentAssist1"></a><p class="title"><b>Figure&nbsp;2.&nbsp;Exclude-result-prefixes Content Assistance
- </b></p><div class="figure-contents"><div class="mediaobject" align="center"><img src="../images/editor/ExcludeContentAssist1.png" align="middle" alt="Exclude-result-prefixes Content Assistance"></div></div></div><br class="figure-break"><p>
- If the attribute has no values defined, then the
- <span class="emphasis"><em>#all</em></span>
- value will be available in the list. If #all is already in the attributes
- value, then no content assistance will be available.
- </p><div class="figure"><a name="fig_ExcludeResultPrefixesContentAssist2"></a><p class="title"><b>Figure&nbsp;3.&nbsp;Filtered exclude-result-prefixes proposals</b></p><div class="figure-contents"><div class="mediaobject" align="center"><img src="../images/editor/ExcludeContentAssist2.png" align="middle" alt="Filtered exclude-result-prefixes proposals"></div></div></div><br class="figure-break"><p>Content assistance is intelligent enough to know when a namespace
- prefix is already in the list of excluded namespaces. In this case it will
- not show the namespace in the proposal list.</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title"> Why isn't the XSL Namespace prefix in the proposals?</h3><p>Currently the xsl prefix or any prefix that uses the XSL
- namespace is excluded from the list. This may be changed at a future
- date. This will depend on user feedback.</p></div></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_contentassist_include.html b/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_contentassist_include.html
deleted file mode 100644
index 1e15b77..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_contentassist_include.html
+++ /dev/null
@@ -1,15 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Include and Import href Assistance</title><link href="book.css" rel="stylesheet" type="text/css"><link href="../book.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="../index.html" title="XSL Tools User Documentation"><link rel="up" href="xsleditor_contentassist.html" title="Content Assist"><link rel="prev" href="xsleditor_contentassist_calltemplate.html" title="Call-Template Assistance"><link rel="next" href="xsleditor_templates.html" title="Templates"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="ed_href"></a>
- Include and Import
- <span class="emphasis"><em>href</em></span>
- Assistance
- </h3></div></div></div><p>XSLT stylesheets have the ability to import and include other
- stylesheets. This allows for a modular structure for the templates to be
- created. It also allows for easier maintenance. However, if one is working
- with a large project like the DocBook Projects stylesheets it can be
- difficult to remember the names and locations of all the stylesheets.
- </p><p>
- To this end, the XSLT editor provides content assistance for the
- <span class="emphasis"><em>href</em></span>
- attribute. The scope of the assistance is restricted to the project that
- the current stylesheet that is being editted resides.
- </p><div class="figure"><a name="fig_HREFAssistance"></a><p class="title"><b>Figure&nbsp;7.&nbsp;Include/Import href Assistance</b></p><div class="figure-contents"><div class="mediaobject" align="center"><img src="../images/editor/hrefAssistance.png" align="middle" alt="Include/Import href Assistance"></div></div></div><br class="figure-break"></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_contentassist_modeassist.html b/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_contentassist_modeassist.html
deleted file mode 100644
index 1fc65b0..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_contentassist_modeassist.html
+++ /dev/null
@@ -1,17 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Mode attribute assistance</title><link href="book.css" rel="stylesheet" type="text/css"><link href="../book.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="../index.html" title="XSL Tools User Documentation"><link rel="up" href="xsleditor_contentassist.html" title="Content Assist"><link rel="prev" href="xsleditor_contentassist_exclude.html" title="Exclude-Result-Prefixes"><link rel="next" href="xsleditor_contentassist_namedtemplate.html" title="Named Template Assistance"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="ed_ModeAssist"></a>Mode attribute assistance</h3></div></div></div><p>
- Content assistance is available for those xsl elements that support the
- mode attribute. For XSLT 1.0 these elements are
- <span class="emphasis"><em>template</em></span>
- ,
- <span class="emphasis"><em>apply-templates</em></span>
- , and
- <span class="emphasis"><em>apply-imports</em></span>
- .
- </p><div class="figure"><a name="fig_ModeAssistance"></a><p class="title"><b>Figure&nbsp;4.&nbsp;Mode attribute assistance</b></p><div class="figure-contents"><div class="mediaobject" align="center"><img src="../images/editor/modeAssistance.png" align="middle" alt="Mode attribute assistance"></div></div></div><br class="figure-break"><p>
- The proposal list is populated by those modes defined on templates in the
- current stylesheet, and any of the templates that are
- <span class="emphasis"><em>included</em></span>
- or
- <span class="emphasis"><em>imported</em></span>
- .
- </p></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_contentassist_namedtemplate.html b/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_contentassist_namedtemplate.html
deleted file mode 100644
index 6b87501..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_contentassist_namedtemplate.html
+++ /dev/null
@@ -1,7 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Named Template Assistance</title><link href="book.css" rel="stylesheet" type="text/css"><link href="../book.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="../index.html" title="XSL Tools User Documentation"><link rel="up" href="xsleditor_contentassist.html" title="Content Assist"><link rel="prev" href="xsleditor_contentassist_modeassist.html" title="Mode attribute assistance"><link rel="next" href="xsleditor_contentassist_calltemplate.html" title="Call-Template Assistance"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="ed_NamedTemplateAssist"></a>Named Template Assistance</h3></div></div></div><p>
- Call Named templates have content assistance available for their
- <span class="emphasis"><em>name</em></span>
- attributes. This will provide a list of called-templates that have been
- used, but have not yet been defined or overridden within the current
- stylesheet.
- </p><div class="figure"><a name="fig_NamedTemplates"></a><p class="title"><b>Figure&nbsp;5.&nbsp;Named Template Assistance</b></p><div class="figure-contents"><div class="mediaobject" align="center"><img src="../images/editor/namedTemplate.png" align="middle" alt="Named Template Assistance"></div></div></div><br class="figure-break"></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_contentassist_selecttest.html b/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_contentassist_selecttest.html
deleted file mode 100644
index 5541807..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_contentassist_selecttest.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Select, Test, and Match Attributes</title><link href="book.css" rel="stylesheet" type="text/css"><link href="../book.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="../index.html" title="XSL Tools User Documentation"><link rel="up" href="xsleditor_contentassist.html" title="Content Assist"><link rel="prev" href="xsleditor_contentassist.html" title="Content Assist"><link rel="next" href="xsleditor_contentassist_exclude.html" title="Exclude-Result-Prefixes"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="SelectTest"></a>Select, Test, and Match Attributes</h3></div></div></div><p>
- Where ever an xsl element supports a
- <span class="emphasis"><em>select</em></span>
- ,
- <span class="emphasis"><em>test</em></span>
- , or
- <span class="emphasis"><em>match</em></span>
- attribute, content assistance is available. This includes support for the
- following:
- </p><div class="itemizedlist"><p class="title"><b>Select, Match and Test Assistance</b></p><ul type="disc"><li><p>
- <span class="emphasis"><em>Variables</em></span>
- - both local and global variables are supported within the current
- stylesheet. Any local or global variable will be added to the list
- and the name is prefixed with a dollar sign $ symbol.
- </p></li><li><p>
- <span class="emphasis"><em>XPath 1.0</em></span>
- - XPath 1.0 is supported through the use of templates. All of the
- XPath 1.0 and XSLT xpath extension functions are available, as
- well as
- <span class="emphasis"><em>axis</em></span>
- operations. Currently XPath 2.0 is not supported directly, but
- will be added in the future.
- </p></li></ul></div><p>Content assistance for the select and test attributes is
- intelligent enough to know that it is within an XPath expression, and will
- try to determine and provide content assistance based on the current
- cursor position. If a word has been partially typed it will filter the
- available assistance.</p></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_debugging.html b/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_debugging.html
deleted file mode 100644
index 5403388..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_debugging.html
+++ /dev/null
@@ -1,15 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Navigation</title><link href="book.css" rel="stylesheet" type="text/css"><link href="../book.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="../index.html" title="XSL Tools User Documentation"><link rel="up" href="xsleditor.html" title="XSL Editing"><link rel="prev" href="xsleditor_debugging.html" title="XSL Debugging"><link rel="next" href="../launching/launching.html" title="XSL Launching and Debugging"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="N10232"></a>Navigation</h2></div></div></div><p>
- Many of the variables, imports/includes, and templates can be navigated to
- using the
- <span class="emphasis"><em>Open Declaration (F3)</em></span>
- popup menu option. They can also be navigated to directly by CTRL-Clicking on
- the name of the variable, import/include, or template. Items that currently
- have hyperlinking navigation are:
- </p><div class="itemizedlist"><ul type="disc"><li><p>Called-Templates</p></li><li><p>hrefs for Import and Includes</p></li><li><p>With-Param variables</p></li></ul></div><div class="tip" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Navigation to a Named Template in an included/imported
- stylsheet</h3><p> The hyperlinking ability will navigate you to where ever the first
- definition of the template is defined. So if the template is defined
- within the current stylesheet it will navigate to that definition. However
- if it is defined in an imported or included stylesheet, or any of those
- imported or included stylesheets it will take you to that definition. Use
- the standard navigation errors to move back and forth during this
- hyperlinking.</p></div></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_markers.html b/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_markers.html
deleted file mode 100644
index 2937160..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_markers.html
+++ /dev/null
@@ -1,12 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>XSLT Markers and Annotations</title><link href="book.css" rel="stylesheet" type="text/css"><link href="../book.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="../index.html" title="XSL Tools User Documentation"><link rel="up" href="xsleditor.html" title="XSL Editing"><link rel="prev" href="xsleditor_coloring.html" title="XSLT Syntax Coloring"><link rel="next" href="xsleditor_debugging.html" title="XSL Debugging"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="xsltMarkers"></a>XSLT Markers and Annotations</h2></div></div></div><p>The XSL editor supports the ability to annotate or provide markers. These
- annotations provide additional information about the templates and XSLT
- elements in the stylesheet.</p><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="xsltOverRide"></a>Template Override</h3></div></div></div><p>The XSLT editor will mark templates that have overriden an imported
- template of the same name.</p><div class="figure"><a name="fig_OverRide1"></a><p class="title"><b>Figure&nbsp;9.&nbsp;Overriden Template</b></p><div class="figure-contents"><div class="mediaobject" align="center"><img src="../images/editor/override1.png" align="middle" alt="Overriden Template"></div></div></div><br class="figure-break"><p>
- In
- <a class="xref" href="xsleditor_markers.html#fig_OverRide1" title="Figure&nbsp;9.&nbsp;Overriden Template">Figure&nbsp;9, &ldquo;Overriden Template&rdquo;</a>
- , the template
- <span class="emphasis"><em>TempB</em></span>
- overrides an imported template. By moving the mouse pointer over the
- triangle icon in the rule bar, information about which file the original
- template resides.
- </p><div class="figure"><a name="fig_OverRide2"></a><p class="title"><b>Figure&nbsp;10.&nbsp;Overriden Template Information</b></p><div class="figure-contents"><div class="mediaobject" align="center"><img src="../images/editor/override2.png" align="middle" alt="Overriden Template Information"></div></div></div><br class="figure-break"></div></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_templates.html b/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_templates.html
deleted file mode 100644
index 2cf698b..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_templates.html
+++ /dev/null
@@ -1,11 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Templates</title><link href="book.css" rel="stylesheet" type="text/css"><link href="../book.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="../index.html" title="XSL Tools User Documentation"><link rel="up" href="xsleditor.html" title="XSL Editing"><link rel="prev" href="xsleditor_contentassist_include.html" title="Include and Import href Assistance"><link rel="next" href="xsleditor_coloring.html" title="XSLT Syntax Coloring"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="XSLEditorTemplates"></a>Templates</h2></div></div></div><p>Specific XSL code completion templates can be added to the XML
- editor's Templates. This allows a user to define specific markup completion
- templates that are commonly used. In addition, the XPath Templates page can be
- enhanced to allow commonly used XPath templates to be included, in addition to
- those installed by default. This allows a user the ability to add custom
- extension functions for XSLT that may be processor specific. Adopters may also
- use the standard template extension point to add additional functionality.
- </p><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N101E2"></a>XPath Templates</h3></div></div></div><p>The XSL XPath Templates preference page allows for a user or adopter
- to add specific xpath extensions so that they show up in the content
- assistance. See the XPath Templates documentation for more information.
- </p></div></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_validation.html b/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_validation.html
deleted file mode 100644
index d6df8e3..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_validation.html
+++ /dev/null
@@ -1,36 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Content Assist</title><meta content="DocBook XSL Stylesheets V1.73.2" name="generator"><link rel="start" href="../index.html" title="XSL Tooling User Documentation"><link rel="up" href="xsleditor.html" title="Chapter&nbsp;2.&nbsp;XSL Editing"><link rel="prev" href="xsleditor.html" title="Chapter&nbsp;2.&nbsp;XSL Editing"><link rel="next" href="xsleditor_templates.html" title="Templates"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="N10056"></a>Content Assist</h2></div></div></div><p>
- XSL Tooling extends the existing content assistance support of the XML
- Editor to provide content assistance for several XSL namespace attributes.
- The content assistance provided covers the available XPath statements as
- defined in the <span class="emphasis"><em>XPath Templates</em></span> preference page.
- </p><p>
- The elements and attributes that have content assist available are as follows:
- </p><div class="itemizedlist"><ul type="disc"><li><p>
- <span class="bold"><strong>template</strong></span> - The template element has several content assist
- options available for the <span class="emphasis"><em>match</em></span>, <span class="emphasis"><em>name</em></span>, and
- <span class="emphasis"><em>mode</em></span> attributes.
- </p><p>
- Add image showing template completion.
- </p></li><li><p>
- <span class="bold"><strong>variable</strong></span> and <span class="bold"><strong>param</strong></span> - The variable and param elements have content assist
- for xpath, axis, parmaters and variables that have already been predefined when using the optional
- <span class="emphasis"><em>select</em></span> attribute.
- </p><p>
- Add image showing variable completion.
- </p></li><li><p>
- <span class="bold"><strong>if</strong></span> and <span class="bold"><strong>when</strong></span> - The
- if and when elements have content assist for the <span class="emphasis"><em>test</em></span> attribute.
- This content assistance is available for all paramaters and variables that are in
- scope, as well as any available xpath or axis statement.
- </p><p>
- Add image showing test completion.
- </p></li><li><p>
- <span class="bold"><strong>apply-template</strong></span> - The apply template has content
- assistance for both the <span class="emphasis"><em>mode</em></span> and <span class="emphasis"><em>select</em></span>
- attributes.
- </p><p>
- Add image showing apply-template completion.
- </p></li></ul></div><div class="important" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">XPath 2.0 Support</h3><p>
- Currently XPath 2.0 is not supported directly. However, a user can add this support if they need it by
- adding the missing XPath functions to the XPath Templates.
- </p></div></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/general/general.html b/docs/org.eclipse.wst.xsl.doc/html/general/general.html
deleted file mode 100644
index f05184e..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/general/general.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>General</title><link href="book.css" rel="stylesheet" type="text/css"><link href="../book.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="../index.html" title="XSL Tools User Documentation"><link rel="up" href="../index.html" title="XSL Tools User Documentation"><link rel="prev" href="../preferences/syntaxColoring.html" title="XSLT Syntax Coloring"><link rel="next" href="../samples/samples.html" title="XSL Tooling Samples"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="N1041E"></a>General</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><ul><li><span class="section"><a href="general.html#XInclude">XInclude</a></span></li></ul></div><p>This section covers topics that don't have any other particular place to go.</p><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="XInclude"></a>XInclude</h2></div></div></div><p>
- XInclude allows a user to import or include other XML files into one xml file.
- It is used primarily with documentation file formats like Docbook and DITA. It
- allows for separating out large xml documents into more manageable chunks of information.
- </p><p>
- The XSL Tools project includes an ANT task that can be run with in eclipse, eclipse
- headless, and without eclipse at all. If running outside of eclipse, you will need
- to make sure that the jar file xinclude.jar in the org.eclipse.wst.xsl.core.jar file
- is made avaiable on your class path.
- </p><div class="mediaobject" align="center"><img src="../images/general/xinclude.png" align="middle"></div><p>
- The following parameters are available on the xsl.xinclude ANT task:
- </p><div class="itemizedlist"><ul type="disc"><li><p>
- <span class="bold"><strong>
- in
- </strong></span> - The full path to the input file that contains
- the file with the XIncludes. If the files that it includes have includes, then
- those will be brought in an expanded as well.
- </p></li><li><p>
- <span class="bold"><strong>out</strong></span> - The full path to the output file
- to be written with all includes expanded. This is typically used as the
- input to a stylesheet transformation process.
- </p></li></ul></div><div class="example"><a name="N10449"></a><p class="title"><b>Example&nbsp;1.&nbsp;XInclude Example</b></p><div class="example-contents"><pre class="programlisting">
-&lt;target name="merge"&gt;
- &lt;xsl.xinclude in="${docbooksource}/xslhelp.dbk"
- out="${docbooksource}/xslhelpcombined.dbk"/&gt;
-&lt;/target&gt;
- </pre></div></div><br class="example-break"></div></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/images/editor/ExcludeContentAssist1.png b/docs/org.eclipse.wst.xsl.doc/html/images/editor/ExcludeContentAssist1.png
deleted file mode 100644
index 2f0f2cb..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/images/editor/ExcludeContentAssist1.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/html/images/editor/ExcludeContentAssist2.png b/docs/org.eclipse.wst.xsl.doc/html/images/editor/ExcludeContentAssist2.png
deleted file mode 100644
index 2e53677..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/images/editor/ExcludeContentAssist2.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/html/images/editor/calltemplate.png b/docs/org.eclipse.wst.xsl.doc/html/images/editor/calltemplate.png
deleted file mode 100644
index 3a13f07..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/images/editor/calltemplate.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/html/images/editor/hrefAssistance.png b/docs/org.eclipse.wst.xsl.doc/html/images/editor/hrefAssistance.png
deleted file mode 100644
index 5f44986..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/images/editor/hrefAssistance.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/html/images/editor/modeAssistance.png b/docs/org.eclipse.wst.xsl.doc/html/images/editor/modeAssistance.png
deleted file mode 100644
index f5a9875..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/images/editor/modeAssistance.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/html/images/editor/namedTemplate.png b/docs/org.eclipse.wst.xsl.doc/html/images/editor/namedTemplate.png
deleted file mode 100644
index b8bd926..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/images/editor/namedTemplate.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/html/images/editor/override1.png b/docs/org.eclipse.wst.xsl.doc/html/images/editor/override1.png
deleted file mode 100644
index 88b878b..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/images/editor/override1.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/html/images/editor/override2.png b/docs/org.eclipse.wst.xsl.doc/html/images/editor/override2.png
deleted file mode 100644
index cfc415c..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/images/editor/override2.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/html/images/editor/syntaxColoring.png b/docs/org.eclipse.wst.xsl.doc/html/images/editor/syntaxColoring.png
deleted file mode 100644
index 85e0ebd..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/images/editor/syntaxColoring.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/html/images/editor/templatesView.png b/docs/org.eclipse.wst.xsl.doc/html/images/editor/templatesView.png
deleted file mode 100644
index a1e20d9..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/images/editor/templatesView.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/html/images/editor/xslproposals.png b/docs/org.eclipse.wst.xsl.doc/html/images/editor/xslproposals.png
deleted file mode 100644
index ffc127a..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/images/editor/xslproposals.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/html/images/general/xinclude.png b/docs/org.eclipse.wst.xsl.doc/html/images/general/xinclude.png
deleted file mode 100644
index 50b9f73..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/images/general/xinclude.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/html/images/launching/XSLDebugging.png b/docs/org.eclipse.wst.xsl.doc/html/images/launching/XSLDebugging.png
deleted file mode 100644
index 5cb456e..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/images/launching/XSLDebugging.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/html/images/launching/XSLOutputTab.png b/docs/org.eclipse.wst.xsl.doc/html/images/launching/XSLOutputTab.png
deleted file mode 100644
index 380e55e..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/images/launching/XSLOutputTab.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/html/images/launching/XSLProcessorTab.png b/docs/org.eclipse.wst.xsl.doc/html/images/launching/XSLProcessorTab.png
deleted file mode 100644
index e86f973..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/images/launching/XSLProcessorTab.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/html/images/launching/XSLRunDebugConfigurations.png b/docs/org.eclipse.wst.xsl.doc/html/images/launching/XSLRunDebugConfigurations.png
deleted file mode 100644
index 675a64f..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/images/launching/XSLRunDebugConfigurations.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/html/images/launching/launchShortct.png b/docs/org.eclipse.wst.xsl.doc/html/images/launching/launchShortct.png
deleted file mode 100644
index 881813a..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/images/launching/launchShortct.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/html/images/launching/nodesetVariable.png b/docs/org.eclipse.wst.xsl.doc/html/images/launching/nodesetVariable.png
deleted file mode 100644
index d3ca7ff..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/images/launching/nodesetVariable.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/html/images/launching/resultView.png b/docs/org.eclipse.wst.xsl.doc/html/images/launching/resultView.png
deleted file mode 100644
index d6d1b91..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/images/launching/resultView.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/html/images/preferences/XPathTemplates.png b/docs/org.eclipse.wst.xsl.doc/html/images/preferences/XPathTemplates.png
deleted file mode 100644
index 0f89304..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/images/preferences/XPathTemplates.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/html/images/preferences/projectLevelValidation.png b/docs/org.eclipse.wst.xsl.doc/html/images/preferences/projectLevelValidation.png
deleted file mode 100644
index 3ffe862..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/images/preferences/projectLevelValidation.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/html/images/preferences/xm_template_xslnewfile.png b/docs/org.eclipse.wst.xsl.doc/html/images/preferences/xm_template_xslnewfile.png
deleted file mode 100644
index 7646a6d..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/images/preferences/xm_template_xslnewfile.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/html/images/preferences/xslSyntaxColoring.png b/docs/org.eclipse.wst.xsl.doc/html/images/preferences/xslSyntaxColoring.png
deleted file mode 100644
index 66ebef3..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/images/preferences/xslSyntaxColoring.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/html/images/preferences/xsl_InstalledProcessors.png b/docs/org.eclipse.wst.xsl.doc/html/images/preferences/xsl_InstalledProcessors.png
deleted file mode 100644
index 3295079..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/images/preferences/xsl_InstalledProcessors.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/html/images/preferences/xsl_outputproperties.png b/docs/org.eclipse.wst.xsl.doc/html/images/preferences/xsl_outputproperties.png
deleted file mode 100644
index 4e00a42..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/images/preferences/xsl_outputproperties.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/html/images/preferences/xslfeatures.png b/docs/org.eclipse.wst.xsl.doc/html/images/preferences/xslfeatures.png
deleted file mode 100644
index 29dbec8..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/images/preferences/xslfeatures.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/html/images/preferences/xslpreferences.png b/docs/org.eclipse.wst.xsl.doc/html/images/preferences/xslpreferences.png
deleted file mode 100644
index dcb7187..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/images/preferences/xslpreferences.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/html/index.html b/docs/org.eclipse.wst.xsl.doc/html/index.html
deleted file mode 100644
index e53954b..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/index.html
+++ /dev/null
@@ -1,5 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>XSL Tools User Documentation</title><link href="book.css" rel="stylesheet" type="text/css"><link href="../book.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="index.html" title="XSL Tools User Documentation"><link rel="next" href="introduction/gettingstarted.html" title="Getting Started"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="book" lang="en"><div class="titlepage"><div><div><h1 class="title"><a name="XSLUser"></a>XSL Tools User Documentation</h1></div><div><div class="author"><h3 class="author"><span class="firstname">David</span> <span class="surname">Carver</span></h3></div></div><div><p class="copyright">Copyright &copy; 2008 Eclipse Foundation and others</p></div></div><hr></div><div class="toc"><p><b>Table of Contents</b></p><ul><li><span class="chapter"><a href="introduction/gettingstarted.html">Getting Started</a></span></li><li><span class="chapter"><a href="concepts/concepts.html">XSLT Concepts</a></span><ul><li><span class="section"><a href="concepts/concepts.html#ResucingXSLT">Rescuing XSLT From Niche Status</a></span><ul><li><span class="section"><a href="concepts/concepts.html#N10043">The Problem</a></span></li><li><span class="section"><a href="concepts/concepts.html#N10069">The Solution</a></span></li><li><span class="section"><a href="concepts/concepts.html#N10090">Queries</a></span><ul><li><span class="section"><a href="concepts/concepts.html#N1009E">xsl:for-each</a></span></li><li><span class="section"><a href="concepts/concepts.html#N100AA">xsl:if</a></span></li><li><span class="section"><a href="concepts/concepts.html#N100B4">xsl:choose</a></span></li></ul></li><li><span class="section"><a href="concepts/concepts.html#N100BE">Conclusion</a></span></li></ul></li><li><span class="section"><a href="concepts/resources.html">Resources</a></span></li></ul></li><li><span class="chapter"><a href="editor/xsleditor.html">XSL Editing</a></span><ul><li><span class="section"><a href="editor/xsleditor.html#Validation">Validation</a></span></li><li><span class="section"><a href="editor/xsleditor_contentassist.html">Content Assist</a></span><ul><li><span class="section"><a href="editor/xsleditor_contentassist.html#ed_XSLProposals">XSLT Element Proposals</a></span></li><li><span class="section"><a href="editor/xsleditor_contentassist_selecttest.html">Select, Test, and Match Attributes</a></span></li><li><span class="section"><a href="editor/xsleditor_contentassist_exclude.html">Exclude-Result-Prefixes</a></span></li><li><span class="section"><a href="editor/xsleditor_contentassist_modeassist.html">Mode attribute assistance</a></span></li><li><span class="section"><a href="editor/xsleditor_contentassist_namedtemplate.html">Named Template Assistance</a></span></li><li><span class="section"><a href="editor/xsleditor_contentassist_calltemplate.html">Call-Template Assistance</a></span></li><li><span class="section"><a href="editor/xsleditor_contentassist_include.html">
- Include and Import
- href
- Assistance
- </a></span></li></ul></li><li><span class="section"><a href="editor/xsleditor_templates.html">Templates</a></span><ul><li><span class="section"><a href="editor/xsleditor_templates.html#N101E2">XPath Templates</a></span></li></ul></li><li><span class="section"><a href="editor/xsleditor_coloring.html">XSLT Syntax Coloring</a></span></li><li><span class="section"><a href="editor/xsleditor_markers.html">XSLT Markers and Annotations</a></span><ul><li><span class="section"><a href="editor/xsleditor_markers.html#xsltOverRide">Template Override</a></span></li></ul></li><li><span class="section"><a href="editor/xsleditor_debugging.html">XSL Debugging</a></span></li><li><span class="section"><a href="editor/xsleditor_debugging.html">Navigation</a></span></li></ul></li><li><span class="chapter"><a href="launching/launching.html">XSL Launching and Debugging</a></span><ul><li><span class="section"><a href="launching/launching.html#XSLLaunch">XSL Launching</a></span><ul><li><span class="section"><a href="launching/launching.html#XSLLaunchConfig">Launch Configuration</a></span><ul><li><span class="section"><a href="launching/launching.html#XSLLaunch_Main">Main Tab</a></span></li><li><span class="section"><a href="launching/launching.html#XSLLaunch_Output">Output Tab</a></span></li><li><span class="section"><a href="launching/launching.html#XSLLaunch_Processor">Processor Tab</a></span></li></ul></li></ul></li><li><span class="section"><a href="launching/debugging.html">XSLT Debugging</a></span><ul><li><span class="section"><a href="launching/debugging.html#DebugGettingStarted">Starting a Debug Session</a></span></li><li><span class="section"><a href="launching/debugging_common.html">Common Debugging Operations</a></span><ul><li><span class="section"><a href="launching/debugging_common.html#XSLDebugResultView">Result View</a></span></li><li><span class="section"><a href="launching/debugging_variablesview.html">Variables View</a></span></li></ul></li><li><span class="section"><a href="launching/debugging_processors.html">XSLT Processor Specific Support</a></span><ul><li><span class="section"><a href="launching/debugging_processors.html#XSLDebugXalan">XSL Debugging with Xalan</a></span></li></ul></li></ul></li></ul></li><li><span class="chapter"><a href="preferences/xslpreferences.html">XSL Tools Preferences</a></span><ul><li><span class="section"><a href="preferences/xslpreferences.html#XSLFeatures">Features</a></span></li><li><span class="section"><a href="preferences/xslprocessors.html">Installed Processors</a></span></li><li><span class="section"><a href="preferences/xsloutputproperties.html">Output Properties</a></span></li><li><span class="section"><a href="preferences/xpathtemplates.html">XPath Templates</a></span><ul><li><span class="section"><a href="preferences/xpathtemplates.html#XPathTemplateNew">Creating New Templates</a></span></li><li><span class="section"><a href="preferences/xpathimport.html">Import XPath Templates</a></span></li><li><span class="section"><a href="preferences/xpathexport.html">Import XPath Templates</a></span></li></ul></li><li><span class="section"><a href="preferences/validation.html">Project Validation Preferences</a></span></li><li><span class="section"><a href="preferences/syntaxColoring.html">XSLT Syntax Coloring</a></span></li></ul></li><li><span class="chapter"><a href="general/general.html">General</a></span><ul><li><span class="section"><a href="general/general.html#XInclude">XInclude</a></span></li></ul></li><li><span class="chapter"><a href="samples/samples.html">XSL Tooling Samples</a></span><ul><li><span class="section"><a href="samples/samples.html#EclipseHelp">Eclipse Help</a></span><ul><li><span class="section"><a href="samples/samples.html#DocbookEclipseHelp">Creating Eclipse Help with Docbook and XSL Tools</a></span></li><li><span class="section"><a href="samples/samples.html#DITAEclipseHelp">Creating Eclipse Help with DITA and XSL Tools</a></span></li></ul></li></ul></li><li><span class="chapter"><a href="legal.html">Notices</a></span></li></ul></div></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/index.xml b/docs/org.eclipse.wst.xsl.doc/html/index.xml
deleted file mode 100644
index f515bc8..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/index.xml
+++ /dev/null
@@ -1 +0,0 @@
-<index></index> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/introduction/gettingstarted.html b/docs/org.eclipse.wst.xsl.doc/html/introduction/gettingstarted.html
deleted file mode 100644
index d9fa038..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/introduction/gettingstarted.html
+++ /dev/null
@@ -1,6 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Getting Started</title><link href="book.css" rel="stylesheet" type="text/css"><link href="../book.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="../index.html" title="XSL Tools User Documentation"><link rel="up" href="../index.html" title="XSL Tools User Documentation"><link rel="prev" href="../index.html" title="XSL Tools User Documentation"><link rel="next" href="../concepts/concepts.html" title="XSLT Concepts"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="N10012"></a>Getting Started</h2></div></div></div><p>
- XSLT stands for the eXtensible Stylesheet Language Transformations. It is
- part of the XSL specification which includes the transformation and formatting objects
- (XSL-FO). XSL Tools primarily deals with the editing, launching, and debugging
- of XSL Style sheets.
- </p><div class="itemizedlist"><p class="title"><b>Getting Started</b></p><ul type="disc"><li><p><a class="ulink" href="../concepts/concepts.html" target="_top">Rescuing XSLT From Niche Status</a> - gives a basic introduction to XSLT from the point of view of creating HTML output.</p></li><li><p><a class="ulink" href="http://www.mulberrytech.com/quickref/" target="_top">XSLT and XPath Quick Reference Cards</a> - a set of PDF files that can be printed to provide quick references to the XSLT and XPath commands.</p></li></ul></div></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/launching/debugging.html b/docs/org.eclipse.wst.xsl.doc/html/launching/debugging.html
deleted file mode 100644
index df2cbcd..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/launching/debugging.html
+++ /dev/null
@@ -1,21 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>XSLT Debugging</title><link href="book.css" rel="stylesheet" type="text/css"><link href="../book.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="../index.html" title="XSL Tools User Documentation"><link rel="up" href="launching.html" title="XSL Launching and Debugging"><link rel="prev" href="launching.html" title="XSL Launching and Debugging"><link rel="next" href="debugging_common.html" title="Common Debugging Operations"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="XSLDebug"></a>XSLT Debugging</h2></div></div></div><p> XSL Tools provides a framework for XSLT processors to provide
- debugging support. The support provided is highly dependent on the
- processors. XSL Tools comes with built in support for the Xalan 2.7.1
- processor. Debugging is only available for those processors that
- support the feature and plug into the extension point. The XSL Tools
- debugger leverages the existing eclipse platform Debug View</p><div class="figure"><a name="fig_XSLDebug"></a><p class="title"><b>Figure&nbsp;15.&nbsp;XSLT Debugging</b></p><div class="figure-contents"><div class="mediaobject" align="center"><img src="../images/launching/XSLDebugging.png" align="middle" alt="XSLT Debugging"></div></div></div><br class="figure-break"><p>
- How the debugger acts will depend on the processor being used. Not
- all XSLT processors pass the same type of information to the
- debugger. These differences will be noted in the
- <a class="xref" href="debugging_processors.html" title="XSLT Processor Specific Support">the section called &ldquo;XSLT Processor Specific Support&rdquo;</a>
- section.
- </p><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="DebugGettingStarted"></a>Starting a Debug Session</h3></div></div></div><p> Debugging is started the same way as launching an XSL
- Tranformation is done. Except that the debug configuration is used
- instead of the normal launch configuration. If a debugging session
- is started on a processor that does not support debugging, a dialog
- will ask if you want to switch to one of the supported debuggers.
- </p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Default JRE</h3><p> The default JRE does not have built in support for debugging,
- even though it is based on Apache Xalan. It is recommended to use
- Xalan or another processor provided by an adopter to do your
- transformations. The default processor is known to have some issues
- that Xalan and other processors do not have.</p></div></div></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/launching/debugging_common.html b/docs/org.eclipse.wst.xsl.doc/html/launching/debugging_common.html
deleted file mode 100644
index 3414c40..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/launching/debugging_common.html
+++ /dev/null
@@ -1,22 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Common Debugging Operations</title><link href="book.css" rel="stylesheet" type="text/css"><link href="../book.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="../index.html" title="XSL Tools User Documentation"><link rel="up" href="debugging.html" title="XSLT Debugging"><link rel="prev" href="debugging.html" title="XSLT Debugging"><link rel="next" href="debugging_variablesview.html" title="Variables View"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="XSLDebugCommon"></a>Common Debugging Operations</h3></div></div></div><p>
- XSLT debugging is handled by the eclipse platforms debugging
- framework support as outlined in the
- <a class="ulink" href="/help/topic/org.eclipse.platform.doc.isv/guide/debug_debug.htm" target="_top">"Program Debug and Launch Support"</a>
- . Common operations like stepping into (F5), stepping over (F6),
- pausing, running to a breakpoint, and relaunching are supported. In
- addition to the standard Variable and Breakpoint views provided by
- the platform, there are some XSLT specific views and functionality
- as well. All of these are common regardless of the particular XSLT
- debugger being used.
- </p><div class="tip" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Introduction to Eclipse Debugging</h3><p>
- <a class="ulink" href="http://www.mcs.vuw.ac.nz/courses/COMP205/2007T1/tools/eclipse/debugging/basics.shtml" target="_top">Basic Debugging in Eclipse</a>
- contains a good general introduction to the basic features provided
- by the Eclipse Debug view. XSL Tools leverages many of these
- features and the same concepts apply to the XSL Tools debugger.
- </p></div><p> In addition to the standard features and functionality, the
- XSL Tools debugging support adds the following additional items:
- </p><div class="itemizedlist"><ul type="disc"><li><p> Result View</p></li><li><p>XSLT specific Variables</p></li><li><p>XSLT Processor Specific Functionality</p></li></ul></div><div class="section" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="XSLDebugResultView"></a>Result View</h4></div></div></div><p> The XSLT Debugger has a result view. This will show the
- output that the stylesheet has generated to the current break point
- or since the last step command was issued.</p><div class="mediaobject" align="center"><img src="../images/launching/resultView.png" align="middle"></div><p> The result view is updated throughout the debugging process,
- and is useful to help see what output is generated at specific
- points during a transformation.</p></div></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/launching/debugging_processors.html b/docs/org.eclipse.wst.xsl.doc/html/launching/debugging_processors.html
deleted file mode 100644
index 10b1922..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/launching/debugging_processors.html
+++ /dev/null
@@ -1,25 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>XSLT Processor Specific Support</title><link href="book.css" rel="stylesheet" type="text/css"><link href="../book.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="../index.html" title="XSL Tools User Documentation"><link rel="up" href="debugging.html" title="XSLT Debugging"><link rel="prev" href="debugging_variablesview.html" title="Variables View"><link rel="next" href="../preferences/xslpreferences.html" title="XSL Tools Preferences"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="XSLDebugProcessorSpecific"></a>XSLT Processor Specific Support</h3></div></div></div><p> Various XSLT processors provide various levels of debugging
- support. Many do not provide support for debugging of stylesheets,
- and thus can't be used for debugging. XSL Tools provides basic
- support for Xalan, and can be used as a guide for adopters on how to
- implement their own specific debugging support for other processors.
- </p><div class="section" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="XSLDebugXalan"></a>XSL Debugging with Xalan</h4></div></div></div><p> Xalan provides general stylesheet execution and evalation
- functionality. However there are a few things that Xalan does not
- suppor that other processors do.</p><div class="orderedlist"><p class="title"><b>Xalan Debugging Issues</b></p><ol type="1"><li><p>
- <span class="emphasis"><em>Breakpoints</em></span>
- - Xalan does not support stopping at Global Variables or
- Parameters when a debugging session is started. It will
- automatically start at the first template. Break points must be
- placed in templates to be honored. The reason for this is that
- Xalan lazily initializes the variables only when they are first
- used.
- </p></li><li><p>
- <span class="emphasis"><em>XSLT Text elements</em></span>
- - Xalan does not send notifications of xsl:text elements. These
- are skipped over when debugging.
- </p></li><li><p>
- <span class="emphasis"><em>Built In Templates</em></span>
- - Xalan does provide notification when the built in templates are
- called, but currently the debugger does not support or display
- stepping into these templates.
- </p></li></ol></div></div></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/launching/debugging_variablesview.html b/docs/org.eclipse.wst.xsl.doc/html/launching/debugging_variablesview.html
deleted file mode 100644
index 848f6e3..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/launching/debugging_variablesview.html
+++ /dev/null
@@ -1,15 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Variables View</title><link href="book.css" rel="stylesheet" type="text/css"><link href="../book.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="../index.html" title="XSL Tools User Documentation"><link rel="up" href="debugging_common.html" title="Common Debugging Operations"><link rel="prev" href="debugging_common.html" title="Common Debugging Operations"><link rel="next" href="debugging_processors.html" title="XSLT Processor Specific Support"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="section" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="XSLDebugVariables"></a>Variables View</h4></div></div></div><p> The variables view will show all the local and global
- variables and params that are currently in scope. There are two
- types of variables that can be views.</p><div class="mediaobject" align="center"><img src="../images/launching/nodesetVariable.png" align="middle"></div><div class="itemizedlist"><p class="title"><b>Variable Types</b></p><ul type="disc"><li><p>
- <span class="emphasis"><em>String</em></span>
- - These contain text values. This could be strings of text,
- numbers, or other characters.
- </p></li><li><p>
- <span class="emphasis"><em>Nodesets</em></span>
- - Nodesets are represented in the variables view as expandable
- variables. They contain sequences of nodes. The type of nodes are
- represented by icons for elements, attributes, text, comments or
- processing instructions.
- </p></li></ul></div><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Can I change the value of variables?</h3><p> Currently the XSLT Debugger does not support changing the
- values or contents of a variable. All XSLT variables are read
- only.</p></div></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/launching/debuglaunching.html b/docs/org.eclipse.wst.xsl.doc/html/launching/debuglaunching.html
deleted file mode 100644
index 3988d97..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/launching/debuglaunching.html
+++ /dev/null
@@ -1,3 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Launch Debugging</title><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="../index.html" title="XSL Tools User Documentation"><link rel="up" href="launching.html" title="Chapter&nbsp;3.&nbsp;XSL Launching and Debugging"><link rel="prev" href="launching.html" title="Chapter&nbsp;3.&nbsp;XSL Launching and Debugging"><link rel="next" href="../preferences/xslpreferences.html" title="Chapter&nbsp;4.&nbsp;XSL Tools Preferences"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="XSLDebug"></a>Launch Debugging</h2></div></div></div><p>
- This is a place holder until some actual documentation can be written.
- </p></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/launching/launching.html b/docs/org.eclipse.wst.xsl.doc/html/launching/launching.html
deleted file mode 100644
index dbdb72f..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/launching/launching.html
+++ /dev/null
@@ -1,52 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>XSL Launching and Debugging</title><link href="book.css" rel="stylesheet" type="text/css"><link href="../book.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="../index.html" title="XSL Tools User Documentation"><link rel="up" href="../index.html" title="XSL Tools User Documentation"><link rel="prev" href="../editor/xsleditor_debugging.html" title="Navigation"><link rel="next" href="debugging.html" title="XSLT Debugging"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="N1024A"></a>XSL Launching and Debugging</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><ul><li><span class="section"><a href="launching.html#XSLLaunch">XSL Launching</a></span><ul><li><span class="section"><a href="launching.html#XSLLaunchConfig">Launch Configuration</a></span><ul><li><span class="section"><a href="launching.html#XSLLaunch_Main">Main Tab</a></span></li><li><span class="section"><a href="launching.html#XSLLaunch_Output">Output Tab</a></span></li><li><span class="section"><a href="launching.html#XSLLaunch_Processor">Processor Tab</a></span></li></ul></li></ul></li><li><span class="section"><a href="debugging.html">XSLT Debugging</a></span><ul><li><span class="section"><a href="debugging.html#DebugGettingStarted">Starting a Debug Session</a></span></li><li><span class="section"><a href="debugging_common.html">Common Debugging Operations</a></span><ul><li><span class="section"><a href="debugging_common.html#XSLDebugResultView">Result View</a></span></li><li><span class="section"><a href="debugging_variablesview.html">Variables View</a></span></li></ul></li><li><span class="section"><a href="debugging_processors.html">XSLT Processor Specific Support</a></span><ul><li><span class="section"><a href="debugging_processors.html#XSLDebugXalan">XSL Debugging with Xalan</a></span></li></ul></li></ul></li></ul></div><p> XSL Tools adds support for XSL Launch and Debugging
- configurations. These allow you to setup XSL configurations for
- various jobs, and to also debug xsl stylsheet transformations.</p><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="XSLLaunch"></a>XSL Launching</h2></div></div></div><p>
- In the Project Explorer, simply select the input XML file and the
- stylesheet(s) to transform it, and then right-click and select
- <span class="emphasis"><em>Run As &gt; XSL Transformation</em></span>
- .
- </p><div class="figure"><a name="fig_XSLRun"></a><p class="title"><b>Figure&nbsp;11.&nbsp;XSLT Run/Debug</b></p><div class="figure-contents"><div class="mediaobject" align="center"><img src="../images/launching/launchShortct.png" align="middle" alt="XSLT Run/Debug"></div></div></div><br class="figure-break"><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Selecting only the XSL Stylesheet</h3><p>
- If only the XSL Stylesheet is selected then a dialog box will prompt you for the input file to use.
- </p></div><p>
- Launch can also be done through the Launch Configurations pages that are used for both debugging and normal transformations.
- These configurations can be accessed through <span class="emphasis"><em>Run-&gt;Run Configurations</em></span> menu bar option.
- </p><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="XSLLaunchConfig"></a>Launch Configuration</h3></div></div></div><p>
- Currently, XSL Tools only supports the launching of java based
- processors through the Run and Debug framework. To this point, it
- leverages and extends some of the support provided by the Java
- launch configurations. XSL Tools does add it's own specific features
- for launching.
- </p><div class="figure"><a name="fig_XSLLaunchConfig"></a><p class="title"><b>Figure&nbsp;12.&nbsp;Java XSLT Launch Configuration</b></p><div class="figure-contents"><div class="mediaobject" align="center"><img src="../images/launching/XSLRunDebugConfigurations.png" align="middle" alt="Java XSLT Launch Configuration"></div></div></div><br class="figure-break"><p>
- The tabs Main, Output, and Processor control specifics for the XSLT processor and files to be run through
- the transformation.
- </p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">XSLT Extensions</h3><p>If the transformation needs or makes use of extension
- functions then those jar files should be added to the Classpath tab
- so that they are picked up during the transformation. Otherwise the
- transformation will fail.</p></div><div class="section" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="XSLLaunch_Main"></a>Main Tab</h4></div></div></div><p>
- As shown in <a class="xref" href="launching.html#fig_XSLLaunchConfig" title="Figure&nbsp;12.&nbsp;Java XSLT Launch Configuration">Figure&nbsp;12, &ldquo;Java XSLT Launch Configuration&rdquo;</a>, the Main Tab is where the input XML file is specified. If a particular
- XML file is not shown in the available list when browsing the Workspace, make sure that it is added to under the XML Content
- Type in the General preference page. Standard eclipse launching variables can be used to specify the location of the input file.
- </p><p>
- A run configuration can also use a simple pipeline transformation. Meaning that the output from one stylesheet is used as input
- to the next stylesheet. The Stylesheet input box can have one to many stylesheets specified. At least one stylesheet is required
- for a transformation.
- </p><p>
- The last optional item are parameters. Stylesheets can have parameters passed into them to setup configuration information. An
- example would be the numerous parameters that can be set for a DocBook stylesheet transformation. If the parameters are not
- specified the defaults that are defined in the stylesheet will take precedence.
- </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="XSLLaunch_Output"></a>Output Tab</h4></div></div></div><p>
- The Output Tab allows the specification of where the transformation should store the information.
- This can be relative to the workspace or a physical location outside the workspace.
- </p><div class="figure"><a name="fig_XSLOutputTab"></a><p class="title"><b>Figure&nbsp;13.&nbsp;Java XSLT Launch Configuration</b></p><div class="figure-contents"><div class="mediaobject" align="center"><img src="../images/launching/XSLOutputTab.png" align="middle" alt="Java XSLT Launch Configuration"></div></div></div><br class="figure-break"></div><div class="section" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="XSLLaunch_Processor"></a>Processor Tab</h4></div></div></div><p>
- The particular XSLT processor that will be used can be choosen from this tab. The
- default is to use the system default processor or what ever processor you have
- set as the default processor in the preference pages.
- </p><div class="figure"><a name="fig_XSLProcessorTab"></a><p class="title"><b>Figure&nbsp;14.&nbsp;Java XSLT Launch Configuration</b></p><div class="figure-contents"><div class="mediaobject" align="center"><img src="../images/launching/XSLProcessorTab.png" align="middle" alt="Java XSLT Launch Configuration"></div></div></div><br class="figure-break"><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">XSLT Debugging</h3><p>
- If you are setting up a launch configuration for debugging, do not choose
- the JRE Default processor, you should choose either Xalan or another adopters
- processor that supports debugging.
- </p></div><p>
- In addition, every processor has their own configuration options that can be specified.
- This controls such items as indentation, handling of white space, etc. Refer to your
- processors documentation for the specific options available.
- </p></div></div></div></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/legal.html b/docs/org.eclipse.wst.xsl.doc/html/legal.html
deleted file mode 100644
index 4b3e8af..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/legal.html
+++ /dev/null
@@ -1,11 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Notices</title><link href="book.css" rel="stylesheet" type="text/css"><link href="../book.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="index.html" title="XSL Tools User Documentation"><link rel="up" href="index.html" title="XSL Tools User Documentation"><link rel="prev" href="samples/samples.html" title="XSL Tooling Samples"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="N1046F"></a>Notices</h2></div></div></div><p>
- The material in this guide is Copyright (c) Doug Satchwell (<a class="ulink" href="http://www.chasetechnology.co.uk" target="_top">Chase Technology Ltd</a>),
- David Carver (<a class="ulink" href="http://www.starstandard.org" target="_top">Standards for Technology in Automotive Retail</a>)
- and others 2008.
- </p><p>
- This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies
- this distribution, and is available at
- <a class="ulink" href="http://www.eclipse.org/legal/epl-v10.html" target="_top">http://www.eclipse.org/legal/epl-v10.html</a>.
- </p><p>
- <a class="ulink" href="about.html" target="_top">Terms and conditions regarding the use of this guide.</a>.
- </p></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/preferences/syntaxColoring.html b/docs/org.eclipse.wst.xsl.doc/html/preferences/syntaxColoring.html
deleted file mode 100644
index 2d937aa..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/preferences/syntaxColoring.html
+++ /dev/null
@@ -1,8 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>XSLT Syntax Coloring</title><link href="book.css" rel="stylesheet" type="text/css"><link href="../book.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="../index.html" title="XSL Tools User Documentation"><link rel="up" href="xslpreferences.html" title="XSL Tools Preferences"><link rel="prev" href="validation.html" title="Project Validation Preferences"><link rel="next" href="../general/general.html" title="General"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="pref_SyntaxColoring"></a>XSLT Syntax Coloring</h2></div></div></div><p>
- XSL Tools also has the ability to syntax color the XSLT namespace items a different
- color than the rest of the XML syntax included. The default is for all XSL syntax to be
- <span class="bold"><strong>bold</strong></span>.
- </p><div class="figure"><a name="fig_XSLSyntaxColoringPreference"></a><p class="title"><b>Figure&nbsp;18.&nbsp;XSL Tools Syntax Coloring Preference</b></p><div class="figure-contents"><div class="mediaobject" align="center"><img src="../images/preferences/xslSyntaxColoring.png" align="middle" alt="XSL Tools Syntax Coloring Preference"></div></div></div><br class="figure-break"><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">XML Colors</h3><p>
- The color for standard XML is still handled by the XML Files syntax coloring
- preference page. Changes made there are reflected in the XSL editor as well.
- </p></div></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/preferences/validation.html b/docs/org.eclipse.wst.xsl.doc/html/preferences/validation.html
deleted file mode 100644
index e12a5ee..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/preferences/validation.html
+++ /dev/null
@@ -1,8 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Project Validation Preferences</title><link href="book.css" rel="stylesheet" type="text/css"><link href="../book.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="../index.html" title="XSL Tools User Documentation"><link rel="up" href="xslpreferences.html" title="XSL Tools Preferences"><link rel="prev" href="xpathexport.html" title="Import XPath Templates"><link rel="next" href="syntaxColoring.html" title="XSLT Syntax Coloring"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="pref_ProjectValidationPreferences"></a>Project Validation Preferences</h2></div></div></div><p>
- XSL Tools has the ability to set both workspace wide preferences for
- validation as well as project level preferences. These preferences, as shown
- in
- <a class="xref" href="validation.html#fig_ProjectLevelPreferences" title="Figure&nbsp;17.&nbsp;Project Level Validation Preferences">Figure&nbsp;17, &ldquo;Project Level Validation Preferences&rdquo;</a>
- allow for the fine grain control of what the validator will consider to be an
- syntax error.
- </p><div class="figure"><a name="fig_ProjectLevelPreferences"></a><p class="title"><b>Figure&nbsp;17.&nbsp;Project Level Validation Preferences</b></p><div class="figure-contents"><div class="mediaobject" align="center"><img src="../images/preferences/projectLevelValidation.png" align="middle" alt="Project Level Validation Preferences"></div></div></div><br class="figure-break"><p> These preferences are accessed via the Projects properties dialog.</p></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/preferences/xpathexport.html b/docs/org.eclipse.wst.xsl.doc/html/preferences/xpathexport.html
deleted file mode 100644
index d027e00..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/preferences/xpathexport.html
+++ /dev/null
@@ -1 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Import XPath Templates</title><link href="book.css" rel="stylesheet" type="text/css"><link href="../book.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="../index.html" title="XSL Tools User Documentation"><link rel="up" href="xpathtemplates.html" title="XPath Templates"><link rel="prev" href="xpathimport.html" title="Import XPath Templates"><link rel="next" href="validation.html" title="Project Validation Preferences"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="XPathExport"></a>Import XPath Templates</h3></div></div></div><p> Add documentation about importing new templates.</p></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/preferences/xpathimport.html b/docs/org.eclipse.wst.xsl.doc/html/preferences/xpathimport.html
deleted file mode 100644
index 1becb66..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/preferences/xpathimport.html
+++ /dev/null
@@ -1 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Import XPath Templates</title><link href="book.css" rel="stylesheet" type="text/css"><link href="../book.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="../index.html" title="XSL Tools User Documentation"><link rel="up" href="xpathtemplates.html" title="XPath Templates"><link rel="prev" href="xpathtemplates.html" title="XPath Templates"><link rel="next" href="xpathexport.html" title="Import XPath Templates"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="XPathImport"></a>Import XPath Templates</h3></div></div></div><p> Add documentation about importing new templates.</p></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/preferences/xpathtemplates.html b/docs/org.eclipse.wst.xsl.doc/html/preferences/xpathtemplates.html
deleted file mode 100644
index e5a2e69..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/preferences/xpathtemplates.html
+++ /dev/null
@@ -1,25 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>XPath Templates</title><link href="book.css" rel="stylesheet" type="text/css"><link href="../book.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="../index.html" title="XSL Tools User Documentation"><link rel="up" href="xslpreferences.html" title="XSL Tools Preferences"><link rel="prev" href="xsloutputproperties.html" title="Output Properties"><link rel="next" href="xpathimport.html" title="Import XPath Templates"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="XPathTemplates"></a>XPath Templates</h2></div></div></div><p> XPath template proposal is supported by the XSL Tooling project through the
- built in template functionality of eclipse. Users and Adopters can add their
- own specific xpath extensions for processor specific extensions. An example
- would be to add the EXSLT extensions for proposal support.</p><div class="mediaobject" align="center"><img src="../images/preferences/XPathTemplates.png" align="middle"></div><p> The following content types are available:</p><div class="itemizedlist"><ul type="disc"><li><p>
- <span class="bold"><strong>axis</strong></span>
- - an XPath navigation axis statement.
- </p></li><li><p>
- <span class="bold"><strong>exslt</strong></span>
- - An XPath statement that is defined by the
- <a class="ulink" href="http://www.exslt.org/" target="_top">EXSLT</a>
- library. Xalan and most other processors have built in support for the
- EXSLT library.
- </p></li><li><p>
- <span class="bold"><strong>xpath</strong></span>
- - Represents an XPATH 1.0 function. These are functions as defined by
- the XPath 1.0 specification.
- </p></li><li><p>
- <span class="bold"><strong>xpath 2.0</strong></span>
- - Represents an XPath 2.0 function.
- <span class="emphasis"><em>Note: That currently XSL Tools only ships with
- templates defined for XPath 1.0 .</em></span>
- </p></li><li><p>
- <span class="bold"><strong>operator</strong></span>
- - An xpath logical operator like AND, OR, etc.
- </p></li></ul></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="XPathTemplateNew"></a>Creating New Templates</h3></div></div></div><p> Add documentation about creating new templates.</p></div></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/preferences/xsloutputproperties.html b/docs/org.eclipse.wst.xsl.doc/html/preferences/xsloutputproperties.html
deleted file mode 100644
index 2f1b66c..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/preferences/xsloutputproperties.html
+++ /dev/null
@@ -1,6 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Output Properties</title><link href="book.css" rel="stylesheet" type="text/css"><link href="../book.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="../index.html" title="XSL Tools User Documentation"><link rel="up" href="xslpreferences.html" title="XSL Tools Preferences"><link rel="prev" href="xslprocessors.html" title="Installed Processors"><link rel="next" href="xpathtemplates.html" title="XPath Templates"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="XSLOutputProperties"></a>Output Properties</h2></div></div></div><p> The various xsl processors support a wide variety of processor specific
- tweaks. However there are several Standard processor features that all XSLT
- processors support. These options can be set and will act as the defaults for
- all transformations unless they are specifically overriden by the stylesheet
- or the launch configuration.</p><div class="mediaobject" align="center"><img src="../images/preferences/xsl_outputproperties.png" align="middle"></div><p> In addition to the Standard Output Properties, each XSLT processor can have
- processors specific features.</p></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/preferences/xslpreferences.html b/docs/org.eclipse.wst.xsl.doc/html/preferences/xslpreferences.html
deleted file mode 100644
index 17a26d5..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/preferences/xslpreferences.html
+++ /dev/null
@@ -1,18 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>XSL Tools Preferences</title><link href="book.css" rel="stylesheet" type="text/css"><link href="../book.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="../index.html" title="XSL Tools User Documentation"><link rel="up" href="../index.html" title="XSL Tools User Documentation"><link rel="prev" href="../launching/debugging_processors.html" title="XSLT Processor Specific Support"><link rel="next" href="xslprocessors.html" title="Installed Processors"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="XSLPreferences"></a>XSL Tools Preferences</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><ul><li><span class="section"><a href="xslpreferences.html#XSLFeatures">Features</a></span></li><li><span class="section"><a href="xslprocessors.html">Installed Processors</a></span></li><li><span class="section"><a href="xsloutputproperties.html">Output Properties</a></span></li><li><span class="section"><a href="xpathtemplates.html">XPath Templates</a></span><ul><li><span class="section"><a href="xpathtemplates.html#XPathTemplateNew">Creating New Templates</a></span></li><li><span class="section"><a href="xpathimport.html">Import XPath Templates</a></span></li><li><span class="section"><a href="xpathexport.html">Import XPath Templates</a></span></li></ul></li><li><span class="section"><a href="validation.html">Project Validation Preferences</a></span></li><li><span class="section"><a href="syntaxColoring.html">XSLT Syntax Coloring</a></span></li></ul></div><p> The XSL Preference pages has several sub sections. Each of these allow for
- configuration of various aspects of the preferences. From the controlling of the
- default XSL processor to be used during transformations. To extending the content
- assist support of the XPath functions available in the XML editor.</p><div class="figure"><a name="fig_XSLPreferences"></a><p class="title"><b>Figure&nbsp;16.&nbsp;XSL Tools Preferences</b></p><div class="figure-contents"><div class="mediaobject" align="center"><img src="../images/preferences/xslpreferences.png" align="middle" alt="XSL Tools Preferences"></div></div></div><br class="figure-break"><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="XSLFeatures"></a>Features</h2></div></div></div><p> The XSL Features preference page allows for the configuration of features
- for a particular processor. XSL Tools comes with Xalan 2.7.0 by default.
- Adopters can extend and include their own specific features for their own
- procesoors. An adopter could extend the tooling to support XSLT 2.0
- transformations, and features particular to that parser.</p><div class="mediaobject" align="center"><img src="../images/preferences/xslfeatures.png" align="middle"></div><p>
- The
- <span class="bold"><strong>Processor Type</strong></span>
- allows you to set features for a specific processor. In this case this is for
- the processor that is being installed. XSL Tools comes with Xalan 2.7.0, and
- it is the only available processor type by default.
- </p><p> The feature table lists the features that are specific to the processor
- that was selected. As you select each of the features, information regarding
- that feature and it's abilities is displayed in the description box. By
- clicking in the value column, next to the feature you want to set the value
- for, the user can set the feature.</p></div></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/preferences/xslprocessors.html b/docs/org.eclipse.wst.xsl.doc/html/preferences/xslprocessors.html
deleted file mode 100644
index ff799fc..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/preferences/xslprocessors.html
+++ /dev/null
@@ -1,4 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Installed Processors</title><link href="book.css" rel="stylesheet" type="text/css"><link href="../book.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="../index.html" title="XSL Tools User Documentation"><link rel="up" href="xslpreferences.html" title="XSL Tools Preferences"><link rel="prev" href="xslpreferences.html" title="XSL Tools Preferences"><link rel="next" href="xsloutputproperties.html" title="Output Properties"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="XSLProcessors"></a>Installed Processors</h2></div></div></div><p> The installed processors page lets you pick which of the installed XSLT
- processors will be used by default. The default is the System Default
- Procesoor, but you can select any of the available processors to be used as
- the default processor.</p><div class="mediaobject" align="center"><img src="../images/preferences/xsl_InstalledProcessors.png" align="middle"></div></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/reference/maintopic.html b/docs/org.eclipse.wst.xsl.doc/html/reference/maintopic.html
deleted file mode 100644
index a476078..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/reference/maintopic.html
+++ /dev/null
@@ -1,13 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-
-<html>
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- <title>Main Topic</title>
-</head>
-
-<body>
-<h1>Main Topic</h1>
-Please enter your text here.
-</body>
-</html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/reference/subtopic.html b/docs/org.eclipse.wst.xsl.doc/html/reference/subtopic.html
deleted file mode 100644
index 8a61c50..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/reference/subtopic.html
+++ /dev/null
@@ -1,13 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-
-<html>
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- <title>Sub Topic</title>
-</head>
-
-<body>
-<h1>Sub Topic</h1>
-Please enter your text here.
-</body>
-</html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/reference/subtopic2.html b/docs/org.eclipse.wst.xsl.doc/html/reference/subtopic2.html
deleted file mode 100644
index 86bcbf9..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/reference/subtopic2.html
+++ /dev/null
@@ -1,13 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-
-<html>
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- <title>Sub Topic 2</title>
-</head>
-
-<body>
-<h1>Sub Topic 2</h1>
-Please enter your text here.
-</body>
-</html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/samples/samples.html b/docs/org.eclipse.wst.xsl.doc/html/samples/samples.html
deleted file mode 100644
index f684bd6..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/samples/samples.html
+++ /dev/null
@@ -1,11 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>XSL Tooling Samples</title><link href="book.css" rel="stylesheet" type="text/css"><link href="../book.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="../index.html" title="XSL Tools User Documentation"><link rel="up" href="../index.html" title="XSL Tools User Documentation"><link rel="prev" href="../general/general.html" title="General"><link rel="next" href="../legal.html" title="Notices"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="N10450"></a>XSL Tooling Samples</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><ul><li><span class="section"><a href="samples.html#EclipseHelp">Eclipse Help</a></span><ul><li><span class="section"><a href="samples.html#DocbookEclipseHelp">Creating Eclipse Help with Docbook and XSL Tools</a></span></li><li><span class="section"><a href="samples.html#DITAEclipseHelp">Creating Eclipse Help with DITA and XSL Tools</a></span></li></ul></li></ul></div><p>This section contains several samples and references to sample projects.</p><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="EclipseHelp"></a>Eclipse Help</h2></div></div></div><p></p><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="DocbookEclipseHelp"></a>Creating Eclipse Help with Docbook and XSL Tools</h3></div></div></div><p>
- This tutorial assumes that you have knowledge of Docbook, ANT, and the
- ability to setup ANT build scripts.
- </p><p>
- To Do write up the rest of the tutorial.
- </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="DITAEclipseHelp"></a>Creating Eclipse Help with DITA and XSL Tools</h3></div></div></div><p>
- This tutorial assumes that you have knowledge of DITA, ANT, and the
- ability to setup ANT build scripts.
- </p><p>
- To Do write up the rest of the tutorial.
- </p></div></div></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/plugin.properties b/docs/org.eclipse.wst.xsl.doc/plugin.properties
deleted file mode 100644
index ca15f82..0000000
--- a/docs/org.eclipse.wst.xsl.doc/plugin.properties
+++ /dev/null
@@ -1,3 +0,0 @@
-#Properties file for org.eclipse.wst.xsl.doc
-vendorName = Eclipse.org
-pluginName = XSL User Documentation (Incubating) \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/plugin.xml b/docs/org.eclipse.wst.xsl.doc/plugin.xml
deleted file mode 100644
index 7f5a61e..0000000
--- a/docs/org.eclipse.wst.xsl.doc/plugin.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<plugin>
- <extension point="org.eclipse.help.toc">
- <toc primary="true" file="toc.xml"></toc>
- </extension>
-</plugin> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/toc.xml b/docs/org.eclipse.wst.xsl.doc/toc.xml
deleted file mode 100644
index b4d5b96..0000000
--- a/docs/org.eclipse.wst.xsl.doc/toc.xml
+++ /dev/null
@@ -1 +0,0 @@
-<toc topic="html/index.html" label="XSL Tools User Documentation"><topic href="html/introduction/gettingstarted.html" label="Getting Started"></topic><topic href="html/concepts/concepts.html" label="XSLT Concepts"><topic href="html/concepts/concepts.html#ResucingXSLT" label="Rescuing XSLT From Niche Status"><topic href="html/concepts/concepts.html#N10043" label="The Problem"></topic><topic href="html/concepts/concepts.html#N10069" label="The Solution"></topic><topic href="html/concepts/concepts.html#N10090" label="Queries"><topic href="html/concepts/concepts.html#N1009E" label="xsl:for-each"></topic><topic href="html/concepts/concepts.html#N100AA" label="xsl:if"></topic><topic href="html/concepts/concepts.html#N100B4" label="xsl:choose"></topic></topic><topic href="html/concepts/concepts.html#N100BE" label="Conclusion"></topic></topic><topic href="html/concepts/resources.html" label="Resources"></topic></topic><topic href="html/editor/xsleditor.html" label="XSL Editing"><topic href="html/editor/xsleditor.html#Validation" label="Validation"></topic><topic href="html/editor/xsleditor_contentassist.html" label="Content Assist"><topic href="html/editor/xsleditor_contentassist.html#ed_XSLProposals" label="XSLT Element Proposals"></topic><topic href="html/editor/xsleditor_contentassist_selecttest.html" label="Select, Test, and Match Attributes"></topic><topic href="html/editor/xsleditor_contentassist_exclude.html" label="Exclude-Result-Prefixes"></topic><topic href="html/editor/xsleditor_contentassist_modeassist.html" label="Mode attribute assistance"></topic><topic href="html/editor/xsleditor_contentassist_namedtemplate.html" label="Named Template Assistance"></topic><topic href="html/editor/xsleditor_contentassist_calltemplate.html" label="Call-Template Assistance"></topic><topic href="html/editor/xsleditor_contentassist_include.html" label="Include and Import href Assistance"></topic></topic><topic href="html/editor/xsleditor_templates.html" label="Templates"><topic href="html/editor/xsleditor_templates.html#N101E2" label="XPath Templates"></topic></topic><topic href="html/editor/xsleditor_coloring.html" label="XSLT Syntax Coloring"></topic><topic href="html/editor/xsleditor_markers.html" label="XSLT Markers and Annotations"><topic href="html/editor/xsleditor_markers.html#xsltOverRide" label="Template Override"></topic></topic><topic href="html/editor/xsleditor_debugging.html" label="XSL Debugging"></topic><topic href="html/editor/xsleditor_debugging.html" label="Navigation"></topic></topic><topic href="html/launching/launching.html" label="XSL Launching and Debugging"><topic href="html/launching/launching.html#XSLLaunch" label="XSL Launching"><topic href="html/launching/launching.html#XSLLaunchConfig" label="Launch Configuration"><topic href="html/launching/launching.html#XSLLaunch_Main" label="Main Tab"></topic><topic href="html/launching/launching.html#XSLLaunch_Output" label="Output Tab"></topic><topic href="html/launching/launching.html#XSLLaunch_Processor" label="Processor Tab"></topic></topic></topic><topic href="html/launching/debugging.html" label="XSLT Debugging"><topic href="html/launching/debugging.html#DebugGettingStarted" label="Starting a Debug Session"></topic><topic href="html/launching/debugging_common.html" label="Common Debugging Operations"><topic href="html/launching/debugging_common.html#XSLDebugResultView" label="Result View"></topic><topic href="html/launching/debugging_variablesview.html" label="Variables View"></topic></topic><topic href="html/launching/debugging_processors.html" label="XSLT Processor Specific Support"><topic href="html/launching/debugging_processors.html#XSLDebugXalan" label="XSL Debugging with Xalan"></topic></topic></topic></topic><topic href="html/preferences/xslpreferences.html" label="XSL Tools Preferences"><topic href="html/preferences/xslpreferences.html#XSLFeatures" label="Features"></topic><topic href="html/preferences/xslprocessors.html" label="Installed Processors"></topic><topic href="html/preferences/xsloutputproperties.html" label="Output Properties"></topic><topic href="html/preferences/xpathtemplates.html" label="XPath Templates"><topic href="html/preferences/xpathtemplates.html#XPathTemplateNew" label="Creating New Templates"></topic><topic href="html/preferences/xpathimport.html" label="Import XPath Templates"></topic><topic href="html/preferences/xpathexport.html" label="Import XPath Templates"></topic></topic><topic href="html/preferences/validation.html" label="Project Validation Preferences"></topic><topic href="html/preferences/syntaxColoring.html" label="XSLT Syntax Coloring"></topic></topic><topic href="html/general/general.html" label="General"><topic href="html/general/general.html#XInclude" label="XInclude"></topic></topic><topic href="html/samples/samples.html" label="XSL Tooling Samples"><topic href="html/samples/samples.html#EclipseHelp" label="Eclipse Help"><topic href="html/samples/samples.html#DocbookEclipseHelp" label="Creating Eclipse Help with Docbook and XSL Tools"></topic><topic href="html/samples/samples.html#DITAEclipseHelp" label="Creating Eclipse Help with DITA and XSL Tools"></topic></topic></topic><topic href="html/legal.html" label="Notices"></topic></toc> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.sdk.documentation/.classpath b/docs/org.eclipse.wst.xsl.sdk.documentation/.classpath
deleted file mode 100644
index 64c5e31..0000000
--- a/docs/org.eclipse.wst.xsl.sdk.documentation/.classpath
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/docs/org.eclipse.wst.xsl.sdk.documentation/.project b/docs/org.eclipse.wst.xsl.sdk.documentation/.project
deleted file mode 100644
index 9fdf29d..0000000
--- a/docs/org.eclipse.wst.xsl.sdk.documentation/.project
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.wst.xsl.sdk.documentation</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>
- <buildCommand>
- <name>org.eclipse.wst.validation.validationbuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- </natures>
-</projectDescription>
diff --git a/docs/org.eclipse.wst.xsl.sdk.documentation/.settings/org.eclipse.jdt.core.prefs b/docs/org.eclipse.wst.xsl.sdk.documentation/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 2136ed3..0000000
--- a/docs/org.eclipse.wst.xsl.sdk.documentation/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,7 +0,0 @@
-#Sat Jun 21 18:22:30 GMT-05:00 2008
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
-org.eclipse.jdt.core.compiler.compliance=1.5
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.5
diff --git a/docs/org.eclipse.wst.xsl.sdk.documentation/.settings/org.eclipse.wst.validation.prefs b/docs/org.eclipse.wst.xsl.sdk.documentation/.settings/org.eclipse.wst.validation.prefs
deleted file mode 100644
index 879153b..0000000
--- a/docs/org.eclipse.wst.xsl.sdk.documentation/.settings/org.eclipse.wst.validation.prefs
+++ /dev/null
@@ -1,17 +0,0 @@
-#Sat Aug 02 08:45:39 GMT-05:00 2008
-DELEGATES_PREFERENCE=delegateValidatorList
-USER_BUILD_PREFERENCE=enabledBuildValidatorList
-USER_MANUAL_PREFERENCE=enabledManualValidatorList
-USER_PREFERENCE=overrideGlobalPreferencestruedisableAllValidationfalseversion1.2.0.v200806051402
-eclipse.preferences.version=1
-override=true
-suspend=false
-vals/org.eclipse.jst.jsp.core.JSPBatchValidator/global=FF01
-vals/org.eclipse.jst.jsp.core.JSPContentValidator/global=FF01
-vals/org.eclipse.wst.dtd.core.dtdDTDValidator/global=FF01
-vals/org.eclipse.wst.html.ui.HTMLValidator/global=FF01
-vals/org.eclipse.wst.wsdl.validation.wsdl/global=FF02158org.eclipse.wst.wsdl.validation.internal.eclipse.Validator
-vals/org.eclipse.wst.xml.core.xml/global=TT03
-vals/org.eclipse.wst.xsd.core.xsd/global=FF02162org.eclipse.wst.xsd.core.internal.validation.eclipse.Validator
-vals/org.eclipse.wst.xsl.core.xsl/global=TT02
-vf.version=3
diff --git a/docs/org.eclipse.wst.xsl.sdk.documentation/META-INF/MANIFEST.MF b/docs/org.eclipse.wst.xsl.sdk.documentation/META-INF/MANIFEST.MF
deleted file mode 100644
index a6dd324..0000000
--- a/docs/org.eclipse.wst.xsl.sdk.documentation/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,12 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: %pluginName
-Bundle-SymbolicName: org.eclipse.wst.xsl.sdk.documentation; singleton:=true
-Bundle-Version: 1.0.100.qualifier
-Bundle-Activator: org.eclipse.wst.xsl.sdk.documentation.Activator
-Require-Bundle: org.eclipse.core.runtime,
- org.eclipse.help
-Bundle-ActivationPolicy: lazy
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Bundle-Vendor: %providerName
-Export-Package: org.eclipse.wst.xsl.sdk.documentation
diff --git a/docs/org.eclipse.wst.xsl.sdk.documentation/ReadMe.txt b/docs/org.eclipse.wst.xsl.sdk.documentation/ReadMe.txt
deleted file mode 100644
index 06b591b..0000000
--- a/docs/org.eclipse.wst.xsl.sdk.documentation/ReadMe.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-To build the SDK documentation, you need the Doclet JELDocLet.jar.
-
-This can be retrieved from:
-
-http://sourceforge.net/projects/jeldoclet
-
diff --git a/docs/org.eclipse.wst.xsl.sdk.documentation/about.html b/docs/org.eclipse.wst.xsl.sdk.documentation/about.html
deleted file mode 100644
index 2199df3..0000000
--- a/docs/org.eclipse.wst.xsl.sdk.documentation/about.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<HTML>
-
-<head>
-<title>About</title>
-<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
-</head>
-
-<BODY lang="EN-US">
-
-<H3>About This Content</H3>
-
-<P>June, 2008</P>
-
-<H3>License</H3>
-
-<P>The Eclipse Foundation makes available all content in this plug-in
-("Content"). Unless otherwise indicated below, the Content is provided to you
-under the terms and conditions of the Eclipse Public License Version 1.0
-("EPL"). A copy of the EPL is available at
-<A href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/org/documents/epl-v10.php</A>.
-For purposes of the EPL, "Program" will mean the Content.</P>
-
-<P>If you did not receive this Content directly from the Eclipse Foundation, the
-Content is being redistributed by another party ("Redistributor") and different
-terms and conditions may apply to your use of any object code in the Content.
-Check the Redistributor’s license that was provided with the Content. If no such
-license exists, contact the Redistributor. Unless otherwise indicated below, the
-terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at
-<A href="http://www.eclipse.org/">http://www.eclipse.org/</A>.</P>
-
-</BODY>
-</HTML>
diff --git a/docs/org.eclipse.wst.xsl.sdk.documentation/build.properties b/docs/org.eclipse.wst.xsl.sdk.documentation/build.properties
deleted file mode 100644
index 1ccfc96..0000000
--- a/docs/org.eclipse.wst.xsl.sdk.documentation/build.properties
+++ /dev/null
@@ -1,12 +0,0 @@
-source.. = src/
-output.. = bin/
-bin.includes = plugin.xml,\
- META-INF/,\
- .,\
- build.xml,\
- toc.xml,\
- doc/html/,\
- about.html,\
- bin/,\
- plugin.properties,\
- tocExtension.xml
diff --git a/docs/org.eclipse.wst.xsl.sdk.documentation/build.xml b/docs/org.eclipse.wst.xsl.sdk.documentation/build.xml
deleted file mode 100644
index 110a427..0000000
--- a/docs/org.eclipse.wst.xsl.sdk.documentation/build.xml
+++ /dev/null
@@ -1,82 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- ======================================================================
- Jul 21, 2008 6:46:02 PM
-
- SDK Documentation
- Builds SDK TOC Documentation using JELDoclet.
-
- dcarver
- ====================================================================== -->
-<project name="SDK Documentation" default="default">
- <description>
- Builds SDK TOC Documentation using JELDoclet.
- </description>
-
- <property name="workspace" location="."/>
- <property name="workspaceloc" location=".."/>
-
- <!-- =================================
- target: default
- ================================= -->
- <target name="default" description="Builds SDK TOC Documentation using JELDoclet.">
-
- <javadoc destdir="doc" package="true" docletpath="${workspace}/lib/jeldoclet.jar">
- <fileset dir="${workspaceloc}">
- <include name="org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/*.java"/>
- <include name="org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/resolver/*.java"/>
- <include name="org.eclipse.wst.xsl.jaxp.debug/src-debugger/org/eclipse/wst/xsl/jaxp/debug/debugger/*.java"/>
- <include name="org.eclipse.wst.xsl.jaxp.debug/src-invoker/org/eclipse/wst/xsl/jaxp/debug/invoker/*.java"/>
- <include name="org.eclipse.wst.xsl.xalan/src-debugger/org/eclipse/wst/xsl/xalan/debugger/*.java"/>
- <include name="org.eclipse.wst.xml.xpath.core/src/org/eclipse/wst/xml/xpath/core/*.java"/>
- <include name="org.eclipse.wst.xml.xpath.core/src/org/eclipse/wst/xml/xpath/core/util/*.java"/>
- <include name="org.eclipse.wst.xml.xpath.ui/src-xpath/org/eclipse/wst/xml/xpath/ui/*.java"/>
- </fileset>
- <doclet name="com.jeldoclet.JELDoclet"/>
- </javadoc>
-
- <xslt basedir="." style="doc/jeltohtml.xsl" in="doc/jel.xml" out="doc/html/deleteme.html">
- <factory name="org.apache.xalan.processor.TransformerFactoryImpl">
- <attribute name="http://xml.apache.org/xalan/features/optimize" value="true"/>
-
- </factory>
- </xslt>
-
-
- <xslt style="doc/jeltotoc.xsl" in="doc/jel.xml" out="toc.xml" destdir=".">
- <factory name="org.apache.xalan.processor.TransformerFactoryImpl">
- <attribute name="http://xml.apache.org/xalan/features/optimize" value="true"/>
- </factory>
- <param name="sdkname" expression="XSL Tools SDK Documentation"/>
- </xslt>
-
- </target>
-
- <target name="DocCheck">
- <javadoc destdir="doc/doccheck" package="true" docletpath="${workspace}/lib/doccheck.jar">
- <fileset dir="${workspaceloc}">
- <include name="org.eclipse.wst.xsl.core/**/*.java"/>
- <include name="org.eclipse.wst.xsl.debug/**/*.java"/>
- <include name="org.eclipse.wst.xsl.debug.ui/**/*.java"/>
- <include name="org.eclipse.wst.xsl.launching/**/*.java"/>
- <include name="org.eclipse.wst.xsl.saxon/**/*.java"/>
- <include name="org.eclipse.wst.xsl.ui/**/*.java"/>
- <include name="org.eclipse.wst.xsl.xalan/src-debugger/**/*.java"/>
- <include name="org.eclipse.wst.xml.xpath.core/src/**/*.java"/>
- <include name="org.eclipse.wst.xml.xpath.ui/src-xpath/org/eclipse/wst/xml/xpath/ui/*.java"/>
- </fileset>
- <doclet name="com.sun.tools.doclets.doccheck.DocCheck">
- <param name="-execDepth" value="2"/>
- </doclet>
- </javadoc>
- </target>
-
- <target name="ExtensionPointDoc">
- <pde.convertSchemaToHTML manifest="../org.eclipse.wst.xsl.jaxp.launching/plugin.xml"
- destination="${workspace}/doc/html/extension_point"
- />
- <pde.convertSchemaToHTML manifest="../org.eclipse.wst.xsl.ui/plugin.xml"
- destination="${workspace}/doc/html/extension_point"
- />
- </target>
-
-</project>
diff --git a/docs/org.eclipse.wst.xsl.sdk.documentation/doc/.cvsignore b/docs/org.eclipse.wst.xsl.sdk.documentation/doc/.cvsignore
deleted file mode 100644
index d68722e..0000000
--- a/docs/org.eclipse.wst.xsl.sdk.documentation/doc/.cvsignore
+++ /dev/null
@@ -1,299 +0,0 @@
-doccheck
-org.eclipse.wst.xsl.core.internal.parser.XSLSourceParser.xml
-org.eclipse.wst.xsl.internal.debug.ui.preferences.OutputPreferencePage.xml
-org.eclipse.wst.xml.xpath.ui.views.DOMViewerFilter.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.argument_return.xml
-org.eclipse.wst.xml.xpath.ui.internal.contentassist.XPathTemplateCompletionProcessor.xml
-org.eclipse.wst.xsl.core.internal.modelhandler.ModelHandlerForXSL.xml
-org.eclipse.wst.xsl.core.internal.XSLCorePlugin.xml
-org.eclipse.wst.xsl.ui.internal.XSLUIPlugin.xml
-org.eclipse.wst.xsl.internal.debug.ui.preferences.InstalledProcessorsBlock.xml
-org.eclipse.wst.xsl.internal.launching.XSLTSourceLookupParticipant.xml
-org.eclipse.wst.xsl.internal.launching.registry.DebuggerRegistry.xml
-org.eclipse.wst.xsl.core.internal.model.XSLAttribute.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.output.Messages.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.main.ParameterViewer.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.processor.InstallStandin.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.variable_reference_return.xml
-org.eclipse.wst.xsl.core.internal.modelhandler.XSLModelLoader.xml
-org.eclipse.wst.xsl.ui.internal.actions.NewWizardAction.xml
-org.eclipse.wst.xsl.internal.debug.ui.model.XSLModelPresentation.xml
-org.eclipse.wst.xsl.core.resolver.XSLVersionHandler.xml
-org.eclipse.wst.xsl.internal.launching.DebuggerDescriptor.xml
-org.eclipse.wst.xsl.internal.launching.XSLTSourceLookupDirector.xml
-org.eclipse.wst.xsl.core.internal.encoding.XSLDocumentLoader.xml
-org.eclipse.wst.xsl.core.internal.text.IXSLPartitions.xml
-org.eclipse.wst.xsl.internal.debug.ui.actions.AddParameterAction.xml
-org.eclipse.wst.xsl.internal.debug.ui.actions.RemoveAction.xml
-org.eclipse.wst.xsl.core.internal.util.StructuredDocumentUtil.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.formatter.Messages.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.formatter.FOFormatterTab.xml
-org.eclipse.wst.xsl.ui.internal.contentassist.XSLContentAssistProcessor.xml
-org.eclipse.wst.xsl.ui.internal.wizards.NewXSLFileWizardPage.xml
-org.eclipse.wst.xsl.ui.internal.wizards.NewXSLFileTemplatesWizardPage.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.relative_location_path_return.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.formatter.XSLFOComboBlock.xml
-org.eclipse.wst.xsl.ui.internal.style.LineStyleProviderForXSL.xml
-org.eclipse.wst.xsl.launching.IProcessorType.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.main.XSLMainTab.xml
-org.eclipse.wst.xml.xpath.ui.views.XPathNavigator.EditorReferenceLabelProvider.xml
-org.eclipse.wst.xsl.core.internal.parser.regions.XPathSeparatorRegion.xml
-org.eclipse.wst.xsl.core.internal.validation.XSLValidator.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.main.Messages.xml
-org.eclipse.wst.xsl.internal.launching.registry.InvokerRegistryReader.xml
-org.eclipse.wst.xsl.invoker.config.TypedValue.xml
-org.eclipse.wst.xsl.core.XSLCore.xml
-org.eclipse.wst.xsl.xalan.debugger.XalanRootStyleFrame.xml
-org.eclipse.wst.xsl.core.internal.validation.Messages.xml
-org.eclipse.wst.xml.xpath.ui.internal.preferences.XPathTemplatePreferencePage.xml
-org.eclipse.wst.xsl.ui.internal.editor.XSLHyperlinkDetector.xml
-org.eclipse.wst.xsl.launching.model.Messages.xml
-org.eclipse.wst.xsl.ui.internal.util.XSLPluginImages.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.path_expr_return.xml
-org.eclipse.wst.xsl.ui.internal.actions.NewXMLFileWizardDelegate.xml
-org.eclipse.wst.xml.xpath.ui.views.XPathNavigator.RefreshAction.xml
-org.eclipse.wst.xsl.invoker.Messages.xml
-org.eclipse.wst.xsl.internal.launching.OutputPropertyPreferences.xml
-org.eclipse.wst.xsl.ui.internal.preferences.AbstractXSLPreferencePage.xml
-org.eclipse.wst.xsl.invoker.config.Messages.xml
-org.eclipse.wst.xsl.core.internal.regions.XSLParserRegionFactory.xml
-org.eclipse.wst.xml.xpath.internal.ui.views.JFaceNodeLabelProviderXPath.xml
-org.eclipse.wst.xsl.ui.internal.preferences.XSLTemplatePreferencePage.xml
-org.eclipse.wst.xsl.launching.model.XSLDebugElement.xml
-org.eclipse.wst.xsl.internal.launching.XSLTLaunchConfigurationDelegate.xml
-org.eclipse.wst.xsl.internal.debug.ui.preferences.Messages.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.union_expr_return.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.expr_return.xml
-org.eclipse.wst.xsl.ui.internal.actions.NewXSDFileWizardDelegate.xml
-org.eclipse.wst.xsl.internal.launching.registry.ProcessorTypeRegistryReader.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.equality_expr_return.xml
-org.eclipse.wst.xsl.core.internal.ant.XIncludeTask.xml
-org.eclipse.wst.xsl.internal.debug.ui.model.XSLBreakpointAdapterFactory.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.processor.ProcessorDetailsDialog.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.filter_expr_return.xml
-org.eclipse.wst.xsl.ui.internal.XSLUIConstants.xml
-org.eclipse.wst.xsl.debug.internal.util.XSLDebugPluginImages.xml
-org.eclipse.wst.xml.xpath.ui.internal.contentassist.CustomTemplateProposal.xml
-org.eclipse.wst.xsl.internal.launching.registry.ProcessorRegistryReader.xml
-org.eclipse.wst.xsl.internal.debug.ui.XSLTTabGroup.xml
-org.eclipse.wst.xsl.internal.launching.registry.ProcessorRegistry.xml
-org.eclipse.wst.xsl.internal.debug.ui.actions.AddWorkspaceFileAction.xml
-org.eclipse.wst.xsl.internal.debug.ui.preferences.FeaturesBlock.xml
-org.eclipse.wst.xsl.core.internal.model.XSLElement.xml
-org.eclipse.wst.xsl.core.internal.model.StylesheetModel.xml
-org.eclipse.wst.xsl.core.internal.model.Import.xml
-org.eclipse.wst.xsl.ui.internal.preferences.MainPreferencePage.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.special_step_return.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.abbr_axis_specifier_return.xml
-org.eclipse.wst.xsl.invoker.TransformationException.xml
-org.eclipse.wst.xsl.internal.debug.ui.XSLLaunchShortcut.xml
-org.eclipse.wst.xsl.internal.debug.ui.preferences.AddProcessorDialog.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.XPathParserLexer.xml
-org.eclipse.wst.xml.xpath.internal.ui.views.XPathComputer.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.function_call_return.xml
-org.eclipse.wst.xml.xpath.ui.internal.XPathUIMessages.xml
-org.eclipse.wst.xsl.xalan.debugger.XalanPrintTraceListener.xml
-org.eclipse.wst.xsl.internal.launching.Utils.xml
-org.eclipse.wst.xsl.core.internal.model.Include.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.absolute_location_path_return.xml
-org.eclipse.wst.xsl.core.internal.validation.MaxErrorsExceededException.xml
-org.eclipse.wst.xml.xpath.internal.ui.views.XPathView.xml
-org.eclipse.wst.xml.xpath.ui.XPathUIMessages.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.output.OutputFileBlock.xml
-org.eclipse.wst.xsl.internal.launching.ProcessorInvokerDescriptor.xml
-org.eclipse.wst.xml.xpath.ui.internal.util.XPathPluginImageHelper.xml
-org.eclipse.wst.xsl.launching.model.XSLDebugTarget.xml
-org.eclipse.wst.xsl.invoker.IProcessorInvoker.xml
-org.eclipse.wst.xsl.core.internal.model.Variable.xml
-org.eclipse.wst.xsl.internal.debug.ui.AbstractTableBlock.xml
-org.eclipse.wst.xsl.core.internal.model.Stylesheet.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.processor.ProcessorMessages.xml
-org.eclipse.wst.xsl.invoker.config.PipelineDefinition.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.main.IParametersChangedListener.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.output.OutputTab.xml
-org.eclipse.wst.xsl.invoker.config.CreationException.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.processor.ProcessorDescriptor.xml
-org.eclipse.wst.xsl.internal.debug.ui.actions.MultipleInputDialog.FieldSummary.xml
-org.eclipse.wst.xsl.internal.launching.registry.DebuggerRegistryReader.xml
-org.eclipse.wst.xsl.internal.debug.ui.preferences.ProcessorsPreferencePage.xml
-org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIPlugin.xml
-org.eclipse.wst.xml.xpath.internal.ui.views.JFaceNodeContentProviderXPath.xml
-org.eclipse.wst.xsl.ui.internal.validation.DelegatingSourceValidatorForXSL.xml
-org.eclipse.wst.xsl.ui.internal.actions.NewWSDLFileWizardDelegate.xml
-org.eclipse.wst.xml.xpath.ui.internal.util.XPathPluginImages.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.literal_return.xml
-org.eclipse.wst.xsl.core.ValidationPreferences.xml
-org.eclipse.wst.xsl.xalan.debugger.XalanTraceListener.xml
-org.eclipse.wst.xsl.ui.internal.actions.NewXSLFileWizardDelegate.xml
-org.eclipse.wst.xsl.internal.debug.ui.actions.AbstractStylesheetAction.xml
-org.eclipse.wst.xml.xpath.ui.views.XPathNavigator.XPathAction.xml
-org.eclipse.wst.xsl.ui.internal.actions.NewDTDFileWizardDelegate.xml
-org.eclipse.wst.xsl.ui.internal.doubleclick.XSLDoubleClickStrategy.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.relational_expr_return.xml
-org.eclipse.wst.xsl.core.internal.validation.XSLValidationMessage.xml
-org.eclipse.wst.xml.xpath.ui.internal.preferences.XPathPrefencePage.xml
-org.eclipse.wst.xsl.core.internal.validation.eclipse.Validator2.xml
-org.eclipse.wst.xsl.launching.IProcessorInstall.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.main.MainTabMessages.xml
-org.eclipse.wst.xsl.core.internal.model.XSLNode.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.main.StylesheetLabelProvider.xml
-org.eclipse.wst.xsl.ui.internal.contentassist.Messages.xml
-org.eclipse.wst.xsl.launching.config.LaunchProperties.xml
-org.eclipse.wst.xsl.core.internal.util.Debug.xml
-org.eclipse.wst.xml.xpath.ui.views.EditNamespacePrefixDialog.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.processor.JarLabelProvider.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.main.ParametersContentProvider.xml
-jel.xml
-org.eclipse.wst.xml.xpath.core.XPathCorePlugin.xml
-org.eclipse.wst.xsl.internal.launching.PluginProcessorJar.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.primary_expr_return.xml
-org.eclipse.wst.xsl.internal.launching.XSLPropertyTester.xml
-org.eclipse.wst.xsl.internal.debug.ui.ResourceSelectionBlock.WidgetListener.xml
-org.eclipse.wst.xsl.xalan.debugger.XalanVariable.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.number_return.xml
-org.eclipse.wst.xsl.ui.internal.validation.XSLMarkupValidator.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.xml
-org.eclipse.wst.xsl.internal.debug.ui.breakpoint.Messages.xml
-org.eclipse.wst.xsl.ui.internal.validation.DelegatingSourceValidatorForXalanXSL.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.formatter.RendererTabMessages.xml
-org.eclipse.wst.xsl.internal.debug.ui.XSLConsoleLineTracker.xml
-org.eclipse.wst.xsl.launching.IProcessorInvoker.xml
-org.eclipse.wst.xml.xpath.ui.views.XPathNavigator.ShowInSourceAction.xml
-org.eclipse.wst.xsl.internal.debug.ui.XSLLaunchConfigurationTab.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.formatter.RendererConfigurationBlock.xml
-org.eclipse.wst.xsl.internal.launching.registry.Messages.xml
-org.eclipse.wst.xsl.debugger.StyleFrame.xml
-org.eclipse.wst.xml.xpath.ui.views.XPathNavigator.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.main.InputFileBlock.xml
-org.eclipse.wst.xsl.debugger.IXSLDebugger.xml
-org.eclipse.wst.xsl.launching.IFeature.xml
-org.eclipse.wst.xsl.internal.debug.ui.model.XSLLineBreakpointAdapter.xml
-org.eclipse.wst.xsl.ui.internal.preferences.Messages.xml
-org.eclipse.wst.xsl.internal.launching.ProcessorPreferences.xml
-org.eclipse.wst.xsl.internal.launching.PreferenceInitializer.xml
-org.eclipse.wst.xsl.debugger.DebugRunner.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.i_relative_location_path_return.xml
-org.eclipse.wst.xsl.launching.config.Messages.xml
-org.eclipse.wst.xsl.core.internal.util.FileUtil.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.processor.XSLProcessorTab.xml
-org.eclipse.wst.xml.xpath.core.internal.parser.XPathParser.xml
-org.eclipse.wst.xsl.internal.debug.ui.preferences.ProcessorLibraryBlock.xml
-org.eclipse.wst.xsl.core.internal.model.Parameter.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.resolver.URIResolverBlock2.xml
-org.eclipse.wst.xsl.core.internal.preferences.PreferenceInitializer.xml
-org.eclipse.wst.xsl.xalan.debugger.XalanStyleFrame.xml
-org.eclipse.wst.xsl.launching.model.XSLLineBreakpoint.xml
-org.eclipse.wst.xml.xpath.ui.internal.templates.TemplateContextTypeIdsXPath.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.resolver.Messages.xml
-org.eclipse.wst.xsl.internal.launching.registry.AbstractRegistryReader.xml
-org.eclipse.wst.xsl.internal.launching.LaunchingPlugin.xml
-org.eclipse.wst.xsl.ui.internal.templates.VersionTemplateVariableResolverXSL.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.xpath_return.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.processor.FeaturesBlock.xml
-org.eclipse.wst.xsl.invoker.ConfigurationException.xml
-org.eclipse.wst.xsl.internal.debug.ui.actions.RemoveParameterAction.xml
-org.eclipse.wst.xsl.internal.debug.ui.actions.MultipleInputDialog.xml
-org.eclipse.wst.xsl.launching.Messages.xml
-org.eclipse.wst.xsl.ui.internal.wizards.NewXSLFileWizard.xml
-org.eclipse.wst.xsl.launching.model.IXSLDebugTarget.xml
-org.eclipse.wst.xsl.core.internal.Messages.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.main.TransformsBlock.xml
-org.eclipse.wst.xsl.invoker.JAXPSAXProcessorInvoker.xml
-org.eclipse.wst.xsl.internal.launching.OutputProperty.xml
-org.eclipse.wst.xsl.core.internal.regions.XPathRegionContext.xml
-org.eclipse.wst.xsl.internal.debug.ui.actions.ControlAccessibleListener.xml
-org.eclipse.wst.xsl.ui.internal.util.XSLPluginImageHelper.xml
-org.eclipse.wst.xsl.launching.XSLLaunchConfigurationConstants.xml
-org.eclipse.wst.xsl.internal.launching.Messages.xml
-org.eclipse.wst.xsl.internal.debug.ui.preferences.OutputBlock.xml
-org.eclipse.wst.xsl.launching.config.LaunchTransform.xml
-org.eclipse.wst.xsl.debugger.DebugConstants.xml
-org.eclipse.wst.xsl.core.internal.validation.eclipse.Validator.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.abbr_step_return.xml
-org.eclipse.wst.xsl.launching.config.LaunchAttribute.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.location_path_return.xml
-org.eclipse.wst.xml.xpath.ui.views.XPathNavigator.XMLEditorsContentProvider.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.main.StylesheetViewer.xml
-org.eclipse.wst.xsl.debugger.Variable.xml
-org.eclipse.wst.xml.xpath.core.util.XSLTXPathHelper.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.resolver.WorkingDirectoryBlock.xml
-org.eclipse.wst.xsl.core.internal.model.CallTemplate.xml
-org.eclipse.wst.xsl.core.resolver.ResolverExtension.xml
-org.eclipse.wst.xsl.ui.internal.StructuredTextViewerConfigurationXSL.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.main.ParametersBlock.xml
-org.eclipse.wst.xml.xpath.ui.XPathViewPlugin.xml
-org.eclipse.wst.xsl.internal.launching.PreferenceUtil.xml
-org.eclipse.wst.xsl.launching.model.IXSLConstants.xml
-org.eclipse.wst.xsl.launching.IDebugger.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.main.ParametersLabelProvider.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.mult_expr_return.xml
-org.eclipse.wst.xsl.internal.launching.FeaturePreferences.xml
-org.eclipse.wst.xsl.launching.IOutputProperty.xml
-org.eclipse.wst.xsl.launching.model.XSLThread.xml
-org.eclipse.wst.xsl.xalan.debugger.XalanDebugger.xml
-org.eclipse.wst.xsl.core.internal.validation.XSLValidationReport.xml
-org.eclipse.wst.xsl.launching.config.LaunchFeatures.xml
-org.eclipse.wst.xsl.internal.debug.ui.preferences.FeaturesPreferencePage.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.main.IStylesheetEntriesChangedListener.xml
-org.eclipse.wst.xml.xpath.ui.views.DOMNodeLabelProvider.xml
-org.eclipse.wst.xsl.internal.launching.ProcessorType.xml
-org.eclipse.wst.xsl.ui.internal.validation.XSLErrorListener.xml
-org.eclipse.wst.xsl.core.internal.ant.Messages.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.resolver.URIResolverBlock.xml
-org.eclipse.wst.xsl.internal.debug.ui.actions.AbstractParameterAction.xml
-org.eclipse.wst.xsl.launching.config.LaunchHelper.xml
-org.eclipse.wst.xsl.ui.internal.editor.SourceFileHyperlink.xml
-org.eclipse.wst.xsl.launching.model.XSLVariable.xml
-org.eclipse.wst.xsl.launching.model.XSLValue.xml
-org.eclipse.wst.xsl.launching.model.XSLStackFrame.xml
-org.eclipse.wst.xsl.core.internal.model.Template.xml
-org.eclipse.wst.xsl.internal.debug.ui.preferences.BasePreferencePage.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.predicate_expr_return.xml
-org.eclipse.wst.xsl.internal.launching.registry.ProcessorTypeRegistry.xml
-org.eclipse.wst.xsl.core.internal.xinclude.XIncluder.xml
-org.eclipse.wst.xml.xpath.ui.views.DOMTreeContentProvider.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.output.OutputPropertiesBlock.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.unary_expr_return.xml
-org.eclipse.wst.xsl.internal.launching.registry.InvokerRegistry.xml
-org.eclipse.wst.xsl.internal.debug.ui.actions.MoveUpAction.xml
-org.eclipse.wst.xsl.invoker.config.TransformDefinition.xml
-org.eclipse.wst.xsl.ui.internal.templates.TemplateContextTypeXSL.xml
-org.eclipse.wst.xsl.internal.debug.ui.actions.OpenDialogAction.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.additive_expr_return.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.step_return.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.arg_list_return.xml
-org.eclipse.wst.xsl.debug.internal.util.XSLPluginImageHelper.xml
-org.eclipse.wst.xsl.internal.debug.ui.Messages.xml
-org.eclipse.wst.xsl.ui.internal.perspective.XMLPerspectiveFactory.xml
-org.eclipse.wst.xsl.ui.internal.handlers.OpenDeclarationHandler.xml
-org.eclipse.wst.xsl.launching.config.LaunchPipeline.xml
-org.eclipse.wst.xsl.internal.debug.ui.actions.AddExternalFileAction.xml
-org.eclipse.wst.xsl.internal.launching.ProcessorJar.xml
-org.eclipse.wst.xsl.launching.XSLTRuntime.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.main.StylesheetContentProvider.xml
-org.eclipse.wst.xsl.core.internal.text.rules.StructuredTextPartitionerForXSL.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathLexer.xml
-org.eclipse.wst.xsl.core.internal.model.StylesheetBuilder.xml
-org.eclipse.wst.xsl.internal.debug.ui.ResourceSelectionBlock.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.processor.JarContentProvider.xml
-org.eclipse.wst.xsl.debugger.AbstractDebugger.xml
-org.eclipse.wst.xsl.internal.debug.ui.actions.ActionMessages.xml
-org.eclipse.wst.xsl.internal.launching.XSLTSourcePathComputerDelegate.xml
-org.eclipse.wst.xsl.internal.debug.ui.breakpoint.XSLBreakpointProvider.xml
-org.eclipse.wst.xsl.internal.debug.ui.actions.MoveDownAction.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.processor.ProcessorBlock.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.processor.Messages.xml
-org.eclipse.wst.xml.xpath.internal.ui.views.Messages.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.predicate_return.xml
-org.eclipse.wst.xml.xpath.internal.ui.views.XPathViewActions.xml
-org.eclipse.wst.xsl.ui.internal.preferences.ValidationPreferencePage.xml
-org.eclipse.wst.xsl.launching.IProcessorJar.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.or_expr_return.xml
-org.eclipse.wst.xsl.internal.debug.ui.actions.MultipleInputDialog.Validator.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.axis_return.xml
-org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIConstants.xml
-org.eclipse.wst.xsl.internal.launching.Feature.xml
-org.eclipse.wst.xsl.debugger.BreakPoint.xml
-org.eclipse.wst.xsl.launching.ProcessorInstall.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.and_expr_return.xml
-org.eclipse.wst.xsl.invoker.Main.xml
diff --git a/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/.cvsignore b/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/.cvsignore
deleted file mode 100644
index 175a2a6..0000000
--- a/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/.cvsignore
+++ /dev/null
@@ -1 +0,0 @@
-deleteme.html
diff --git a/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/extension_point/org_eclipse_wst_xsl_jaxp_launching_debugger.html b/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/extension_point/org_eclipse_wst_xsl_jaxp_launching_debugger.html
deleted file mode 100644
index c596d3e..0000000
--- a/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/extension_point/org_eclipse_wst_xsl_jaxp_launching_debugger.html
+++ /dev/null
@@ -1,61 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<HTML>
-<HEAD><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
-<title>XSLT Debugger</title>
-<style type="text/css">@import url("../../book.css");</style>
-<style type="text/css">@import url("../../schema.css");</style>
-</HEAD>
-<BODY>
-<H1 style="text-align:center">XSLT Debugger</H1>
-<p></p>
-<h6 class="CaptionFigColumn SchemaHeader">Identifier: </h6>org.eclipse.wst.xsl.launching.jaxp.debugger<p></p>
-<h6 class="CaptionFigColumn SchemaHeader">Description: </h6>Contribute a debugger for a particular JAXP processor type (e.g. Saxon). The extension point primarily defines the classpath and transformer factory to be used when debugging.<p></p>
-<h6 class="CaptionFigColumn SchemaHeader">Configuration Markup:</h6>
-<p></p>
-<p class="code SchemaDtd">&lt;!ELEMENT <a name="e.extension">extension</a> (<a href="#e.debugger">debugger</a>+)&gt;</p>
-<p class="code SchemaDtd">&lt;!ATTLIST extension</p>
-<p class="code SchemaDtdAttlist">point&nbsp;CDATA #REQUIRED</p><p class="code SchemaDtdAttlist">id&nbsp;&nbsp;&nbsp;&nbsp;CDATA #IMPLIED</p><p class="code SchemaDtdAttlist">name&nbsp;&nbsp;CDATA #IMPLIED</p>&gt;</p>
-<p></p>
-<ul class="ConfigMarkupAttlistDesc">
-</ul>
-<br><p class="code SchemaDtd">&lt;!ELEMENT <a name="e.debugger">debugger</a> EMPTY&gt;</p>
-<p class="code SchemaDtd">&lt;!ATTLIST debugger</p>
-<p class="code SchemaDtdAttlist">id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #REQUIRED</p><p class="code SchemaDtdAttlist">name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #REQUIRED</p><p class="code SchemaDtdAttlist">classpath&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #REQUIRED</p><p class="code SchemaDtdAttlist">processorTypeId&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #REQUIRED</p><p class="code SchemaDtdAttlist">className&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #REQUIRED</p><p class="code SchemaDtdAttlist">transformerFactoryClass&nbsp;CDATA #REQUIRED</p>&gt;</p>
-<p></p>
-<p class="ConfigMarkupElementDesc">
-A debugger for a processor type</p>
-<br>
-<ul class="ConfigMarkupAttlistDesc">
-<li><b>id</b> - A unique id for this debugger</li>
-<li><b>name</b> - A name to be displayed in the UI</li>
-<li><b>classpath</b> - A ';'-separated classpath required to run the debugger (in addition to that already added by the processor itself).</li>
-<li><b>processorTypeId</b> - The processor type that this debugger works with</li>
-<li><b>className</b> - A fully-qualified class that implement the IXSLDebugger interface. It is easier to extend AbstractXSLDebugger.</li>
-<li><b>transformerFactoryClass</b> - The fully-qualified class name of the transformer factory to use for debugging. This must be one of the transformer factories belonging to the processor type.</li>
-</ul>
-<br><h6 class="CaptionFigColumn SchemaHeader">Examples: </h6><pre class="Example"><span class="code SchemaTag">
- &lt;extension
- point=</span><span class="code SchemaCstring">&quot;org.eclipse.wst.xsl.jaxp.launching.debugger&quot;</span><span class="code SchemaTag">&gt;
- &lt;debugger
- className=</span><span class="code SchemaCstring">&quot;org.eclipse.wst.xsl.xalan.debugger.XalanDebugger&quot;</span><span class="code SchemaTag">
- classpath=</span><span class="code SchemaCstring">&quot;${eclipse_orbit:org.eclipse.wst.xsl.xalan}&quot;</span><span class="code SchemaTag">
- id=</span><span class="code SchemaCstring">&quot;org.eclipse.wst.xsl.xalan.debugger&quot;</span><span class="code SchemaTag">
- name=</span><span class="code SchemaCstring">&quot;Xalan 2.5.1 or greater&quot;</span><span class="code SchemaTag">
- processorTypeId=</span><span class="code SchemaCstring">&quot;org.eclipse.wst.xsl.xalan.processorType&quot;</span><span class="code SchemaTag">
- transformerFactoryClass=</span><span class="code SchemaCstring">&quot;org.apache.xalan.processor.TransformerFactoryImpl&quot;</span><span class="code SchemaTag">&gt;
- &lt;/debugger&gt;
- &lt;/extension&gt;
-</span></pre>
-<p></p>
-
-<br>
-<p class="note SchemaCopyright">
-Copyright (c) 2007 Chase Technology Ltd - <a href="http://www.chasetechnology.co.uk">http://www.chasetechnology.co.uk</a>.<br>
-All rights reserved. This program and the accompanying materials are made
-available under the terms of the Eclipse Public License v1.0 which accompanies
-this distribution, and is available at <a
-href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>
-
-</p>
-</BODY>
-</HTML>
diff --git a/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/extension_point/org_eclipse_wst_xsl_jaxp_launching_invoke.html b/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/extension_point/org_eclipse_wst_xsl_jaxp_launching_invoke.html
deleted file mode 100644
index c19c443..0000000
--- a/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/extension_point/org_eclipse_wst_xsl_jaxp_launching_invoke.html
+++ /dev/null
@@ -1,41 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<HTML>
-<HEAD><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
-<title>XSLT Processor Invoker</title>
-<style type="text/css">@import url("../../book.css");</style>
-<style type="text/css">@import url("../../schema.css");</style>
-</HEAD>
-<BODY>
-<H1 style="text-align:center">XSLT Processor Invoker</H1>
-<div style="border: 1px solid #990000; padding: 5px; text-align: center; color: red;">This extension point is internal</div>
-<p></p>
-<h6 class="CaptionFigColumn SchemaHeader">Identifier: </h6>org.eclipse.wst.xsl.launching.jaxp.invoke<p></p>
-<h6 class="CaptionFigColumn SchemaHeader">Description: </h6><b>This extension point is internal and should not be used by any other plugins.</b><p></p>
-<h6 class="CaptionFigColumn SchemaHeader">Configuration Markup:</h6>
-<p></p>
-<p class="code SchemaDtd">&lt;!ELEMENT <a name="e.extension">extension</a> (<a href="#e.invoker">invoker</a>)&gt;</p>
-<p class="code SchemaDtd">&lt;!ATTLIST extension</p>
-<p class="code SchemaDtdAttlist">point&nbsp;CDATA #REQUIRED</p><p class="code SchemaDtdAttlist">id&nbsp;&nbsp;&nbsp;&nbsp;CDATA #IMPLIED</p><p class="code SchemaDtdAttlist">name&nbsp;&nbsp;CDATA #IMPLIED</p>&gt;</p>
-<p></p>
-<ul class="ConfigMarkupAttlistDesc">
-</ul>
-<br><p class="code SchemaDtd">&lt;!ELEMENT <a name="e.invoker">invoker</a> EMPTY&gt;</p>
-<p class="code SchemaDtd">&lt;!ATTLIST invoker</p>
-<p class="code SchemaDtdAttlist">id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #REQUIRED</p><p class="code SchemaDtdAttlist">class&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #REQUIRED</p><p class="code SchemaDtdAttlist">classpath&nbsp;CDATA #REQUIRED</p>&gt;</p>
-<p></p>
-<ul class="ConfigMarkupAttlistDesc">
-<li><b>id</b> - Unique id for this invoker</li>
-<li><b>class</b> - A class that implements the IProcessorInvoker interface</li>
-<li><b>classpath</b> - A semi-colon separated list of jars relative to the root of the contributing plugin. One of the jars must contain the Invoker class named in the class attribute.</li>
-</ul>
-<br><br>
-<p class="note SchemaCopyright">
-Copyright (c) 2007 Chase Technology Ltd - <a href="http://www.chasetechnology.co.uk">http://www.chasetechnology.co.uk</a>.<br>
-All rights reserved. This program and the accompanying materials are made
-available under the terms of the Eclipse Public License v1.0 which accompanies
-this distribution, and is available at <a
-href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>
-
-</p>
-</BODY>
-</HTML>
diff --git a/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/extension_point/org_eclipse_wst_xsl_jaxp_launching_processor.html b/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/extension_point/org_eclipse_wst_xsl_jaxp_launching_processor.html
deleted file mode 100644
index 79a2cae..0000000
--- a/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/extension_point/org_eclipse_wst_xsl_jaxp_launching_processor.html
+++ /dev/null
@@ -1,63 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<HTML>
-<HEAD><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
-<title>XSLT Processor</title>
-<style type="text/css">@import url("../../book.css");</style>
-<style type="text/css">@import url("../../schema.css");</style>
-</HEAD>
-<BODY>
-<H1 style="text-align:center">XSLT Processor</H1>
-<p></p>
-<h6 class="CaptionFigColumn SchemaHeader">Identifier: </h6>org.eclipse.wst.xsl.launching.jaxp.processor<p></p>
-<h6 class="CaptionFigColumn SchemaHeader">Description: </h6>Contribute a Java XSLT processor instance (e.g. Xalan 2.7.0). The extension point primarily defines the classpath to be used when launching an XSLT transformation.<p></p>
-<h6 class="CaptionFigColumn SchemaHeader">Configuration Markup:</h6>
-<p></p>
-<p class="code SchemaDtd">&lt;!ELEMENT <a name="e.extension">extension</a> (<a href="#e.processor">processor</a>+)&gt;</p>
-<p class="code SchemaDtd">&lt;!ATTLIST extension</p>
-<p class="code SchemaDtdAttlist">point&nbsp;CDATA #REQUIRED</p><p class="code SchemaDtdAttlist">id&nbsp;&nbsp;&nbsp;&nbsp;CDATA #IMPLIED</p><p class="code SchemaDtdAttlist">name&nbsp;&nbsp;CDATA #IMPLIED</p>&gt;</p>
-<p></p>
-<ul class="ConfigMarkupAttlistDesc">
-</ul>
-<br><p class="code SchemaDtd">&lt;!ELEMENT <a name="e.processor">processor</a> EMPTY&gt;</p>
-<p class="code SchemaDtd">&lt;!ATTLIST processor</p>
-<p class="code SchemaDtdAttlist">id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #REQUIRED</p><p class="code SchemaDtdAttlist">label&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #REQUIRED</p><p class="code SchemaDtdAttlist">processorTypeId&nbsp;CDATA #REQUIRED</p><p class="code SchemaDtdAttlist">classpath&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #REQUIRED</p><p class="code SchemaDtdAttlist">debuggerId&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #IMPLIED</p><p class="code SchemaDtdAttlist">supports&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #REQUIRED</p>&gt;</p>
-<p></p>
-<p class="ConfigMarkupElementDesc">
-An instance of a JAXP-compliant XSLT processor</p>
-<br>
-<ul class="ConfigMarkupAttlistDesc">
-<li><b>id</b> - A unique id for this processor instance</li>
-<li><b>label</b> - A label for this instance to be displayed in the UI</li>
-<li><b>processorTypeId</b> - The id for the processor type</li>
-<li><b>classpath</b> - The classpath to use when this processor is launched</li>
-<li><b>debuggerId</b> - The id of a debugger to associate with the processor</li>
-<li><b>supports</b> - A comma-separated list of supported XSLT versions e.g. 1.0,2.0</li>
-</ul>
-<br><h6 class="CaptionFigColumn SchemaHeader">Examples: </h6><pre class="Example"><span class="code SchemaTag">
- &lt;extension
- point=</span><span class="code SchemaCstring">&quot;org.eclipse.wst.xsl.jaxp.launching.processor&quot;</span><span class="code SchemaTag">&gt;
- &lt;!-- An adopter can specify the ${eclipse_orbit: } variable to indicate which eclipse
- bundle should be added to the class path. --&gt;
- &lt;processor
- classpath=</span><span class="code SchemaCstring">&quot;${eclipse_orbit:org.apache.xalan};${eclipse_orbit:org.apache.xml.serializer};${eclipse_orbit:org.apache.bcel};${eclipse_orbit:java_cup.runtime}&quot;</span><span class="code SchemaTag">
- id=</span><span class="code SchemaCstring">&quot;org.eclipse.wst.xsl.launching.xalan.processor&quot;</span><span class="code SchemaTag">
- label=</span><span class="code SchemaCstring">&quot;%processor.label.1&quot;</span><span class="code SchemaTag">
- processorTypeId=</span><span class="code SchemaCstring">&quot;org.eclipse.wst.xsl.xalan.processorType&quot;</span><span class="code SchemaTag">
- debuggerId=</span><span class="code SchemaCstring">&quot;org.eclipse.wst.xsl.xalan.debugger&quot;</span><span class="code SchemaTag">
- supports=</span><span class="code SchemaCstring">&quot;1.0&quot;</span><span class="code SchemaTag">&gt;
- &lt;/processor&gt;
- &lt;/extension&gt;
-</span></pre>
-<p></p>
-
-<br>
-<p class="note SchemaCopyright">
-Copyright (c) 2007 Chase Technology Ltd - <a href="http://www.chasetechnology.co.uk">http://www.chasetechnology.co.uk</a>.<br>
-All rights reserved. This program and the accompanying materials are made
-available under the terms of the Eclipse Public License v1.0 which accompanies
-this distribution, and is available at <a
-href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>
-
-</p>
-</BODY>
-</HTML>
diff --git a/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/extension_point/org_eclipse_wst_xsl_jaxp_launching_processorType.html b/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/extension_point/org_eclipse_wst_xsl_jaxp_launching_processorType.html
deleted file mode 100644
index d7fb5f1..0000000
--- a/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/extension_point/org_eclipse_wst_xsl_jaxp_launching_processorType.html
+++ /dev/null
@@ -1,73 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<HTML>
-<HEAD><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
-<title>XSLT Processor Type</title>
-<style type="text/css">@import url("../../book.css");</style>
-<style type="text/css">@import url("../../schema.css");</style>
-</HEAD>
-<BODY>
-<H1 style="text-align:center">XSLT Processor Type</H1>
-<p></p>
-<h6 class="CaptionFigColumn SchemaHeader">Identifier: </h6>org.eclipse.wst.xsl.launching.jaxp.processorType<p></p>
-<h6 class="CaptionFigColumn SchemaHeader">Description: </h6>Contribute a Java XSLT processor type (e.g. Xalan, Saxon). The processor type defines which JAXP attributes and output properies are supported, and also the transformer factory classes it contains.<p></p>
-<h6 class="CaptionFigColumn SchemaHeader">Configuration Markup:</h6>
-<p></p>
-<p class="code SchemaDtd">&lt;!ELEMENT <a name="e.extension">extension</a> (<a href="#e.processorType">processorType</a>+)&gt;</p>
-<p class="code SchemaDtd">&lt;!ATTLIST extension</p>
-<p class="code SchemaDtdAttlist">point&nbsp;CDATA #REQUIRED</p><p class="code SchemaDtdAttlist">id&nbsp;&nbsp;&nbsp;&nbsp;CDATA #IMPLIED</p><p class="code SchemaDtdAttlist">name&nbsp;&nbsp;CDATA #IMPLIED</p>&gt;</p>
-<p></p>
-<ul class="ConfigMarkupAttlistDesc">
-</ul>
-<br><p class="code SchemaDtd">&lt;!ELEMENT <a name="e.processorType">processorType</a> (<a href="#e.transformerFactory">transformerFactory</a>*)&gt;</p>
-<p class="code SchemaDtd">&lt;!ATTLIST processorType</p>
-<p class="code SchemaDtdAttlist">id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #REQUIRED</p><p class="code SchemaDtdAttlist">label&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #REQUIRED</p><p class="code SchemaDtdAttlist">outputProperties&nbsp;&nbsp;&nbsp;&nbsp;CDATA #IMPLIED</p><p class="code SchemaDtdAttlist">attributeProperties&nbsp;CDATA #IMPLIED</p>&gt;</p>
-<p></p>
-<ul class="ConfigMarkupAttlistDesc">
-<li><b>id</b> - Unique id for the processor type</li>
-<li><b>label</b> - Name for display in the UI</li>
-<li><b>outputProperties</b> - Location of a properties file containing the list of the processors output properties. Must be a path relative to the root of the bundle.</li>
-<li><b>attributeProperties</b> - Location of a properties file containing the list of the attributes supported by this processor. Must be a path relative to the root of the bundle.</li>
-</ul>
-<br><p class="code SchemaDtd">&lt;!ELEMENT <a name="e.transformerFactory">transformerFactory</a> EMPTY&gt;</p>
-<p class="code SchemaDtd">&lt;!ATTLIST transformerFactory</p>
-<p class="code SchemaDtdAttlist">factoryClass&nbsp;CDATA #REQUIRED</p><p class="code SchemaDtdAttlist">name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #REQUIRED</p>&gt;</p>
-<p></p>
-<p class="ConfigMarkupElementDesc">
-A TransformerFactory for this type</p>
-<br>
-<ul class="ConfigMarkupAttlistDesc">
-<li><b>factoryClass</b> - The fully-qualified transformer factory class</li>
-<li><b>name</b> - A name for this transformer factory to be displayed in the UI</li>
-</ul>
-<br><h6 class="CaptionFigColumn SchemaHeader">Examples: </h6><pre class="Example"><span class="code SchemaTag">
- &lt;extension
- point=</span><span class="code SchemaCstring">&quot;org.eclipse.wst.xsl.jaxp.launching.processorType&quot;</span><span class="code SchemaTag">&gt;
- &lt;processorType
- attributeProperties=</span><span class="code SchemaCstring">&quot;XalanAttributes.properties&quot;</span><span class="code SchemaTag">
- id=</span><span class="code SchemaCstring">&quot;org.eclipse.wst.xsl.xalan.processorType&quot;</span><span class="code SchemaTag">
- label=</span><span class="code SchemaCstring">&quot;%processorType.label.0&quot;</span><span class="code SchemaTag">
- outputProperties=</span><span class="code SchemaCstring">&quot;XalanOutputProperties.properties&quot;</span><span class="code SchemaTag">&gt;
- &lt;transformerFactory
- factoryClass=</span><span class="code SchemaCstring">&quot;org.apache.xalan.processor.TransformerFactoryImpl&quot;</span><span class="code SchemaTag">
- name=</span><span class="code SchemaCstring">&quot;Interpretive&quot;</span><span class="code SchemaTag">&gt;
- &lt;/transformerFactory&gt;
- &lt;transformerFactory
- factoryClass=</span><span class="code SchemaCstring">&quot;org.apache.xalan.xsltc.trax.TransformerFactoryImpl&quot;</span><span class="code SchemaTag">
- name=</span><span class="code SchemaCstring">&quot;Compiling&quot;</span><span class="code SchemaTag">&gt;
- &lt;/transformerFactory&gt;
- &lt;/processorType&gt;
- &lt;/extension&gt;
-</span></pre>
-<p></p>
-
-<br>
-<p class="note SchemaCopyright">
-Copyright (c) 2007 Chase Technology Ltd - <a href="http://www.chasetechnology.co.uk">http://www.chasetechnology.co.uk</a>.<br>
-All rights reserved. This program and the accompanying materials are made
-available under the terms of the Eclipse Public License v1.0 which accompanies
-this distribution, and is available at <a
-href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>
-
-</p>
-</BODY>
-</HTML>
diff --git a/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/extension_point/org_eclipse_wst_xsl_ui_contentAssistProcessor.html b/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/extension_point/org_eclipse_wst_xsl_ui_contentAssistProcessor.html
deleted file mode 100644
index 12d6dcb..0000000
--- a/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/extension_point/org_eclipse_wst_xsl_ui_contentAssistProcessor.html
+++ /dev/null
@@ -1,59 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<HTML>
-<HEAD><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
-<title>XSL Content Assistance</title>
-<style type="text/css">@import url("../../book.css");</style>
-<style type="text/css">@import url("../../schema.css");</style>
-</HEAD>
-<BODY>
-<H1 style="text-align:center">XSL Content Assistance</H1>
-<p></p>
-<h6 class="CaptionFigColumn SchemaHeader">Identifier: </h6>org.eclipse.wst.xsl.ui.contentAssistProcessor<p></p>
-<h6 class="CaptionFigColumn SchemaHeader">Since: </h6>1.1
-<p></p>
-
-<h6 class="CaptionFigColumn SchemaHeader">Description: </h6>XSL Content Asisstance processor extension point, allows for the contribution of adopter defined XSL processor extensions.<p></p>
-<h6 class="CaptionFigColumn SchemaHeader">Configuration Markup:</h6>
-<p></p>
-<p class="code SchemaDtd">&lt;!ELEMENT <a name="e.extension">extension</a> (<a href="#e.processor">processor</a>+)&gt;</p>
-<p class="code SchemaDtd">&lt;!ATTLIST extension</p>
-<p class="code SchemaDtdAttlist">point&nbsp;CDATA #REQUIRED</p><p class="code SchemaDtdAttlist">id&nbsp;&nbsp;&nbsp;&nbsp;CDATA #IMPLIED</p><p class="code SchemaDtdAttlist">name&nbsp;&nbsp;CDATA #IMPLIED</p>&gt;</p>
-<p></p>
-<ul class="ConfigMarkupAttlistDesc">
-<li><b>point</b> - A unique ID for this extension point</li>
-<li><b>name</b> - Extension point name</li>
-</ul>
-<br><p class="code SchemaDtd">&lt;!ELEMENT <a name="e.processor">processor</a> EMPTY&gt;</p>
-<p class="code SchemaDtd">&lt;!ATTLIST processor</p>
-<p class="code SchemaDtdAttlist">class&nbsp;CDATA #REQUIRED</p>&gt;</p>
-<p></p>
-<p class="ConfigMarkupElementDesc">
-Processor that provides content assistance</p>
-<br>
-<ul class="ConfigMarkupAttlistDesc">
-<li><b>class</b> - The class that implements the content assistant processor.</li>
-</ul>
-<br><h6 class="CaptionFigColumn SchemaHeader">Examples: </h6><p>&lt;extension
- point="org.eclipse.wst.xsl.ui.contentAssistProcessor"></p>
-<p>&#160;&#160;&#160;&lt;processor
- class="org.eclipse.wst.xml.ui.internal.contentassist.XMLContentAssistProcessor"></p>
-<p>&#160;&#160;&#160;&lt;/processor></p>
-<p>&lt;/extension></p>
-<p></p>
-
-<br>
-<p class="note SchemaCopyright">
-*******************************************************************************
- * Copyright (c) 2009 Standards for Technology in Automotive Retail and others
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * David Carver (STAR) - initial API and implementation
- ******************************************************************************
-
-</p>
-</BODY>
-</HTML>
diff --git a/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.core.XPathCorePlugin.html b/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.core.XPathCorePlugin.html
deleted file mode 100644
index 48c3218..0000000
--- a/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.core.XPathCorePlugin.html
+++ /dev/null
@@ -1,17 +0,0 @@
-<html><body><p><font size="+1"><strong>Package org.eclipse.wst.xml.xpath.core</strong></font></p><hr><h2><font size="-1"><strong>org.eclipse.wst.xml.xpath.core</strong></font><br>
- Class XPathCorePlugin</h2><br><hr><pre>public class <strong>XPathCorePlugin</strong>
-extends Plugin</pre>The activator class controls the plug-in life cycle<hr><table width="100%" border="1"><tr cols="2" bgcolor="#CCCCFF"><td colspan="2" width="100%"><h2>Field Summary</h2></td></tr><tr valign="top"><td width="20%" align="right"><code>public static java.lang.String</code></td><td width="80%" align="left"><code><a href="#field_PLUGIN_ID">PLUGIN_ID</a></code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr></table><br><table width="100%" border="1"><tr bgcolor="#CCCCFF"><td width="100%"><h2>Constructor Summary</h2></td></tr><tr><td><code><strong><a href="#con_XPathCorePlugin">XPathCorePlugin</a></strong>()</code></td></tr></table><br><table width="100%" border="1"><tr cols="2" bgcolor="#CCCCFF"><td colspan="2" width="100%"><h2>Method Summary</h2></td></tr><tr valign="top"><td width="20%" align="right"><code>public static org.eclipse.wst.xml.xpath.core.XPathCorePlugin</code></td><td width="" align="left"><code><a href="#method_getDefault">getDefault</a>()</code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- Returns the shared instance</td></tr><tr valign="top"><td width="20%" align="right"><code>public void</code></td><td width="" align="left"><code><a href="#method_start">start</a>(org.osgi.framework.BundleContext context)</code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr><tr valign="top"><td width="20%" align="right"><code>public void</code></td><td width="" align="left"><code><a href="#method_stop">stop</a>(org.osgi.framework.BundleContext context)</code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr></table><hr><table cols="2" width="100%" border="1"><tr colspan="2" width="100%" bgcolor="#CCCCFF" align="left"><td><h2>
- Field Detail
- </h2></td></tr></table><h2><a name="field_PLUGIN_ID">PLUGIN_ID</a></h2