Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.jet-feature/.project17
-rw-r--r--plugins/org.eclipse.jet-feature/build.properties7
-rw-r--r--plugins/org.eclipse.jet-feature/eclipse_update_120.jpgbin14641 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jet-feature/epl-v10.html328
-rw-r--r--plugins/org.eclipse.jet-feature/feature.properties164
-rw-r--r--plugins/org.eclipse.jet-feature/feature.xml72
-rw-r--r--plugins/org.eclipse.jet-feature/license.html73
-rw-r--r--plugins/org.eclipse.jet-feature/rootfiles/epl-v10.html304
-rw-r--r--plugins/org.eclipse.jet-feature/rootfiles/notice.html86
-rw-r--r--plugins/org.eclipse.jet-feature/sourceTemplateFeature/build.properties17
-rw-r--r--plugins/org.eclipse.jet-feature/sourceTemplateFeature/eclipse_update_120.jpgbin14641 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jet-feature/sourceTemplateFeature/epl-v10.html328
-rw-r--r--plugins/org.eclipse.jet-feature/sourceTemplateFeature/feature.properties144
-rw-r--r--plugins/org.eclipse.jet-feature/sourceTemplateFeature/license.html73
-rw-r--r--plugins/org.eclipse.jet-feature/sourceTemplateFeature/rootfiles/epl-v10.html304
-rw-r--r--plugins/org.eclipse.jet-feature/sourceTemplateFeature/rootfiles/notice.html86
-rw-r--r--plugins/org.eclipse.jet-feature/sourceTemplatePlugin/ModelingFeature.pngbin2414 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jet-feature/sourceTemplatePlugin/about.html29
-rw-r--r--plugins/org.eclipse.jet-feature/sourceTemplatePlugin/about.ini28
-rw-r--r--plugins/org.eclipse.jet-feature/sourceTemplatePlugin/about.mappings6
-rw-r--r--plugins/org.eclipse.jet-feature/sourceTemplatePlugin/about.properties23
-rw-r--r--plugins/org.eclipse.jet-feature/sourceTemplatePlugin/build.properties33
-rw-r--r--plugins/org.eclipse.jet-feature/sourceTemplatePlugin/plugin.properties12
-rwxr-xr-xplugins/org.eclipse.jet.all-feature/.project17
-rwxr-xr-xplugins/org.eclipse.jet.all-feature/build.properties6
-rwxr-xr-xplugins/org.eclipse.jet.all-feature/epl-v10.html304
-rwxr-xr-xplugins/org.eclipse.jet.all-feature/feature.properties142
-rwxr-xr-xplugins/org.eclipse.jet.all-feature/feature.xml44
-rwxr-xr-xplugins/org.eclipse.jet.all-feature/license.html79
-rwxr-xr-xplugins/org.eclipse.jet.all-feature/rootfiles/epl-v10.html304
-rwxr-xr-xplugins/org.eclipse.jet.all-feature/rootfiles/notice.html86
-rw-r--r--plugins/org.eclipse.jet.capabilities-feature/.project17
-rw-r--r--plugins/org.eclipse.jet.capabilities-feature/build.properties13
-rw-r--r--plugins/org.eclipse.jet.capabilities-feature/eclipse.gifbin1058 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jet.capabilities-feature/eclipse_update_120.jpgbin21695 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jet.capabilities-feature/epl-v10.html304
-rw-r--r--plugins/org.eclipse.jet.capabilities-feature/feature.properties141
-rw-r--r--plugins/org.eclipse.jet.capabilities-feature/feature.xml31
-rw-r--r--plugins/org.eclipse.jet.capabilities-feature/license.html79
-rw-r--r--plugins/org.eclipse.jet.capabilities-feature/rootfiles/epl-v10.html304
-rw-r--r--plugins/org.eclipse.jet.capabilities-feature/rootfiles/notice.html86
-rw-r--r--plugins/org.eclipse.jet.capabilities/.classpath7
-rw-r--r--plugins/org.eclipse.jet.capabilities/.project22
-rw-r--r--plugins/org.eclipse.jet.capabilities/META-INF/MANIFEST.MF11
-rw-r--r--plugins/org.eclipse.jet.capabilities/about.html28
-rw-r--r--plugins/org.eclipse.jet.capabilities/build.properties5
-rw-r--r--plugins/org.eclipse.jet.capabilities/plugin.properties15
-rw-r--r--plugins/org.eclipse.jet.capabilities/plugin.xml21
-rw-r--r--plugins/org.eclipse.jet.core/.classpath7
-rw-r--r--plugins/org.eclipse.jet.core/.cvsignore1
-rw-r--r--plugins/org.eclipse.jet.core/.project28
-rw-r--r--plugins/org.eclipse.jet.core/.settings/org.eclipse.core.resources.prefs3
-rw-r--r--plugins/org.eclipse.jet.core/.settings/org.eclipse.jdt.core.prefs12
-rw-r--r--plugins/org.eclipse.jet.core/.settings/org.eclipse.jdt.ui.prefs3
-rw-r--r--plugins/org.eclipse.jet.core/META-INF/MANIFEST.MF29
-rw-r--r--plugins/org.eclipse.jet.core/about.html85
-rw-r--r--plugins/org.eclipse.jet.core/build.properties16
-rw-r--r--plugins/org.eclipse.jet.core/plugin.properties29
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/AbstractContextExtender.java76
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/BufferedJET2Writer.java76
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/ContextLogEntry.java308
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/IWriterListener.java49
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/IWriterListenerExtension.java41
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/JET2Context.java635
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/JET2Template.java34
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/JET2TemplateLoader.java35
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/JET2TemplateLoaderExtension.java37
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/JET2Writer.java193
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/compiler/JETCompilerOptions.java279
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/expressions/EmbeddedExpressionFactory.java168
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/expressions/IEmbeddedExpression.java36
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/AbstractTemplateResolver.java168
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/DefaultTemplateResolver.java173
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/IJETParser.java31
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/IProblem.java131
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ITagLibraryResolver.java27
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ITemplateInput.java46
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ITemplateResolver.java46
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ITemplateResolverHelper.java44
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ITemplateResolverHelperFactory.java32
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ProblemSeverity.java54
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/RecursiveIncludeException.java84
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/TemplateInputException.java54
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/BodyElement.java41
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/BodyElements.java118
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/Comment.java84
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/EmbeddedExpression.java66
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/IncludedContent.java140
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/JETAST.java244
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/JETASTElement.java198
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/JETASTParser.java197
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/JETASTVisitor.java287
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/JETCompilationUnit.java289
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/JETDirective.java89
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/JavaDeclaration.java53
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/JavaElement.java76
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/JavaExpression.java54
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/JavaScriptlet.java62
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/Problem.java257
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/TagLibraryUsageManager.java223
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/TextElement.java141
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/XMLBodyElement.java141
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/XMLBodyElementEnd.java81
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/XMLElement.java123
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/XMLEmptyElement.java58
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/ContextLogEntryFactoryManager.java54
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/DefaultContextLogEntryFactory.java24
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/IContextLogEntryFactory.java23
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/NewLineUtil.java54
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/compiler/DuplicateGeneratedClassException.java75
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/compiler/ICompilerOutput.java49
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/compiler/IJETCompiler.java123
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/compiler/IncludeDependencies.java109
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/compiler/IncludeDependenciesUtil.java55
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/compiler/UniqueNameGenerator.java221
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/expressions/EmbeddedExpressionLanguageManager.java73
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/expressions/IEmbeddedExpressionScanner.java45
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/expressions/IEmbeddedLanguage.java37
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/parser/DefaultTemplateInput.java78
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/parser/DefaultTemplateResolverHelper.java99
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/parser/ElementStack.java137
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/parser/IJETParser2.java36
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/parser/IncludeAlternativesTracker.java180
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/parser/InternalJET1Parser.java621
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/parser/InternalJET2Parser.java682
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/parser/LineInfo.java160
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/parser/TagValidationVisitor.java171
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/parser/TextTrimmingVisitor.java180
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/parser/jasper/CommentElementDelegate.java76
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/parser/jasper/DeclarationElementDelegate.java62
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/parser/jasper/EmbeddedExpressionElement.java41
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/parser/jasper/ErrorRedirectingCoreElementDelegate.java55
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/parser/jasper/JETCoreElement.java29
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/parser/jasper/JETException.java41
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/parser/jasper/JETMark.java267
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/parser/jasper/JETParseEventListener.java38
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/parser/jasper/JETParseEventListener2.java52
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/parser/jasper/JETParser.java667
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/parser/jasper/JETReader.java848
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/parser/jasper/Messages.java32
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/parser/jasper/MessagesUtil.java62
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/parser/jasper/XMLElementDelegate.java190
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/parser/jasper/messages.properties31
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/url/URLConstruction.aj25
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/url/URLUtility.java114
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/l10n/JET2Messages.java99
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/l10n/JET2Messages.properties58
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/taglib/TagLibraryReferenceImpl.java70
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/taglib/CustomTagKind.java79
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/taglib/JET2TagException.java69
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/taglib/RuntimeTagElement.java106
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/taglib/TagAttributeDefinition.java75
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/taglib/TagDefinition.java120
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/taglib/TagFactory.java32
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/taglib/TagInfo.java178
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/taglib/TagLibrary.java70
-rw-r--r--plugins/org.eclipse.jet.core/src/org/eclipse/jet/taglib/TagLibraryReference.java47
-rw-r--r--plugins/org.eclipse.jet.editor-feature/.project17
-rw-r--r--plugins/org.eclipse.jet.editor-feature/build.properties4
-rw-r--r--plugins/org.eclipse.jet.editor-feature/epl-v10.html304
-rw-r--r--plugins/org.eclipse.jet.editor-feature/feature.properties141
-rw-r--r--plugins/org.eclipse.jet.editor-feature/feature.xml45
-rw-r--r--plugins/org.eclipse.jet.editor-feature/license.html79
-rw-r--r--plugins/org.eclipse.jet.editor-feature/rootfiles/epl-v10.html304
-rw-r--r--plugins/org.eclipse.jet.editor-feature/rootfiles/notice.html86
-rw-r--r--plugins/org.eclipse.jet.editor/.classpath7
-rw-r--r--plugins/org.eclipse.jet.editor/.cvsignore1
-rw-r--r--plugins/org.eclipse.jet.editor/.jetproperties4
-rw-r--r--plugins/org.eclipse.jet.editor/.project34
-rw-r--r--plugins/org.eclipse.jet.editor/.settings/org.eclipse.jdt.core.prefs12
-rw-r--r--plugins/org.eclipse.jet.editor/META-INF/MANIFEST.MF33
-rw-r--r--plugins/org.eclipse.jet.editor/ModelingFeature.pngbin2414 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jet.editor/about.html29
-rw-r--r--plugins/org.eclipse.jet.editor/about.ini28
-rw-r--r--plugins/org.eclipse.jet.editor/about.mappings6
-rw-r--r--plugins/org.eclipse.jet.editor/about.properties23
-rw-r--r--plugins/org.eclipse.jet.editor/build.properties12
-rw-r--r--plugins/org.eclipse.jet.editor/icons/full/ctool16/JETFileWizard.gifbin1006 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jet.editor/icons/full/ctool16/JETProjectWizard.gifbin597 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jet.editor/icons/full/obj16/JETTemplateFile.gifbin968 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jet.editor/icons/full/wizban/JETProjectWizard.gifbin597 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jet.editor/icons/sample.gifbin983 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jet.editor/plugin.properties4
-rw-r--r--plugins/org.eclipse.jet.editor/plugin.xml60
-rw-r--r--plugins/org.eclipse.jet.editor/schema/defaultContentColorerDelegates.exsd105
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/Activator.java82
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/JETDocumentReader.java79
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/JETEditor.java140
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/JETEditorHelper.java455
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/JETSourceViewer.java106
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/JETTextEditor.java449
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/JETTextPreviewViewer.java203
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/actions/SetContentColorerAction.java75
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/annotations/JETAnnotationHover.java140
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/annotations/JETAnnotationModel.java64
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/annotations/JETProblemAnnotation.java33
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/autoedit/JETTemplateAutoEditStrategy.java276
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/configuration/DoubleClickStrategy.java122
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/configuration/IJETColorConstants.java27
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/configuration/JETDocumentProvider.java60
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/configuration/JETEditorPreferenceConstants.java105
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/configuration/JETReconcilingStrategy.java111
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/configuration/JETSourceViewerConfiguration.java122
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/configuration/JETTokenStyleManager.java160
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/configuration/JETWhitespaceDetector.java20
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/configuration/NonRuleBasedDamagerRepairer.java148
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/configuration/delegates/IJETDefaultTextColorerDelegate.java21
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/configuration/delegates/java/JavaContentPartitionConfigurationDelegate.java123
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/configuration/delegates/xml/XMLContentPartitionConfigurationDelegate.java166
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/contentassist/AbstractJETAssistProcessor.java27
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/contentassist/AbstractXMLTagsBasedAssistProcessor.java165
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/contentassist/JETCustomTagAssistProcessor.java110
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/contentassist/JETDirectiveAssistProcessor.java55
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/contentassist/JETJavaDeclarationAssistProcessor.java86
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/contentassist/JETJavaExpressionAssistProcessor.java93
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/contentassist/JETJavaScriptletAssistProcessor.java87
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/contentassist/JETTagAssistProcessor.java57
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/formatter/JETCustomTagFormattingStrategy.java44
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/formatter/JETDirectiveFormattingStrategy.java44
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/formatter/JETJavaDeclarationFormattingStrategy.java44
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/formatter/JETJavaExpressionFormattingStrategy.java44
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/formatter/JETJavaScriptletFormattingStrategy.java44
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/i18n/TextEditorMessages.properties1
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/outline/JETOutlineContentProvider.java187
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/outline/JETOutlineLabelProvider.java155
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/outline/JETOutlinePage.java47
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/partition/ITokenScannerProvider.java18
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/partition/JETDocumentPartitionScanner.java419
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/partition/PartitionScannerBasedDamagerRepairer.java151
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/rules/ASTElementScannerRule.java52
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/rules/ASTJETCommentRule.java27
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/rules/ASTJETCustomTagRule.java28
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/rules/ASTJETDirectiveRule.java27
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/rules/ASTJETJavaDeclarationRule.java27
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/rules/ASTJETJavaExpressionRule.java27
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/rules/ASTJETJavaScriptletRule.java27
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/rules/JETBracketRule.java76
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/rules/JETCommentRule.java20
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/rules/JETCustomTagRule.java88
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/rules/JETDirectiveRule.java20
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/rules/JETJavaDeclarationRule.java20
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/rules/JETJavaExpressionRule.java20
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/rules/JETJavaScriptletRule.java20
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/rules/WordListDetectorRule.java55
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/scanners/JETCommentScanner.java29
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/scanners/JETCustomTagScanner.java79
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/scanners/JETDefaultContentScanner.java22
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/scanners/JETDirectiveScanner.java71
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/scanners/JETJavaCodeScanner.java251
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/scanners/JETJavaDeclarationScanner.java44
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/scanners/JETJavaExpressionScanner.java51
-rw-r--r--plugins/org.eclipse.jet.editor/src/org/eclipse/jet/internal/editor/scanners/JETJavaScriptletScanner.java45
-rw-r--r--plugins/org.eclipse.jet.sdk-feature/.project17
-rw-r--r--plugins/org.eclipse.jet.sdk-feature/build.properties7
-rw-r--r--plugins/org.eclipse.jet.sdk-feature/epl-v10.html304
-rw-r--r--plugins/org.eclipse.jet.sdk-feature/feature.properties142
-rw-r--r--plugins/org.eclipse.jet.sdk-feature/feature.xml48
-rw-r--r--plugins/org.eclipse.jet.sdk-feature/license.html79
-rw-r--r--plugins/org.eclipse.jet.sdk-feature/rootfiles/epl-v10.html304
-rw-r--r--plugins/org.eclipse.jet.sdk-feature/rootfiles/notice.html86
-rw-r--r--plugins/org.eclipse.jet.ui/.classpath7
-rw-r--r--plugins/org.eclipse.jet.ui/.cvsignore3
-rw-r--r--plugins/org.eclipse.jet.ui/.project28
-rw-r--r--plugins/org.eclipse.jet.ui/.settings/org.eclipse.core.resources.prefs3
-rw-r--r--plugins/org.eclipse.jet.ui/.settings/org.eclipse.jdt.core.prefs70
-rw-r--r--plugins/org.eclipse.jet.ui/META-INF/MANIFEST.MF27
-rw-r--r--plugins/org.eclipse.jet.ui/NewJETProject.p1.wzPage.xml42
-rw-r--r--plugins/org.eclipse.jet.ui/NewJETProject.p2.wzPage.xml72
-rw-r--r--plugins/org.eclipse.jet.ui/about.html29
-rw-r--r--plugins/org.eclipse.jet.ui/build.properties19
-rw-r--r--plugins/org.eclipse.jet.ui/icons/JET2File.gifbin920 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jet.ui/icons/JET2LaunchIcon.gifbin920 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jet.ui/icons/JET2Project.gifbin971 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jet.ui/icons/JET2ProjectWizard.gifbin597 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jet.ui/icons/JET2ProjectWizardBanner.gifbin3180 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jet.ui/icons/JETRuntimeError.gifbin949 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jet.ui/icons/sample.gifbin983 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jet.ui/plugin.properties40
-rw-r--r--plugins/org.eclipse.jet.ui/plugin.xml137
-rw-r--r--plugins/org.eclipse.jet.ui/src/org/eclipse/jet/internal/ui/filters/JavaFilter.java77
-rw-r--r--plugins/org.eclipse.jet.ui/src/org/eclipse/jet/internal/ui/l10n/Messages.java129
-rw-r--r--plugins/org.eclipse.jet.ui/src/org/eclipse/jet/internal/ui/l10n/messages.properties66
-rw-r--r--plugins/org.eclipse.jet.ui/src/org/eclipse/jet/internal/ui/launch/JET2TransformationTabGroup.java48
-rw-r--r--plugins/org.eclipse.jet.ui/src/org/eclipse/jet/internal/ui/launch/JETConsoleColorProvider.java125
-rw-r--r--plugins/org.eclipse.jet.ui/src/org/eclipse/jet/internal/ui/launch/JETLaunchHelper.java311
-rw-r--r--plugins/org.eclipse.jet.ui/src/org/eclipse/jet/internal/ui/launch/JETTransformMainTab.java402
-rw-r--r--plugins/org.eclipse.jet.ui/src/org/eclipse/jet/internal/ui/launch/LaunchShortcut.java70
-rw-r--r--plugins/org.eclipse.jet.ui/src/org/eclipse/jet/internal/ui/popup/actions/UnloadAction.java91
-rw-r--r--plugins/org.eclipse.jet.ui/src/org/eclipse/jet/internal/ui/prefs/CompilePreferencePage.java313
-rw-r--r--plugins/org.eclipse.jet.ui/src/org/eclipse/jet/internal/ui/prefs/ExtensionListEditor.java70
-rw-r--r--plugins/org.eclipse.jet.ui/src/org/eclipse/jet/internal/ui/prefs/JETPreferencePage.java84
-rw-r--r--plugins/org.eclipse.jet.ui/src/org/eclipse/jet/ui/Activator.java82
-rw-r--r--plugins/org.eclipse.jet.ui/src/org/eclipse/jet/ui/newproject/Messages.java42
-rw-r--r--plugins/org.eclipse.jet.ui/src/org/eclipse/jet/ui/newproject/NewJETProjectPage1.java139
-rw-r--r--plugins/org.eclipse.jet.ui/src/org/eclipse/jet/ui/newproject/NewJETProjectPage1Controls.java183
-rw-r--r--plugins/org.eclipse.jet.ui/src/org/eclipse/jet/ui/newproject/NewJETProjectPage2.java169
-rw-r--r--plugins/org.eclipse.jet.ui/src/org/eclipse/jet/ui/newproject/NewJETProjectPage2Controls.java265
-rw-r--r--plugins/org.eclipse.jet.ui/src/org/eclipse/jet/ui/newproject/NewProjectInfo.java109
-rw-r--r--plugins/org.eclipse.jet.ui/src/org/eclipse/jet/ui/newproject/NewProjectWizard.java193
-rw-r--r--plugins/org.eclipse.jet.ui/src/org/eclipse/jet/ui/newproject/messages.properties19
-rw-r--r--plugins/org.eclipse.jet.uml2/.classpath7
-rw-r--r--plugins/org.eclipse.jet.uml2/.project28
-rw-r--r--plugins/org.eclipse.jet.uml2/.settings/org.eclipse.jdt.core.prefs7
-rw-r--r--plugins/org.eclipse.jet.uml2/.settings/org.eclipse.jdt.ui.prefs4
-rw-r--r--plugins/org.eclipse.jet.uml2/META-INF/MANIFEST.MF9
-rw-r--r--plugins/org.eclipse.jet.uml2/OSGI-INF/l10n/bundle.properties13
-rw-r--r--plugins/org.eclipse.jet.uml2/about.html29
-rw-r--r--plugins/org.eclipse.jet.uml2/build.properties17
-rw-r--r--plugins/org.eclipse.jet.uml2/fragment.xml24
-rw-r--r--plugins/org.eclipse.jet.uml2/src/org/eclipse/jet/internal/uml2/functions/StereotypeFunction.java71
310 files changed, 0 insertions, 29500 deletions
diff --git a/plugins/org.eclipse.jet-feature/.project b/plugins/org.eclipse.jet-feature/.project
deleted file mode 100644
index 79431ed..0000000
--- a/plugins/org.eclipse.jet-feature/.project
+++ /dev/null
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.jet-feature</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.pde.FeatureBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.FeatureNature</nature>
- </natures>
-</projectDescription>
diff --git a/plugins/org.eclipse.jet-feature/build.properties b/plugins/org.eclipse.jet-feature/build.properties
deleted file mode 100644
index af096fc..0000000
--- a/plugins/org.eclipse.jet-feature/build.properties
+++ /dev/null
@@ -1,7 +0,0 @@
-generate.feature@org.eclipse.jet.source=org.eclipse.jet.feature
-root=rootfiles
-bin.includes = feature.xml,\
- feature.properties,\
- license.html,\
- eclipse_update_120.jpg,\
- epl-v10.html
diff --git a/plugins/org.eclipse.jet-feature/eclipse_update_120.jpg b/plugins/org.eclipse.jet-feature/eclipse_update_120.jpg
deleted file mode 100644
index 68e3e02..0000000
--- a/plugins/org.eclipse.jet-feature/eclipse_update_120.jpg
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jet-feature/epl-v10.html b/plugins/org.eclipse.jet-feature/epl-v10.html
deleted file mode 100644
index ed4b196..0000000
--- a/plugins/org.eclipse.jet-feature/epl-v10.html
+++ /dev/null
@@ -1,328 +0,0 @@
-<html xmlns:o="urn:schemas-microsoft-com:office:office"
-xmlns:w="urn:schemas-microsoft-com:office:word"
-xmlns="http://www.w3.org/TR/REC-html40">
-
-<head>
-<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
-<meta name=ProgId content=Word.Document>
-<meta name=Generator content="Microsoft Word 9">
-<meta name=Originator content="Microsoft Word 9">
-<link rel=File-List
-href="./Eclipse%20EPL%202003_11_10%20Final_files/filelist.xml">
-<title>Eclipse Public License - Version 1.0</title>
-<!--[if gte mso 9]><xml>
- <o:DocumentProperties>
- <o:Revision>2</o:Revision>
- <o:TotalTime>3</o:TotalTime>
- <o:Created>2004-03-05T23:03:00Z</o:Created>
- <o:LastSaved>2004-03-05T23:03:00Z</o:LastSaved>
- <o:Pages>4</o:Pages>
- <o:Words>1626</o:Words>
- <o:Characters>9270</o:Characters>
- <o:Lines>77</o:Lines>
- <o:Paragraphs>18</o:Paragraphs>
- <o:CharactersWithSpaces>11384</o:CharactersWithSpaces>
- <o:Version>9.4402</o:Version>
- </o:DocumentProperties>
-</xml><![endif]--><!--[if gte mso 9]><xml>
- <w:WordDocument>
- <w:TrackRevisions/>
- </w:WordDocument>
-</xml><![endif]-->
-<style>
-<!--
- /* Font Definitions */
-@font-face
- {font-family:Tahoma;
- panose-1:2 11 6 4 3 5 4 4 2 4;
- mso-font-charset:0;
- mso-generic-font-family:swiss;
- mso-font-pitch:variable;
- mso-font-signature:553679495 -2147483648 8 0 66047 0;}
- /* Style Definitions */
-p.MsoNormal, li.MsoNormal, div.MsoNormal
- {mso-style-parent:"";
- margin:0in;
- margin-bottom:.0001pt;
- mso-pagination:widow-orphan;
- font-size:12.0pt;
- font-family:"Times New Roman";
- mso-fareast-font-family:"Times New Roman";}
-p
- {margin-right:0in;
- mso-margin-top-alt:auto;
- mso-margin-bottom-alt:auto;
- margin-left:0in;
- mso-pagination:widow-orphan;
- font-size:12.0pt;
- font-family:"Times New Roman";
- mso-fareast-font-family:"Times New Roman";}
-p.BalloonText, li.BalloonText, div.BalloonText
- {mso-style-name:"Balloon Text";
- margin:0in;
- margin-bottom:.0001pt;
- mso-pagination:widow-orphan;
- font-size:8.0pt;
- font-family:Tahoma;
- mso-fareast-font-family:"Times New Roman";}
-@page Section1
- {size:8.5in 11.0in;
- margin:1.0in 1.25in 1.0in 1.25in;
- mso-header-margin:.5in;
- mso-footer-margin:.5in;
- mso-paper-source:0;}
-div.Section1
- {page:Section1;}
--->
-</style>
-</head>
-
-<body lang=EN-US style='tab-interval:.5in'>
-
-<div class=Section1>
-
-<p align=center style='text-align:center'><b>Eclipse Public License - v 1.0</b>
-</p>
-
-<p><span style='font-size:10.0pt'>THE ACCOMPANYING PROGRAM IS PROVIDED UNDER
-THE TERMS OF THIS ECLIPSE PUBLIC LICENSE (&quot;AGREEMENT&quot;). ANY USE,
-REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE
-OF THIS AGREEMENT.</span> </p>
-
-<p><b><span style='font-size:10.0pt'>1. DEFINITIONS</span></b> </p>
-
-<p><span style='font-size:10.0pt'>&quot;Contribution&quot; means:</span> </p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
-in the case of the initial Contributor, the initial code and documentation
-distributed under this Agreement, and<br clear=left>
-b) in the case of each subsequent Contributor:</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>i)
-changes to the Program, and</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>ii)
-additions to the Program;</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>where
-such changes and/or additions to the Program originate from and are distributed
-by that particular Contributor. A Contribution 'originates' from a Contributor
-if it was added to the Program by such Contributor itself or anyone acting on
-such Contributor's behalf. Contributions do not include additions to the
-Program which: (i) are separate modules of software distributed in conjunction
-with the Program under their own license agreement, and (ii) are not derivative
-works of the Program. </span></p>
-
-<p><span style='font-size:10.0pt'>&quot;Contributor&quot; means any person or
-entity that distributes the Program.</span> </p>
-
-<p><span style='font-size:10.0pt'>&quot;Licensed Patents &quot; mean patent
-claims licensable by a Contributor which are necessarily infringed by the use
-or sale of its Contribution alone or when combined with the Program. </span></p>
-
-<p><span style='font-size:10.0pt'>&quot;Program&quot; means the Contributions
-distributed in accordance with this Agreement.</span> </p>
-
-<p><span style='font-size:10.0pt'>&quot;Recipient&quot; means anyone who
-receives the Program under this Agreement, including all Contributors.</span> </p>
-
-<p><b><span style='font-size:10.0pt'>2. GRANT OF RIGHTS</span></b> </p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
-Subject to the terms of this Agreement, each Contributor hereby grants Recipient
-a non-exclusive, worldwide, royalty-free copyright license to<span
-style='color:red'> </span>reproduce, prepare derivative works of, publicly
-display, publicly perform, distribute and sublicense the Contribution of such
-Contributor, if any, and such derivative works, in source code and object code
-form.</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>b)
-Subject to the terms of this Agreement, each Contributor hereby grants
-Recipient a non-exclusive, worldwide,<span style='color:green'> </span>royalty-free
-patent license under Licensed Patents to make, use, sell, offer to sell, import
-and otherwise transfer the Contribution of such Contributor, if any, in source
-code and object code form. This patent license shall apply to the combination
-of the Contribution and the Program if, at the time the Contribution is added
-by the Contributor, such addition of the Contribution causes such combination
-to be covered by the Licensed Patents. The patent license shall not apply to
-any other combinations which include the Contribution. No hardware per se is
-licensed hereunder. </span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>c)
-Recipient understands that although each Contributor grants the licenses to its
-Contributions set forth herein, no assurances are provided by any Contributor
-that the Program does not infringe the patent or other intellectual property
-rights of any other entity. Each Contributor disclaims any liability to Recipient
-for claims brought by any other entity based on infringement of intellectual
-property rights or otherwise. As a condition to exercising the rights and
-licenses granted hereunder, each Recipient hereby assumes sole responsibility
-to secure any other intellectual property rights needed, if any. For example,
-if a third party patent license is required to allow Recipient to distribute
-the Program, it is Recipient's responsibility to acquire that license before
-distributing the Program.</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>d)
-Each Contributor represents that to its knowledge it has sufficient copyright
-rights in its Contribution, if any, to grant the copyright license set forth in
-this Agreement. </span></p>
-
-<p><b><span style='font-size:10.0pt'>3. REQUIREMENTS</span></b> </p>
-
-<p><span style='font-size:10.0pt'>A Contributor may choose to distribute the
-Program in object code form under its own license agreement, provided that:</span>
-</p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
-it complies with the terms and conditions of this Agreement; and</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>b)
-its license agreement:</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>i)
-effectively disclaims on behalf of all Contributors all warranties and
-conditions, express and implied, including warranties or conditions of title
-and non-infringement, and implied warranties or conditions of merchantability
-and fitness for a particular purpose; </span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>ii)
-effectively excludes on behalf of all Contributors all liability for damages,
-including direct, indirect, special, incidental and consequential damages, such
-as lost profits; </span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>iii)
-states that any provisions which differ from this Agreement are offered by that
-Contributor alone and not by any other party; and</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>iv)
-states that source code for the Program is available from such Contributor, and
-informs licensees how to obtain it in a reasonable manner on or through a
-medium customarily used for software exchange.<span style='color:blue'> </span></span></p>
-
-<p><span style='font-size:10.0pt'>When the Program is made available in source
-code form:</span> </p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
-it must be made available under this Agreement; and </span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>b) a
-copy of this Agreement must be included with each copy of the Program. </span></p>
-
-<p><span style='font-size:10.0pt'>Contributors may not remove or alter any
-copyright notices contained within the Program. </span></p>
-
-<p><span style='font-size:10.0pt'>Each Contributor must identify itself as the
-originator of its Contribution, if any, in a manner that reasonably allows
-subsequent Recipients to identify the originator of the Contribution. </span></p>
-
-<p><b><span style='font-size:10.0pt'>4. COMMERCIAL DISTRIBUTION</span></b> </p>
-
-<p><span style='font-size:10.0pt'>Commercial distributors of software may
-accept certain responsibilities with respect to end users, business partners
-and the like. While this license is intended to facilitate the commercial use
-of the Program, the Contributor who includes the Program in a commercial
-product offering should do so in a manner which does not create potential
-liability for other Contributors. Therefore, if a Contributor includes the
-Program in a commercial product offering, such Contributor (&quot;Commercial
-Contributor&quot;) hereby agrees to defend and indemnify every other
-Contributor (&quot;Indemnified Contributor&quot;) against any losses, damages and
-costs (collectively &quot;Losses&quot;) arising from claims, lawsuits and other
-legal actions brought by a third party against the Indemnified Contributor to
-the extent caused by the acts or omissions of such Commercial Contributor in
-connection with its distribution of the Program in a commercial product
-offering. The obligations in this section do not apply to any claims or Losses
-relating to any actual or alleged intellectual property infringement. In order
-to qualify, an Indemnified Contributor must: a) promptly notify the Commercial
-Contributor in writing of such claim, and b) allow the Commercial Contributor
-to control, and cooperate with the Commercial Contributor in, the defense and
-any related settlement negotiations. The Indemnified Contributor may participate
-in any such claim at its own expense.</span> </p>
-
-<p><span style='font-size:10.0pt'>For example, a Contributor might include the
-Program in a commercial product offering, Product X. That Contributor is then a
-Commercial Contributor. If that Commercial Contributor then makes performance
-claims, or offers warranties related to Product X, those performance claims and
-warranties are such Commercial Contributor's responsibility alone. Under this
-section, the Commercial Contributor would have to defend claims against the
-other Contributors related to those performance claims and warranties, and if a
-court requires any other Contributor to pay any damages as a result, the
-Commercial Contributor must pay those damages.</span> </p>
-
-<p><b><span style='font-size:10.0pt'>5. NO WARRANTY</span></b> </p>
-
-<p><span style='font-size:10.0pt'>EXCEPT AS EXPRESSLY SET FORTH IN THIS
-AGREEMENT, THE PROGRAM IS PROVIDED ON AN &quot;AS IS&quot; BASIS, WITHOUT
-WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING,
-WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT,
-MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely
-responsible for determining the appropriateness of using and distributing the
-Program and assumes all risks associated with its exercise of rights under this
-Agreement , including but not limited to the risks and costs of program errors,
-compliance with applicable laws, damage to or loss of data, programs or
-equipment, and unavailability or interruption of operations. </span></p>
-
-<p><b><span style='font-size:10.0pt'>6. DISCLAIMER OF LIABILITY</span></b> </p>
-
-<p><span style='font-size:10.0pt'>EXCEPT AS EXPRESSLY SET FORTH IN THIS
-AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF
-THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF
-THE POSSIBILITY OF SUCH DAMAGES.</span> </p>
-
-<p><b><span style='font-size:10.0pt'>7. GENERAL</span></b> </p>
-
-<p><span style='font-size:10.0pt'>If any provision of this Agreement is invalid
-or unenforceable under applicable law, it shall not affect the validity or
-enforceability of the remainder of the terms of this Agreement, and without
-further action by the parties hereto, such provision shall be reformed to the
-minimum extent necessary to make such provision valid and enforceable.</span> </p>
-
-<p><span style='font-size:10.0pt'>If Recipient institutes patent litigation
-against any entity (including a cross-claim or counterclaim in a lawsuit)
-alleging that the Program itself (excluding combinations of the Program with
-other software or hardware) infringes such Recipient's patent(s), then such
-Recipient's rights granted under Section 2(b) shall terminate as of the date
-such litigation is filed. </span></p>
-
-<p><span style='font-size:10.0pt'>All Recipient's rights under this Agreement
-shall terminate if it fails to comply with any of the material terms or
-conditions of this Agreement and does not cure such failure in a reasonable
-period of time after becoming aware of such noncompliance. If all Recipient's
-rights under this Agreement terminate, Recipient agrees to cease use and
-distribution of the Program as soon as reasonably practicable. However,
-Recipient's obligations under this Agreement and any licenses granted by
-Recipient relating to the Program shall continue and survive. </span></p>
-
-<p><span style='font-size:10.0pt'>Everyone is permitted to copy and distribute
-copies of this Agreement, but in order to avoid inconsistency the Agreement is
-copyrighted and may only be modified in the following manner. The Agreement
-Steward reserves the right to publish new versions (including revisions) of
-this Agreement from time to time. No one other than the Agreement Steward has
-the right to modify this Agreement. The Eclipse Foundation is the initial
-Agreement Steward. The Eclipse Foundation may assign the responsibility to
-serve as the Agreement Steward to a suitable separate entity. Each new version
-of the Agreement will be given a distinguishing version number. The Program
-(including Contributions) may always be distributed subject to the version of
-the Agreement under which it was received. In addition, after a new version of
-the Agreement is published, Contributor may elect to distribute the Program
-(including its Contributions) under the new version. Except as expressly stated
-in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to
-the intellectual property of any Contributor under this Agreement, whether
-expressly, by implication, estoppel or otherwise. All rights in the Program not
-expressly granted under this Agreement are reserved.</span> </p>
-
-<p><span style='font-size:10.0pt'>This Agreement is governed by the laws of the
-State of New York and the intellectual property laws of the United States of
-America. No party to this Agreement will bring a legal action under this
-Agreement more than one year after the cause of action arose. Each party waives
-its rights to a jury trial in any resulting litigation.</span> </p>
-
-<p class=MsoNormal><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></p>
-
-</div>
-
-</body>
-
-</html> \ No newline at end of file
diff --git a/plugins/org.eclipse.jet-feature/feature.properties b/plugins/org.eclipse.jet-feature/feature.properties
deleted file mode 100644
index 502b92a..0000000
--- a/plugins/org.eclipse.jet-feature/feature.properties
+++ /dev/null
@@ -1,164 +0,0 @@
-# /**
-# * <copyright>
-# *
-# * Copyright (c) 2005, 2008 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 - Initial API and implementation
-# *
-# * </copyright>
-# *
-# * $Id$
-# */
-
-# NLS_MESSAGEFORMAT_VAR
-
-# ==============================================================================
-# Do not change the properties between this line and the last line containing:
-# %%% END OF TRANSLATED PROPERTIES %%%
-# Instead, either redefine an existing property, or create a new property,
-# append it to the end of the file, and change the code to use the new name.
-# ==============================================================================
-
-# This file contains externalized strings for feature.xml
-# "%foo" in feature.xml corresponds to the key "foo" in this file
-# java.io.Properties file (ISO 8859-1 with "\" escapes)
-# This file should be translated.
-
-# "featureName" property - name of the feature
-featureName=Java Emitter Templates (JET) (Incubation)
-
-# "providerName" property - name of the company that provides the feature
-providerName=Eclipse Modeling Project
-
-# "updateSiteName" property - label for the update site
-updateSiteName=Eclipse Model to Text (M2T) Updates
-
-# "description" property - description of the feature
-description=Java Emitter Templates (JET) (Incubation)
-
-# ==============================================================================
-# %%% END OF TRANSLATED PROPERTIES %%%
-# The above properties have been shipped for translation.
-# ==============================================================================
-
-# "copyright" property - text of the "Feature Update Copyright"
-copyright=\
-Copyright (c) 2000, 2008 IBM Corporation and others.\n\
-All rights reserved. This program and the accompanying materials\n\
-are made available under the terms of the Eclipse Public License v1.0\n\
-which accompanies this distribution, and is available at\n\
-http://www.eclipse.org/legal/epl-v10.html\n\
-\n\
-Contributors:\n\
- IBM Corporation - initial API and implementation\n
-################ end of copyright property ####################################
-
-# "licenseURL" property - URL of the "Feature License"
-# do not translate value - just change to point to a locale-specific HTML page
-licenseURL=license.html
-
-# "license" property - text of the "Feature Update License"
-# should be plain text version of license agreement pointed to be "licenseURL"
-license=\
-ECLIPSE FOUNDATION SOFTWARE USER AGREEMENT\n\
-March 17, 2005\n\
-\n\
-Usage Of Content\n\
-\n\
-THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR\n\
-OTHER MATERIALS FOR OPEN SOURCE PROJECTS (COLLECTIVELY "CONTENT").\n\
-USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS\n\
-AGREEMENT AND/OR THE TERMS AND CONDITIONS OF LICENSE AGREEMENTS OR\n\
-NOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU\n\
-AGREE THAT YOUR USE OF THE CONTENT IS GOVERNED BY THIS AGREEMENT\n\
-AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS\n\
-OR NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE\n\
-TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND CONDITIONS\n\
-OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED\n\
-BELOW, THEN YOU MAY NOT USE THE CONTENT.\n\
-\n\
-Applicable Licenses\n\
-\n\
-Unless otherwise indicated, all Content made available by the Eclipse Foundation\n\
-is provided to you under the terms and conditions of the Eclipse Public\n\
-License Version 1.0 ("EPL"). A copy of the EPL is provided with this\n\
-Content and is also available at http://www.eclipse.org/legal/epl-v10.html.\n\
-For purposes of the EPL, "Program" will mean the Content.\n\
-\n\
-Content includes, but is not limited to, source code, object code,\n\
-documentation and other files maintained in the Eclipse.org CVS\n\
-repository ("Repository") in CVS modules ("Modules") and made available\n\
-as downloadable archives ("Downloads").\n\
-\n\
- - Content may be structured and packaged into modules to facilitate delivering,\n\
- extending, and upgrading the Content. Typical modules may include plug-ins ("Plug-ins"),\n\
- plug-in fragments ("Fragments"), and features ("Features").\n\
- - Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java? ARchive)\n\
- in a directory named "plugins".\n\
- - A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material.\n\
- Each Feature may be packaged as a sub-directory in a directory named "features".\n\
- Within a Feature, files named "feature.xml" may contain a list of the names and version\n\
- numbers of the Plug-ins and/or Fragments associated with that Feature.\n\
- - Features may also include other Features ("Included Features"). Within a Feature, files\n\
- named "feature.xml" may contain a list of the names and version numbers of Included Features.\n\
-\n\
-Features may also include other Features ("Included Features"). Files named\n\
-"feature.xml" may contain a list of the names and version numbers of\n\
-Included Features.\n\
-\n\
-The terms and conditions governing Plug-ins and Fragments should be\n\
-contained in files named "about.html" ("Abouts"). The terms and\n\
-conditions governing Features and Included Features should be contained\n\
-in files named "license.html" ("Feature Licenses"). Abouts and Feature\n\
-Licenses may be located in any directory of a Download or Module\n\
-including, but not limited to the following locations:\n\
-\n\
- - The top-level (root) directory\n\
- - Plug-in and Fragment directories\n\
- - Inside Plug-ins and Fragments packaged as JARs\n\
- - Sub-directories of the directory named "src" of certain Plug-ins\n\
- - Feature directories\n\
-\n\
-Note: if a Feature made available by the Eclipse Foundation is installed using the\n\
-Eclipse Update Manager, you must agree to a license ("Feature Update\n\
-License") during the installation process. If the Feature contains\n\
-Included Features, the Feature Update License should either provide you\n\
-with the terms and conditions governing the Included Features or inform\n\
-you where you can locate them. Feature Update Licenses may be found in\n\
-the "license" property of files named "feature.properties". Such Abouts,\n\
-Feature Licenses and Feature Update Licenses contain the terms and\n\
-conditions (or references to such terms and conditions) that govern your\n\
-use of the associated Content in that directory.\n\
-\n\
-THE ABOUTS, FEATURE LICENSES AND FEATURE UPDATE LICENSES MAY REFER\n\
-TO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS.\n\
-SOME OF THESE OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):\n\
-\n\
- - Common Public License Version 1.0 (available at http://www.eclipse.org/legal/cpl-v10.html)\n\
- - Apache Software License 1.1 (available at http://www.apache.org/licenses/LICENSE)\n\
- - Apache Software License 2.0 (available at http://www.apache.org/licenses/LICENSE-2.0)\n\
- - IBM Public License 1.0 (available at http://oss.software.ibm.com/developerworks/opensource/license10.html)\n\
- - Metro Link Public License 1.00 (available at http://www.opengroup.org/openmotif/supporters/metrolink/license.html)\n\
- - Mozilla Public License Version 1.1 (available at http://www.mozilla.org/MPL/MPL-1.1.html)\n\
-\n\
-IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR\n\
-TO USE OF THE CONTENT. If no About, Feature License or Feature Update License\n\
-is provided, please contact the Eclipse Foundation to determine what terms and conditions\n\
-govern that particular Content.\n\
-\n\
-Cryptography\n\
-\n\
-Content may contain encryption software. The country in which you are\n\
-currently may have restrictions on the import, possession, and use,\n\
-and/or re-export to another country, of encryption software. BEFORE\n\
-using any encryption software, please check the country's laws,\n\
-regulations and policies concerning the import, possession, or use,\n\
-and re-export of encryption software, to see if this is permitted.\n\
-\n\
-Java and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the United States, other countries, or both.\n
-########### end of license property ##########################################
diff --git a/plugins/org.eclipse.jet-feature/feature.xml b/plugins/org.eclipse.jet-feature/feature.xml
deleted file mode 100644
index f752f10..0000000
--- a/plugins/org.eclipse.jet-feature/feature.xml
+++ /dev/null
@@ -1,72 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<feature
- id="org.eclipse.jet"
- label="%featureName"
- version="0.9.100.qualifier"
- provider-name="%providerName">
-
- <description url="http://www.eclipse.org/modeling/m2t">
- %description
- </description>
-
- <copyright url="http://www.eclipse.org/legal/epl-v10.html">
- %copyright
- </copyright>
-
- <license url="%licenseURL">
- %license
- </license>
-
- <url>
- <update label="%updateSiteName" url="http://download.eclipse.org/modeling/m2t/updates/"/>
- </url>
-
- <requires>
- <import plugin="org.eclipse.ant.core" version="3.1.100" match="compatible"/>
- <import plugin="org.eclipse.core.resources" version="3.2.0" match="compatible"/>
- <import plugin="org.eclipse.core.runtime" version="3.2.0" match="compatible"/>
- <import plugin="org.eclipse.debug.core" version="3.2.0" match="compatible"/>
- <import plugin="org.eclipse.emf.codegen" version="2.2.0" match="compatible"/>
- <import plugin="org.eclipse.emf.common" version="2.2.0" match="compatible"/>
- <import plugin="org.eclipse.emf.ecore" version="2.2.0" match="compatible"/>
- <import plugin="org.eclipse.emf.ecore.xmi" version="2.2.0" match="compatible"/>
- <import plugin="org.eclipse.text" version="3.2.0" match="compatible"/>
- <import plugin="org.eclipse.core.expressions" version="3.2.0" match="compatible"/>
- <import plugin="org.eclipse.core.filebuffers" version="3.2.0" match="compatible"/>
- <import plugin="org.eclipse.jdt.core" version="3.2.0" match="compatible"/>
- <import plugin="org.apache.ant" version="1.6.5" match="compatible"/>
- <import plugin="org.eclipse.debug.ui" version="3.2.0" match="compatible"/>
- <import plugin="org.eclipse.ui" version="3.2.0" match="compatible"/>
- <import plugin="org.eclipse.ui.ide" version="3.2.0" match="compatible"/>
- </requires>
-
- <plugin
- id="org.eclipse.jet"
- download-size="0"
- install-size="0"
- version="0.0.0"
- unpack="false"/>
-
- <plugin
- id="org.eclipse.jet.ui"
- download-size="0"
- install-size="0"
- version="0.0.0"
- unpack="false"/>
-
- <plugin
- id="org.eclipse.jet.core"
- download-size="0"
- install-size="0"
- version="0.0.0"
- unpack="false"/>
-
- <plugin
- id="org.eclipse.jet.uml2"
- download-size="0"
- install-size="0"
- version="0.0.0"
- fragment="true"
- unpack="false"/>
-
-</feature>
diff --git a/plugins/org.eclipse.jet-feature/license.html b/plugins/org.eclipse.jet-feature/license.html
deleted file mode 100644
index 3ca8ac4..0000000
--- a/plugins/org.eclipse.jet-feature/license.html
+++ /dev/null
@@ -1,73 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<html>
-<head>
-<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
-<title>Eclipse.org Software User Agreement</title>
-</head>
-
-<body lang="EN-US" link=blue vlink=purple>
-<h2>Eclipse Foundation Software User Agreement</h2>
-<p>January 28, 2005</p>
-
-<h3>Usage Of Content</h3>
-
-<p>THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR OTHER MATERIALS FOR OPEN SOURCE PROJECTS
- (COLLECTIVELY &quot;CONTENT&quot;). USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS AGREEMENT AND/OR THE TERMS AND
- CONDITIONS OF LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU AGREE THAT YOUR USE
- OF THE CONTENT IS GOVERNED BY THIS AGREEMENT AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR
- NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND
- CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW, THEN YOU MAY NOT USE THE CONTENT.</p>
-
-<h3>Applicable Licenses</h3>
-
-<p>Unless otherwise indicated, all Content made available by the Eclipse Foundation is provided to you under the terms and conditions of the Eclipse Public License Version 1.0
- (&quot;EPL&quot;). A copy of the EPL is provided with this Content and is also available at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
- For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
-
-<p>Content includes, but is not limited to, source code, object code, documentation and other files maintained in the Eclipse.org CVS repository (&quot;Repository&quot;) in CVS
- modules (&quot;Modules&quot;) and made available as downloadable archives (&quot;Downloads&quot;).</p>
-
-<p>Content may be apportioned into plug-ins (&quot;Plug-ins&quot;), plug-in fragments (&quot;Fragments&quot;), and features (&quot;Features&quot;). A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material. Files named &quot;feature.xml&quot; may contain a list of the names and version numbers of the Plug-ins and/or Fragments associated with a Feature. Plug-ins and Fragments are located in directories
- named &quot;plugins&quot; and Features are located in directories named &quot;features&quot;.</p>
-
-<p>Features may also include other Features (&quot;Included Features&quot;). Files named &quot;feature.xml&quot; may contain a list of the names and version numbers of Included Features.</p>
-
-<p>The terms and conditions governing Plug-ins and Fragments should be contained in files named &quot;about.html&quot; (&quot;Abouts&quot;). The terms and conditions governing Features and
-Included Features should be contained in files named &quot;license.html&quot; (&quot;Feature Licenses&quot;). Abouts and Feature Licenses may be located in any directory of a Download or Module
-including, but not limited to the following locations:</p>
-
-<ul>
- <li>The top-level (root) directory</li>
- <li>Plug-in and Fragment directories</li>
- <li>Subdirectories of the directory named &quot;src&quot; of certain Plug-ins</li>
- <li>Feature directories</li>
-</ul>
-
-<p>Note: if a Feature made available by the Eclipse Foundation is installed using the Eclipse Update Manager, you must agree to a license (&quot;Feature Update License&quot;) during the
-installation process. If the Feature contains Included Features, the Feature Update License should either provide you with the terms and conditions governing the Included Features or
-inform you where you can locate them. Feature Update Licenses may be found in the &quot;license&quot; property of files named &quot;feature.properties&quot;.
-Such Abouts, Feature Licenses and Feature Update Licenses contain the terms and conditions (or references to such terms and conditions) that govern your use of the associated Content in
-that directory.</p>
-
-<p>THE ABOUTS, FEATURE LICENSES AND FEATURE UPDATE LICENSES MAY REFER TO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS. SOME OF THESE
-OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):</p>
-
-<ul>
- <li>Common Public License Version 1.0 (available at <a href="http://www.eclipse.org/legal/cpl-v10.html">http://www.eclipse.org/legal/cpl-v10.html</a>)</li>
- <li>Apache Software License 1.1 (available at <a href="http://www.apache.org/licenses/LICENSE">http://www.apache.org/licenses/LICENSE</a>)</li>
- <li>Apache Software License 2.0 (available at <a href="http://www.apache.org/licenses/LICENSE-2.0">http://www.apache.org/licenses/LICENSE-2.0</a>)</li>
- <li>IBM Public License 1.0 (available at <a href="http://oss.software.ibm.com/developerworks/opensource/license10.html">http://oss.software.ibm.com/developerworks/opensource/license10.html</a>)</li>
- <li>Metro Link Public License 1.00 (available at <a href="http://www.opengroup.org/openmotif/supporters/metrolink/license.html">http://www.opengroup.org/openmotif/supporters/metrolink/license.html</a>)</li>
- <li>Mozilla Public License Version 1.1 (available at <a href="http://www.mozilla.org/MPL/MPL-1.1.html">http://www.mozilla.org/MPL/MPL-1.1.html</a>)</li>
-</ul>
-
-<p>IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR TO USE OF THE CONTENT. If no About, Feature License or Feature Update License is provided, please
-contact the Eclipse Foundation to determine what terms and conditions govern that particular Content.</p>
-
-<h3>Cryptography</h3>
-
-<p>Content may contain encryption software. The country in which you are currently may have restrictions on the import, possession, and use, and/or re-export to
- another country, of encryption software. BEFORE using any encryption software, please check the country's laws, regulations and policies concerning the import,
- possession, or use, and re-export of encryption software, to see if this is permitted.</p>
-</body>
-</html> \ No newline at end of file
diff --git a/plugins/org.eclipse.jet-feature/rootfiles/epl-v10.html b/plugins/org.eclipse.jet-feature/rootfiles/epl-v10.html
deleted file mode 100644
index cb1073a..0000000
--- a/plugins/org.eclipse.jet-feature/rootfiles/epl-v10.html
+++ /dev/null
@@ -1,304 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<html xmlns:o="urn:schemas-microsoft-com:office:office"
-xmlns:w="urn:schemas-microsoft-com:office:word"
-xmlns="http://www.w3.org/TR/REC-html40">
-
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<link rel=File-List
-href="./Eclipse%20EPL%202003_11_10%20Final_files/filelist.xml">
-<title>Eclipse Public License - Version 1.0</title>
-<style>
-<!--
- /* Font Definitions */
-@font-face
- {
- panose-1:2 11 6 4 3 5 4 4 2 4;
- mso-font-charset:0;
- mso-font-pitch:variable;
- mso-font-signature:553679495 -2147483648 8 0 66047 0;}
- /* Style Definitions */
-p.MsoNormal, li.MsoNormal, div.MsoNormal
- {mso-style-parent:"";
- margin:0in;
- margin-bottom:.0001pt;
- mso-pagination:widow-orphan;
- font-size:12.0pt;
- }
-p
- {margin-right:0in;
- mso-margin-top-alt:auto;
- mso-margin-bottom-alt:auto;
- margin-left:0in;
- mso-pagination:widow-orphan;
- font-size:12.0pt;
- }
-p.BalloonText, li.BalloonText, div.BalloonText
- {mso-style-name:"Balloon Text";
- margin:0in;
- margin-bottom:.0001pt;
- mso-pagination:widow-orphan;
- font-size:8.0pt;
-
- }
-@page Section1
- {size:8.5in 11.0in;
- margin:1.0in 1.25in 1.0in 1.25in;
- mso-header-margin:.5in;
- mso-footer-margin:.5in;
- mso-paper-source:0;}
-div.Section1
- {page:Section1;}
--->
-</style>
-</head>
-
-<body lang="EN-US" style='tab-interval:.5in'>
-
-<div class=Section1>
-
-<p align=center style='text-align:center'><b>Eclipse Public License - v 1.0</b>
-</p>
-
-<p><span style='font-size:10.0pt'>THE ACCOMPANYING PROGRAM IS PROVIDED UNDER
-THE TERMS OF THIS ECLIPSE PUBLIC LICENSE (&quot;AGREEMENT&quot;). ANY USE,
-REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE
-OF THIS AGREEMENT.</span> </p>
-
-<p><b><span style='font-size:10.0pt'>1. DEFINITIONS</span></b> </p>
-
-<p><span style='font-size:10.0pt'>&quot;Contribution&quot; means:</span> </p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
-in the case of the initial Contributor, the initial code and documentation
-distributed under this Agreement, and<br clear=left>
-b) in the case of each subsequent Contributor:</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>i)
-changes to the Program, and</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>ii)
-additions to the Program;</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>where
-such changes and/or additions to the Program originate from and are distributed
-by that particular Contributor. A Contribution 'originates' from a Contributor
-if it was added to the Program by such Contributor itself or anyone acting on
-such Contributor's behalf. Contributions do not include additions to the
-Program which: (i) are separate modules of software distributed in conjunction
-with the Program under their own license agreement, and (ii) are not derivative
-works of the Program. </span></p>
-
-<p><span style='font-size:10.0pt'>&quot;Contributor&quot; means any person or
-entity that distributes the Program.</span> </p>
-
-<p><span style='font-size:10.0pt'>&quot;Licensed Patents &quot; mean patent
-claims licensable by a Contributor which are necessarily infringed by the use
-or sale of its Contribution alone or when combined with the Program. </span></p>
-
-<p><span style='font-size:10.0pt'>&quot;Program&quot; means the Contributions
-distributed in accordance with this Agreement.</span> </p>
-
-<p><span style='font-size:10.0pt'>&quot;Recipient&quot; means anyone who
-receives the Program under this Agreement, including all Contributors.</span> </p>
-
-<p><b><span style='font-size:10.0pt'>2. GRANT OF RIGHTS</span></b> </p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
-Subject to the terms of this Agreement, each Contributor hereby grants Recipient
-a non-exclusive, worldwide, royalty-free copyright license to<span
-style='color:red'> </span>reproduce, prepare derivative works of, publicly
-display, publicly perform, distribute and sublicense the Contribution of such
-Contributor, if any, and such derivative works, in source code and object code
-form.</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>b)
-Subject to the terms of this Agreement, each Contributor hereby grants
-Recipient a non-exclusive, worldwide,<span style='color:green'> </span>royalty-free
-patent license under Licensed Patents to make, use, sell, offer to sell, import
-and otherwise transfer the Contribution of such Contributor, if any, in source
-code and object code form. This patent license shall apply to the combination
-of the Contribution and the Program if, at the time the Contribution is added
-by the Contributor, such addition of the Contribution causes such combination
-to be covered by the Licensed Patents. The patent license shall not apply to
-any other combinations which include the Contribution. No hardware per se is
-licensed hereunder. </span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>c)
-Recipient understands that although each Contributor grants the licenses to its
-Contributions set forth herein, no assurances are provided by any Contributor
-that the Program does not infringe the patent or other intellectual property
-rights of any other entity. Each Contributor disclaims any liability to Recipient
-for claims brought by any other entity based on infringement of intellectual
-property rights or otherwise. As a condition to exercising the rights and
-licenses granted hereunder, each Recipient hereby assumes sole responsibility
-to secure any other intellectual property rights needed, if any. For example,
-if a third party patent license is required to allow Recipient to distribute
-the Program, it is Recipient's responsibility to acquire that license before
-distributing the Program.</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>d)
-Each Contributor represents that to its knowledge it has sufficient copyright
-rights in its Contribution, if any, to grant the copyright license set forth in
-this Agreement. </span></p>
-
-<p><b><span style='font-size:10.0pt'>3. REQUIREMENTS</span></b> </p>
-
-<p><span style='font-size:10.0pt'>A Contributor may choose to distribute the
-Program in object code form under its own license agreement, provided that:</span>
-</p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
-it complies with the terms and conditions of this Agreement; and</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>b)
-its license agreement:</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>i)
-effectively disclaims on behalf of all Contributors all warranties and
-conditions, express and implied, including warranties or conditions of title
-and non-infringement, and implied warranties or conditions of merchantability
-and fitness for a particular purpose; </span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>ii)
-effectively excludes on behalf of all Contributors all liability for damages,
-including direct, indirect, special, incidental and consequential damages, such
-as lost profits; </span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>iii)
-states that any provisions which differ from this Agreement are offered by that
-Contributor alone and not by any other party; and</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>iv)
-states that source code for the Program is available from such Contributor, and
-informs licensees how to obtain it in a reasonable manner on or through a
-medium customarily used for software exchange.<span style='color:blue'> </span></span></p>
-
-<p><span style='font-size:10.0pt'>When the Program is made available in source
-code form:</span> </p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
-it must be made available under this Agreement; and </span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>b) a
-copy of this Agreement must be included with each copy of the Program. </span></p>
-
-<p><span style='font-size:10.0pt'>Contributors may not remove or alter any
-copyright notices contained within the Program. </span></p>
-
-<p><span style='font-size:10.0pt'>Each Contributor must identify itself as the
-originator of its Contribution, if any, in a manner that reasonably allows
-subsequent Recipients to identify the originator of the Contribution. </span></p>
-
-<p><b><span style='font-size:10.0pt'>4. COMMERCIAL DISTRIBUTION</span></b> </p>
-
-<p><span style='font-size:10.0pt'>Commercial distributors of software may
-accept certain responsibilities with respect to end users, business partners
-and the like. While this license is intended to facilitate the commercial use
-of the Program, the Contributor who includes the Program in a commercial
-product offering should do so in a manner which does not create potential
-liability for other Contributors. Therefore, if a Contributor includes the
-Program in a commercial product offering, such Contributor (&quot;Commercial
-Contributor&quot;) hereby agrees to defend and indemnify every other
-Contributor (&quot;Indemnified Contributor&quot;) against any losses, damages and
-costs (collectively &quot;Losses&quot;) arising from claims, lawsuits and other
-legal actions brought by a third party against the Indemnified Contributor to
-the extent caused by the acts or omissions of such Commercial Contributor in
-connection with its distribution of the Program in a commercial product
-offering. The obligations in this section do not apply to any claims or Losses
-relating to any actual or alleged intellectual property infringement. In order
-to qualify, an Indemnified Contributor must: a) promptly notify the Commercial
-Contributor in writing of such claim, and b) allow the Commercial Contributor
-to control, and cooperate with the Commercial Contributor in, the defense and
-any related settlement negotiations. The Indemnified Contributor may participate
-in any such claim at its own expense.</span> </p>
-
-<p><span style='font-size:10.0pt'>For example, a Contributor might include the
-Program in a commercial product offering, Product X. That Contributor is then a
-Commercial Contributor. If that Commercial Contributor then makes performance
-claims, or offers warranties related to Product X, those performance claims and
-warranties are such Commercial Contributor's responsibility alone. Under this
-section, the Commercial Contributor would have to defend claims against the
-other Contributors related to those performance claims and warranties, and if a
-court requires any other Contributor to pay any damages as a result, the
-Commercial Contributor must pay those damages.</span> </p>
-
-<p><b><span style='font-size:10.0pt'>5. NO WARRANTY</span></b> </p>
-
-<p><span style='font-size:10.0pt'>EXCEPT AS EXPRESSLY SET FORTH IN THIS
-AGREEMENT, THE PROGRAM IS PROVIDED ON AN &quot;AS IS&quot; BASIS, WITHOUT
-WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING,
-WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT,
-MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely
-responsible for determining the appropriateness of using and distributing the
-Program and assumes all risks associated with its exercise of rights under this
-Agreement , including but not limited to the risks and costs of program errors,
-compliance with applicable laws, damage to or loss of data, programs or
-equipment, and unavailability or interruption of operations. </span></p>
-
-<p><b><span style='font-size:10.0pt'>6. DISCLAIMER OF LIABILITY</span></b> </p>
-
-<p><span style='font-size:10.0pt'>EXCEPT AS EXPRESSLY SET FORTH IN THIS
-AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF
-THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF
-THE POSSIBILITY OF SUCH DAMAGES.</span> </p>
-
-<p><b><span style='font-size:10.0pt'>7. GENERAL</span></b> </p>
-
-<p><span style='font-size:10.0pt'>If any provision of this Agreement is invalid
-or unenforceable under applicable law, it shall not affect the validity or
-enforceability of the remainder of the terms of this Agreement, and without
-further action by the parties hereto, such provision shall be reformed to the
-minimum extent necessary to make such provision valid and enforceable.</span> </p>
-
-<p><span style='font-size:10.0pt'>If Recipient institutes patent litigation
-against any entity (including a cross-claim or counterclaim in a lawsuit)
-alleging that the Program itself (excluding combinations of the Program with
-other software or hardware) infringes such Recipient's patent(s), then such
-Recipient's rights granted under Section 2(b) shall terminate as of the date
-such litigation is filed. </span></p>
-
-<p><span style='font-size:10.0pt'>All Recipient's rights under this Agreement
-shall terminate if it fails to comply with any of the material terms or
-conditions of this Agreement and does not cure such failure in a reasonable
-period of time after becoming aware of such noncompliance. If all Recipient's
-rights under this Agreement terminate, Recipient agrees to cease use and
-distribution of the Program as soon as reasonably practicable. However,
-Recipient's obligations under this Agreement and any licenses granted by
-Recipient relating to the Program shall continue and survive. </span></p>
-
-<p><span style='font-size:10.0pt'>Everyone is permitted to copy and distribute
-copies of this Agreement, but in order to avoid inconsistency the Agreement is
-copyrighted and may only be modified in the following manner. The Agreement
-Steward reserves the right to publish new versions (including revisions) of
-this Agreement from time to time. No one other than the Agreement Steward has
-the right to modify this Agreement. The Eclipse Foundation is the initial
-Agreement Steward. The Eclipse Foundation may assign the responsibility to
-serve as the Agreement Steward to a suitable separate entity. Each new version
-of the Agreement will be given a distinguishing version number. The Program
-(including Contributions) may always be distributed subject to the version of
-the Agreement under which it was received. In addition, after a new version of
-the Agreement is published, Contributor may elect to distribute the Program
-(including its Contributions) under the new version. Except as expressly stated
-in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to
-the intellectual property of any Contributor under this Agreement, whether
-expressly, by implication, estoppel or otherwise. All rights in the Program not
-expressly granted under this Agreement are reserved.</span> </p>
-
-<p><span style='font-size:10.0pt'>This Agreement is governed by the laws of the
-State of New York and the intellectual property laws of the United States of
-America. No party to this Agreement will bring a legal action under this
-Agreement more than one year after the cause of action arose. Each party waives
-its rights to a jury trial in any resulting litigation.</span> </p>
-
-<p class=MsoNormal></p>
-
-</div>
-
-</body>
-
-</html> \ No newline at end of file
diff --git a/plugins/org.eclipse.jet-feature/rootfiles/notice.html b/plugins/org.eclipse.jet-feature/rootfiles/notice.html
deleted file mode 100644
index da529cb..0000000
--- a/plugins/org.eclipse.jet-feature/rootfiles/notice.html
+++ /dev/null
@@ -1,86 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<html>
-<head>
-<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
-<title>Eclipse.org Software User Agreement</title>
-</head>
-
-<body lang="EN-US" link=blue vlink=purple>
-<h2>Eclipse Foundation Software User Agreement</h2>
-<p>March 17, 2005</p>
-
-<h3>Usage Of Content</h3>
-
-<p>THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR OTHER MATERIALS FOR OPEN SOURCE PROJECTS
- (COLLECTIVELY &quot;CONTENT&quot;). USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS AGREEMENT AND/OR THE TERMS AND
- CONDITIONS OF LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU AGREE THAT YOUR USE
- OF THE CONTENT IS GOVERNED BY THIS AGREEMENT AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR
- NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND
- CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW, THEN YOU MAY NOT USE THE CONTENT.</p>
-
-<h3>Applicable Licenses</h3>
-
-<p>Unless otherwise indicated, all Content made available by the Eclipse Foundation is provided to you under the terms and conditions of the Eclipse Public License Version 1.0
- (&quot;EPL&quot;). A copy of the EPL is provided with this Content and is also available at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
- For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
-
-<p>Content includes, but is not limited to, source code, object code, documentation and other files maintained in the Eclipse.org CVS repository (&quot;Repository&quot;) in CVS
- modules (&quot;Modules&quot;) and made available as downloadable archives (&quot;Downloads&quot;).</p>
-
-<ul>
- <li>Content may be structured and packaged into modules to facilitate delivering, extending, and upgrading the Content. Typical modules may include plug-ins (&quot;Plug-ins&quot;), plug-in fragments (&quot;Fragments&quot;), and features (&quot;Features&quot;).</li>
-
- <li>Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java<sup>TM</sup> ARchive) in a directory named &quot;plugins&quot;.</li>
- <li>A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material. Each Feature may be packaged as a sub-directory in a directory named &quot;features&quot;. Within a Feature, files named &quot;feature.xml&quot; may contain a list of the names and version numbers of the Plug-ins
- and/or Fragments associated with that Feature.</li>
- <li>Features may also include other Features (&quot;Included Features&quot;). Within a Feature, files named &quot;feature.xml&quot; may contain a list of the names and version numbers of Included Features.</li>
-
-</ul>
-
-<p>The terms and conditions governing Plug-ins and Fragments should be contained in files named &quot;about.html&quot; (&quot;Abouts&quot;). The terms and conditions governing Features and
-Included Features should be contained in files named &quot;license.html&quot; (&quot;Feature Licenses&quot;). Abouts and Feature Licenses may be located in any directory of a Download or Module
-including, but not limited to the following locations:</p>
-
-<ul>
- <li>The top-level (root) directory</li>
-
- <li>Plug-in and Fragment directories</li>
- <li>Inside Plug-ins and Fragments packaged as JARs</li>
- <li>Sub-directories of the directory named &quot;src&quot; of certain Plug-ins</li>
- <li>Feature directories</li>
-</ul>
-
-
-<p>Note: if a Feature made available by the Eclipse Foundation is installed using the Eclipse Update Manager, you must agree to a license (&quot;Feature Update License&quot;) during the
-installation process. If the Feature contains Included Features, the Feature Update License should either provide you with the terms and conditions governing the Included Features or
-inform you where you can locate them. Feature Update Licenses may be found in the &quot;license&quot; property of files named &quot;feature.properties&quot; found within a Feature.
-Such Abouts, Feature Licenses, and Feature Update Licenses contain the terms and conditions (or references to such terms and conditions) that govern your use of the associated Content in
-that directory.</p>
-
-<p>THE ABOUTS, FEATURE LICENSES, AND FEATURE UPDATE LICENSES MAY REFER TO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS. SOME OF THESE
-OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):</p>
-
-<ul>
- <li>Common Public License Version 1.0 (available at <a href="http://www.eclipse.org/legal/cpl-v10.html">http://www.eclipse.org/legal/cpl-v10.html</a>)</li>
-
- <li>Apache Software License 1.1 (available at <a href="http://www.apache.org/licenses/LICENSE">http://www.apache.org/licenses/LICENSE</a>)</li>
- <li>Apache Software License 2.0 (available at <a href="http://www.apache.org/licenses/LICENSE-2.0">http://www.apache.org/licenses/LICENSE-2.0</a>)</li>
- <li>IBM Public License 1.0 (available at <a href="http://oss.software.ibm.com/developerworks/opensource/license10.html">http://oss.software.ibm.com/developerworks/opensource/license10.html</a>)</li>
- <li>Metro Link Public License 1.00 (available at <a href="http://www.opengroup.org/openmotif/supporters/metrolink/license.html">http://www.opengroup.org/openmotif/supporters/metrolink/license.html</a>)</li>
-
- <li>Mozilla Public License Version 1.1 (available at <a href="http://www.mozilla.org/MPL/MPL-1.1.html">http://www.mozilla.org/MPL/MPL-1.1.html</a>)</li>
-</ul>
-
-<p>IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR TO USE OF THE CONTENT. If no About, Feature License, or Feature Update License is provided, please
-contact the Eclipse Foundation to determine what terms and conditions govern that particular Content.</p>
-
-<h3>Cryptography</h3>
-
-<p>Content may contain encryption software. The country in which you are currently may have restrictions on the import, possession, and use, and/or re-export to
- another country, of encryption software. BEFORE using any encryption software, please check the country's laws, regulations and policies concerning the import,
- possession, or use, and re-export of encryption software, to see if this is permitted.</p>
-
-<small>Java and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the United States, other countries, or both.</small>
-
-</body>
-</html>
diff --git a/plugins/org.eclipse.jet-feature/sourceTemplateFeature/build.properties b/plugins/org.eclipse.jet-feature/sourceTemplateFeature/build.properties
deleted file mode 100644
index cf48d80..0000000
--- a/plugins/org.eclipse.jet-feature/sourceTemplateFeature/build.properties
+++ /dev/null
@@ -1,17 +0,0 @@
-###############################################################################
-# Copyright (c) 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
-###############################################################################
-root=rootfiles
-bin.includes =\
-epl-v10.html,\
-feature.xml,\
-feature.properties,\
-eclipse_update_120.jpg,\
-license.html
diff --git a/plugins/org.eclipse.jet-feature/sourceTemplateFeature/eclipse_update_120.jpg b/plugins/org.eclipse.jet-feature/sourceTemplateFeature/eclipse_update_120.jpg
deleted file mode 100644
index 68e3e02..0000000
--- a/plugins/org.eclipse.jet-feature/sourceTemplateFeature/eclipse_update_120.jpg
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jet-feature/sourceTemplateFeature/epl-v10.html b/plugins/org.eclipse.jet-feature/sourceTemplateFeature/epl-v10.html
deleted file mode 100644
index ed4b196..0000000
--- a/plugins/org.eclipse.jet-feature/sourceTemplateFeature/epl-v10.html
+++ /dev/null
@@ -1,328 +0,0 @@
-<html xmlns:o="urn:schemas-microsoft-com:office:office"
-xmlns:w="urn:schemas-microsoft-com:office:word"
-xmlns="http://www.w3.org/TR/REC-html40">
-
-<head>
-<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
-<meta name=ProgId content=Word.Document>
-<meta name=Generator content="Microsoft Word 9">
-<meta name=Originator content="Microsoft Word 9">
-<link rel=File-List
-href="./Eclipse%20EPL%202003_11_10%20Final_files/filelist.xml">
-<title>Eclipse Public License - Version 1.0</title>
-<!--[if gte mso 9]><xml>
- <o:DocumentProperties>
- <o:Revision>2</o:Revision>
- <o:TotalTime>3</o:TotalTime>
- <o:Created>2004-03-05T23:03:00Z</o:Created>
- <o:LastSaved>2004-03-05T23:03:00Z</o:LastSaved>
- <o:Pages>4</o:Pages>
- <o:Words>1626</o:Words>
- <o:Characters>9270</o:Characters>
- <o:Lines>77</o:Lines>
- <o:Paragraphs>18</o:Paragraphs>
- <o:CharactersWithSpaces>11384</o:CharactersWithSpaces>
- <o:Version>9.4402</o:Version>
- </o:DocumentProperties>
-</xml><![endif]--><!--[if gte mso 9]><xml>
- <w:WordDocument>
- <w:TrackRevisions/>
- </w:WordDocument>
-</xml><![endif]-->
-<style>
-<!--
- /* Font Definitions */
-@font-face
- {font-family:Tahoma;
- panose-1:2 11 6 4 3 5 4 4 2 4;
- mso-font-charset:0;
- mso-generic-font-family:swiss;
- mso-font-pitch:variable;
- mso-font-signature:553679495 -2147483648 8 0 66047 0;}
- /* Style Definitions */
-p.MsoNormal, li.MsoNormal, div.MsoNormal
- {mso-style-parent:"";
- margin:0in;
- margin-bottom:.0001pt;
- mso-pagination:widow-orphan;
- font-size:12.0pt;
- font-family:"Times New Roman";
- mso-fareast-font-family:"Times New Roman";}
-p
- {margin-right:0in;
- mso-margin-top-alt:auto;
- mso-margin-bottom-alt:auto;
- margin-left:0in;
- mso-pagination:widow-orphan;
- font-size:12.0pt;
- font-family:"Times New Roman";
- mso-fareast-font-family:"Times New Roman";}
-p.BalloonText, li.BalloonText, div.BalloonText
- {mso-style-name:"Balloon Text";
- margin:0in;
- margin-bottom:.0001pt;
- mso-pagination:widow-orphan;
- font-size:8.0pt;
- font-family:Tahoma;
- mso-fareast-font-family:"Times New Roman";}
-@page Section1
- {size:8.5in 11.0in;
- margin:1.0in 1.25in 1.0in 1.25in;
- mso-header-margin:.5in;
- mso-footer-margin:.5in;
- mso-paper-source:0;}
-div.Section1
- {page:Section1;}
--->
-</style>
-</head>
-
-<body lang=EN-US style='tab-interval:.5in'>
-
-<div class=Section1>
-
-<p align=center style='text-align:center'><b>Eclipse Public License - v 1.0</b>
-</p>
-
-<p><span style='font-size:10.0pt'>THE ACCOMPANYING PROGRAM IS PROVIDED UNDER
-THE TERMS OF THIS ECLIPSE PUBLIC LICENSE (&quot;AGREEMENT&quot;). ANY USE,
-REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE
-OF THIS AGREEMENT.</span> </p>
-
-<p><b><span style='font-size:10.0pt'>1. DEFINITIONS</span></b> </p>
-
-<p><span style='font-size:10.0pt'>&quot;Contribution&quot; means:</span> </p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
-in the case of the initial Contributor, the initial code and documentation
-distributed under this Agreement, and<br clear=left>
-b) in the case of each subsequent Contributor:</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>i)
-changes to the Program, and</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>ii)
-additions to the Program;</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>where
-such changes and/or additions to the Program originate from and are distributed
-by that particular Contributor. A Contribution 'originates' from a Contributor
-if it was added to the Program by such Contributor itself or anyone acting on
-such Contributor's behalf. Contributions do not include additions to the
-Program which: (i) are separate modules of software distributed in conjunction
-with the Program under their own license agreement, and (ii) are not derivative
-works of the Program. </span></p>
-
-<p><span style='font-size:10.0pt'>&quot;Contributor&quot; means any person or
-entity that distributes the Program.</span> </p>
-
-<p><span style='font-size:10.0pt'>&quot;Licensed Patents &quot; mean patent
-claims licensable by a Contributor which are necessarily infringed by the use
-or sale of its Contribution alone or when combined with the Program. </span></p>
-
-<p><span style='font-size:10.0pt'>&quot;Program&quot; means the Contributions
-distributed in accordance with this Agreement.</span> </p>
-
-<p><span style='font-size:10.0pt'>&quot;Recipient&quot; means anyone who
-receives the Program under this Agreement, including all Contributors.</span> </p>
-
-<p><b><span style='font-size:10.0pt'>2. GRANT OF RIGHTS</span></b> </p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
-Subject to the terms of this Agreement, each Contributor hereby grants Recipient
-a non-exclusive, worldwide, royalty-free copyright license to<span
-style='color:red'> </span>reproduce, prepare derivative works of, publicly
-display, publicly perform, distribute and sublicense the Contribution of such
-Contributor, if any, and such derivative works, in source code and object code
-form.</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>b)
-Subject to the terms of this Agreement, each Contributor hereby grants
-Recipient a non-exclusive, worldwide,<span style='color:green'> </span>royalty-free
-patent license under Licensed Patents to make, use, sell, offer to sell, import
-and otherwise transfer the Contribution of such Contributor, if any, in source
-code and object code form. This patent license shall apply to the combination
-of the Contribution and the Program if, at the time the Contribution is added
-by the Contributor, such addition of the Contribution causes such combination
-to be covered by the Licensed Patents. The patent license shall not apply to
-any other combinations which include the Contribution. No hardware per se is
-licensed hereunder. </span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>c)
-Recipient understands that although each Contributor grants the licenses to its
-Contributions set forth herein, no assurances are provided by any Contributor
-that the Program does not infringe the patent or other intellectual property
-rights of any other entity. Each Contributor disclaims any liability to Recipient
-for claims brought by any other entity based on infringement of intellectual
-property rights or otherwise. As a condition to exercising the rights and
-licenses granted hereunder, each Recipient hereby assumes sole responsibility
-to secure any other intellectual property rights needed, if any. For example,
-if a third party patent license is required to allow Recipient to distribute
-the Program, it is Recipient's responsibility to acquire that license before
-distributing the Program.</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>d)
-Each Contributor represents that to its knowledge it has sufficient copyright
-rights in its Contribution, if any, to grant the copyright license set forth in
-this Agreement. </span></p>
-
-<p><b><span style='font-size:10.0pt'>3. REQUIREMENTS</span></b> </p>
-
-<p><span style='font-size:10.0pt'>A Contributor may choose to distribute the
-Program in object code form under its own license agreement, provided that:</span>
-</p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
-it complies with the terms and conditions of this Agreement; and</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>b)
-its license agreement:</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>i)
-effectively disclaims on behalf of all Contributors all warranties and
-conditions, express and implied, including warranties or conditions of title
-and non-infringement, and implied warranties or conditions of merchantability
-and fitness for a particular purpose; </span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>ii)
-effectively excludes on behalf of all Contributors all liability for damages,
-including direct, indirect, special, incidental and consequential damages, such
-as lost profits; </span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>iii)
-states that any provisions which differ from this Agreement are offered by that
-Contributor alone and not by any other party; and</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>iv)
-states that source code for the Program is available from such Contributor, and
-informs licensees how to obtain it in a reasonable manner on or through a
-medium customarily used for software exchange.<span style='color:blue'> </span></span></p>
-
-<p><span style='font-size:10.0pt'>When the Program is made available in source
-code form:</span> </p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
-it must be made available under this Agreement; and </span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>b) a
-copy of this Agreement must be included with each copy of the Program. </span></p>
-
-<p><span style='font-size:10.0pt'>Contributors may not remove or alter any
-copyright notices contained within the Program. </span></p>
-
-<p><span style='font-size:10.0pt'>Each Contributor must identify itself as the
-originator of its Contribution, if any, in a manner that reasonably allows
-subsequent Recipients to identify the originator of the Contribution. </span></p>
-
-<p><b><span style='font-size:10.0pt'>4. COMMERCIAL DISTRIBUTION</span></b> </p>
-
-<p><span style='font-size:10.0pt'>Commercial distributors of software may
-accept certain responsibilities with respect to end users, business partners
-and the like. While this license is intended to facilitate the commercial use
-of the Program, the Contributor who includes the Program in a commercial
-product offering should do so in a manner which does not create potential
-liability for other Contributors. Therefore, if a Contributor includes the
-Program in a commercial product offering, such Contributor (&quot;Commercial
-Contributor&quot;) hereby agrees to defend and indemnify every other
-Contributor (&quot;Indemnified Contributor&quot;) against any losses, damages and
-costs (collectively &quot;Losses&quot;) arising from claims, lawsuits and other
-legal actions brought by a third party against the Indemnified Contributor to
-the extent caused by the acts or omissions of such Commercial Contributor in
-connection with its distribution of the Program in a commercial product
-offering. The obligations in this section do not apply to any claims or Losses
-relating to any actual or alleged intellectual property infringement. In order
-to qualify, an Indemnified Contributor must: a) promptly notify the Commercial
-Contributor in writing of such claim, and b) allow the Commercial Contributor
-to control, and cooperate with the Commercial Contributor in, the defense and
-any related settlement negotiations. The Indemnified Contributor may participate
-in any such claim at its own expense.</span> </p>
-
-<p><span style='font-size:10.0pt'>For example, a Contributor might include the
-Program in a commercial product offering, Product X. That Contributor is then a
-Commercial Contributor. If that Commercial Contributor then makes performance
-claims, or offers warranties related to Product X, those performance claims and
-warranties are such Commercial Contributor's responsibility alone. Under this
-section, the Commercial Contributor would have to defend claims against the
-other Contributors related to those performance claims and warranties, and if a
-court requires any other Contributor to pay any damages as a result, the
-Commercial Contributor must pay those damages.</span> </p>
-
-<p><b><span style='font-size:10.0pt'>5. NO WARRANTY</span></b> </p>
-
-<p><span style='font-size:10.0pt'>EXCEPT AS EXPRESSLY SET FORTH IN THIS
-AGREEMENT, THE PROGRAM IS PROVIDED ON AN &quot;AS IS&quot; BASIS, WITHOUT
-WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING,
-WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT,
-MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely
-responsible for determining the appropriateness of using and distributing the
-Program and assumes all risks associated with its exercise of rights under this
-Agreement , including but not limited to the risks and costs of program errors,
-compliance with applicable laws, damage to or loss of data, programs or
-equipment, and unavailability or interruption of operations. </span></p>
-
-<p><b><span style='font-size:10.0pt'>6. DISCLAIMER OF LIABILITY</span></b> </p>
-
-<p><span style='font-size:10.0pt'>EXCEPT AS EXPRESSLY SET FORTH IN THIS
-AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF
-THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF
-THE POSSIBILITY OF SUCH DAMAGES.</span> </p>
-
-<p><b><span style='font-size:10.0pt'>7. GENERAL</span></b> </p>
-
-<p><span style='font-size:10.0pt'>If any provision of this Agreement is invalid
-or unenforceable under applicable law, it shall not affect the validity or
-enforceability of the remainder of the terms of this Agreement, and without
-further action by the parties hereto, such provision shall be reformed to the
-minimum extent necessary to make such provision valid and enforceable.</span> </p>
-
-<p><span style='font-size:10.0pt'>If Recipient institutes patent litigation
-against any entity (including a cross-claim or counterclaim in a lawsuit)
-alleging that the Program itself (excluding combinations of the Program with
-other software or hardware) infringes such Recipient's patent(s), then such
-Recipient's rights granted under Section 2(b) shall terminate as of the date
-such litigation is filed. </span></p>
-
-<p><span style='font-size:10.0pt'>All Recipient's rights under this Agreement
-shall terminate if it fails to comply with any of the material terms or
-conditions of this Agreement and does not cure such failure in a reasonable
-period of time after becoming aware of such noncompliance. If all Recipient's
-rights under this Agreement terminate, Recipient agrees to cease use and
-distribution of the Program as soon as reasonably practicable. However,
-Recipient's obligations under this Agreement and any licenses granted by
-Recipient relating to the Program shall continue and survive. </span></p>
-
-<p><span style='font-size:10.0pt'>Everyone is permitted to copy and distribute
-copies of this Agreement, but in order to avoid inconsistency the Agreement is
-copyrighted and may only be modified in the following manner. The Agreement
-Steward reserves the right to publish new versions (including revisions) of
-this Agreement from time to time. No one other than the Agreement Steward has
-the right to modify this Agreement. The Eclipse Foundation is the initial
-Agreement Steward. The Eclipse Foundation may assign the responsibility to
-serve as the Agreement Steward to a suitable separate entity. Each new version
-of the Agreement will be given a distinguishing version number. The Program
-(including Contributions) may always be distributed subject to the version of
-the Agreement under which it was received. In addition, after a new version of
-the Agreement is published, Contributor may elect to distribute the Program
-(including its Contributions) under the new version. Except as expressly stated
-in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to
-the intellectual property of any Contributor under this Agreement, whether
-expressly, by implication, estoppel or otherwise. All rights in the Program not
-expressly granted under this Agreement are reserved.</span> </p>
-
-<p><span style='font-size:10.0pt'>This Agreement is governed by the laws of the
-State of New York and the intellectual property laws of the United States of
-America. No party to this Agreement will bring a legal action under this
-Agreement more than one year after the cause of action arose. Each party waives
-its rights to a jury trial in any resulting litigation.</span> </p>
-
-<p class=MsoNormal><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></p>
-
-</div>
-
-</body>
-
-</html> \ No newline at end of file
diff --git a/plugins/org.eclipse.jet-feature/sourceTemplateFeature/feature.properties b/plugins/org.eclipse.jet-feature/sourceTemplateFeature/feature.properties
deleted file mode 100644
index f5021b7..0000000
--- a/plugins/org.eclipse.jet-feature/sourceTemplateFeature/feature.properties
+++ /dev/null
@@ -1,144 +0,0 @@
-###############################################################################
-# Copyright (c) 2003, 2008 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
-###############################################################################
-# feature.properties
-# contains externalized strings for feature.xml
-# "%foo" in feature.xml corresponds to the key "foo" in this file
-# java.io.Properties file (ISO 8859-1 with "\" escapes)
-# This file should be translated.
-
-# "featureName" property - name of the feature
-featureName=Jave Emitter Templates (JET) Developer Resources
-
-# "providerName" property - name of the company that provides the feature
-providerName=Eclipse Modeling Project
-
-# "updateSiteName" property - label for the update site
-updateSiteName=Eclipse.org update site
-
-# "description" property - description of the feature
-description=API documentation and source code zips for Java Emitter Templates (JET) component.
-
-# "copyright" property - text of the "Feature Update Copyright"
-copyright=\
-Copyright (c) 2000, 2008 IBM Corporation and others.\n\
-All rights reserved. This program and the accompanying materials\n\
-are made available under the terms of the Eclipse Public License v1.0\n\
-which accompanies this distribution, and is available at\n\
-http://www.eclipse.org/legal/epl-v10.html\n\
-\n\
-Contributors:\n\
- IBM Corporation - initial API and implementation\n
-################ end of copyright property ####################################
-
-# "licenseURL" property - URL of the "Feature License"
-# do not translate value - just change to point to a locale-specific HTML page
-licenseURL=license.html
-
-# "license" property - text of the "Feature Update License"
-# should be plain text version of license agreement pointed to be "licenseURL"
-license=\
-ECLIPSE FOUNDATION SOFTWARE USER AGREEMENT\n\
-March 17, 2005\n\
-\n\
-Usage Of Content\n\
-\n\
-THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR\n\
-OTHER MATERIALS FOR OPEN SOURCE PROJECTS (COLLECTIVELY "CONTENT").\n\
-USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS\n\
-AGREEMENT AND/OR THE TERMS AND CONDITIONS OF LICENSE AGREEMENTS OR\n\
-NOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU\n\
-AGREE THAT YOUR USE OF THE CONTENT IS GOVERNED BY THIS AGREEMENT\n\
-AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS\n\
-OR NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE\n\
-TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND CONDITIONS\n\
-OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED\n\
-BELOW, THEN YOU MAY NOT USE THE CONTENT.\n\
-\n\
-Applicable Licenses\n\
-\n\
-Unless otherwise indicated, all Content made available by the Eclipse Foundation\n\
-is provided to you under the terms and conditions of the Eclipse Public\n\
-License Version 1.0 ("EPL"). A copy of the EPL is provided with this\n\
-Content and is also available at http://www.eclipse.org/legal/epl-v10.html.\n\
-For purposes of the EPL, "Program" will mean the Content.\n\
-\n\
-Content includes, but is not limited to, source code, object code,\n\
-documentation and other files maintained in the Eclipse.org CVS\n\
-repository ("Repository") in CVS modules ("Modules") and made available\n\
-as downloadable archives ("Downloads").\n\
-\n\
- - Content may be structured and packaged into modules to facilitate delivering,\n\
- extending, and upgrading the Content. Typical modules may include plug-ins ("Plug-ins"),\n\
- plug-in fragments ("Fragments"), and features ("Features").\n\
- - Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java? ARchive)\n\
- in a directory named "plugins".\n\
- - A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material.\n\
- Each Feature may be packaged as a sub-directory in a directory named "features".\n\
- Within a Feature, files named "feature.xml" may contain a list of the names and version\n\
- numbers of the Plug-ins and/or Fragments associated with that Feature.\n\
- - Features may also include other Features ("Included Features"). Within a Feature, files\n\
- named "feature.xml" may contain a list of the names and version numbers of Included Features.\n\
-\n\
-Features may also include other Features ("Included Features"). Files named\n\
-"feature.xml" may contain a list of the names and version numbers of\n\
-Included Features.\n\
-\n\
-The terms and conditions governing Plug-ins and Fragments should be\n\
-contained in files named "about.html" ("Abouts"). The terms and\n\
-conditions governing Features and Included Features should be contained\n\
-in files named "license.html" ("Feature Licenses"). Abouts and Feature\n\
-Licenses may be located in any directory of a Download or Module\n\
-including, but not limited to the following locations:\n\
-\n\
- - The top-level (root) directory\n\
- - Plug-in and Fragment directories\n\
- - Inside Plug-ins and Fragments packaged as JARs\n\
- - Sub-directories of the directory named "src" of certain Plug-ins\n\
- - Feature directories\n\
-\n\
-Note: if a Feature made available by the Eclipse Foundation is installed using the\n\
-Eclipse Update Manager, you must agree to a license ("Feature Update\n\
-License") during the installation process. If the Feature contains\n\
-Included Features, the Feature Update License should either provide you\n\
-with the terms and conditions governing the Included Features or inform\n\
-you where you can locate them. Feature Update Licenses may be found in\n\
-the "license" property of files named "feature.properties". Such Abouts,\n\
-Feature Licenses and Feature Update Licenses contain the terms and\n\
-conditions (or references to such terms and conditions) that govern your\n\
-use of the associated Content in that directory.\n\
-\n\
-THE ABOUTS, FEATURE LICENSES AND FEATURE UPDATE LICENSES MAY REFER\n\
-TO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS.\n\
-SOME OF THESE OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):\n\
-\n\
- - Common Public License Version 1.0 (available at http://www.eclipse.org/legal/cpl-v10.html)\n\
- - Apache Software License 1.1 (available at http://www.apache.org/licenses/LICENSE)\n\
- - Apache Software License 2.0 (available at http://www.apache.org/licenses/LICENSE-2.0)\n\
- - IBM Public License 1.0 (available at http://oss.software.ibm.com/developerworks/opensource/license10.html)\n\
- - Metro Link Public License 1.00 (available at http://www.opengroup.org/openmotif/supporters/metrolink/license.html)\n\
- - Mozilla Public License Version 1.1 (available at http://www.mozilla.org/MPL/MPL-1.1.html)\n\
-\n\
-IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR\n\
-TO USE OF THE CONTENT. If no About, Feature License or Feature Update License\n\
-is provided, please contact the Eclipse Foundation to determine what terms and conditions\n\
-govern that particular Content.\n\
-\n\
-Cryptography\n\
-\n\
-Content may contain encryption software. The country in which you are\n\
-currently may have restrictions on the import, possession, and use,\n\
-and/or re-export to another country, of encryption software. BEFORE\n\
-using any encryption software, please check the country's laws,\n\
-regulations and policies concerning the import, possession, or use,\n\
-and re-export of encryption software, to see if this is permitted.\n\
-\n\
-Java and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the United States, other countries, or both.\n
-########### end of license property ##########################################
diff --git a/plugins/org.eclipse.jet-feature/sourceTemplateFeature/license.html b/plugins/org.eclipse.jet-feature/sourceTemplateFeature/license.html
deleted file mode 100644
index 3259fb9..0000000
--- a/plugins/org.eclipse.jet-feature/sourceTemplateFeature/license.html
+++ /dev/null
@@ -1,73 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<html>
-<head>
-<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
-<title>Eclipse.org Software User Agreement</title>
-</head>
-
-<body lang="EN-US" link=blue vlink=purple>
-<h2>Eclipse Foundation Software User Agreement</h2>
-<p>January 28, 2005</p>
-
-<h3>Usage Of Content</h3>
-
-<p>THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR OTHER MATERIALS FOR OPEN SOURCE PROJECTS
- (COLLECTIVELY &quot;CONTENT&quot;). USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS AGREEMENT AND/OR THE TERMS AND
- CONDITIONS OF LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU AGREE THAT YOUR USE
- OF THE CONTENT IS GOVERNED BY THIS AGREEMENT AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR
- NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND
- CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW, THEN YOU MAY NOT USE THE CONTENT.</p>
-
-<h3>Applicable Licenses</h3>
-
-<p>Unless otherwise indicated, all Content made available by the Eclipse Foundation is provided to you under the terms and conditions of the Eclipse Public License Version 1.0
- (&quot;EPL&quot;). A copy of the EPL is provided with this Content and is also available at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
- For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
-
-<p>Content includes, but is not limited to, source code, object code, documentation and other files maintained in the Eclipse.org CVS repository (&quot;Repository&quot;) in CVS
- modules (&quot;Modules&quot;) and made available as downloadable archives (&quot;Downloads&quot;).</p>
-
-<p>Content may be apportioned into plug-ins (&quot;Plug-ins&quot;), plug-in fragments (&quot;Fragments&quot;), and features (&quot;Features&quot;). A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material. Files named &quot;feature.xml&quot; may contain a list of the names and version numbers of the Plug-ins and/or Fragments associated with a Feature. Plug-ins and Fragments are located in directories
- named &quot;plugins&quot; and Features are located in directories named &quot;features&quot;.</p>
-
-<p>Features may also include other Features (&quot;Included Features&quot;). Files named &quot;feature.xml&quot; may contain a list of the names and version numbers of Included Features.</p>
-
-<p>The terms and conditions governing Plug-ins and Fragments should be contained in files named &quot;about.html&quot; (&quot;Abouts&quot;). The terms and conditions governing Features and
-Included Features should be contained in files named &quot;license.html&quot; (&quot;Feature Licenses&quot;). Abouts and Feature Licenses may be located in any directory of a Download or Module
-including, but not limited to the following locations:</p>
-
-<ul>
- <li>The top-level (root) directory</li>
- <li>Plug-in and Fragment directories</li>
- <li>Subdirectories of the directory named &quot;src&quot; of certain Plug-ins</li>
- <li>Feature directories</li>
-</ul>
-
-<p>Note: if a Feature made available by the Eclipse Foundation is installed using the Eclipse Update Manager, you must agree to a license (&quot;Feature Update License&quot;) during the
-installation process. If the Feature contains Included Features, the Feature Update License should either provide you with the terms and conditions governing the Included Features or
-inform you where you can locate them. Feature Update Licenses may be found in the &quot;license&quot; property of files named &quot;feature.properties&quot;.
-Such Abouts, Feature Licenses and Feature Update Licenses contain the terms and conditions (or references to such terms and conditions) that govern your use of the associated Content in
-that directory.</p>
-
-<p>THE ABOUTS, FEATURE LICENSES AND FEATURE UPDATE LICENSES MAY REFER TO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS. SOME OF THESE
-OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):</p>
-
-<ul>
- <li>Common Public License Version 1.0 (available at <a href="http://www.eclipse.org/legal/cpl-v10.html">http://www.eclipse.org/legal/cpl-v10.html</a>)</li>
- <li>Apache Software License 1.1 (available at <a href="http://www.apache.org/licenses/LICENSE">http://www.apache.org/licenses/LICENSE</a>)</li>
- <li>Apache Software License 2.0 (available at <a href="http://www.apache.org/licenses/LICENSE-2.0">http://www.apache.org/licenses/LICENSE-2.0</a>)</li>
- <li>IBM Public License 1.0 (available at <a href="http://oss.software.ibm.com/developerworks/opensource/license10.html">http://oss.software.ibm.com/developerworks/opensource/license10.html</a>)</li>
- <li>Metro Link Public License 1.00 (available at <a href="http://www.opengroup.org/openmotif/supporters/metrolink/license.html">http://www.opengroup.org/openmotif/supporters/metrolink/license.html</a>)</li>
- <li>Mozilla Public License Version 1.1 (available at <a href="http://www.mozilla.org/MPL/MPL-1.1.html">http://www.mozilla.org/MPL/MPL-1.1.html</a>)</li>
-</ul>
-
-<p>IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR TO USE OF THE CONTENT. If no About, Feature License or Feature Update License is provided, please
-contact the Eclipse Foundation to determine what terms and conditions govern that particular Content.</p>
-
-<h3>Cryptography</h3>
-
-<p>Content may contain encryption software. The country in which you are currently may have restrictions on the import, possession, and use, and/or re-export to
- another country, of encryption software. BEFORE using any encryption software, please check the country's laws, regulations and policies concerning the import,
- possession, or use, and re-export of encryption software, to see if this is permitted.</p>
-</body>
-</html>
diff --git a/plugins/org.eclipse.jet-feature/sourceTemplateFeature/rootfiles/epl-v10.html b/plugins/org.eclipse.jet-feature/sourceTemplateFeature/rootfiles/epl-v10.html
deleted file mode 100644
index cb1073a..0000000
--- a/plugins/org.eclipse.jet-feature/sourceTemplateFeature/rootfiles/epl-v10.html
+++ /dev/null
@@ -1,304 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<html xmlns:o="urn:schemas-microsoft-com:office:office"
-xmlns:w="urn:schemas-microsoft-com:office:word"
-xmlns="http://www.w3.org/TR/REC-html40">
-
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<link rel=File-List
-href="./Eclipse%20EPL%202003_11_10%20Final_files/filelist.xml">
-<title>Eclipse Public License - Version 1.0</title>
-<style>
-<!--
- /* Font Definitions */
-@font-face
- {
- panose-1:2 11 6 4 3 5 4 4 2 4;
- mso-font-charset:0;
- mso-font-pitch:variable;
- mso-font-signature:553679495 -2147483648 8 0 66047 0;}
- /* Style Definitions */
-p.MsoNormal, li.MsoNormal, div.MsoNormal
- {mso-style-parent:"";
- margin:0in;
- margin-bottom:.0001pt;
- mso-pagination:widow-orphan;
- font-size:12.0pt;
- }
-p
- {margin-right:0in;
- mso-margin-top-alt:auto;
- mso-margin-bottom-alt:auto;
- margin-left:0in;
- mso-pagination:widow-orphan;
- font-size:12.0pt;
- }
-p.BalloonText, li.BalloonText, div.BalloonText
- {mso-style-name:"Balloon Text";
- margin:0in;
- margin-bottom:.0001pt;
- mso-pagination:widow-orphan;
- font-size:8.0pt;
-
- }
-@page Section1
- {size:8.5in 11.0in;
- margin:1.0in 1.25in 1.0in 1.25in;
- mso-header-margin:.5in;
- mso-footer-margin:.5in;
- mso-paper-source:0;}
-div.Section1
- {page:Section1;}
--->
-</style>
-</head>
-
-<body lang="EN-US" style='tab-interval:.5in'>
-
-<div class=Section1>
-
-<p align=center style='text-align:center'><b>Eclipse Public License - v 1.0</b>
-</p>
-
-<p><span style='font-size:10.0pt'>THE ACCOMPANYING PROGRAM IS PROVIDED UNDER
-THE TERMS OF THIS ECLIPSE PUBLIC LICENSE (&quot;AGREEMENT&quot;). ANY USE,
-REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE
-OF THIS AGREEMENT.</span> </p>
-
-<p><b><span style='font-size:10.0pt'>1. DEFINITIONS</span></b> </p>
-
-<p><span style='font-size:10.0pt'>&quot;Contribution&quot; means:</span> </p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
-in the case of the initial Contributor, the initial code and documentation
-distributed under this Agreement, and<br clear=left>
-b) in the case of each subsequent Contributor:</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>i)
-changes to the Program, and</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>ii)
-additions to the Program;</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>where
-such changes and/or additions to the Program originate from and are distributed
-by that particular Contributor. A Contribution 'originates' from a Contributor
-if it was added to the Program by such Contributor itself or anyone acting on
-such Contributor's behalf. Contributions do not include additions to the
-Program which: (i) are separate modules of software distributed in conjunction
-with the Program under their own license agreement, and (ii) are not derivative
-works of the Program. </span></p>
-
-<p><span style='font-size:10.0pt'>&quot;Contributor&quot; means any person or
-entity that distributes the Program.</span> </p>
-
-<p><span style='font-size:10.0pt'>&quot;Licensed Patents &quot; mean patent
-claims licensable by a Contributor which are necessarily infringed by the use
-or sale of its Contribution alone or when combined with the Program. </span></p>
-
-<p><span style='font-size:10.0pt'>&quot;Program&quot; means the Contributions
-distributed in accordance with this Agreement.</span> </p>
-
-<p><span style='font-size:10.0pt'>&quot;Recipient&quot; means anyone who
-receives the Program under this Agreement, including all Contributors.</span> </p>
-
-<p><b><span style='font-size:10.0pt'>2. GRANT OF RIGHTS</span></b> </p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
-Subject to the terms of this Agreement, each Contributor hereby grants Recipient
-a non-exclusive, worldwide, royalty-free copyright license to<span
-style='color:red'> </span>reproduce, prepare derivative works of, publicly
-display, publicly perform, distribute and sublicense the Contribution of such
-Contributor, if any, and such derivative works, in source code and object code
-form.</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>b)
-Subject to the terms of this Agreement, each Contributor hereby grants
-Recipient a non-exclusive, worldwide,<span style='color:green'> </span>royalty-free
-patent license under Licensed Patents to make, use, sell, offer to sell, import
-and otherwise transfer the Contribution of such Contributor, if any, in source
-code and object code form. This patent license shall apply to the combination
-of the Contribution and the Program if, at the time the Contribution is added
-by the Contributor, such addition of the Contribution causes such combination
-to be covered by the Licensed Patents. The patent license shall not apply to
-any other combinations which include the Contribution. No hardware per se is
-licensed hereunder. </span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>c)
-Recipient understands that although each Contributor grants the licenses to its
-Contributions set forth herein, no assurances are provided by any Contributor
-that the Program does not infringe the patent or other intellectual property
-rights of any other entity. Each Contributor disclaims any liability to Recipient
-for claims brought by any other entity based on infringement of intellectual
-property rights or otherwise. As a condition to exercising the rights and
-licenses granted hereunder, each Recipient hereby assumes sole responsibility
-to secure any other intellectual property rights needed, if any. For example,
-if a third party patent license is required to allow Recipient to distribute
-the Program, it is Recipient's responsibility to acquire that license before
-distributing the Program.</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>d)
-Each Contributor represents that to its knowledge it has sufficient copyright
-rights in its Contribution, if any, to grant the copyright license set forth in
-this Agreement. </span></p>
-
-<p><b><span style='font-size:10.0pt'>3. REQUIREMENTS</span></b> </p>
-
-<p><span style='font-size:10.0pt'>A Contributor may choose to distribute the
-Program in object code form under its own license agreement, provided that:</span>
-</p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
-it complies with the terms and conditions of this Agreement; and</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>b)
-its license agreement:</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>i)
-effectively disclaims on behalf of all Contributors all warranties and
-conditions, express and implied, including warranties or conditions of title
-and non-infringement, and implied warranties or conditions of merchantability
-and fitness for a particular purpose; </span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>ii)
-effectively excludes on behalf of all Contributors all liability for damages,
-including direct, indirect, special, incidental and consequential damages, such
-as lost profits; </span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>iii)
-states that any provisions which differ from this Agreement are offered by that
-Contributor alone and not by any other party; and</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>iv)
-states that source code for the Program is available from such Contributor, and
-informs licensees how to obtain it in a reasonable manner on or through a
-medium customarily used for software exchange.<span style='color:blue'> </span></span></p>
-
-<p><span style='font-size:10.0pt'>When the Program is made available in source
-code form:</span> </p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
-it must be made available under this Agreement; and </span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>b) a
-copy of this Agreement must be included with each copy of the Program. </span></p>
-
-<p><span style='font-size:10.0pt'>Contributors may not remove or alter any
-copyright notices contained within the Program. </span></p>
-
-<p><span style='font-size:10.0pt'>Each Contributor must identify itself as the
-originator of its Contribution, if any, in a manner that reasonably allows
-subsequent Recipients to identify the originator of the Contribution. </span></p>
-
-<p><b><span style='font-size:10.0pt'>4. COMMERCIAL DISTRIBUTION</span></b> </p>
-
-<p><span style='font-size:10.0pt'>Commercial distributors of software may
-accept certain responsibilities with respect to end users, business partners
-and the like. While this license is intended to facilitate the commercial use
-of the Program, the Contributor who includes the Program in a commercial
-product offering should do so in a manner which does not create potential
-liability for other Contributors. Therefore, if a Contributor includes the
-Program in a commercial product offering, such Contributor (&quot;Commercial
-Contributor&quot;) hereby agrees to defend and indemnify every other
-Contributor (&quot;Indemnified Contributor&quot;) against any losses, damages and
-costs (collectively &quot;Losses&quot;) arising from claims, lawsuits and other
-legal actions brought by a third party against the Indemnified Contributor to
-the extent caused by the acts or omissions of such Commercial Contributor in
-connection with its distribution of the Program in a commercial product
-offering. The obligations in this section do not apply to any claims or Losses
-relating to any actual or alleged intellectual property infringement. In order
-to qualify, an Indemnified Contributor must: a) promptly notify the Commercial
-Contributor in writing of such claim, and b) allow the Commercial Contributor
-to control, and cooperate with the Commercial Contributor in, the defense and
-any related settlement negotiations. The Indemnified Contributor may participate
-in any such claim at its own expense.</span> </p>
-
-<p><span style='font-size:10.0pt'>For example, a Contributor might include the
-Program in a commercial product offering, Product X. That Contributor is then a
-Commercial Contributor. If that Commercial Contributor then makes performance
-claims, or offers warranties related to Product X, those performance claims and
-warranties are such Commercial Contributor's responsibility alone. Under this
-section, the Commercial Contributor would have to defend claims against the
-other Contributors related to those performance claims and warranties, and if a
-court requires any other Contributor to pay any damages as a result, the
-Commercial Contributor must pay those damages.</span> </p>
-
-<p><b><span style='font-size:10.0pt'>5. NO WARRANTY</span></b> </p>
-
-<p><span style='font-size:10.0pt'>EXCEPT AS EXPRESSLY SET FORTH IN THIS
-AGREEMENT, THE PROGRAM IS PROVIDED ON AN &quot;AS IS&quot; BASIS, WITHOUT
-WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING,
-WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT,
-MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely
-responsible for determining the appropriateness of using and distributing the
-Program and assumes all risks associated with its exercise of rights under this
-Agreement , including but not limited to the risks and costs of program errors,
-compliance with applicable laws, damage to or loss of data, programs or
-equipment, and unavailability or interruption of operations. </span></p>
-
-<p><b><span style='font-size:10.0pt'>6. DISCLAIMER OF LIABILITY</span></b> </p>
-
-<p><span style='font-size:10.0pt'>EXCEPT AS EXPRESSLY SET FORTH IN THIS
-AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF
-THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF
-THE POSSIBILITY OF SUCH DAMAGES.</span> </p>
-
-<p><b><span style='font-size:10.0pt'>7. GENERAL</span></b> </p>
-
-<p><span style='font-size:10.0pt'>If any provision of this Agreement is invalid
-or unenforceable under applicable law, it shall not affect the validity or
-enforceability of the remainder of the terms of this Agreement, and without
-further action by the parties hereto, such provision shall be reformed to the
-minimum extent necessary to make such provision valid and enforceable.</span> </p>
-
-<p><span style='font-size:10.0pt'>If Recipient institutes patent litigation
-against any entity (including a cross-claim or counterclaim in a lawsuit)
-alleging that the Program itself (excluding combinations of the Program with
-other software or hardware) infringes such Recipient's patent(s), then such
-Recipient's rights granted under Section 2(b) shall terminate as of the date
-such litigation is filed. </span></p>
-
-<p><span style='font-size:10.0pt'>All Recipient's rights under this Agreement
-shall terminate if it fails to comply with any of the material terms or
-conditions of this Agreement and does not cure such failure in a reasonable
-period of time after becoming aware of such noncompliance. If all Recipient's
-rights under this Agreement terminate, Recipient agrees to cease use and
-distribution of the Program as soon as reasonably practicable. However,
-Recipient's obligations under this Agreement and any licenses granted by
-Recipient relating to the Program shall continue and survive. </span></p>
-
-<p><span style='font-size:10.0pt'>Everyone is permitted to copy and distribute
-copies of this Agreement, but in order to avoid inconsistency the Agreement is
-copyrighted and may only be modified in the following manner. The Agreement
-Steward reserves the right to publish new versions (including revisions) of
-this Agreement from time to time. No one other than the Agreement Steward has
-the right to modify this Agreement. The Eclipse Foundation is the initial
-Agreement Steward. The Eclipse Foundation may assign the responsibility to
-serve as the Agreement Steward to a suitable separate entity. Each new version
-of the Agreement will be given a distinguishing version number. The Program
-(including Contributions) may always be distributed subject to the version of
-the Agreement under which it was received. In addition, after a new version of
-the Agreement is published, Contributor may elect to distribute the Program
-(including its Contributions) under the new version. Except as expressly stated
-in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to
-the intellectual property of any Contributor under this Agreement, whether
-expressly, by implication, estoppel or otherwise. All rights in the Program not
-expressly granted under this Agreement are reserved.</span> </p>
-
-<p><span style='font-size:10.0pt'>This Agreement is governed by the laws of the
-State of New York and the intellectual property laws of the United States of
-America. No party to this Agreement will bring a legal action under this
-Agreement more than one year after the cause of action arose. Each party waives
-its rights to a jury trial in any resulting litigation.</span> </p>
-
-<p class=MsoNormal></p>
-
-</div>
-
-</body>
-
-</html> \ No newline at end of file
diff --git a/plugins/org.eclipse.jet-feature/sourceTemplateFeature/rootfiles/notice.html b/plugins/org.eclipse.jet-feature/sourceTemplateFeature/rootfiles/notice.html
deleted file mode 100644
index da529cb..0000000
--- a/plugins/org.eclipse.jet-feature/sourceTemplateFeature/rootfiles/notice.html
+++ /dev/null
@@ -1,86 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<html>
-<head>
-<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
-<title>Eclipse.org Software User Agreement</title>
-</head>
-
-<body lang="EN-US" link=blue vlink=purple>
-<h2>Eclipse Foundation Software User Agreement</h2>
-<p>March 17, 2005</p>
-
-<h3>Usage Of Content</h3>
-
-<p>THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR OTHER MATERIALS FOR OPEN SOURCE PROJECTS
- (COLLECTIVELY &quot;CONTENT&quot;). USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS AGREEMENT AND/OR THE TERMS AND
- CONDITIONS OF LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU AGREE THAT YOUR USE
- OF THE CONTENT IS GOVERNED BY THIS AGREEMENT AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR
- NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND
- CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW, THEN YOU MAY NOT USE THE CONTENT.</p>
-
-<h3>Applicable Licenses</h3>
-
-<p>Unless otherwise indicated, all Content made available by the Eclipse Foundation is provided to you under the terms and conditions of the Eclipse Public License Version 1.0
- (&quot;EPL&quot;). A copy of the EPL is provided with this Content and is also available at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
- For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
-
-<p>Content includes, but is not limited to, source code, object code, documentation and other files maintained in the Eclipse.org CVS repository (&quot;Repository&quot;) in CVS
- modules (&quot;Modules&quot;) and made available as downloadable archives (&quot;Downloads&quot;).</p>
-
-<ul>
- <li>Content may be structured and packaged into modules to facilitate delivering, extending, and upgrading the Content. Typical modules may include plug-ins (&quot;Plug-ins&quot;), plug-in fragments (&quot;Fragments&quot;), and features (&quot;Features&quot;).</li>
-
- <li>Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java<sup>TM</sup> ARchive) in a directory named &quot;plugins&quot;.</li>
- <li>A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material. Each Feature may be packaged as a sub-directory in a directory named &quot;features&quot;. Within a Feature, files named &quot;feature.xml&quot; may contain a list of the names and version numbers of the Plug-ins
- and/or Fragments associated with that Feature.</li>
- <li>Features may also include other Features (&quot;Included Features&quot;). Within a Feature, files named &quot;feature.xml&quot; may contain a list of the names and version numbers of Included Features.</li>
-
-</ul>
-
-<p>The terms and conditions governing Plug-ins and Fragments should be contained in files named &quot;about.html&quot; (&quot;Abouts&quot;). The terms and conditions governing Features and
-Included Features should be contained in files named &quot;license.html&quot; (&quot;Feature Licenses&quot;). Abouts and Feature Licenses may be located in any directory of a Download or Module
-including, but not limited to the following locations:</p>
-
-<ul>
- <li>The top-level (root) directory</li>
-
- <li>Plug-in and Fragment directories</li>
- <li>Inside Plug-ins and Fragments packaged as JARs</li>
- <li>Sub-directories of the directory named &quot;src&quot; of certain Plug-ins</li>
- <li>Feature directories</li>
-</ul>
-
-
-<p>Note: if a Feature made available by the Eclipse Foundation is installed using the Eclipse Update Manager, you must agree to a license (&quot;Feature Update License&quot;) during the
-installation process. If the Feature contains Included Features, the Feature Update License should either provide you with the terms and conditions governing the Included Features or
-inform you where you can locate them. Feature Update Licenses may be found in the &quot;license&quot; property of files named &quot;feature.properties&quot; found within a Feature.
-Such Abouts, Feature Licenses, and Feature Update Licenses contain the terms and conditions (or references to such terms and conditions) that govern your use of the associated Content in
-that directory.</p>
-
-<p>THE ABOUTS, FEATURE LICENSES, AND FEATURE UPDATE LICENSES MAY REFER TO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS. SOME OF THESE
-OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):</p>
-
-<ul>
- <li>Common Public License Version 1.0 (available at <a href="http://www.eclipse.org/legal/cpl-v10.html">http://www.eclipse.org/legal/cpl-v10.html</a>)</li>
-
- <li>Apache Software License 1.1 (available at <a href="http://www.apache.org/licenses/LICENSE">http://www.apache.org/licenses/LICENSE</a>)</li>
- <li>Apache Software License 2.0 (available at <a href="http://www.apache.org/licenses/LICENSE-2.0">http://www.apache.org/licenses/LICENSE-2.0</a>)</li>
- <li>IBM Public License 1.0 (available at <a href="http://oss.software.ibm.com/developerworks/opensource/license10.html">http://oss.software.ibm.com/developerworks/opensource/license10.html</a>)</li>
- <li>Metro Link Public License 1.00 (available at <a href="http://www.opengroup.org/openmotif/supporters/metrolink/license.html">http://www.opengroup.org/openmotif/supporters/metrolink/license.html</a>)</li>
-
- <li>Mozilla Public License Version 1.1 (available at <a href="http://www.mozilla.org/MPL/MPL-1.1.html">http://www.mozilla.org/MPL/MPL-1.1.html</a>)</li>
-</ul>
-
-<p>IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR TO USE OF THE CONTENT. If no About, Feature License, or Feature Update License is provided, please
-contact the Eclipse Foundation to determine what terms and conditions govern that particular Content.</p>
-
-<h3>Cryptography</h3>
-
-<p>Content may contain encryption software. The country in which you are currently may have restrictions on the import, possession, and use, and/or re-export to
- another country, of encryption software. BEFORE using any encryption software, please check the country's laws, regulations and policies concerning the import,
- possession, or use, and re-export of encryption software, to see if this is permitted.</p>
-
-<small>Java and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the United States, other countries, or both.</small>
-
-</body>
-</html>
diff --git a/plugins/org.eclipse.jet-feature/sourceTemplatePlugin/ModelingFeature.png b/plugins/org.eclipse.jet-feature/sourceTemplatePlugin/ModelingFeature.png
deleted file mode 100644
index 6b08de2..0000000
--- a/plugins/org.eclipse.jet-feature/sourceTemplatePlugin/ModelingFeature.png
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jet-feature/sourceTemplatePlugin/about.html b/plugins/org.eclipse.jet-feature/sourceTemplatePlugin/about.html
deleted file mode 100644
index d4f39ad..0000000
--- a/plugins/org.eclipse.jet-feature/sourceTemplatePlugin/about.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
-<title>About</title>
-</head>
-<body lang="EN-US">
- <h3>About This Content</h3>
-
- <p>June 5, 2007</p>
- <h3>License</h3>
-
- <p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;).
- Unless otherwise indicated below, the Content is provided to you under the terms and conditions of the
- Eclipse Public License Version 1.0 (&quot;EPL&quot;). A copy of the EPL is available
- at <a href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/legal/epl-v10.html</a>.
- For purposes of the EPL, &quot;Program&quot; 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 (&quot;Redistributor&quot;) 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>
- <p align="right"><small><a href="#top">go to top</a></small></p>
-
-</body>
-</html>
diff --git a/plugins/org.eclipse.jet-feature/sourceTemplatePlugin/about.ini b/plugins/org.eclipse.jet-feature/sourceTemplatePlugin/about.ini
deleted file mode 100644
index 93fc30a..0000000
--- a/plugins/org.eclipse.jet-feature/sourceTemplatePlugin/about.ini
+++ /dev/null
@@ -1,28 +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 "windowImage" contains path to window icon (16x16)
-# needed for primary features only
-
-# Property "featureImage" contains path to feature image (32x32)
-featureImage=ModelingFeature.png
-
-# Property "aboutImage" contains path to product image (500x330 or 115x164)
-# needed for primary features only
-
-# Property "appName" contains name of the application (not translated)
-# needed for primary features only
-
-# Property "welcomePerspective" contains the id of the perspective in which the
-# welcome page is to be opened.
-# optional
-
-# Property "tipsAndTricksHref" contains the Help topic href to a tips and tricks page
-# optional
-#tipsAndTricksHref=/org.eclipse.jet.doc/tips/jet_tips.html \ No newline at end of file
diff --git a/plugins/org.eclipse.jet-feature/sourceTemplatePlugin/about.mappings b/plugins/org.eclipse.jet-feature/sourceTemplatePlugin/about.mappings
deleted file mode 100644
index a28390a..0000000
--- a/plugins/org.eclipse.jet-feature/sourceTemplatePlugin/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/plugins/org.eclipse.jet-feature/sourceTemplatePlugin/about.properties b/plugins/org.eclipse.jet-feature/sourceTemplatePlugin/about.properties
deleted file mode 100644
index 7898781..0000000
--- a/plugins/org.eclipse.jet-feature/sourceTemplatePlugin/about.properties
+++ /dev/null
@@ -1,23 +0,0 @@
-###############################################################################
-# Copyright (c) 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
-###############################################################################
-# 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.
-
-blurb=Eclipse Model to Text - JET SDK\n\
-\n\
-Version: {featureVersion}\n\
-Build id: {0}\n\
-\n\
-(c) Copyright IBM Corporation and others 2005, 2006. All rights reserved.\n\
-Visit http://www.eclipse.org/modeling/m2t/?project=jet#jet \ No newline at end of file
diff --git a/plugins/org.eclipse.jet-feature/sourceTemplatePlugin/build.properties b/plugins/org.eclipse.jet-feature/sourceTemplatePlugin/build.properties
deleted file mode 100644
index e75e178..0000000
--- a/plugins/org.eclipse.jet-feature/sourceTemplatePlugin/build.properties
+++ /dev/null
@@ -1,33 +0,0 @@
-###############################################################################
-# Copyright (c) 2005 Borland Software 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:
-# Borland Software Corporation - initial API and implementation
-###############################################################################
-bin.includes = ModelingFeature.png,\
- about.html,\
- about.ini,\
- about.mappings,\
- about.properties,\
- plugin.xml,\
- plugin.properties,\
- src/**,\
- META-INF/,\
- eclipse_update_120.jpg,\
- epl-v10.html,\
- feature.properties,\
- feature.xml,\
- license.html
-sourcePlugin=true
-src.includes = about.html,\
- about.ini,\
- about.mappings,\
- about.properties,\
- plugin.xml,\
- plugin.properties,\
- src/**,\
- META-INF/
diff --git a/plugins/org.eclipse.jet-feature/sourceTemplatePlugin/plugin.properties b/plugins/org.eclipse.jet-feature/sourceTemplatePlugin/plugin.properties
deleted file mode 100644
index 9d0da63..0000000
--- a/plugins/org.eclipse.jet-feature/sourceTemplatePlugin/plugin.properties
+++ /dev/null
@@ -1,12 +0,0 @@
-###############################################################################
-# Copyright (c) 2003, 2005 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
-###############################################################################
-pluginName=Eclipse Model to Text - JET SDK
-providerName=Eclipse Modeling Project
diff --git a/plugins/org.eclipse.jet.all-feature/.project b/plugins/org.eclipse.jet.all-feature/.project
deleted file mode 100755
index 940e181..0000000
--- a/plugins/org.eclipse.jet.all-feature/.project
+++ /dev/null
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.jet.all-feature</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.pde.FeatureBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.FeatureNature</nature>
- </natures>
-</projectDescription>
diff --git a/plugins/org.eclipse.jet.all-feature/build.properties b/plugins/org.eclipse.jet.all-feature/build.properties
deleted file mode 100755
index 5049b52..0000000
--- a/plugins/org.eclipse.jet.all-feature/build.properties
+++ /dev/null
@@ -1,6 +0,0 @@
-# NLS_MESSAGEFORMAT_VAR
-bin.includes = feature.xml,\
- license.html,\
- feature.properties,\
- epl-v10.html
-root=rootfiles
diff --git a/plugins/org.eclipse.jet.all-feature/epl-v10.html b/plugins/org.eclipse.jet.all-feature/epl-v10.html
deleted file mode 100755
index cb1073a..0000000
--- a/plugins/org.eclipse.jet.all-feature/epl-v10.html
+++ /dev/null
@@ -1,304 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<html xmlns:o="urn:schemas-microsoft-com:office:office"
-xmlns:w="urn:schemas-microsoft-com:office:word"
-xmlns="http://www.w3.org/TR/REC-html40">
-
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<link rel=File-List
-href="./Eclipse%20EPL%202003_11_10%20Final_files/filelist.xml">
-<title>Eclipse Public License - Version 1.0</title>
-<style>
-<!--
- /* Font Definitions */
-@font-face
- {
- panose-1:2 11 6 4 3 5 4 4 2 4;
- mso-font-charset:0;
- mso-font-pitch:variable;
- mso-font-signature:553679495 -2147483648 8 0 66047 0;}
- /* Style Definitions */
-p.MsoNormal, li.MsoNormal, div.MsoNormal
- {mso-style-parent:"";
- margin:0in;
- margin-bottom:.0001pt;
- mso-pagination:widow-orphan;
- font-size:12.0pt;
- }
-p
- {margin-right:0in;
- mso-margin-top-alt:auto;
- mso-margin-bottom-alt:auto;
- margin-left:0in;
- mso-pagination:widow-orphan;
- font-size:12.0pt;
- }
-p.BalloonText, li.BalloonText, div.BalloonText
- {mso-style-name:"Balloon Text";
- margin:0in;
- margin-bottom:.0001pt;
- mso-pagination:widow-orphan;
- font-size:8.0pt;
-
- }
-@page Section1
- {size:8.5in 11.0in;
- margin:1.0in 1.25in 1.0in 1.25in;
- mso-header-margin:.5in;
- mso-footer-margin:.5in;
- mso-paper-source:0;}
-div.Section1
- {page:Section1;}
--->
-</style>
-</head>
-
-<body lang="EN-US" style='tab-interval:.5in'>
-
-<div class=Section1>
-
-<p align=center style='text-align:center'><b>Eclipse Public License - v 1.0</b>
-</p>
-
-<p><span style='font-size:10.0pt'>THE ACCOMPANYING PROGRAM IS PROVIDED UNDER
-THE TERMS OF THIS ECLIPSE PUBLIC LICENSE (&quot;AGREEMENT&quot;). ANY USE,
-REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE
-OF THIS AGREEMENT.</span> </p>
-
-<p><b><span style='font-size:10.0pt'>1. DEFINITIONS</span></b> </p>
-
-<p><span style='font-size:10.0pt'>&quot;Contribution&quot; means:</span> </p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
-in the case of the initial Contributor, the initial code and documentation
-distributed under this Agreement, and<br clear=left>
-b) in the case of each subsequent Contributor:</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>i)
-changes to the Program, and</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>ii)
-additions to the Program;</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>where
-such changes and/or additions to the Program originate from and are distributed
-by that particular Contributor. A Contribution 'originates' from a Contributor
-if it was added to the Program by such Contributor itself or anyone acting on
-such Contributor's behalf. Contributions do not include additions to the
-Program which: (i) are separate modules of software distributed in conjunction
-with the Program under their own license agreement, and (ii) are not derivative
-works of the Program. </span></p>
-
-<p><span style='font-size:10.0pt'>&quot;Contributor&quot; means any person or
-entity that distributes the Program.</span> </p>
-
-<p><span style='font-size:10.0pt'>&quot;Licensed Patents &quot; mean patent
-claims licensable by a Contributor which are necessarily infringed by the use
-or sale of its Contribution alone or when combined with the Program. </span></p>
-
-<p><span style='font-size:10.0pt'>&quot;Program&quot; means the Contributions
-distributed in accordance with this Agreement.</span> </p>
-
-<p><span style='font-size:10.0pt'>&quot;Recipient&quot; means anyone who
-receives the Program under this Agreement, including all Contributors.</span> </p>
-
-<p><b><span style='font-size:10.0pt'>2. GRANT OF RIGHTS</span></b> </p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
-Subject to the terms of this Agreement, each Contributor hereby grants Recipient
-a non-exclusive, worldwide, royalty-free copyright license to<span
-style='color:red'> </span>reproduce, prepare derivative works of, publicly
-display, publicly perform, distribute and sublicense the Contribution of such
-Contributor, if any, and such derivative works, in source code and object code
-form.</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>b)
-Subject to the terms of this Agreement, each Contributor hereby grants
-Recipient a non-exclusive, worldwide,<span style='color:green'> </span>royalty-free
-patent license under Licensed Patents to make, use, sell, offer to sell, import
-and otherwise transfer the Contribution of such Contributor, if any, in source
-code and object code form. This patent license shall apply to the combination
-of the Contribution and the Program if, at the time the Contribution is added
-by the Contributor, such addition of the Contribution causes such combination
-to be covered by the Licensed Patents. The patent license shall not apply to
-any other combinations which include the Contribution. No hardware per se is
-licensed hereunder. </span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>c)
-Recipient understands that although each Contributor grants the licenses to its
-Contributions set forth herein, no assurances are provided by any Contributor
-that the Program does not infringe the patent or other intellectual property
-rights of any other entity. Each Contributor disclaims any liability to Recipient
-for claims brought by any other entity based on infringement of intellectual
-property rights or otherwise. As a condition to exercising the rights and
-licenses granted hereunder, each Recipient hereby assumes sole responsibility
-to secure any other intellectual property rights needed, if any. For example,
-if a third party patent license is required to allow Recipient to distribute
-the Program, it is Recipient's responsibility to acquire that license before
-distributing the Program.</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>d)
-Each Contributor represents that to its knowledge it has sufficient copyright
-rights in its Contribution, if any, to grant the copyright license set forth in
-this Agreement. </span></p>
-
-<p><b><span style='font-size:10.0pt'>3. REQUIREMENTS</span></b> </p>
-
-<p><span style='font-size:10.0pt'>A Contributor may choose to distribute the
-Program in object code form under its own license agreement, provided that:</span>
-</p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
-it complies with the terms and conditions of this Agreement; and</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>b)
-its license agreement:</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>i)
-effectively disclaims on behalf of all Contributors all warranties and
-conditions, express and implied, including warranties or conditions of title
-and non-infringement, and implied warranties or conditions of merchantability
-and fitness for a particular purpose; </span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>ii)
-effectively excludes on behalf of all Contributors all liability for damages,
-including direct, indirect, special, incidental and consequential damages, such
-as lost profits; </span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>iii)
-states that any provisions which differ from this Agreement are offered by that
-Contributor alone and not by any other party; and</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>iv)
-states that source code for the Program is available from such Contributor, and
-informs licensees how to obtain it in a reasonable manner on or through a
-medium customarily used for software exchange.<span style='color:blue'> </span></span></p>
-
-<p><span style='font-size:10.0pt'>When the Program is made available in source
-code form:</span> </p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
-it must be made available under this Agreement; and </span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>b) a
-copy of this Agreement must be included with each copy of the Program. </span></p>
-
-<p><span style='font-size:10.0pt'>Contributors may not remove or alter any
-copyright notices contained within the Program. </span></p>
-
-<p><span style='font-size:10.0pt'>Each Contributor must identify itself as the
-originator of its Contribution, if any, in a manner that reasonably allows
-subsequent Recipients to identify the originator of the Contribution. </span></p>
-
-<p><b><span style='font-size:10.0pt'>4. COMMERCIAL DISTRIBUTION</span></b> </p>
-
-<p><span style='font-size:10.0pt'>Commercial distributors of software may
-accept certain responsibilities with respect to end users, business partners
-and the like. While this license is intended to facilitate the commercial use
-of the Program, the Contributor who includes the Program in a commercial
-product offering should do so in a manner which does not create potential
-liability for other Contributors. Therefore, if a Contributor includes the
-Program in a commercial product offering, such Contributor (&quot;Commercial
-Contributor&quot;) hereby agrees to defend and indemnify every other
-Contributor (&quot;Indemnified Contributor&quot;) against any losses, damages and
-costs (collectively &quot;Losses&quot;) arising from claims, lawsuits and other
-legal actions brought by a third party against the Indemnified Contributor to
-the extent caused by the acts or omissions of such Commercial Contributor in
-connection with its distribution of the Program in a commercial product
-offering. The obligations in this section do not apply to any claims or Losses
-relating to any actual or alleged intellectual property infringement. In order
-to qualify, an Indemnified Contributor must: a) promptly notify the Commercial
-Contributor in writing of such claim, and b) allow the Commercial Contributor
-to control, and cooperate with the Commercial Contributor in, the defense and
-any related settlement negotiations. The Indemnified Contributor may participate
-in any such claim at its own expense.</span> </p>
-
-<p><span style='font-size:10.0pt'>For example, a Contributor might include the
-Program in a commercial product offering, Product X. That Contributor is then a
-Commercial Contributor. If that Commercial Contributor then makes performance
-claims, or offers warranties related to Product X, those performance claims and
-warranties are such Commercial Contributor's responsibility alone. Under this
-section, the Commercial Contributor would have to defend claims against the
-other Contributors related to those performance claims and warranties, and if a
-court requires any other Contributor to pay any damages as a result, the
-Commercial Contributor must pay those damages.</span> </p>
-
-<p><b><span style='font-size:10.0pt'>5. NO WARRANTY</span></b> </p>
-
-<p><span style='font-size:10.0pt'>EXCEPT AS EXPRESSLY SET FORTH IN THIS
-AGREEMENT, THE PROGRAM IS PROVIDED ON AN &quot;AS IS&quot; BASIS, WITHOUT
-WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING,
-WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT,
-MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely
-responsible for determining the appropriateness of using and distributing the
-Program and assumes all risks associated with its exercise of rights under this
-Agreement , including but not limited to the risks and costs of program errors,
-compliance with applicable laws, damage to or loss of data, programs or
-equipment, and unavailability or interruption of operations. </span></p>
-
-<p><b><span style='font-size:10.0pt'>6. DISCLAIMER OF LIABILITY</span></b> </p>
-
-<p><span style='font-size:10.0pt'>EXCEPT AS EXPRESSLY SET FORTH IN THIS
-AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF
-THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF
-THE POSSIBILITY OF SUCH DAMAGES.</span> </p>
-
-<p><b><span style='font-size:10.0pt'>7. GENERAL</span></b> </p>
-
-<p><span style='font-size:10.0pt'>If any provision of this Agreement is invalid
-or unenforceable under applicable law, it shall not affect the validity or
-enforceability of the remainder of the terms of this Agreement, and without
-further action by the parties hereto, such provision shall be reformed to the
-minimum extent necessary to make such provision valid and enforceable.</span> </p>
-
-<p><span style='font-size:10.0pt'>If Recipient institutes patent litigation
-against any entity (including a cross-claim or counterclaim in a lawsuit)
-alleging that the Program itself (excluding combinations of the Program with
-other software or hardware) infringes such Recipient's patent(s), then such
-Recipient's rights granted under Section 2(b) shall terminate as of the date
-such litigation is filed. </span></p>
-
-<p><span style='font-size:10.0pt'>All Recipient's rights under this Agreement
-shall terminate if it fails to comply with any of the material terms or
-conditions of this Agreement and does not cure such failure in a reasonable
-period of time after becoming aware of such noncompliance. If all Recipient's
-rights under this Agreement terminate, Recipient agrees to cease use and
-distribution of the Program as soon as reasonably practicable. However,
-Recipient's obligations under this Agreement and any licenses granted by
-Recipient relating to the Program shall continue and survive. </span></p>
-
-<p><span style='font-size:10.0pt'>Everyone is permitted to copy and distribute
-copies of this Agreement, but in order to avoid inconsistency the Agreement is
-copyrighted and may only be modified in the following manner. The Agreement
-Steward reserves the right to publish new versions (including revisions) of
-this Agreement from time to time. No one other than the Agreement Steward has
-the right to modify this Agreement. The Eclipse Foundation is the initial
-Agreement Steward. The Eclipse Foundation may assign the responsibility to
-serve as the Agreement Steward to a suitable separate entity. Each new version
-of the Agreement will be given a distinguishing version number. The Program
-(including Contributions) may always be distributed subject to the version of
-the Agreement under which it was received. In addition, after a new version of
-the Agreement is published, Contributor may elect to distribute the Program
-(including its Contributions) under the new version. Except as expressly stated
-in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to
-the intellectual property of any Contributor under this Agreement, whether
-expressly, by implication, estoppel or otherwise. All rights in the Program not
-expressly granted under this Agreement are reserved.</span> </p>
-
-<p><span style='font-size:10.0pt'>This Agreement is governed by the laws of the
-State of New York and the intellectual property laws of the United States of
-America. No party to this Agreement will bring a legal action under this
-Agreement more than one year after the cause of action arose. Each party waives
-its rights to a jury trial in any resulting litigation.</span> </p>
-
-<p class=MsoNormal></p>
-
-</div>
-
-</body>
-
-</html> \ No newline at end of file
diff --git a/plugins/org.eclipse.jet.all-feature/feature.properties b/plugins/org.eclipse.jet.all-feature/feature.properties
deleted file mode 100755
index b33890c..0000000
--- a/plugins/org.eclipse.jet.all-feature/feature.properties
+++ /dev/null
@@ -1,142 +0,0 @@
-# /**
-# * <copyright>
-# *
-# * Copyright (c) 2004, 2007 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 - Initial API and implementation
-# *
-# * </copyright>
-# *
-# * $Id: feature.properties,v 1.1 2008/02/05 21:38:30 nickb Exp $
-# */
-
-# NLS_MESSAGEFORMAT_VAR
-
-featureName=Java Emitter Templates (JET) All-In-One Feature (Incubation)
-providerName=Eclipse.org
-description=JET SDK includes JET, JET UI, JET Editor, source code, test code and code examples. (Incubation)
-
-# "copyright" property - text of the "Feature Update Copyright"
-copyright=\
-Copyright (c) 2000, 2007 IBM Corporation and others.\n\
-All rights reserved. This program and the accompanying materials\n\
-are made available under the terms of the Eclipse Public License v1.0\n\
-which accompanies this distribution, and is available at\n\
-http://www.eclipse.org/legal/epl-v10.html\n\
-\n\
-Contributors:\n\
- IBM Corporation - initial API and implementation\n
-################ end of copyright property ####################################
-
-# "licenseURL" property - URL of the "Feature License"
-# do not translate value - just change to point to a locale-specific HTML page
-licenseURL=license.html
-
-# "license" property - text of the "Feature Update License"
-# should be plain text version of license agreement pointed to be "licenseURL"
-license=\
-ECLIPSE FOUNDATION SOFTWARE USER AGREEMENT\n\
-March 17, 2005\n\
-\n\
-Usage Of Content\n\
-\n\
-THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR\n\
-OTHER MATERIALS FOR OPEN SOURCE PROJECTS (COLLECTIVELY "CONTENT").\n\
-USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS\n\
-AGREEMENT AND/OR THE TERMS AND CONDITIONS OF LICENSE AGREEMENTS OR\n\
-NOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU\n\
-AGREE THAT YOUR USE OF THE CONTENT IS GOVERNED BY THIS AGREEMENT\n\
-AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS\n\
-OR NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE\n\
-TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND CONDITIONS\n\
-OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED\n\
-BELOW, THEN YOU MAY NOT USE THE CONTENT.\n\
-\n\
-Applicable Licenses\n\
-\n\
-Unless otherwise indicated, all Content made available by the Eclipse Foundation\n\
-is provided to you under the terms and conditions of the Eclipse Public\n\
-License Version 1.0 ("EPL"). A copy of the EPL is provided with this\n\
-Content and is also available at http://www.eclipse.org/legal/epl-v10.html.\n\
-For purposes of the EPL, "Program" will mean the Content.\n\
-\n\
-Content includes, but is not limited to, source code, object code,\n\
-documentation and other files maintained in the Eclipse.org CVS\n\
-repository ("Repository") in CVS modules ("Modules") and made available\n\
-as downloadable archives ("Downloads").\n\
-\n\
- - Content may be structured and packaged into modules to facilitate delivering,\n\
- extending, and upgrading the Content. Typical modules may include plug-ins ("Plug-ins"),\n\
- plug-in fragments ("Fragments"), and features ("Features").\n\
- - Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java? ARchive)\n\
- in a directory named "plugins".\n\
- - A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material.\n\
- Each Feature may be packaged as a sub-directory in a directory named "features".\n\
- Within a Feature, files named "feature.xml" may contain a list of the names and version\n\
- numbers of the Plug-ins and/or Fragments associated with that Feature.\n\
- - Features may also include other Features ("Included Features"). Within a Feature, files\n\
- named "feature.xml" may contain a list of the names and version numbers of Included Features.\n\
-\n\
-Features may also include other Features ("Included Features"). Files named\n\
-"feature.xml" may contain a list of the names and version numbers of\n\
-Included Features.\n\
-\n\
-The terms and conditions governing Plug-ins and Fragments should be\n\
-contained in files named "about.html" ("Abouts"). The terms and\n\
-conditions governing Features and Included Features should be contained\n\
-in files named "license.html" ("Feature Licenses"). Abouts and Feature\n\
-Licenses may be located in any directory of a Download or Module\n\
-including, but not limited to the following locations:\n\
-\n\
- - The top-level (root) directory\n\
- - Plug-in and Fragment directories\n\
- - Inside Plug-ins and Fragments packaged as JARs\n\
- - Sub-directories of the directory named "src" of certain Plug-ins\n\
- - Feature directories\n\
-\n\
-Note: if a Feature made available by the Eclipse Foundation is installed using the\n\
-Eclipse Update Manager, you must agree to a license ("Feature Update\n\
-License") during the installation process. If the Feature contains\n\
-Included Features, the Feature Update License should either provide you\n\
-with the terms and conditions governing the Included Features or inform\n\
-you where you can locate them. Feature Update Licenses may be found in\n\
-the "license" property of files named "feature.properties". Such Abouts,\n\
-Feature Licenses and Feature Update Licenses contain the terms and\n\
-conditions (or references to such terms and conditions) that govern your\n\
-use of the associated Content in that directory.\n\
-\n\
-THE ABOUTS, FEATURE LICENSES AND FEATURE UPDATE LICENSES MAY REFER\n\
-TO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS.\n\
-SOME OF THESE OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):\n\
-\n\
- - Common Public License Version 1.0 (available at http://www.eclipse.org/legal/cpl-v10.html)\n\
- - Apache Software License 1.1 (available at http://www.apache.org/licenses/LICENSE)\n\
- - Apache Software License 2.0 (available at http://www.apache.org/licenses/LICENSE-2.0)\n\
- - IBM Public License 1.0 (available at http://oss.software.ibm.com/developerworks/opensource/license10.html)\n\
- - Metro Link Public License 1.00 (available at http://www.opengroup.org/openmotif/supporters/metrolink/license.html)\n\
- - Mozilla Public License Version 1.1 (available at http://www.mozilla.org/MPL/MPL-1.1.html)\n\
-\n\
-IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR\n\
-TO USE OF THE CONTENT. If no About, Feature License or Feature Update License\n\
-is provided, please contact the Eclipse Foundation to determine what terms and conditions\n\
-govern that particular Content.\n\
-\n\
-Cryptography\n\
-\n\
-Content may contain encryption software. The country in which you are\n\
-currently may have restrictions on the import, possession, and use,\n\
-and/or re-export to another country, of encryption software. BEFORE\n\
-using any encryption software, please check the country's laws,\n\
-regulations and policies concerning the import, possession, or use,\n\
-and re-export of encryption software, to see if this is permitted.\n\
-\n\
-Java and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the United States, other countries, or both.\n
-########### end of license property ##########################################
-
-# "updateSiteName" property - label for the M2T update site
-updateSiteName=Eclipse Model to Text (M2T) Updates
diff --git a/plugins/org.eclipse.jet.all-feature/feature.xml b/plugins/org.eclipse.jet.all-feature/feature.xml
deleted file mode 100755
index 7f2e714..0000000
--- a/plugins/org.eclipse.jet.all-feature/feature.xml
+++ /dev/null
@@ -1,44 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<feature
- id="org.eclipse.jet.all"
- label="%featureName"
- version="0.9.100.qualifier"
- provider-name="%providerName">
-
- <description>
- %description
- </description>
-
- <copyright>
- %copyright
- </copyright>
-
- <license url="%licenseURL">
- %license
- </license>
-
- <url>
- <update label="%updateSiteName" url="http://download.eclipse.org/modeling/m2t/updates/"/>
- </url>
-
- <includes
- id="org.eclipse.jet.sdk"
- version="0.0.0"/>
-
- <includes
- id="org.eclipse.jet.editor"
- version="0.0.0"/>
-
- <includes
- id="org.eclipse.jet.capabilities"
- version="0.0.0"/>
-
- <requires>
- <import plugin="org.eclipse.emf.edit"/>
- <import plugin="org.eclipse.core.runtime"/>
- <import plugin="org.eclipse.core.resources"/>
- <import plugin="org.eclipse.ui.ide"/>
- <import plugin="org.eclipse.emf.edit.ui"/>
- </requires>
-
-</feature>
diff --git a/plugins/org.eclipse.jet.all-feature/license.html b/plugins/org.eclipse.jet.all-feature/license.html
deleted file mode 100755
index 74122b2..0000000
--- a/plugins/org.eclipse.jet.all-feature/license.html
+++ /dev/null
@@ -1,79 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<html>
-<head>
-<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
-<title>Eclipse.org Software User Agreement</title>
-</head>
-
-<body lang="EN-US" link=blue vlink=purple>
-<h2>Eclipse Foundation Software User Agreement</h2>
-<p>March 17, 2005</p>
-
-<h3>Usage Of Content</h3>
-
-<p>THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR OTHER MATERIALS FOR OPEN SOURCE PROJECTS
- (COLLECTIVELY &quot;CONTENT&quot;). USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS AGREEMENT AND/OR THE TERMS AND
- CONDITIONS OF LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU AGREE THAT YOUR USE
- OF THE CONTENT IS GOVERNED BY THIS AGREEMENT AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR
- NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND
- CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW, THEN YOU MAY NOT USE THE CONTENT.</p>
-
-<h3>Applicable Licenses</h3>
-
-<p>Unless otherwise indicated, all Content made available by the Eclipse Foundation is provided to you under the terms and conditions of the Eclipse Public License Version 1.0
- (&quot;EPL&quot;). A copy of the EPL is provided with this Content and is also available at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
- For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
-
-<p>Content includes, but is not limited to, source code, object code, documentation and other files maintained in the Eclipse.org CVS repository (&quot;Repository&quot;) in CVS
- modules (&quot;Modules&quot;) and made available as downloadable archives (&quot;Downloads&quot;).</p>
-
-<ul>
- <li>Content may be structured and packaged into modules to facilitate delivering, extending, and upgrading the Content. Typical modules may include plug-ins (&quot;Plug-ins&quot;), plug-in fragments (&quot;Fragments&quot;), and features (&quot;Features&quot;).</li>
- <li>Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java<sup>TM</sup> ARchive) in a directory named &quot;plugins&quot;.</li>
- <li>A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material. Each Feature may be packaged as a sub-directory in a directory named &quot;features&quot;. Within a Feature, files named &quot;feature.xml&quot; may contain a list of the names and version numbers of the Plug-ins
- and/or Fragments associated with that Feature.</li>
- <li>Features may also include other Features (&quot;Included Features&quot;). Within a Feature, files named &quot;feature.xml&quot; may contain a list of the names and version numbers of Included Features.</li>
-</ul>
-
-<p>The terms and conditions governing Plug-ins and Fragments should be contained in files named &quot;about.html&quot; (&quot;Abouts&quot;). The terms and conditions governing Features and
-Included Features should be contained in files named &quot;license.html&quot; (&quot;Feature Licenses&quot;). Abouts and Feature Licenses may be located in any directory of a Download or Module
-including, but not limited to the following locations:</p>
-
-<ul>
- <li>The top-level (root) directory</li>
- <li>Plug-in and Fragment directories</li>
- <li>Inside Plug-ins and Fragments packaged as JARs</li>
- <li>Sub-directories of the directory named &quot;src&quot; of certain Plug-ins</li>
- <li>Feature directories</li>
-</ul>
-
-<p>Note: if a Feature made available by the Eclipse Foundation is installed using the Eclipse Update Manager, you must agree to a license (&quot;Feature Update License&quot;) during the
-installation process. If the Feature contains Included Features, the Feature Update License should either provide you with the terms and conditions governing the Included Features or
-inform you where you can locate them. Feature Update Licenses may be found in the &quot;license&quot; property of files named &quot;feature.properties&quot; found within a Feature.
-Such Abouts, Feature Licenses, and Feature Update Licenses contain the terms and conditions (or references to such terms and conditions) that govern your use of the associated Content in
-that directory.</p>
-
-<p>THE ABOUTS, FEATURE LICENSES, AND FEATURE UPDATE LICENSES MAY REFER TO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS. SOME OF THESE
-OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):</p>
-
-<ul>
- <li>Common Public License Version 1.0 (available at <a href="http://www.eclipse.org/legal/cpl-v10.html">http://www.eclipse.org/legal/cpl-v10.html</a>)</li>
- <li>Apache Software License 1.1 (available at <a href="http://www.apache.org/licenses/LICENSE">http://www.apache.org/licenses/LICENSE</a>)</li>
- <li>Apache Software License 2.0 (available at <a href="http://www.apache.org/licenses/LICENSE-2.0">http://www.apache.org/licenses/LICENSE-2.0</a>)</li>
- <li>IBM Public License 1.0 (available at <a href="http://oss.software.ibm.com/developerworks/opensource/license10.html">http://oss.software.ibm.com/developerworks/opensource/license10.html</a>)</li>
- <li>Metro Link Public License 1.00 (available at <a href="http://www.opengroup.org/openmotif/supporters/metrolink/license.html">http://www.opengroup.org/openmotif/supporters/metrolink/license.html</a>)</li>
- <li>Mozilla Public License Version 1.1 (available at <a href="http://www.mozilla.org/MPL/MPL-1.1.html">http://www.mozilla.org/MPL/MPL-1.1.html</a>)</li>
-</ul>
-
-<p>IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR TO USE OF THE CONTENT. If no About, Feature License, or Feature Update License is provided, please
-contact the Eclipse Foundation to determine what terms and conditions govern that particular Content.</p>
-
-<h3>Cryptography</h3>
-
-<p>Content may contain encryption software. The country in which you are currently may have restrictions on the import, possession, and use, and/or re-export to
- another country, of encryption software. BEFORE using any encryption software, please check the country's laws, regulations and policies concerning the import,
- possession, or use, and re-export of encryption software, to see if this is permitted.</p>
-
-<small>Java and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the United States, other countries, or both.</small>
-</body>
-</html>
diff --git a/plugins/org.eclipse.jet.all-feature/rootfiles/epl-v10.html b/plugins/org.eclipse.jet.all-feature/rootfiles/epl-v10.html
deleted file mode 100755
index cb1073a..0000000
--- a/plugins/org.eclipse.jet.all-feature/rootfiles/epl-v10.html
+++ /dev/null
@@ -1,304 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<html xmlns:o="urn:schemas-microsoft-com:office:office"
-xmlns:w="urn:schemas-microsoft-com:office:word"
-xmlns="http://www.w3.org/TR/REC-html40">
-
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<link rel=File-List
-href="./Eclipse%20EPL%202003_11_10%20Final_files/filelist.xml">
-<title>Eclipse Public License - Version 1.0</title>
-<style>
-<!--
- /* Font Definitions */
-@font-face
- {
- panose-1:2 11 6 4 3 5 4 4 2 4;
- mso-font-charset:0;
- mso-font-pitch:variable;
- mso-font-signature:553679495 -2147483648 8 0 66047 0;}
- /* Style Definitions */
-p.MsoNormal, li.MsoNormal, div.MsoNormal
- {mso-style-parent:"";
- margin:0in;
- margin-bottom:.0001pt;
- mso-pagination:widow-orphan;
- font-size:12.0pt;
- }
-p
- {margin-right:0in;
- mso-margin-top-alt:auto;
- mso-margin-bottom-alt:auto;
- margin-left:0in;
- mso-pagination:widow-orphan;
- font-size:12.0pt;
- }
-p.BalloonText, li.BalloonText, div.BalloonText
- {mso-style-name:"Balloon Text";
- margin:0in;
- margin-bottom:.0001pt;
- mso-pagination:widow-orphan;
- font-size:8.0pt;
-
- }
-@page Section1
- {size:8.5in 11.0in;
- margin:1.0in 1.25in 1.0in 1.25in;
- mso-header-margin:.5in;
- mso-footer-margin:.5in;
- mso-paper-source:0;}
-div.Section1
- {page:Section1;}
--->
-</style>
-</head>
-
-<body lang="EN-US" style='tab-interval:.5in'>
-
-<div class=Section1>
-
-<p align=center style='text-align:center'><b>Eclipse Public License - v 1.0</b>
-</p>
-
-<p><span style='font-size:10.0pt'>THE ACCOMPANYING PROGRAM IS PROVIDED UNDER
-THE TERMS OF THIS ECLIPSE PUBLIC LICENSE (&quot;AGREEMENT&quot;). ANY USE,
-REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE
-OF THIS AGREEMENT.</span> </p>
-
-<p><b><span style='font-size:10.0pt'>1. DEFINITIONS</span></b> </p>
-
-<p><span style='font-size:10.0pt'>&quot;Contribution&quot; means:</span> </p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
-in the case of the initial Contributor, the initial code and documentation
-distributed under this Agreement, and<br clear=left>
-b) in the case of each subsequent Contributor:</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>i)
-changes to the Program, and</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>ii)
-additions to the Program;</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>where
-such changes and/or additions to the Program originate from and are distributed
-by that particular Contributor. A Contribution 'originates' from a Contributor
-if it was added to the Program by such Contributor itself or anyone acting on
-such Contributor's behalf. Contributions do not include additions to the
-Program which: (i) are separate modules of software distributed in conjunction
-with the Program under their own license agreement, and (ii) are not derivative
-works of the Program. </span></p>
-
-<p><span style='font-size:10.0pt'>&quot;Contributor&quot; means any person or
-entity that distributes the Program.</span> </p>
-
-<p><span style='font-size:10.0pt'>&quot;Licensed Patents &quot; mean patent
-claims licensable by a Contributor which are necessarily infringed by the use
-or sale of its Contribution alone or when combined with the Program. </span></p>
-
-<p><span style='font-size:10.0pt'>&quot;Program&quot; means the Contributions
-distributed in accordance with this Agreement.</span> </p>
-
-<p><span style='font-size:10.0pt'>&quot;Recipient&quot; means anyone who
-receives the Program under this Agreement, including all Contributors.</span> </p>
-
-<p><b><span style='font-size:10.0pt'>2. GRANT OF RIGHTS</span></b> </p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
-Subject to the terms of this Agreement, each Contributor hereby grants Recipient
-a non-exclusive, worldwide, royalty-free copyright license to<span
-style='color:red'> </span>reproduce, prepare derivative works of, publicly
-display, publicly perform, distribute and sublicense the Contribution of such
-Contributor, if any, and such derivative works, in source code and object code
-form.</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>b)
-Subject to the terms of this Agreement, each Contributor hereby grants
-Recipient a non-exclusive, worldwide,<span style='color:green'> </span>royalty-free
-patent license under Licensed Patents to make, use, sell, offer to sell, import
-and otherwise transfer the Contribution of such Contributor, if any, in source
-code and object code form. This patent license shall apply to the combination
-of the Contribution and the Program if, at the time the Contribution is added
-by the Contributor, such addition of the Contribution causes such combination
-to be covered by the Licensed Patents. The patent license shall not apply to
-any other combinations which include the Contribution. No hardware per se is
-licensed hereunder. </span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>c)
-Recipient understands that although each Contributor grants the licenses to its
-Contributions set forth herein, no assurances are provided by any Contributor
-that the Program does not infringe the patent or other intellectual property
-rights of any other entity. Each Contributor disclaims any liability to Recipient
-for claims brought by any other entity based on infringement of intellectual
-property rights or otherwise. As a condition to exercising the rights and
-licenses granted hereunder, each Recipient hereby assumes sole responsibility
-to secure any other intellectual property rights needed, if any. For example,
-if a third party patent license is required to allow Recipient to distribute
-the Program, it is Recipient's responsibility to acquire that license before
-distributing the Program.</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>d)
-Each Contributor represents that to its knowledge it has sufficient copyright
-rights in its Contribution, if any, to grant the copyright license set forth in
-this Agreement. </span></p>
-
-<p><b><span style='font-size:10.0pt'>3. REQUIREMENTS</span></b> </p>
-
-<p><span style='font-size:10.0pt'>A Contributor may choose to distribute the
-Program in object code form under its own license agreement, provided that:</span>
-</p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
-it complies with the terms and conditions of this Agreement; and</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>b)
-its license agreement:</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>i)
-effectively disclaims on behalf of all Contributors all warranties and
-conditions, express and implied, including warranties or conditions of title
-and non-infringement, and implied warranties or conditions of merchantability
-and fitness for a particular purpose; </span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>ii)
-effectively excludes on behalf of all Contributors all liability for damages,
-including direct, indirect, special, incidental and consequential damages, such
-as lost profits; </span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>iii)
-states that any provisions which differ from this Agreement are offered by that
-Contributor alone and not by any other party; and</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>iv)
-states that source code for the Program is available from such Contributor, and
-informs licensees how to obtain it in a reasonable manner on or through a
-medium customarily used for software exchange.<span style='color:blue'> </span></span></p>
-
-<p><span style='font-size:10.0pt'>When the Program is made available in source
-code form:</span> </p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
-it must be made available under this Agreement; and </span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>b) a
-copy of this Agreement must be included with each copy of the Program. </span></p>
-
-<p><span style='font-size:10.0pt'>Contributors may not remove or alter any
-copyright notices contained within the Program. </span></p>
-
-<p><span style='font-size:10.0pt'>Each Contributor must identify itself as the
-originator of its Contribution, if any, in a manner that reasonably allows
-subsequent Recipients to identify the originator of the Contribution. </span></p>
-
-<p><b><span style='font-size:10.0pt'>4. COMMERCIAL DISTRIBUTION</span></b> </p>
-
-<p><span style='font-size:10.0pt'>Commercial distributors of software may
-accept certain responsibilities with respect to end users, business partners
-and the like. While this license is intended to facilitate the commercial use
-of the Program, the Contributor who includes the Program in a commercial
-product offering should do so in a manner which does not create potential
-liability for other Contributors. Therefore, if a Contributor includes the
-Program in a commercial product offering, such Contributor (&quot;Commercial
-Contributor&quot;) hereby agrees to defend and indemnify every other
-Contributor (&quot;Indemnified Contributor&quot;) against any losses, damages and
-costs (collectively &quot;Losses&quot;) arising from claims, lawsuits and other
-legal actions brought by a third party against the Indemnified Contributor to
-the extent caused by the acts or omissions of such Commercial Contributor in
-connection with its distribution of the Program in a commercial product
-offering. The obligations in this section do not apply to any claims or Losses
-relating to any actual or alleged intellectual property infringement. In order
-to qualify, an Indemnified Contributor must: a) promptly notify the Commercial
-Contributor in writing of such claim, and b) allow the Commercial Contributor
-to control, and cooperate with the Commercial Contributor in, the defense and
-any related settlement negotiations. The Indemnified Contributor may participate
-in any such claim at its own expense.</span> </p>
-
-<p><span style='font-size:10.0pt'>For example, a Contributor might include the
-Program in a commercial product offering, Product X. That Contributor is then a
-Commercial Contributor. If that Commercial Contributor then makes performance
-claims, or offers warranties related to Product X, those performance claims and
-warranties are such Commercial Contributor's responsibility alone. Under this
-section, the Commercial Contributor would have to defend claims against the
-other Contributors related to those performance claims and warranties, and if a
-court requires any other Contributor to pay any damages as a result, the
-Commercial Contributor must pay those damages.</span> </p>
-
-<p><b><span style='font-size:10.0pt'>5. NO WARRANTY</span></b> </p>
-
-<p><span style='font-size:10.0pt'>EXCEPT AS EXPRESSLY SET FORTH IN THIS
-AGREEMENT, THE PROGRAM IS PROVIDED ON AN &quot;AS IS&quot; BASIS, WITHOUT
-WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING,
-WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT,
-MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely
-responsible for determining the appropriateness of using and distributing the
-Program and assumes all risks associated with its exercise of rights under this
-Agreement , including but not limited to the risks and costs of program errors,
-compliance with applicable laws, damage to or loss of data, programs or
-equipment, and unavailability or interruption of operations. </span></p>
-
-<p><b><span style='font-size:10.0pt'>6. DISCLAIMER OF LIABILITY</span></b> </p>
-
-<p><span style='font-size:10.0pt'>EXCEPT AS EXPRESSLY SET FORTH IN THIS
-AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF
-THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF
-THE POSSIBILITY OF SUCH DAMAGES.</span> </p>
-
-<p><b><span style='font-size:10.0pt'>7. GENERAL</span></b> </p>
-
-<p><span style='font-size:10.0pt'>If any provision of this Agreement is invalid
-or unenforceable under applicable law, it shall not affect the validity or
-enforceability of the remainder of the terms of this Agreement, and without
-further action by the parties hereto, such provision shall be reformed to the
-minimum extent necessary to make such provision valid and enforceable.</span> </p>
-
-<p><span style='font-size:10.0pt'>If Recipient institutes patent litigation
-against any entity (including a cross-claim or counterclaim in a lawsuit)
-alleging that the Program itself (excluding combinations of the Program with
-other software or hardware) infringes such Recipient's patent(s), then such
-Recipient's rights granted under Section 2(b) shall terminate as of the date
-such litigation is filed. </span></p>
-
-<p><span style='font-size:10.0pt'>All Recipient's rights under this Agreement
-shall terminate if it fails to comply with any of the material terms or
-conditions of this Agreement and does not cure such failure in a reasonable
-period of time after becoming aware of such noncompliance. If all Recipient's
-rights under this Agreement terminate, Recipient agrees to cease use and
-distribution of the Program as soon as reasonably practicable. However,
-Recipient's obligations under this Agreement and any licenses granted by
-Recipient relating to the Program shall continue and survive. </span></p>
-
-<p><span style='font-size:10.0pt'>Everyone is permitted to copy and distribute
-copies of this Agreement, but in order to avoid inconsistency the Agreement is
-copyrighted and may only be modified in the following manner. The Agreement
-Steward reserves the right to publish new versions (including revisions) of
-this Agreement from time to time. No one other than the Agreement Steward has
-the right to modify this Agreement. The Eclipse Foundation is the initial
-Agreement Steward. The Eclipse Foundation may assign the responsibility to
-serve as the Agreement Steward to a suitable separate entity. Each new version
-of the Agreement will be given a distinguishing version number. The Program
-(including Contributions) may always be distributed subject to the version of
-the Agreement under which it was received. In addition, after a new version of
-the Agreement is published, Contributor may elect to distribute the Program
-(including its Contributions) under the new version. Except as expressly stated
-in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to
-the intellectual property of any Contributor under this Agreement, whether
-expressly, by implication, estoppel or otherwise. All rights in the Program not
-expressly granted under this Agreement are reserved.</span> </p>
-
-<p><span style='font-size:10.0pt'>This Agreement is governed by the laws of the
-State of New York and the intellectual property laws of the United States of
-America. No party to this Agreement will bring a legal action under this
-Agreement more than one year after the cause of action arose. Each party waives
-its rights to a jury trial in any resulting litigation.</span> </p>
-
-<p class=MsoNormal></p>
-
-</div>
-
-</body>
-
-</html> \ No newline at end of file
diff --git a/plugins/org.eclipse.jet.all-feature/rootfiles/notice.html b/plugins/org.eclipse.jet.all-feature/rootfiles/notice.html
deleted file mode 100755
index da529cb..0000000
--- a/plugins/org.eclipse.jet.all-feature/rootfiles/notice.html
+++ /dev/null
@@ -1,86 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<html>
-<head>
-<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
-<title>Eclipse.org Software User Agreement</title>
-</head>
-
-<body lang="EN-US" link=blue vlink=purple>
-<h2>Eclipse Foundation Software User Agreement</h2>
-<p>March 17, 2005</p>
-
-<h3>Usage Of Content</h3>
-
-<p>THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR OTHER MATERIALS FOR OPEN SOURCE PROJECTS
- (COLLECTIVELY &quot;CONTENT&quot;). USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS AGREEMENT AND/OR THE TERMS AND
- CONDITIONS OF LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU AGREE THAT YOUR USE
- OF THE CONTENT IS GOVERNED BY THIS AGREEMENT AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR
- NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND
- CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW, THEN YOU MAY NOT USE THE CONTENT.</p>
-
-<h3>Applicable Licenses</h3>
-
-<p>Unless otherwise indicated, all Content made available by the Eclipse Foundation is provided to you under the terms and conditions of the Eclipse Public License Version 1.0
- (&quot;EPL&quot;). A copy of the EPL is provided with this Content and is also available at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
- For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
-
-<p>Content includes, but is not limited to, source code, object code, documentation and other files maintained in the Eclipse.org CVS repository (&quot;Repository&quot;) in CVS
- modules (&quot;Modules&quot;) and made available as downloadable archives (&quot;Downloads&quot;).</p>
-
-<ul>
- <li>Content may be structured and packaged into modules to facilitate delivering, extending, and upgrading the Content. Typical modules may include plug-ins (&quot;Plug-ins&quot;), plug-in fragments (&quot;Fragments&quot;), and features (&quot;Features&quot;).</li>
-
- <li>Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java<sup>TM</sup> ARchive) in a directory named &quot;plugins&quot;.</li>
- <li>A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material. Each Feature may be packaged as a sub-directory in a directory named &quot;features&quot;. Within a Feature, files named &quot;feature.xml&quot; may contain a list of the names and version numbers of the Plug-ins
- and/or Fragments associated with that Feature.</li>
- <li>Features may also include other Features (&quot;Included Features&quot;). Within a Feature, files named &quot;feature.xml&quot; may contain a list of the names and version numbers of Included Features.</li>
-
-</ul>
-
-<p>The terms and conditions governing Plug-ins and Fragments should be contained in files named &quot;about.html&quot; (&quot;Abouts&quot;). The terms and conditions governing Features and
-Included Features should be contained in files named &quot;license.html&quot; (&quot;Feature Licenses&quot;). Abouts and Feature Licenses may be located in any directory of a Download or Module
-including, but not limited to the following locations:</p>
-
-<ul>
- <li>The top-level (root) directory</li>
-
- <li>Plug-in and Fragment directories</li>
- <li>Inside Plug-ins and Fragments packaged as JARs</li>
- <li>Sub-directories of the directory named &quot;src&quot; of certain Plug-ins</li>
- <li>Feature directories</li>
-</ul>
-
-
-<p>Note: if a Feature made available by the Eclipse Foundation is installed using the Eclipse Update Manager, you must agree to a license (&quot;Feature Update License&quot;) during the
-installation process. If the Feature contains Included Features, the Feature Update License should either provide you with the terms and conditions governing the Included Features or
-inform you where you can locate them. Feature Update Licenses may be found in the &quot;license&quot; property of files named &quot;feature.properties&quot; found within a Feature.
-Such Abouts, Feature Licenses, and Feature Update Licenses contain the terms and conditions (or references to such terms and conditions) that govern your use of the associated Content in
-that directory.</p>
-
-<p>THE ABOUTS, FEATURE LICENSES, AND FEATURE UPDATE LICENSES MAY REFER TO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS. SOME OF THESE
-OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):</p>
-
-<ul>
- <li>Common Public License Version 1.0 (available at <a href="http://www.eclipse.org/legal/cpl-v10.html">http://www.eclipse.org/legal/cpl-v10.html</a>)</li>
-
- <li>Apache Software License 1.1 (available at <a href="http://www.apache.org/licenses/LICENSE">http://www.apache.org/licenses/LICENSE</a>)</li>
- <li>Apache Software License 2.0 (available at <a href="http://www.apache.org/licenses/LICENSE-2.0">http://www.apache.org/licenses/LICENSE-2.0</a>)</li>
- <li>IBM Public License 1.0 (available at <a href="http://oss.software.ibm.com/developerworks/opensource/license10.html">http://oss.software.ibm.com/developerworks/opensource/license10.html</a>)</li>
- <li>Metro Link Public License 1.00 (available at <a href="http://www.opengroup.org/openmotif/supporters/metrolink/license.html">http://www.opengroup.org/openmotif/supporters/metrolink/license.html</a>)</li>
-
- <li>Mozilla Public License Version 1.1 (available at <a href="http://www.mozilla.org/MPL/MPL-1.1.html">http://www.mozilla.org/MPL/MPL-1.1.html</a>)</li>
-</ul>
-
-<p>IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR TO USE OF THE CONTENT. If no About, Feature License, or Feature Update License is provided, please
-contact the Eclipse Foundation to determine what terms and conditions govern that particular Content.</p>
-
-<h3>Cryptography</h3>
-
-<p>Content may contain encryption software. The country in which you are currently may have restrictions on the import, possession, and use, and/or re-export to
- another country, of encryption software. BEFORE using any encryption software, please check the country's laws, regulations and policies concerning the import,
- possession, or use, and re-export of encryption software, to see if this is permitted.</p>
-
-<small>Java and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the United States, other countries, or both.</small>
-
-</body>
-</html>
diff --git a/plugins/org.eclipse.jet.capabilities-feature/.project b/plugins/org.eclipse.jet.capabilities-feature/.project
deleted file mode 100644
index 9b67f4c..0000000
--- a/plugins/org.eclipse.jet.capabilities-feature/.project
+++ /dev/null
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.jet.capabilities-feature</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.pde.FeatureBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.FeatureNature</nature>
- </natures>
-</projectDescription>
diff --git a/plugins/org.eclipse.jet.capabilities-feature/build.properties b/plugins/org.eclipse.jet.capabilities-feature/build.properties
deleted file mode 100644
index 6ab47a2..0000000
--- a/plugins/org.eclipse.jet.capabilities-feature/build.properties
+++ /dev/null
@@ -1,13 +0,0 @@
-# NLS_MESSAGEFORMAT_VAR
-root=rootfiles
-bin.includes = feature.properties,\
- feature.xml,\
- license.html,\
- eclipse_update_120.jpg,\
- epl-v10.html,\
- eclipse.gif
-src.includes = license.html,\
- feature.xml,\
- feature.properties,\
- epl-v10.html,\
- eclipse_update_120.jpg
diff --git a/plugins/org.eclipse.jet.capabilities-feature/eclipse.gif b/plugins/org.eclipse.jet.capabilities-feature/eclipse.gif
deleted file mode 100644
index bdc2912..0000000
--- a/plugins/org.eclipse.jet.capabilities-feature/eclipse.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jet.capabilities-feature/eclipse_update_120.jpg b/plugins/org.eclipse.jet.capabilities-feature/eclipse_update_120.jpg
deleted file mode 100644
index bfdf708..0000000
--- a/plugins/org.eclipse.jet.capabilities-feature/eclipse_update_120.jpg
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jet.capabilities-feature/epl-v10.html b/plugins/org.eclipse.jet.capabilities-feature/epl-v10.html
deleted file mode 100644
index cb1073a..0000000
--- a/plugins/org.eclipse.jet.capabilities-feature/epl-v10.html
+++ /dev/null
@@ -1,304 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<html xmlns:o="urn:schemas-microsoft-com:office:office"
-xmlns:w="urn:schemas-microsoft-com:office:word"
-xmlns="http://www.w3.org/TR/REC-html40">
-
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<link rel=File-List
-href="./Eclipse%20EPL%202003_11_10%20Final_files/filelist.xml">
-<title>Eclipse Public License - Version 1.0</title>
-<style>
-<!--
- /* Font Definitions */
-@font-face
- {
- panose-1:2 11 6 4 3 5 4 4 2 4;
- mso-font-charset:0;
- mso-font-pitch:variable;
- mso-font-signature:553679495 -2147483648 8 0 66047 0;}
- /* Style Definitions */
-p.MsoNormal, li.MsoNormal, div.MsoNormal
- {mso-style-parent:"";
- margin:0in;
- margin-bottom:.0001pt;
- mso-pagination:widow-orphan;
- font-size:12.0pt;
- }
-p
- {margin-right:0in;
- mso-margin-top-alt:auto;
- mso-margin-bottom-alt:auto;
- margin-left:0in;
- mso-pagination:widow-orphan;
- font-size:12.0pt;
- }
-p.BalloonText, li.BalloonText, div.BalloonText
- {mso-style-name:"Balloon Text";
- margin:0in;
- margin-bottom:.0001pt;
- mso-pagination:widow-orphan;
- font-size:8.0pt;
-
- }
-@page Section1
- {size:8.5in 11.0in;
- margin:1.0in 1.25in 1.0in 1.25in;
- mso-header-margin:.5in;
- mso-footer-margin:.5in;
- mso-paper-source:0;}
-div.Section1
- {page:Section1;}
--->
-</style>
-</head>
-
-<body lang="EN-US" style='tab-interval:.5in'>
-
-<div class=Section1>
-
-<p align=center style='text-align:center'><b>Eclipse Public License - v 1.0</b>
-</p>
-
-<p><span style='font-size:10.0pt'>THE ACCOMPANYING PROGRAM IS PROVIDED UNDER
-THE TERMS OF THIS ECLIPSE PUBLIC LICENSE (&quot;AGREEMENT&quot;). ANY USE,
-REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE
-OF THIS AGREEMENT.</span> </p>
-
-<p><b><span style='font-size:10.0pt'>1. DEFINITIONS</span></b> </p>
-
-<p><span style='font-size:10.0pt'>&quot;Contribution&quot; means:</span> </p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
-in the case of the initial Contributor, the initial code and documentation
-distributed under this Agreement, and<br clear=left>
-b) in the case of each subsequent Contributor:</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>i)
-changes to the Program, and</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>ii)
-additions to the Program;</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>where
-such changes and/or additions to the Program originate from and are distributed
-by that particular Contributor. A Contribution 'originates' from a Contributor
-if it was added to the Program by such Contributor itself or anyone acting on
-such Contributor's behalf. Contributions do not include additions to the
-Program which: (i) are separate modules of software distributed in conjunction
-with the Program under their own license agreement, and (ii) are not derivative
-works of the Program. </span></p>
-
-<p><span style='font-size:10.0pt'>&quot;Contributor&quot; means any person or
-entity that distributes the Program.</span> </p>
-
-<p><span style='font-size:10.0pt'>&quot;Licensed Patents &quot; mean patent
-claims licensable by a Contributor which are necessarily infringed by the use
-or sale of its Contribution alone or when combined with the Program. </span></p>
-
-<p><span style='font-size:10.0pt'>&quot;Program&quot; means the Contributions
-distributed in accordance with this Agreement.</span> </p>
-
-<p><span style='font-size:10.0pt'>&quot;Recipient&quot; means anyone who
-receives the Program under this Agreement, including all Contributors.</span> </p>
-
-<p><b><span style='font-size:10.0pt'>2. GRANT OF RIGHTS</span></b> </p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
-Subject to the terms of this Agreement, each Contributor hereby grants Recipient
-a non-exclusive, worldwide, royalty-free copyright license to<span
-style='color:red'> </span>reproduce, prepare derivative works of, publicly
-display, publicly perform, distribute and sublicense the Contribution of such
-Contributor, if any, and such derivative works, in source code and object code
-form.</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>b)
-Subject to the terms of this Agreement, each Contributor hereby grants
-Recipient a non-exclusive, worldwide,<span style='color:green'> </span>royalty-free
-patent license under Licensed Patents to make, use, sell, offer to sell, import
-and otherwise transfer the Contribution of such Contributor, if any, in source
-code and object code form. This patent license shall apply to the combination
-of the Contribution and the Program if, at the time the Contribution is added
-by the Contributor, such addition of the Contribution causes such combination
-to be covered by the Licensed Patents. The patent license shall not apply to
-any other combinations which include the Contribution. No hardware per se is
-licensed hereunder. </span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>c)
-Recipient understands that although each Contributor grants the licenses to its
-Contributions set forth herein, no assurances are provided by any Contributor
-that the Program does not infringe the patent or other intellectual property
-rights of any other entity. Each Contributor disclaims any liability to Recipient
-for claims brought by any other entity based on infringement of intellectual
-property rights or otherwise. As a condition to exercising the rights and
-licenses granted hereunder, each Recipient hereby assumes sole responsibility
-to secure any other intellectual property rights needed, if any. For example,
-if a third party patent license is required to allow Recipient to distribute
-the Program, it is Recipient's responsibility to acquire that license before
-distributing the Program.</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>d)
-Each Contributor represents that to its knowledge it has sufficient copyright
-rights in its Contribution, if any, to grant the copyright license set forth in
-this Agreement. </span></p>
-
-<p><b><span style='font-size:10.0pt'>3. REQUIREMENTS</span></b> </p>
-
-<p><span style='font-size:10.0pt'>A Contributor may choose to distribute the
-Program in object code form under its own license agreement, provided that:</span>
-</p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
-it complies with the terms and conditions of this Agreement; and</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>b)
-its license agreement:</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>i)
-effectively disclaims on behalf of all Contributors all warranties and
-conditions, express and implied, including warranties or conditions of title
-and non-infringement, and implied warranties or conditions of merchantability
-and fitness for a particular purpose; </span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>ii)
-effectively excludes on behalf of all Contributors all liability for damages,
-including direct, indirect, special, incidental and consequential damages, such
-as lost profits; </span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>iii)
-states that any provisions which differ from this Agreement are offered by that
-Contributor alone and not by any other party; and</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>iv)
-states that source code for the Program is available from such Contributor, and
-informs licensees how to obtain it in a reasonable manner on or through a
-medium customarily used for software exchange.<span style='color:blue'> </span></span></p>
-
-<p><span style='font-size:10.0pt'>When the Program is made available in source
-code form:</span> </p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
-it must be made available under this Agreement; and </span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>b) a
-copy of this Agreement must be included with each copy of the Program. </span></p>
-
-<p><span style='font-size:10.0pt'>Contributors may not remove or alter any
-copyright notices contained within the Program. </span></p>
-
-<p><span style='font-size:10.0pt'>Each Contributor must identify itself as the
-originator of its Contribution, if any, in a manner that reasonably allows
-subsequent Recipients to identify the originator of the Contribution. </span></p>
-
-<p><b><span style='font-size:10.0pt'>4. COMMERCIAL DISTRIBUTION</span></b> </p>
-
-<p><span style='font-size:10.0pt'>Commercial distributors of software may
-accept certain responsibilities with respect to end users, business partners
-and the like. While this license is intended to facilitate the commercial use
-of the Program, the Contributor who includes the Program in a commercial
-product offering should do so in a manner which does not create potential
-liability for other Contributors. Therefore, if a Contributor includes the
-Program in a commercial product offering, such Contributor (&quot;Commercial
-Contributor&quot;) hereby agrees to defend and indemnify every other
-Contributor (&quot;Indemnified Contributor&quot;) against any losses, damages and
-costs (collectively &quot;Losses&quot;) arising from claims, lawsuits and other
-legal actions brought by a third party against the Indemnified Contributor to
-the extent caused by the acts or omissions of such Commercial Contributor in
-connection with its distribution of the Program in a commercial product
-offering. The obligations in this section do not apply to any claims or Losses
-relating to any actual or alleged intellectual property infringement. In order
-to qualify, an Indemnified Contributor must: a) promptly notify the Commercial
-Contributor in writing of such claim, and b) allow the Commercial Contributor
-to control, and cooperate with the Commercial Contributor in, the defense and
-any related settlement negotiations. The Indemnified Contributor may participate
-in any such claim at its own expense.</span> </p>
-
-<p><span style='font-size:10.0pt'>For example, a Contributor might include the
-Program in a commercial product offering, Product X. That Contributor is then a
-Commercial Contributor. If that Commercial Contributor then makes performance
-claims, or offers warranties related to Product X, those performance claims and
-warranties are such Commercial Contributor's responsibility alone. Under this
-section, the Commercial Contributor would have to defend claims against the
-other Contributors related to those performance claims and warranties, and if a
-court requires any other Contributor to pay any damages as a result, the
-Commercial Contributor must pay those damages.</span> </p>
-
-<p><b><span style='font-size:10.0pt'>5. NO WARRANTY</span></b> </p>
-
-<p><span style='font-size:10.0pt'>EXCEPT AS EXPRESSLY SET FORTH IN THIS
-AGREEMENT, THE PROGRAM IS PROVIDED ON AN &quot;AS IS&quot; BASIS, WITHOUT
-WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING,
-WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT,
-MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely
-responsible for determining the appropriateness of using and distributing the
-Program and assumes all risks associated with its exercise of rights under this
-Agreement , including but not limited to the risks and costs of program errors,
-compliance with applicable laws, damage to or loss of data, programs or
-equipment, and unavailability or interruption of operations. </span></p>
-
-<p><b><span style='font-size:10.0pt'>6. DISCLAIMER OF LIABILITY</span></b> </p>
-
-<p><span style='font-size:10.0pt'>EXCEPT AS EXPRESSLY SET FORTH IN THIS
-AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF
-THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF
-THE POSSIBILITY OF SUCH DAMAGES.</span> </p>
-
-<p><b><span style='font-size:10.0pt'>7. GENERAL</span></b> </p>
-
-<p><span style='font-size:10.0pt'>If any provision of this Agreement is invalid
-or unenforceable under applicable law, it shall not affect the validity or
-enforceability of the remainder of the terms of this Agreement, and without
-further action by the parties hereto, such provision shall be reformed to the
-minimum extent necessary to make such provision valid and enforceable.</span> </p>
-
-<p><span style='font-size:10.0pt'>If Recipient institutes patent litigation
-against any entity (including a cross-claim or counterclaim in a lawsuit)
-alleging that the Program itself (excluding combinations of the Program with
-other software or hardware) infringes such Recipient's patent(s), then such
-Recipient's rights granted under Section 2(b) shall terminate as of the date
-such litigation is filed. </span></p>
-
-<p><span style='font-size:10.0pt'>All Recipient's rights under this Agreement
-shall terminate if it fails to comply with any of the material terms or
-conditions of this Agreement and does not cure such failure in a reasonable
-period of time after becoming aware of such noncompliance. If all Recipient's
-rights under this Agreement terminate, Recipient agrees to cease use and
-distribution of the Program as soon as reasonably practicable. However,
-Recipient's obligations under this Agreement and any licenses granted by
-Recipient relating to the Program shall continue and survive. </span></p>
-
-<p><span style='font-size:10.0pt'>Everyone is permitted to copy and distribute
-copies of this Agreement, but in order to avoid inconsistency the Agreement is
-copyrighted and may only be modified in the following manner. The Agreement
-Steward reserves the right to publish new versions (including revisions) of
-this Agreement from time to time. No one other than the Agreement Steward has
-the right to modify this Agreement. The Eclipse Foundation is the initial
-Agreement Steward. The Eclipse Foundation may assign the responsibility to
-serve as the Agreement Steward to a suitable separate entity. Each new version
-of the Agreement will be given a distinguishing version number. The Program
-(including Contributions) may always be distributed subject to the version of
-the Agreement under which it was received. In addition, after a new version of
-the Agreement is published, Contributor may elect to distribute the Program
-(including its Contributions) under the new version. Except as expressly stated
-in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to
-the intellectual property of any Contributor under this Agreement, whether
-expressly, by implication, estoppel or otherwise. All rights in the Program not
-expressly granted under this Agreement are reserved.</span> </p>
-
-<p><span style='font-size:10.0pt'>This Agreement is governed by the laws of the
-State of New York and the intellectual property laws of the United States of
-America. No party to this Agreement will bring a legal action under this
-Agreement more than one year after the cause of action arose. Each party waives
-its rights to a jury trial in any resulting litigation.</span> </p>
-
-<p class=MsoNormal></p>
-
-</div>
-
-</body>
-
-</html> \ No newline at end of file
diff --git a/plugins/org.eclipse.jet.capabilities-feature/feature.properties b/plugins/org.eclipse.jet.capabilities-feature/feature.properties
deleted file mode 100644
index 549667d..0000000
--- a/plugins/org.eclipse.jet.capabilities-feature/feature.properties
+++ /dev/null
@@ -1,141 +0,0 @@
-# /**
-# * <copyright>
-# *
-# * Copyright (c) 2004, 2008 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 - Initial API and implementation
-# *
-# * </copyright>
-# *
-# * $Id: feature.properties,v 1.1 2009/03/04 16:05:17 pelder Exp $
-# */
-
-# NLS_MESSAGEFORMAT_VAR
-
-featureName=JET Capabilities (Incubation)
-providerName=Eclipse Modeling Project
-description=JET Capabilities (Incubation)
-# "copyright" property - text of the "Feature Update Copyright"
-copyright=\
-Copyright (c) 2009 IBM Corporation and others.\n\
-All rights reserved. This program and the accompanying materials\n\
-are made available under the terms of the Eclipse Public License v1.0\n\
-which accompanies this distribution, and is available at\n\
-http://www.eclipse.org/legal/epl-v10.html\n\
-\n\
-Contributors:\n\
- IBM Corporation - initial API and implementation\n
-################ end of copyright property ####################################
-
-# "licenseURL" property - URL of the "Feature License"
-# do not translate value - just change to point to a locale-specific HTML page
-licenseURL=license.html
-
-# "license" property - text of the "Feature Update License"
-# should be plain text version of license agreement pointed to be "licenseURL"
-license=\
-ECLIPSE FOUNDATION SOFTWARE USER AGREEMENT\n\
-March 17, 2005\n\
-\n\
-Usage Of Content\n\
-\n\
-THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR\n\
-OTHER MATERIALS FOR OPEN SOURCE PROJECTS (COLLECTIVELY "CONTENT").\n\
-USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS\n\
-AGREEMENT AND/OR THE TERMS AND CONDITIONS OF LICENSE AGREEMENTS OR\n\
-NOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU\n\
-AGREE THAT YOUR USE OF THE CONTENT IS GOVERNED BY THIS AGREEMENT\n\
-AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS\n\
-OR NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE\n\
-TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND CONDITIONS\n\
-OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED\n\
-BELOW, THEN YOU MAY NOT USE THE CONTENT.\n\
-\n\
-Applicable Licenses\n\
-\n\
-Unless otherwise indicated, all Content made available by the Eclipse Foundation\n\
-is provided to you under the terms and conditions of the Eclipse Public\n\
-License Version 1.0 ("EPL"). A copy of the EPL is provided with this\n\
-Content and is also available at http://www.eclipse.org/legal/epl-v10.html.\n\
-For purposes of the EPL, "Program" will mean the Content.\n\
-\n\
-Content includes, but is not limited to, source code, object code,\n\
-documentation and other files maintained in the Eclipse.org CVS\n\
-repository ("Repository") in CVS modules ("Modules") and made available\n\
-as downloadable archives ("Downloads").\n\
-\n\
- - Content may be structured and packaged into modules to facilitate delivering,\n\
- extending, and upgrading the Content. Typical modules may include plug-ins ("Plug-ins"),\n\
- plug-in fragments ("Fragments"), and features ("Features").\n\
- - Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java? ARchive)\n\
- in a directory named "plugins".\n\
- - A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material.\n\
- Each Feature may be packaged as a sub-directory in a directory named "features".\n\
- Within a Feature, files named "feature.xml" may contain a list of the names and version\n\
- numbers of the Plug-ins and/or Fragments associated with that Feature.\n\
- - Features may also include other Features ("Included Features"). Within a Feature, files\n\
- named "feature.xml" may contain a list of the names and version numbers of Included Features.\n\
-\n\
-Features may also include other Features ("Included Features"). Files named\n\
-"feature.xml" may contain a list of the names and version numbers of\n\
-Included Features.\n\
-\n\
-The terms and conditions governing Plug-ins and Fragments should be\n\
-contained in files named "about.html" ("Abouts"). The terms and\n\
-conditions governing Features and Included Features should be contained\n\
-in files named "license.html" ("Feature Licenses"). Abouts and Feature\n\
-Licenses may be located in any directory of a Download or Module\n\
-including, but not limited to the following locations:\n\
-\n\
- - The top-level (root) directory\n\
- - Plug-in and Fragment directories\n\
- - Inside Plug-ins and Fragments packaged as JARs\n\
- - Sub-directories of the directory named "src" of certain Plug-ins\n\
- - Feature directories\n\
-\n\
-Note: if a Feature made available by the Eclipse Foundation is installed using the\n\
-Eclipse Update Manager, you must agree to a license ("Feature Update\n\
-License") during the installation process. If the Feature contains\n\
-Included Features, the Feature Update License should either provide you\n\
-with the terms and conditions governing the Included Features or inform\n\
-you where you can locate them. Feature Update Licenses may be found in\n\
-the "license" property of files named "feature.properties". Such Abouts,\n\
-Feature Licenses and Feature Update Licenses contain the terms and\n\
-conditions (or references to such terms and conditions) that govern your\n\
-use of the associated Content in that directory.\n\
-\n\
-THE ABOUTS, FEATURE LICENSES AND FEATURE UPDATE LICENSES MAY REFER\n\
-TO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS.\n\
-SOME OF THESE OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):\n\
-\n\
- - Common Public License Version 1.0 (available at http://www.eclipse.org/legal/cpl-v10.html)\n\
- - Apache Software License 1.1 (available at http://www.apache.org/licenses/LICENSE)\n\
- - Apache Software License 2.0 (available at http://www.apache.org/licenses/LICENSE-2.0)\n\
- - IBM Public License 1.0 (available at http://oss.software.ibm.com/developerworks/opensource/license10.html)\n\
- - Metro Link Public License 1.00 (available at http://www.opengroup.org/openmotif/supporters/metrolink/license.html)\n\
- - Mozilla Public License Version 1.1 (available at http://www.mozilla.org/MPL/MPL-1.1.html)\n\
-\n\
-IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR\n\
-TO USE OF THE CONTENT. If no About, Feature License or Feature Update License\n\
-is provided, please contact the Eclipse Foundation to determine what terms and conditions\n\
-govern that particular Content.\n\
-\n\
-Cryptography\n\
-\n\
-Content may contain encryption software. The country in which you are\n\
-currently may have restrictions on the import, possession, and use,\n\
-and/or re-export to another country, of encryption software. BEFORE\n\
-using any encryption software, please check the country's laws,\n\
-regulations and policies concerning the import, possession, or use,\n\
-and re-export of encryption software, to see if this is permitted.\n\
-\n\
-Java and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the United States, other countries, or both.\n
-########### end of license property ##########################################
-
-# "updateSiteName" property - label for the M2T update site
-updateSiteName=Eclipse Model to Text (M2T) Updates
diff --git a/plugins/org.eclipse.jet.capabilities-feature/feature.xml b/plugins/org.eclipse.jet.capabilities-feature/feature.xml
deleted file mode 100644
index 44b3e7b..0000000
--- a/plugins/org.eclipse.jet.capabilities-feature/feature.xml
+++ /dev/null
@@ -1,31 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<feature
- id="org.eclipse.jet.capabilities"
- label="%featureName"
- version="1.0.0.qualifier"
- provider-name="%providerName">
-
- <description>
- %description
- </description>
-
- <copyright>
- %copyright
- </copyright>
-
- <license url="%licenseURL">
- %license
- </license>
-
- <url>
- <update label="%updateSiteName" url="http://download.eclipse.org/modeling/m2t/updates/releases/"/>
- </url>
-
- <plugin
- id="org.eclipse.jet.capabilities"
- download-size="0"
- install-size="0"
- version="0.0.0"
- unpack="false"/>
-
-</feature>
diff --git a/plugins/org.eclipse.jet.capabilities-feature/license.html b/plugins/org.eclipse.jet.capabilities-feature/license.html
deleted file mode 100644
index 74122b2..0000000
--- a/plugins/org.eclipse.jet.capabilities-feature/license.html
+++ /dev/null
@@ -1,79 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<html>
-<head>
-<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
-<title>Eclipse.org Software User Agreement</title>
-</head>
-
-<body lang="EN-US" link=blue vlink=purple>
-<h2>Eclipse Foundation Software User Agreement</h2>
-<p>March 17, 2005</p>
-
-<h3>Usage Of Content</h3>
-
-<p>THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR OTHER MATERIALS FOR OPEN SOURCE PROJECTS
- (COLLECTIVELY &quot;CONTENT&quot;). USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS AGREEMENT AND/OR THE TERMS AND
- CONDITIONS OF LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU AGREE THAT YOUR USE
- OF THE CONTENT IS GOVERNED BY THIS AGREEMENT AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR
- NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND
- CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW, THEN YOU MAY NOT USE THE CONTENT.</p>
-
-<h3>Applicable Licenses</h3>
-
-<p>Unless otherwise indicated, all Content made available by the Eclipse Foundation is provided to you under the terms and conditions of the Eclipse Public License Version 1.0
- (&quot;EPL&quot;). A copy of the EPL is provided with this Content and is also available at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
- For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
-
-<p>Content includes, but is not limited to, source code, object code, documentation and other files maintained in the Eclipse.org CVS repository (&quot;Repository&quot;) in CVS
- modules (&quot;Modules&quot;) and made available as downloadable archives (&quot;Downloads&quot;).</p>
-
-<ul>
- <li>Content may be structured and packaged into modules to facilitate delivering, extending, and upgrading the Content. Typical modules may include plug-ins (&quot;Plug-ins&quot;), plug-in fragments (&quot;Fragments&quot;), and features (&quot;Features&quot;).</li>
- <li>Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java<sup>TM</sup> ARchive) in a directory named &quot;plugins&quot;.</li>
- <li>A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material. Each Feature may be packaged as a sub-directory in a directory named &quot;features&quot;. Within a Feature, files named &quot;feature.xml&quot; may contain a list of the names and version numbers of the Plug-ins
- and/or Fragments associated with that Feature.</li>
- <li>Features may also include other Features (&quot;Included Features&quot;). Within a Feature, files named &quot;feature.xml&quot; may contain a list of the names and version numbers of Included Features.</li>
-</ul>
-
-<p>The terms and conditions governing Plug-ins and Fragments should be contained in files named &quot;about.html&quot; (&quot;Abouts&quot;). The terms and conditions governing Features and
-Included Features should be contained in files named &quot;license.html&quot; (&quot;Feature Licenses&quot;). Abouts and Feature Licenses may be located in any directory of a Download or Module
-including, but not limited to the following locations:</p>
-
-<ul>
- <li>The top-level (root) directory</li>
- <li>Plug-in and Fragment directories</li>
- <li>Inside Plug-ins and Fragments packaged as JARs</li>
- <li>Sub-directories of the directory named &quot;src&quot; of certain Plug-ins</li>
- <li>Feature directories</li>
-</ul>
-
-<p>Note: if a Feature made available by the Eclipse Foundation is installed using the Eclipse Update Manager, you must agree to a license (&quot;Feature Update License&quot;) during the
-installation process. If the Feature contains Included Features, the Feature Update License should either provide you with the terms and conditions governing the Included Features or
-inform you where you can locate them. Feature Update Licenses may be found in the &quot;license&quot; property of files named &quot;feature.properties&quot; found within a Feature.
-Such Abouts, Feature Licenses, and Feature Update Licenses contain the terms and conditions (or references to such terms and conditions) that govern your use of the associated Content in
-that directory.</p>
-
-<p>THE ABOUTS, FEATURE LICENSES, AND FEATURE UPDATE LICENSES MAY REFER TO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS. SOME OF THESE
-OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):</p>
-
-<ul>
- <li>Common Public License Version 1.0 (available at <a href="http://www.eclipse.org/legal/cpl-v10.html">http://www.eclipse.org/legal/cpl-v10.html</a>)</li>
- <li>Apache Software License 1.1 (available at <a href="http://www.apache.org/licenses/LICENSE">http://www.apache.org/licenses/LICENSE</a>)</li>
- <li>Apache Software License 2.0 (available at <a href="http://www.apache.org/licenses/LICENSE-2.0">http://www.apache.org/licenses/LICENSE-2.0</a>)</li>
- <li>IBM Public License 1.0 (available at <a href="http://oss.software.ibm.com/developerworks/opensource/license10.html">http://oss.software.ibm.com/developerworks/opensource/license10.html</a>)</li>
- <li>Metro Link Public License 1.00 (available at <a href="http://www.opengroup.org/openmotif/supporters/metrolink/license.html">http://www.opengroup.org/openmotif/supporters/metrolink/license.html</a>)</li>
- <li>Mozilla Public License Version 1.1 (available at <a href="http://www.mozilla.org/MPL/MPL-1.1.html">http://www.mozilla.org/MPL/MPL-1.1.html</a>)</li>
-</ul>
-
-<p>IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR TO USE OF THE CONTENT. If no About, Feature License, or Feature Update License is provided, please
-contact the Eclipse Foundation to determine what terms and conditions govern that particular Content.</p>
-
-<h3>Cryptography</h3>
-
-<p>Content may contain encryption software. The country in which you are currently may have restrictions on the import, possession, and use, and/or re-export to
- another country, of encryption software. BEFORE using any encryption software, please check the country's laws, regulations and policies concerning the import,
- possession, or use, and re-export of encryption software, to see if this is permitted.</p>
-
-<small>Java and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the United States, other countries, or both.</small>
-</body>
-</html>
diff --git a/plugins/org.eclipse.jet.capabilities-feature/rootfiles/epl-v10.html b/plugins/org.eclipse.jet.capabilities-feature/rootfiles/epl-v10.html
deleted file mode 100644
index cb1073a..0000000
--- a/plugins/org.eclipse.jet.capabilities-feature/rootfiles/epl-v10.html
+++ /dev/null
@@ -1,304 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<html xmlns:o="urn:schemas-microsoft-com:office:office"
-xmlns:w="urn:schemas-microsoft-com:office:word"
-xmlns="http://www.w3.org/TR/REC-html40">
-
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<link rel=File-List
-href="./Eclipse%20EPL%202003_11_10%20Final_files/filelist.xml">
-<title>Eclipse Public License - Version 1.0</title>
-<style>
-<!--
- /* Font Definitions */
-@font-face
- {
- panose-1:2 11 6 4 3 5 4 4 2 4;
- mso-font-charset:0;
- mso-font-pitch:variable;
- mso-font-signature:553679495 -2147483648 8 0 66047 0;}
- /* Style Definitions */
-p.MsoNormal, li.MsoNormal, div.MsoNormal
- {mso-style-parent:"";
- margin:0in;
- margin-bottom:.0001pt;
- mso-pagination:widow-orphan;
- font-size:12.0pt;
- }
-p
- {margin-right:0in;
- mso-margin-top-alt:auto;
- mso-margin-bottom-alt:auto;
- margin-left:0in;
- mso-pagination:widow-orphan;
- font-size:12.0pt;
- }
-p.BalloonText, li.BalloonText, div.BalloonText
- {mso-style-name:"Balloon Text";
- margin:0in;
- margin-bottom:.0001pt;
- mso-pagination:widow-orphan;
- font-size:8.0pt;
-
- }
-@page Section1
- {size:8.5in 11.0in;
- margin:1.0in 1.25in 1.0in 1.25in;
- mso-header-margin:.5in;
- mso-footer-margin:.5in;
- mso-paper-source:0;}
-div.Section1
- {page:Section1;}
--->
-</style>
-</head>
-
-<body lang="EN-US" style='tab-interval:.5in'>
-
-<div class=Section1>
-
-<p align=center style='text-align:center'><b>Eclipse Public License - v 1.0</b>
-</p>
-
-<p><span style='font-size:10.0pt'>THE ACCOMPANYING PROGRAM IS PROVIDED UNDER
-THE TERMS OF THIS ECLIPSE PUBLIC LICENSE (&quot;AGREEMENT&quot;). ANY USE,
-REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE
-OF THIS AGREEMENT.</span> </p>
-
-<p><b><span style='font-size:10.0pt'>1. DEFINITIONS</span></b> </p>
-
-<p><span style='font-size:10.0pt'>&quot;Contribution&quot; means:</span> </p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
-in the case of the initial Contributor, the initial code and documentation
-distributed under this Agreement, and<br clear=left>
-b) in the case of each subsequent Contributor:</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>i)
-changes to the Program, and</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>ii)
-additions to the Program;</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>where
-such changes and/or additions to the Program originate from and are distributed
-by that particular Contributor. A Contribution 'originates' from a Contributor
-if it was added to the Program by such Contributor itself or anyone acting on
-such Contributor's behalf. Contributions do not include additions to the
-Program which: (i) are separate modules of software distributed in conjunction
-with the Program under their own license agreement, and (ii) are not derivative
-works of the Program. </span></p>
-
-<p><span style='font-size:10.0pt'>&quot;Contributor&quot; means any person or
-entity that distributes the Program.</span> </p>
-
-<p><span style='font-size:10.0pt'>&quot;Licensed Patents &quot; mean patent
-claims licensable by a Contributor which are necessarily infringed by the use
-or sale of its Contribution alone or when combined with the Program. </span></p>
-
-<p><span style='font-size:10.0pt'>&quot;Program&quot; means the Contributions
-distributed in accordance with this Agreement.</span> </p>
-
-<p><span style='font-size:10.0pt'>&quot;Recipient&quot; means anyone who
-receives the Program under this Agreement, including all Contributors.</span> </p>
-
-<p><b><span style='font-size:10.0pt'>2. GRANT OF RIGHTS</span></b> </p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
-Subject to the terms of this Agreement, each Contributor hereby grants Recipient
-a non-exclusive, worldwide, royalty-free copyright license to<span
-style='color:red'> </span>reproduce, prepare derivative works of, publicly
-display, publicly perform, distribute and sublicense the Contribution of such
-Contributor, if any, and such derivative works, in source code and object code
-form.</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>b)
-Subject to the terms of this Agreement, each Contributor hereby grants
-Recipient a non-exclusive, worldwide,<span style='color:green'> </span>royalty-free
-patent license under Licensed Patents to make, use, sell, offer to sell, import
-and otherwise transfer the Contribution of such Contributor, if any, in source
-code and object code form. This patent license shall apply to the combination
-of the Contribution and the Program if, at the time the Contribution is added
-by the Contributor, such addition of the Contribution causes such combination
-to be covered by the Licensed Patents. The patent license shall not apply to
-any other combinations which include the Contribution. No hardware per se is
-licensed hereunder. </span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>c)
-Recipient understands that although each Contributor grants the licenses to its
-Contributions set forth herein, no assurances are provided by any Contributor
-that the Program does not infringe the patent or other intellectual property
-rights of any other entity. Each Contributor disclaims any liability to Recipient
-for claims brought by any other entity based on infringement of intellectual
-property rights or otherwise. As a condition to exercising the rights and
-licenses granted hereunder, each Recipient hereby assumes sole responsibility
-to secure any other intellectual property rights needed, if any. For example,
-if a third party patent license is required to allow Recipient to distribute
-the Program, it is Recipient's responsibility to acquire that license before
-distributing the Program.</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>d)
-Each Contributor represents that to its knowledge it has sufficient copyright
-rights in its Contribution, if any, to grant the copyright license set forth in
-this Agreement. </span></p>
-
-<p><b><span style='font-size:10.0pt'>3. REQUIREMENTS</span></b> </p>
-
-<p><span style='font-size:10.0pt'>A Contributor may choose to distribute the
-Program in object code form under its own license agreement, provided that:</span>
-</p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
-it complies with the terms and conditions of this Agreement; and</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>b)
-its license agreement:</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>i)
-effectively disclaims on behalf of all Contributors all warranties and
-conditions, express and implied, including warranties or conditions of title
-and non-infringement, and implied warranties or conditions of merchantability
-and fitness for a particular purpose; </span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>ii)
-effectively excludes on behalf of all Contributors all liability for damages,
-including direct, indirect, special, incidental and consequential damages, such
-as lost profits; </span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>iii)
-states that any provisions which differ from this Agreement are offered by that
-Contributor alone and not by any other party; and</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>iv)
-states that source code for the Program is available from such Contributor, and
-informs licensees how to obtain it in a reasonable manner on or through a
-medium customarily used for software exchange.<span style='color:blue'> </span></span></p>
-
-<p><span style='font-size:10.0pt'>When the Program is made available in source
-code form:</span> </p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
-it must be made available under this Agreement; and </span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>b) a
-copy of this Agreement must be included with each copy of the Program. </span></p>
-
-<p><span style='font-size:10.0pt'>Contributors may not remove or alter any
-copyright notices contained within the Program. </span></p>
-
-<p><span style='font-size:10.0pt'>Each Contributor must identify itself as the
-originator of its Contribution, if any, in a manner that reasonably allows
-subsequent Recipients to identify the originator of the Contribution. </span></p>
-
-<p><b><span style='font-size:10.0pt'>4. COMMERCIAL DISTRIBUTION</span></b> </p>
-
-<p><span style='font-size:10.0pt'>Commercial distributors of software may
-accept certain responsibilities with respect to end users, business partners
-and the like. While this license is intended to facilitate the commercial use
-of the Program, the Contributor who includes the Program in a commercial
-product offering should do so in a manner which does not create potential
-liability for other Contributors. Therefore, if a Contributor includes the
-Program in a commercial product offering, such Contributor (&quot;Commercial
-Contributor&quot;) hereby agrees to defend and indemnify every other
-Contributor (&quot;Indemnified Contributor&quot;) against any losses, damages and
-costs (collectively &quot;Losses&quot;) arising from claims, lawsuits and other
-legal actions brought by a third party against the Indemnified Contributor to
-the extent caused by the acts or omissions of such Commercial Contributor in
-connection with its distribution of the Program in a commercial product
-offering. The obligations in this section do not apply to any claims or Losses
-relating to any actual or alleged intellectual property infringement. In order
-to qualify, an Indemnified Contributor must: a) promptly notify the Commercial
-Contributor in writing of such claim, and b) allow the Commercial Contributor
-to control, and cooperate with the Commercial Contributor in, the defense and
-any related settlement negotiations. The Indemnified Contributor may participate
-in any such claim at its own expense.</span> </p>
-
-<p><span style='font-size:10.0pt'>For example, a Contributor might include the
-Program in a commercial product offering, Product X. That Contributor is then a
-Commercial Contributor. If that Commercial Contributor then makes performance
-claims, or offers warranties related to Product X, those performance claims and
-warranties are such Commercial Contributor's responsibility alone. Under this
-section, the Commercial Contributor would have to defend claims against the
-other Contributors related to those performance claims and warranties, and if a
-court requires any other Contributor to pay any damages as a result, the
-Commercial Contributor must pay those damages.</span> </p>
-
-<p><b><span style='font-size:10.0pt'>5. NO WARRANTY</span></b> </p>
-
-<p><span style='font-size:10.0pt'>EXCEPT AS EXPRESSLY SET FORTH IN THIS
-AGREEMENT, THE PROGRAM IS PROVIDED ON AN &quot;AS IS&quot; BASIS, WITHOUT
-WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING,
-WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT,
-MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely
-responsible for determining the appropriateness of using and distributing the
-Program and assumes all risks associated with its exercise of rights under this
-Agreement , including but not limited to the risks and costs of program errors,
-compliance with applicable laws, damage to or loss of data, programs or
-equipment, and unavailability or interruption of operations. </span></p>
-
-<p><b><span style='font-size:10.0pt'>6. DISCLAIMER OF LIABILITY</span></b> </p>
-
-<p><span style='font-size:10.0pt'>EXCEPT AS EXPRESSLY SET FORTH IN THIS
-AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF
-THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF
-THE POSSIBILITY OF SUCH DAMAGES.</span> </p>
-
-<p><b><span style='font-size:10.0pt'>7. GENERAL</span></b> </p>
-
-<p><span style='font-size:10.0pt'>If any provision of this Agreement is invalid
-or unenforceable under applicable law, it shall not affect the validity or
-enforceability of the remainder of the terms of this Agreement, and without
-further action by the parties hereto, such provision shall be reformed to the
-minimum extent necessary to make such provision valid and enforceable.</span> </p>
-
-<p><span style='font-size:10.0pt'>If Recipient institutes patent litigation
-against any entity (including a cross-claim or counterclaim in a lawsuit)
-alleging that the Program itself (excluding combinations of the Program with
-other software or hardware) infringes such Recipient's patent(s), then such
-Recipient's rights granted under Section 2(b) shall terminate as of the date
-such litigation is filed. </span></p>
-
-<p><span style='font-size:10.0pt'>All Recipient's rights under this Agreement
-shall terminate if it fails to comply with any of the material terms or
-conditions of this Agreement and does not cure such failure in a reasonable
-period of time after becoming aware of such noncompliance. If all Recipient's
-rights under this Agreement terminate, Recipient agrees to cease use and
-distribution of the Program as soon as reasonably practicable. However,
-Recipient's obligations under this Agreement and any licenses granted by
-Recipient relating to the Program shall continue and survive. </span></p>
-
-<p><span style='font-size:10.0pt'>Everyone is permitted to copy and distribute
-copies of this Agreement, but in order to avoid inconsistency the Agreement is
-copyrighted and may only be modified in the following manner. The Agreement
-Steward reserves the right to publish new versions (including revisions) of
-this Agreement from time to time. No one other than the Agreement Steward has
-the right to modify this Agreement. The Eclipse Foundation is the initial
-Agreement Steward. The Eclipse Foundation may assign the responsibility to
-serve as the Agreement Steward to a suitable separate entity. Each new version
-of the Agreement will be given a distinguishing version number. The Program
-(including Contributions) may always be distributed subject to the version of
-the Agreement under which it was received. In addition, after a new version of
-the Agreement is published, Contributor may elect to distribute the Program
-(including its Contributions) under the new version. Except as expressly stated
-in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to
-the intellectual property of any Contributor under this Agreement, whether
-expressly, by implication, estoppel or otherwise. All rights in the Program not
-expressly granted under this Agreement are reserved.</span> </p>
-
-<p><span style='font-size:10.0pt'>This Agreement is governed by the laws of the
-State of New York and the intellectual property laws of the United States of
-America. No party to this Agreement will bring a legal action under this
-Agreement more than one year after the cause of action arose. Each party waives
-its rights to a jury trial in any resulting litigation.</span> </p>
-
-<p class=MsoNormal></p>
-
-</div>
-
-</body>
-
-</html> \ No newline at end of file
diff --git a/plugins/org.eclipse.jet.capabilities-feature/rootfiles/notice.html b/plugins/org.eclipse.jet.capabilities-feature/rootfiles/notice.html
deleted file mode 100644
index da529cb..0000000
--- a/plugins/org.eclipse.jet.capabilities-feature/rootfiles/notice.html
+++ /dev/null
@@ -1,86 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<html>
-<head>
-<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
-<title>Eclipse.org Software User Agreement</title>
-</head>
-
-<body lang="EN-US" link=blue vlink=purple>
-<h2>Eclipse Foundation Software User Agreement</h2>
-<p>March 17, 2005</p>
-
-<h3>Usage Of Content</h3>
-
-<p>THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR OTHER MATERIALS FOR OPEN SOURCE PROJECTS
- (COLLECTIVELY &quot;CONTENT&quot;). USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS AGREEMENT AND/OR THE TERMS AND
- CONDITIONS OF LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU AGREE THAT YOUR USE
- OF THE CONTENT IS GOVERNED BY THIS AGREEMENT AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR
- NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND
- CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW, THEN YOU MAY NOT USE THE CONTENT.</p>
-
-<h3>Applicable Licenses</h3>
-
-<p>Unless otherwise indicated, all Content made available by the Eclipse Foundation is provided to you under the terms and conditions of the Eclipse Public License Version 1.0
- (&quot;EPL&quot;). A copy of the EPL is provided with this Content and is also available at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
- For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
-
-<p>Content includes, but is not limited to, source code, object code, documentation and other files maintained in the Eclipse.org CVS repository (&quot;Repository&quot;) in CVS
- modules (&quot;Modules&quot;) and made available as downloadable archives (&quot;Downloads&quot;).</p>
-
-<ul>
- <li>Content may be structured and packaged into modules to facilitate delivering, extending, and upgrading the Content. Typical modules may include plug-ins (&quot;Plug-ins&quot;), plug-in fragments (&quot;Fragments&quot;), and features (&quot;Features&quot;).</li>
-
- <li>Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java<sup>TM</sup> ARchive) in a directory named &quot;plugins&quot;.</li>
- <li>A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material. Each Feature may be packaged as a sub-directory in a directory named &quot;features&quot;. Within a Feature, files named &quot;feature.xml&quot; may contain a list of the names and version numbers of the Plug-ins
- and/or Fragments associated with that Feature.</li>
- <li>Features may also include other Features (&quot;Included Features&quot;). Within a Feature, files named &quot;feature.xml&quot; may contain a list of the names and version numbers of Included Features.</li>
-
-</ul>
-
-<p>The terms and conditions governing Plug-ins and Fragments should be contained in files named &quot;about.html&quot; (&quot;Abouts&quot;). The terms and conditions governing Features and
-Included Features should be contained in files named &quot;license.html&quot; (&quot;Feature Licenses&quot;). Abouts and Feature Licenses may be located in any directory of a Download or Module
-including, but not limited to the following locations:</p>
-
-<ul>
- <li>The top-level (root) directory</li>
-
- <li>Plug-in and Fragment directories</li>
- <li>Inside Plug-ins and Fragments packaged as JARs</li>
- <li>Sub-directories of the directory named &quot;src&quot; of certain Plug-ins</li>
- <li>Feature directories</li>
-</ul>
-
-
-<p>Note: if a Feature made available by the Eclipse Foundation is installed using the Eclipse Update Manager, you must agree to a license (&quot;Feature Update License&quot;) during the
-installation process. If the Feature contains Included Features, the Feature Update License should either provide you with the terms and conditions governing the Included Features or
-inform you where you can locate them. Feature Update Licenses may be found in the &quot;license&quot; property of files named &quot;feature.properties&quot; found within a Feature.
-Such Abouts, Feature Licenses, and Feature Update Licenses contain the terms and conditions (or references to such terms and conditions) that govern your use of the associated Content in
-that directory.</p>
-
-<p>THE ABOUTS, FEATURE LICENSES, AND FEATURE UPDATE LICENSES MAY REFER TO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS. SOME OF THESE
-OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):</p>
-
-<ul>
- <li>Common Public License Version 1.0 (available at <a href="http://www.eclipse.org/legal/cpl-v10.html">http://www.eclipse.org/legal/cpl-v10.html</a>)</li>
-
- <li>Apache Software License 1.1 (available at <a href="http://www.apache.org/licenses/LICENSE">http://www.apache.org/licenses/LICENSE</a>)</li>
- <li>Apache Software License 2.0 (available at <a href="http://www.apache.org/licenses/LICENSE-2.0">http://www.apache.org/licenses/LICENSE-2.0</a>)</li>
- <li>IBM Public License 1.0 (available at <a href="http://oss.software.ibm.com/developerworks/opensource/license10.html">http://oss.software.ibm.com/developerworks/opensource/license10.html</a>)</li>
- <li>Metro Link Public License 1.00 (available at <a href="http://www.opengroup.org/openmotif/supporters/metrolink/license.html">http://www.opengroup.org/openmotif/supporters/metrolink/license.html</a>)</li>
-
- <li>Mozilla Public License Version 1.1 (available at <a href="http://www.mozilla.org/MPL/MPL-1.1.html">http://www.mozilla.org/MPL/MPL-1.1.html</a>)</li>
-</ul>
-
-<p>IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR TO USE OF THE CONTENT. If no About, Feature License, or Feature Update License is provided, please
-contact the Eclipse Foundation to determine what terms and conditions govern that particular Content.</p>
-
-<h3>Cryptography</h3>
-
-<p>Content may contain encryption software. The country in which you are currently may have restrictions on the import, possession, and use, and/or re-export to
- another country, of encryption software. BEFORE using any encryption software, please check the country's laws, regulations and policies concerning the import,
- possession, or use, and re-export of encryption software, to see if this is permitted.</p>
-
-<small>Java and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the United States, other countries, or both.</small>
-
-</body>
-</html>
diff --git a/plugins/org.eclipse.jet.capabilities/.classpath b/plugins/org.eclipse.jet.capabilities/.classpath
deleted file mode 100644
index ce73933..0000000
--- a/plugins/org.eclipse.jet.capabilities/.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.4"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/plugins/org.eclipse.jet.capabilities/.project b/plugins/org.eclipse.jet.capabilities/.project
deleted file mode 100644
index 15042a1..0000000
--- a/plugins/org.eclipse.jet.capabilities/.project
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.jet.capabilities</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/plugins/org.eclipse.jet.capabilities/META-INF/MANIFEST.MF b/plugins/org.eclipse.jet.capabilities/META-INF/MANIFEST.MF
deleted file mode 100644
index c7be906..0000000
--- a/plugins/org.eclipse.jet.capabilities/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,11 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: %BundleName
-Bundle-SymbolicName: org.eclipse.jet.capabilities;singleton:=true
-Bundle-Version: 1.0.0.qualifier
-Eclipse-LazyStart: true
-Bundle-ActivationPolicy: lazy
-Bundle-Vendor: %ProviderName
-Bundle-RequiredExecutionEnvironment: J2SE-1.4
-Bundle-Localization: plugin
-Require-Bundle: org.eclipse.ui
diff --git a/plugins/org.eclipse.jet.capabilities/about.html b/plugins/org.eclipse.jet.capabilities/about.html
deleted file mode 100644
index c258ef5..0000000
--- a/plugins/org.eclipse.jet.capabilities/about.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
-<title>About</title>
-</head>
-<body lang="EN-US">
-<h2>About This Content</h2>
-
-<p>June 5, 2006</p>
-<h3>License</h3>
-
-<p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise
-indicated below, the Content is provided to you under the terms and conditions of the
-Eclipse Public License Version 1.0 (&quot;EPL&quot;). A copy of the EPL is available
-at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
-For purposes of the EPL, &quot;Program&quot; 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 (&quot;Redistributor&quot;) 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> \ No newline at end of file
diff --git a/plugins/org.eclipse.jet.capabilities/build.properties b/plugins/org.eclipse.jet.capabilities/build.properties
deleted file mode 100644
index fecbcbc..0000000
--- a/plugins/org.eclipse.jet.capabilities/build.properties
+++ /dev/null
@@ -1,5 +0,0 @@
-bin.includes = META-INF/,\
- .,\
- plugin.properties,\
- about.html,\
- plugin.xml
diff --git a/plugins/org.eclipse.jet.capabilities/plugin.properties b/plugins/org.eclipse.jet.capabilities/plugin.properties
deleted file mode 100644
index 2819b17..0000000
--- a/plugins/org.eclipse.jet.capabilities/plugin.properties
+++ /dev/null
@@ -1,15 +0,0 @@
-###############################################################################
-# Copyright (c) 2009 IBM Corporation 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 Corporation - initial API and implementation
-###############################################################################
-ProviderName = Eclipse Modeling Project
-BundleName = Java Emitter Templates (JET) Capabilities (Incubation)
-
-capabilities.jet.name = JET Development
-capabilities.jet.description = Enable the development of JET transformations
diff --git a/plugins/org.eclipse.jet.capabilities/plugin.xml b/plugins/org.eclipse.jet.capabilities/plugin.xml
deleted file mode 100644
index 13690bd..0000000
--- a/plugins/org.eclipse.jet.capabilities/plugin.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.2"?>
-<plugin>
- <extension
- point="org.eclipse.ui.activities">
- <activity
- description="%capabilities.jet.description"
- id="org.eclipse.jet.baseCapabilities"
- name="%capabilities.jet.name">
- </activity>
- <activityPatternBinding
- activityId="org.eclipse.jet.baseCapabilities"
- pattern="org\.eclipse\.jet\..*">
- </activityPatternBinding>
- <categoryActivityBinding
- activityId="org.eclipse.jet.baseCapabilities"
- categoryId="org.eclipse.galileo.model.transformation.Category">
- </categoryActivityBinding>
- </extension>
-
-</plugin>
diff --git a/plugins/org.eclipse.jet.core/.classpath b/plugins/org.eclipse.jet.core/.classpath
deleted file mode 100644
index 5289a9d..0000000
--- a/plugins/org.eclipse.jet.core/.classpath
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry excluding="org/eclipse/jet/internal/core/url/URLConstruction.aj" kind="src" path="src"/>
- <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/plugins/org.eclipse.jet.core/.cvsignore b/plugins/org.eclipse.jet.core/.cvsignore
deleted file mode 100644
index ba077a4..0000000
--- a/plugins/org.eclipse.jet.core/.cvsignore
+++ /dev/null
@@ -1 +0,0 @@
-bin
diff --git a/plugins/org.eclipse.jet.core/.project b/plugins/org.eclipse.jet.core/.project
deleted file mode 100644
index 6e125fd..0000000
--- a/plugins/org.eclipse.jet.core/.project
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.jet.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>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- </natures>
-</projectDescription>
diff --git a/plugins/org.eclipse.jet.core/.settings/org.eclipse.core.resources.prefs b/plugins/org.eclipse.jet.core/.settings/org.eclipse.core.resources.prefs
deleted file mode 100644
index 4fb1938..0000000
--- a/plugins/org.eclipse.jet.core/.settings/org.eclipse.core.resources.prefs
+++ /dev/null
@@ -1,3 +0,0 @@
-#Tue Apr 03 17:01:14 EDT 2007
-eclipse.preferences.version=1
-encoding//src/org/eclipse/jet/internal/core/parser/jasper/messages.properties=8859_1
diff --git a/plugins/org.eclipse.jet.core/.settings/org.eclipse.jdt.core.prefs b/plugins/org.eclipse.jet.core/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 48a6676..0000000
--- a/plugins/org.eclipse.jet.core/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,12 +0,0 @@
-#Tue May 22 14:40:36 EDT 2007
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-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/plugins/org.eclipse.jet.core/.settings/org.eclipse.jdt.ui.prefs b/plugins/org.eclipse.jet.core/.settings/org.eclipse.jdt.ui.prefs
deleted file mode 100644
index 30bea24..0000000
--- a/plugins/org.eclipse.jet.core/.settings/org.eclipse.jdt.ui.prefs
+++ /dev/null
@@ -1,3 +0,0 @@
-#Tue May 22 14:07:36 EDT 2007
-eclipse.preferences.version=1
-org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8"?><templates><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\r\n * @return the ${bare_field_name}\r\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\r\n * @param ${param} the ${bare_field_name} to set\r\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\r\n * ${tags}\r\n */</template><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/*\r\n * Copyright (c) ${year} IBM Corporation and others.\r\n * All rights reserved. This program and the accompanying materials\r\n * are made available under the terms of the Eclipse Public License v1.0\r\n * which accompanies this distribution, and is available at\r\n * http\://www.eclipse.org/legal/epl-v10.html\r\n * \r\n * Contributors\:\r\n * IBM Corporation - initial API and implementation\r\n */</template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\r\n * @author ${user}\r\n *\r\n * ${tags}\r\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\r\n * \r\n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\r\n * ${tags}\r\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Javadoc)\r\n * ${see_to_overridden}\r\n */</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\r\n * ${tags}\r\n * ${see_to_target}\r\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\r\n${package_declaration}\r\n\r\n${typecomment}\r\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\r\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\r\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\r\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\r\n</template><template autoinsert\="true" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\r\n${exception_var}.printStackTrace();</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated method stub\r\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\r\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates>
diff --git a/plugins/org.eclipse.jet.core/META-INF/MANIFEST.MF b/plugins/org.eclipse.jet.core/META-INF/MANIFEST.MF
deleted file mode 100644
index 431e2cd..0000000
--- a/plugins/org.eclipse.jet.core/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,29 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: %pluginName
-Bundle-SymbolicName: org.eclipse.jet.core
-Bundle-Version: 1.1.100.qualifier
-Bundle-Localization: plugin
-Eclipse-LazyStart: true
-Export-Package: org.eclipse.jet,
- org.eclipse.jet.core.compiler,
- org.eclipse.jet.core.expressions,
- org.eclipse.jet.core.parser,
- org.eclipse.jet.core.parser.ast,
- org.eclipse.jet.internal.core;x-friends:="org.eclipse.jet,org.eclipse.jet.tests,org.eclipse.jet.tests.core",
- org.eclipse.jet.internal.core.compiler;x-friends:="org.eclipse.jet,org.eclipse.jet.tests,org.eclipse.jet.tests.core",
- org.eclipse.jet.internal.core.expressions;x-friends:="org.eclipse.jet",
- org.eclipse.jet.internal.core.parser;x-friends:="org.eclipse.jet.tests.tools,org.eclipse.jet,org.eclipse.jet.tests.core",
- org.eclipse.jet.internal.core.parser.jasper;x-friends:="org.eclipse.jet,org.eclipse.jet.tests,org.eclipse.jet.tests.core",
- org.eclipse.jet.internal.core.url;
- x-friends:="org.eclipse.jet,
- org.eclipse.jet.editor,
- org.eclipse.jet.tests,
- org.eclipse.jet.tests.core,
- org.eclipse.jet.ui",
- org.eclipse.jet.internal.taglib,
- org.eclipse.jet.taglib
-Require-Bundle: org.eclipse.text;bundle-version="[3.2.0,4.0.0)"
-Bundle-RequiredExecutionEnvironment: J2SE-1.4
-Bundle-Vendor: %providerName
-Bundle-ActivationPolicy: lazy
diff --git a/plugins/org.eclipse.jet.core/about.html b/plugins/org.eclipse.jet.core/about.html
deleted file mode 100644
index e3cadd8..0000000
--- a/plugins/org.eclipse.jet.core/about.html
+++ /dev/null
@@ -1,85 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
-<title>About</title>
-</head>
-<body lang="EN-US">
- <h3>About This Content</h3>
-
- <p>June 5, 2007</p>
- <h3>License</h3>
-
- <p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;).
- Unless otherwise indicated below, the Content is provided to you under the terms and conditions of the
- Eclipse Public License Version 1.0 (&quot;EPL&quot;). A copy of the EPL is available
- at <a href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/legal/epl-v10.html</a>.
- For purposes of the EPL, &quot;Program&quot; 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 (&quot;Redistributor&quot;) 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>
-
- <h3>Third Party Content</h3>
- <p>The Content includes items that have been sourced from third parties as set out below. If you
- did not receive this Content directly from the Eclipse Foundation, the following is provided
- for informational purposes only, and you should look to the Redistributor's license for
- terms and conditions of use.</p>
-
-<p><b>Tomcat 3.2.4</b></p>
-<p>The plug-in is based on software developed by The Apache Software Foundation as part of the Jakarta project.</p>
-
-<p>The content in the org.eclipse.jet.internal.tools.parser.jasper package (&quot;JET&quot;) is based on code in the org.apache.jasper.compiler package of Tomcat.</p>
-
-<p>The JET binary code can be found in the plug-in JAR in the org\eclipse\jet\internal\tools\parser\jasper directory.</p>
-
-<p>The JET source code can be found in src.zip in the the org\eclipse\jet\internal\tools\parser\jasper directory.</p>
-
-<p>JET is:</p>
-
-<blockquote>Copyright (c) 1999 The Apache Software Foundation. All rights reserved.</blockquote>
-
-<p>Your use of JET is subject to the terms and conditions of the
-<a href="http://jakarta.apache.org/ant/manual/LICENSE">Apache Software License 1.1</a>.
-More specifically:</p>
-<blockquote>
- 1. Redistributions of source code must retain the above copyright notice, this list of<br />
- conditions and the following disclaimer.<br />
-<br />
- 2. Redistributions in binary form must reproduce the above copyright notice, this list of<br />
- conditions and the following disclaimer in the documentation and/or other materials<br />
- provided with the distribution.<br />
-<br />
- 3. The end-user documentation included with the redistribution, if any, must include the<br />
- following acknowledgment:<br />
- <blockquote>
- &quot;This product includes software developed by the Apache Software Foundation<br />
- (<a href="http://www.apache.org/">http://www.apache.org/</a>).&quot;
- </blockquote>
- Alternately, this acknowledgment may appear in the software itself, if and wherever such<br />
- third-party acknowledgments normally appear.<br />
-<br />
- 4. The names &quot;The Jarkara Project&quot;, &quot;Tomcat&quot; and &quot;Apache Software Foundation&quot; must not be used to endorse or<br />
- promote products derived from this software without prior written permission. For written<br />
- permission, please contact <a href="mailto:apache@apache.org">apache@apache.org</a>.<br />
-<br />
- 5. Products derived from this software may not be called &quot;Apache&quot;, nor may &quot;Apache&quot; appear<br />
- in their name, without prior written permission of the Apache Software Foundation.<br />
-<br />
- THIS SOFTWARE IS PROVIDED &quot;AS IS&quot; AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT<br />
- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR<br />
- PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR ITS<br />
- CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR<br />
- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR<br />
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON<br />
- ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING<br />
- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF<br />
- ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-</blockquote>
-
-</body>
-</html> \ No newline at end of file
diff --git a/plugins/org.eclipse.jet.core/build.properties b/plugins/org.eclipse.jet.core/build.properties
deleted file mode 100644
index 97493b2..0000000
--- a/plugins/org.eclipse.jet.core/build.properties
+++ /dev/null
@@ -1,16 +0,0 @@
-###############################################################################
-# Copyright (c) 2005, 2007 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
-###############################################################################
-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- plugin.properties,\
- about.html
diff --git a/plugins/org.eclipse.jet.core/plugin.properties b/plugins/org.eclipse.jet.core/plugin.properties
deleted file mode 100644
index 7724bb6..0000000
--- a/plugins/org.eclipse.jet.core/plugin.properties
+++ /dev/null
@@ -1,29 +0,0 @@
-###############################################################################
-# Copyright (c) 2005, 2008 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
-###############################################################################
-# <copyright>
-# </copyright>
-#
-# $Id: plugin.properties,v 1.5 2008/12/15 22:23:51 pelder Exp $
-
-# ====================================================================
-# To code developer:
-# Do NOT change the properties between this line and the
-# "%%% END OF TRANSLATED PROPERTIES %%%" line.
-# Make a new property name, append to the end of the file and change
-# the code to use the new property.
-# ====================================================================
-
-# ====================================================================
-# %%% END OF TRANSLATED PROPERTIES %%%
-# ====================================================================
-
-pluginName = Java Emitter Templates (JET) Core (Incubation)
-providerName = Eclipse Modeling Project
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/AbstractContextExtender.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/AbstractContextExtender.java
deleted file mode 100644
index fa1aa1c..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/AbstractContextExtender.java
+++ /dev/null
@@ -1,76 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2007 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 - Initial API and implementation
- *
- * </copyright>
- *
- * $Id: AbstractContextExtender.java,v 1.4 2007/11/29 21:37:21 pelder Exp $
- * /
- *******************************************************************************/
-
-package org.eclipse.jet;
-
-
-/**
- * Base class for extending {@link JET2Context}. The JET execution context, {@link JET2Context}, is capable of
- * storing private data for various extensions. Subclass this class to create such a private data extension. Steps to create an context
- * extension.
- * <ol>
- * <li>Subclass this class</li>
- * <li>Implement {@link #createExtendedData(JET2Context)} to return a object representing the private data of the context extension. This method is only called the first time
- * an extender is constructed for a particular context.
- * The method {@link #getExtendedData()} returns the data to the current context instance.</li>
- * <li>Implement additional methods that make use of this private context data.</li>
- * <li>Create a constructor that accepts a {@link JET2Context} and passes it to the super constructor. It is recommended that
- * this constructor be private.</li>
- * <li> (Recommended) Implement a <code>public static <i>YourExtender</i> getInstance(JET2Context)</code> method that returns an instance the
- * AbstractContextExtender subclass.</li>
- * </ol>
- * @deprecated Since 0.9.0. Use public methods {@link JET2Context#addPrivateData(String, Object)} and {@link JET2Context#getPrivateData(String)}
- */
-public abstract class AbstractContextExtender
-{
-
- private final JET2Context baseContext;
-
- /**
- *
- */
- protected AbstractContextExtender(JET2Context context)
- {
- super();
- this.baseContext = context;
- if (!context.hasContextExtender(this.getClass()))
- {
- context.registerContextExtender(this.getClass(), createExtendedData(context));
- }
- }
-
- /**
- * Called by the AbstractContextExtender constructor if the extender's data
- * has not yet been created in the context.
- * @param context the context in which the data will be created.
- * @return the extension data object.
- */
- protected abstract Object createExtendedData(JET2Context context);
-
- protected Object getExtendedData()
- {
- return baseContext.getContextExtenderData(this.getClass());
- }
-
- /**
- * Return the JET2Context that this extender instance is extending.
- * @return the hosting context.
- */
- public final JET2Context getContext()
- {
- return baseContext;
- }
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/BufferedJET2Writer.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/BufferedJET2Writer.java
deleted file mode 100644
index 45d2f7b..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/BufferedJET2Writer.java
+++ /dev/null
@@ -1,76 +0,0 @@
-/**
- * <copyright>
- *
- * Copyright (c) 2007 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 - Initial API and implementation
- *
- * </copyright>
- *
- * $Id: BufferedJET2Writer.java,v 1.1 2007/04/04 14:53:54 pelder Exp $
- */
-package org.eclipse.jet;
-
-
-/**
- * Protocol defining a buffered writer for JET. A buffered writer does not
- * write directly to an output source. Instead, it writes to an internal buffer
- * that may be later retrieved and modified.
- * <p>
- * This interface is not intended to be implemented by clients.
- * </p>
- * @since 0.8.0
- */
-public interface BufferedJET2Writer extends JET2Writer
-{
- /**
- * Return the length of the buffered content.
- * @return the length
- */
- public abstract int getContentLength();
-
- /**
- * Return the buffered content of the writer as a string.
- * @return the content
- */
- public abstract String getContent();
-
- /**
- * Return a ranged of text within the buffered cotnent of the writer.
- * @param offset the offset of the text to return
- * @param length the length of the text to return
- * @return the content
- * @throws IllegalArgumentException if offset or length do not fail within
- * the current contents
- */
- public abstract String getContent(int offset, int length);
-
- /**
- * Replace content in the buffer.
- * @param offset the offset of the text to replace
- * @param length the length of the text to replace
- * @param text the replacement text
- * @throws IllegalArgumentException if offset or length do not fall within
- * the current contents
- */
- public abstract void replaceContent(int offset, int length, String text);
-
- /**
- * Set the buffer content, removing any previously written content.
- * @param content
- */
- public abstract void setContent(String content);
-
- /**
- * Adapt the writer to the given class. The primary use of this method
- * is to access the underlying buffer implementation.
- * @param adapterClass the class to return
- * @return the adapter or <code>null</code> if adapterClass is not supported.
- */
- public abstract Object getAdapter(Class adapterClass);
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/ContextLogEntry.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/ContextLogEntry.java
deleted file mode 100644
index baed232..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/ContextLogEntry.java
+++ /dev/null
@@ -1,308 +0,0 @@
-/*
- * Copyright (c) 2007 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.jet;
-import org.eclipse.jet.internal.core.ContextLogEntryFactoryManager;
-import org.eclipse.jet.taglib.TagInfo;
-
-/**
- * Entry in the log created by JET2Context log methods
- *
- */
-public final class ContextLogEntry {
-
- /**
- * Builder for {@link ContextLogEntry} entities
- *
- */
- public static final class Builder {
-
- private final int severity;
- private final ContextLogEntry[] children;
- private String message;
- private Throwable exception;
- private String templatePath;
- private TagInfo tagInfo;
- private int line;
- private int col;
-
- /**
- * Create a ContextLogEntry Builder that summarizes a collection
- * of other ContextLog Entries.
- * @param children a non-null list of ContextLogEntries
- * @throws NullPointerException if children is <code>null</code> or an array entry is <code>null</code>
- */
- public Builder(ContextLogEntry[] children) {
- if(children == null) {
- throw new NullPointerException();
- }
- this.children = children;
- int severity = OK;
- for (int i = 0; i < children.length; i++) {
- if(children[i] == null) {
- throw new NullPointerException(String.valueOf(i));
- }
- severity = Math.max(severity, children[i].getSeverity());
- }
- this.severity = severity;
- }
-
- /**
- * Create a ContextLogEntry Builder for a single entry with the indicated severity
- * @param severity one of {@link ContextLogEntry#OK}, {@link ContextLogEntry#INFO},
- * {@link ContextLogEntry#WARNING}, {@link ContextLogEntry#ERROR} or {@link ContextLogEntry#CANCEL}
- * @throws IllegalArgumentException if severity is not a valid value
- */
- public Builder(int severity) {
- if(severity != ContextLogEntry.OK
- && severity != ContextLogEntry.INFO
- && severity != ContextLogEntry.WARNING
- && severity != ContextLogEntry.ERROR
- && severity != ContextLogEntry.CANCEL) {
- throw new IllegalArgumentException();
- }
- this.severity = severity;
- this.children = EMPTY_ENTRIES_ARRAY;
- }
-
- /**
- * Specify an option message for the ContextLogEntry. Note that
- * this replaces any previously specified or calculated message
- * for the entry
- * @param message a message, possibly <code>null</code>
- * @return this builder
- */
- public Builder message(String message) {
- this.message = message;
- return this;
- }
-
- /**
- * Specify an exception for the ContextLogEntry.
- * Note that
- * this replaces any previously specified exception for the entry
- * @param exception an exception, possibly <code>null</code>
- * @return this builder
- */
- public Builder exception(Throwable exception) {
- this.exception = exception;
- if(message == null) {
- message(exception.getLocalizedMessage());
- }
- if(message == null) {
- message(exception.toString());
- }
- return this;
- }
-
- /**
- * Specify the template path where the entry originates
- * Note that
- * this replaces any previously specified templatePath for the entry
- * @param templatePath a template path
- * @return this builder
- */
- public Builder templatePath(String templatePath) {
- this.templatePath = templatePath;
- return this;
- }
-
- /**
- * Specify the template line and column for the entry.
- * Note that
- * this replaces any previously specified line and column for the entry
- * @param line the line
- * @param col the column
- * @return this builder
- */
- public Builder location(int line, int col) {
- this.line = line;
- this.col = col;
- return this;
- }
-
- /**
- * Specify the JET tag information for this entry.
- * Note that seting tag information will replace any
- * previously specified location information.
- * @param tagInfo a tag information object
- * @return this builder
- * @throws NullPointerException if tagInfo is null
- */
- public Builder tagInfo(TagInfo tagInfo) {
- if(tagInfo == null) {
- throw new NullPointerException();
- }
- this.tagInfo = tagInfo;
- location(tagInfo.getLine(), tagInfo.getCol());
- return this;
- }
-
- /**
- * Construct the ContextLogEntry based on information provided in the builder.
- * @return the contenxt log entry
- */
- public ContextLogEntry build() {
- return new ContextLogEntry(this);
- }
-
- /**
- * Returnt the severity for the log entry
- * @return one of {@link #OK}, {@link #INFO}, {@link #WARNING}, {@link #ERROR}, {@link #CANCEL}.
- */
- public int getSeverity() {
- return severity;
- }
- }
-
- private static final ContextLogEntry[] EMPTY_ENTRIES_ARRAY = new ContextLogEntry[0];
-
- /**
- * The bit mask value <code>0x0</code> for a
- * {@link #getSeverity severity} indicating everything is okay.
- */
- public static final int OK = 0x0;
-
- /**
- * The bit mask value <code>0x1</code> for a {@link #getSeverity severity}
- * indicating there is an informational message.
- */
- public static final int INFO = 0x1;
-
- /**
- * The bit mask value <code>0x2</code> for a {@link #getSeverity severity}
- * indicating there is warning message.
- */
- public static final int WARNING = 0x2;
-
- /**
- * The bit mask value <code>0x1</code> for a {@link #getSeverity severity}
- * indicating there is an error message.
- */
- public static final int ERROR = 0x4;
-
- /**
- * The bit mask value <code>0x1</code> for a {@link #getSeverity severity}
- * indicating that the diagnosis was canceled.
- */
- public static final int CANCEL = 0x8;
-
- private final int severity;
-
- private final ContextLogEntry[] children;
-
- private final String message;
-
- private final Throwable exception;
-
- private final String templatePath;
-
- private final int line;
-
- private final int col;
-
- private final TagInfo tagInfo;
-
- /**
- * Construct an entry from the builder
- * @param builder
- */
- private ContextLogEntry(Builder builder) {
- this.severity = builder.severity;
-
- if(builder.children.length > 0) {
- this.children = new ContextLogEntry[builder.children.length];
- System.arraycopy(builder.children, 0, this.children, 0, builder.children.length);
- } else if(builder.exception != null && builder.exception.getCause() != null) {
- final ContextLogEntry childEntry = ContextLogEntryFactoryManager
- .getFactory().create(builder.exception.getCause());
- this.children = new ContextLogEntry[] {childEntry};
- } else {
- children = EMPTY_ENTRIES_ARRAY;
- }
-
- this.message = builder.message == null ? "" : builder.message; //$NON-NLS-1$
-
- this.exception = builder.exception;
-
- this.templatePath = builder.templatePath;
-
- this.line = builder.line;
- this.col = builder.col;
- this.tagInfo = builder.tagInfo;
- }
-
- /**
- * Return the array of child log entries
- * @return the possibly empty array of child log entries
- */
- public ContextLogEntry[] getChildren() {
- ContextLogEntry[] copy = new ContextLogEntry[children.length];
- System.arraycopy(children, 0, copy, 0, children.length);
-
- return copy;
- }
-
- /**
- * Return the severity of the entry
- * @return one of {@link #OK}, {@link #INFO}, {@link #WARNING}, {@link #ERROR}, {@link #CANCEL}.
- */
- public int getSeverity() {
- return severity;
- }
-
- /**
- * Return the log entry message
- * @return the message a possibly empty (but non-null) string
- */
- public String getMessage() {
- return message;
- }
-
- /**
- * Return the exception associated with the log entry
- * @return the exception. May be <code>null</code>
- */
- public Throwable getException() {
- return exception;
- }
-
- /**
- * Return the template path associated with the log entry
- * @return the templatePath. May be <code>null</code>.
- */
- public String getTemplatePath() {
- return templatePath;
- }
-
- /**
- * Return the column number associated with the entry
- * @return the col the column number. A zero or negative value means no column number is associated
- */
- public int getCol() {
- return col;
- }
-
- /**
- * Return the line number associated with the entry
- * @return the line number. A zero or negative value means no line number is associated
- */
- public int getLine() {
- return line;
- }
-
- /**
- * Return the tag information associated with the entry
- * @return the tagInfo. May be <code>null</code>.
- */
- public TagInfo getTagInfo() {
- return tagInfo;
- }
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/IWriterListener.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/IWriterListener.java
deleted file mode 100644
index 7f1fb36..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/IWriterListener.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2007 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 - Initial API and implementation
- *
- * </copyright>
- *
- * $Id: IWriterListener.java,v 1.2 2007/04/12 18:02:43 pelder Exp $
- * /
- *******************************************************************************/
-
-package org.eclipse.jet;
-
-import org.eclipse.jet.taglib.JET2TagException;
-
-
-/**
- * Callback interface allowing participation in the finalization of a {@link JET2Writer}'s content.
- *
- */
-public interface IWriterListener
-{
-
- /**
- * Perform any finalization of the content in the writer.
- * @param writer the writer in the process of being finalized
- * @param file a handle to object to which the content will ultimately be written. The standard
- * JET2 Workspace tags pass an org.eclipse.core.resources.IFile, but other tags may pass objects
- * of other types.
- * @throws JET2TagException if the method cannot complete normally
- */
- public abstract void finalizeContent(JET2Writer writer, Object file) throws JET2TagException;
-
- /**
- * Perform any post processing on the committed file based on content written.
- * @param writer the writer that provided the committed content.
- * @param file a handle to the object containing the comitted content. The standard
- * JET2 Workspace tags pass an org.eclipse.core.resources.IFile, but other tags may pass objects
- * of other types.
- * @throws JET2TagException if method cannot complete normally.
- */
- public abstract void postCommitContent(JET2Writer writer, Object file) throws JET2TagException;
-
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/IWriterListenerExtension.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/IWriterListenerExtension.java
deleted file mode 100644
index 9e652b6..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/IWriterListenerExtension.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * Copyright (c) 2008 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.jet;
-
-import org.eclipse.jet.taglib.JET2TagException;
-
-/**
- * Extension interface to {@link IWriterListener} allowing finalizeContent
- * handlers to receive existing file contents
- * @since 0.9
- */
-public interface IWriterListenerExtension {
-
- /**
- * Perform any finalization of the content in the writer. If the file represented by
- * fileObject does not exist, then {@link IWriterListener#finalizeContent(JET2Writer, Object)}
- * is called.
- *
- * @param writer
- * the writer in the process of being finalized
- * @param file
- * a handle to object to which the content will ultimately be
- * written. The standard JET2 Workspace tags pass an
- * org.eclipse.core.resources.IFile, but other tags may pass
- * objects of other types.
- * @param existingContent the existing file content
- * @throws JET2TagException
- * if the method cannot complete normally
- */
- void finalizeContent(JET2Writer writer, Object fileObject,
- String existingContent) throws JET2TagException;
-
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/JET2Context.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/JET2Context.java
deleted file mode 100644
index b19d080..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/JET2Context.java
+++ /dev/null
@@ -1,635 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2009 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 - Initial API and implementation
- *
- * </copyright>
- *
- * $Id: JET2Context.java,v 1.4 2009/04/06 17:55:06 pelder Exp $
- * /
- *******************************************************************************/
-
-package org.eclipse.jet;
-
-import java.text.MessageFormat;
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.LinkedHashSet;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-import java.util.StringTokenizer;
-import java.util.regex.Pattern;
-
-import org.eclipse.jet.core.expressions.EmbeddedExpressionFactory;
-import org.eclipse.jet.core.expressions.IEmbeddedExpression;
-import org.eclipse.jet.internal.l10n.JET2Messages;
-import org.eclipse.jet.taglib.JET2TagException;
-import org.eclipse.jet.taglib.TagFactory;
-import org.eclipse.jet.taglib.TagInfo;
-
-/**
- * Define the execution context for a JET2 transform or template.
- *
- */
-public final class JET2Context {
-
- /**
- * Protocol for a listener to the {@link JET2Context} log.
- */
- public interface LogListener {
- public abstract void log(ContextLogEntry entry);
- }
-
- private Object source;
-
- private final List logEntries = new ArrayList();
-
- /**
- * Use a LinkedHashSet to ensure listener uniqueness and to preserve order
- * of addition
- */
- private final Set logListeners = new LinkedHashSet();
-
- private final Map extendedContextData = new HashMap();
-
- private final Map privateData = new HashMap();
-
- private TagFactory tagFactory = null;
-
- private final Map globalVariables = new HashMap();
-
- private String templatePath = ""; //$NON-NLS-1$
-
- private String jetBundleId;
-
- /**
- * Create a JET2 context with the specified source argument and the
- * specified variables.
- *
- * @param source
- * the source object
- * @param variables
- * A map <String,Object> of variable names to the object values.
- */
- public JET2Context(Object source, Map variables) {
- this.source = source;
- globalVariables.putAll(variables);
- }
-
- /**
- * Create a JET2 context with the specified source argument and no
- * variables.
- * <p>
- * This is exactly equivalent to:
- *
- * <pre>
- * JET2Context(source, Collections.EMPTY_MAP)
- * </pre>
- *
- * @param source
- * the source object
- */
- public JET2Context(Object source) {
- this(source, Collections.EMPTY_MAP);
- }
-
- /**
- * Set the source object for the transformation
- *
- * @param source
- */
- public void setSource(Object source) {
- this.source = source;
- }
-
- /**
- * Return the source object for the transformation.
- *
- * @return the source object
- */
- public Object getSource() {
- return source;
- }
-
- /**
- * @param severity
- * @param templatePath
- * TODO
- * @param tagInfo
- * @param throwable
- */
- private void log(int severity, String templatePath, TagInfo tagInfo,
- String message, Throwable throwable) {
- final ContextLogEntry.Builder builder = new ContextLogEntry.Builder(
- severity);
- if (templatePath != null) {
- builder.templatePath(templatePath);
- }
- if (tagInfo != null) {
- builder.tagInfo(tagInfo);
- }
- if (message != null) {
- builder.message(message);
- }
- if (throwable != null) {
- builder.exception(throwable);
- }
- final ContextLogEntry logEntry = builder.build();
-
- logEntries.add(logEntry);
-
- for (Iterator i = logListeners.iterator(); i.hasNext();) {
- LogListener listener = (LogListener) i.next();
- listener.log(logEntry);
-
- }
- }
-
- /**
- * Add a listener to context logging entries. Adding the same listener more
- * than once has no effect.
- *
- * @param listener
- * a log listener
- */
- public void addLogListener(LogListener listener) {
- logListeners.add(listener);
- }
-
- /**
- * Remove a previously registerd listener from the context log. Attempting
- * to remove an listener not previously registered with
- * {@link #addLogListener(org.eclipse.jet.JET2Context.LogListener)} has no
- * effect.
- *
- * @param listener
- * a log listener
- */
- public void removeLogListener(LogListener listener) {
- logListeners.remove(listener);
- }
-
- /**
- * Return the id of the JET Bundle defining the current template. Used in
- * generating error messages.
- *
- * @return the JET Bundle id, or <code>null</code> if not defined.
- * @see #setJETBundleId(String)
- */
- public String getJETBundleId() {
- return jetBundleId;
- }
-
- /**
- * Set the id of the JET Bundle defining the current template. Used in
- * generating error messages. If not set, then the ID of the JET plugin is
- * used.
- *
- * @param jetBundleId
- * the JET Bundle ide.
- */
- public void setJETBundleId(String jetBundleId) {
- this.jetBundleId = jetBundleId;
-
- }
-
- // private void log(ExecutionLogEntry entry) {
- // executionLog.add(entry);
- // }
-
- /**
- * Log an informational message
- *
- * @param message
- */
- // Used once: LogTag.doFunction()
- public void logInfo(String message) {
- log(ContextLogEntry.INFO, getTemplatePath(), null, message,
- (Throwable) null);
- }
-
- /**
- * Return the path for the executing template. This is used in creating
- * error messages.
- *
- * @return the template path or <code>null</code> if no templatePath is
- * defined.
- * @see #setTemplatePath(String)
- */
- public String getTemplatePath() {
- return templatePath;
- }
-
- /**
- * Set the templatePath. The templatePath is used in generating error
- * messages.
- *
- * @param templatePath
- * the template path or <code>null</code> to indicate no
- * executing template.
- */
- public void setTemplatePath(String templatePath) {
- this.templatePath = templatePath;
- }
-
- /**
- * Log a warning message
- *
- * @param message
- */
- // Used once: LogTag.doFunction()
- public void logWarning(String message) {
- log(ContextLogEntry.WARNING, getTemplatePath(), null, message,
- (Throwable) null);
- }
-
- /**
- * Log an error message
- *
- * @param message
- */
- // Used once: LogTag.doFunction()
- public void logError(String message) {
- log(ContextLogEntry.ERROR, getTemplatePath(), null, message, null);
- }
-
- /**
- * Log an exeception that occurred during execution
- *
- * @param e
- */
- // Used once: TransformContextExtender.commit()
- public void logError(Throwable e) {
- log(ContextLogEntry.ERROR, getTemplatePath(), null, null, e);
- }
-
- /**
- * Log an exception that occured during execution, along with a message.
- *
- * @param message
- * @param e
- * @deprecated Please don't use, will be removed...
- */
- // Never used!
- public void logError(String message, Throwable e) {
- log(ContextLogEntry.ERROR, getTemplatePath(), null, message, e);
- }
-
- public ContextLogEntry getLogEntries() {
- final ContextLogEntry[] entries = (ContextLogEntry[]) logEntries
- .toArray(new ContextLogEntry[0]);
- final ContextLogEntry.Builder builder = new ContextLogEntry.Builder(
- entries);
-
- switch (builder.getSeverity()) {
- case ContextLogEntry.OK:
- builder.message(JET2Messages.JET2Context_SuccessfulExecution);
- break;
- case ContextLogEntry.INFO:
- builder.message(JET2Messages.JET2Context_SuccessfulWithMessages);
- break;
- case ContextLogEntry.WARNING:
- builder.message(JET2Messages.JET2Context_SuccessfulWithWarnings);
- break;
- case ContextLogEntry.ERROR:
- builder.message(JET2Messages.JET2Context_ErrorsInExecution);
- break;
- case ContextLogEntry.CANCEL:
- builder.message(JET2Messages.JET2Context_ExecutionCancelled);
- break;
- }
-
- return builder.build();
- }
-
- /**
- * Log an error from the specified tag.
- *
- * @param tagInfo
- * @param message
- * the error message to display, or <code>null</code>
- * @param exception
- */
- // Used 3 times: TagSafeRunnable.handleException() x 2,
- // tagFactoryImpl.createTagElement(),
- public void logError(TagInfo tagInfo, String message, Throwable exception) {
- log(ContextLogEntry.ERROR, getTemplatePath(), tagInfo, message,
- exception);
- }
-
- private String getContextExtenderId(Class clazz) {
- return clazz.getName();
- }
-
- /**
- * Test whether the context has an extender of the pass class.
- *
- * @param extenderClass
- * the extender class
- * @return <code>true</code> if the context has a registered extender of the
- * passed class.
- */
- public boolean hasContextExtender(Class extenderClass) {
- return extendedContextData
- .containsKey(getContextExtenderId(extenderClass));
- }
-
- /**
- * Register a context extender class and its data.
- * <P>
- * This method is not normally called by clients. It is intended for use by
- * {@link AbstractContextExtender#AbstractContextExtender(JET2Context)}.
- * </P>
- *
- * @param extenderClass
- * the extender class
- * @param extenderData
- * the data to be associated with the class
- * @throws IllegalStateException
- * if <code>extenderClass</code> has already been registered on
- * this context.
- * @deprecated Use {@link #addPrivateData(String, Object)} instead.
- */
- void registerContextExtender(Class extenderClass, Object extenderData) {
- String extenderId = getContextExtenderId(extenderClass);
- if (extendedContextData.containsKey(extenderClass)) {
- throw new IllegalStateException(extenderId + "already registered"); //$NON-NLS-1$
- }
-
- extendedContextData.put(extenderId, extenderData);
- }
-
- /**
- * Return the context extension data for the passed class, or null if the
- * extender class has no associated data, or if <code>extenderClass</code>
- * is not registered on the context.
- * <P>
- * This method is not normally called by clients. It is intended for use by
- * {@link AbstractContextExtender#getExtendedData()}.
- * </P>
- *
- * @param extenderClass
- * the context extender class.
- * @return the associated data or <code>null</code>.
- * @deprecated Use {@link #getPrivateData(String)} instead.
- */
- Object getContextExtenderData(Class extenderClass) {
- return extendedContextData.get(getContextExtenderId(extenderClass));
- }
-
- /**
- * Return private data associated with the key.
- *
- * @param key
- * a private data key.
- * @return the private data or <code>null</code> if not data is associate
- * with the key.
- * @since 0.9.0
- */
- public Object getPrivateData(String key) {
- return privateData.get(key);
- }
-
- /**
- * Add private data to the context.
- *
- * @param key
- * the key for the private data
- * @param value
- * the data value
- * @throws IllegalStateException
- * if <code>key</code> has already been used to add private
- * data.
- * @throws NullPointerException
- * if <code>value</code> or <code>key</code> is
- * <code>null</code>.
- * @see #getPrivateData(String)
- */
- public void addPrivateData(String key, Object value) {
- if (privateData.containsKey(key)) {
- throw new IllegalStateException();
- }
- if (key == null || value == null) {
- throw new NullPointerException();
- }
- privateData.put(key, value);
- }
-
- /**
- * Remove private data associated with the key. Quietly succeeds there is no
- * private data for the key.
- *
- * @param key
- * the key for the private data
- */
- public void removePrivateData(String key) {
- privateData.remove(key);
- }
-
- /**
- * Log an error on the pass template
- *
- * @param templatePath
- * @param tagInfo
- * @param message
- * @param e
- */
- public void logError(String templatePath, TagInfo tagInfo, String message,
- Throwable e) {
- log(ContextLogEntry.ERROR, templatePath, tagInfo, message, e);
-
- }
-
- private static final Pattern validVariableNamePattern = Pattern
- .compile("(?:_|\\p{L})(?:_|-|\\.|\\p{L}|\\d)*"); //$NON-NLS-1$
-
- /**
- * Assigne or create a variable, and set its value.
- *
- * @param var
- * the variable name. Cannot be <code>null</code>.
- * @param value
- * the variable value.
- */
- public void setVariable(String var, Object value) throws JET2TagException {
- if (!validVariableNamePattern.matcher(var).matches()) {
- throw new JET2TagException(MessageFormat.format(
- JET2Messages.JET2Context_InvalidVariableName,
- new Object[] { var }));
- }
- globalVariables.put(var, value);
- }
-
- /**
- * Return the value of a context variable
- *
- * @param var
- * the variable name
- * @return the value of the variable
- * @throws JET2TagException
- * if the variable does not exist.
- */
- public Object getVariable(String var) throws JET2TagException {
- if (!hasVariable(var)) {
- String msg = JET2Messages.JET2Context_VariableNotFound;
- throw new JET2TagException(MessageFormat.format(msg,
- new Object[] { var }));
- }
- return globalVariables.get(var);
- }
-
- /**
- * Return a map of all variables currently defined in the context. The map
- * is a copy of the variables maintained by the context; changes to the map
- * have no affect on the context.
- *
- * @return a Map of variables, where the key is a variable name, and the
- * value is the variable value.
- */
- public Map getVariables() {
- return new HashMap(globalVariables);
- }
-
- /**
- * Remove a variable
- *
- * @param var
- * the variable name
- */
- public void removeVariable(String var) throws JET2TagException {
- globalVariables.remove(var);
- }
-
- /**
- * Test whether a variable is defined
- *
- * @param var
- * the variable name
- * @return <code>true</code> if defined, <code>false</code> otherwise.
- */
- public boolean hasVariable(String var) {
- return globalVariables.containsKey(var);
- }
-
- /**
- * @return the tagFactory
- */
- public final TagFactory getTagFactory() {
- return tagFactory;
- }
-
- /**
- * @param tagFactory
- * the tagFactory to set
- */
- public final void setTagFactory(TagFactory tagFactory) {
- this.tagFactory = tagFactory;
- }
-
- /**
- * Extract a list of variables from the context
- *
- * @param variableNames
- * a comma separated list of variables. May be <code>null</code>.
- * @return a Map keyed by variable name. Will be <code>null</code> if
- * <code>variableNames</code> is <code>null</code>.
- * @throws JET2TagException
- * if <code>variableNames</code> contains an invalid variable
- * name.
- */
- public Map extractVariables(String variableNames) throws JET2TagException {
- Map savedVariableValues = null;
- if (variableNames != null) {
- savedVariableValues = new HashMap();
- for (StringTokenizer tokenizer = new StringTokenizer(variableNames,
- ","); tokenizer.hasMoreTokens();) { //$NON-NLS-1$
- String varName = tokenizer.nextToken();
- varName = varName.trim();
- savedVariableValues.put(varName, getVariable(varName));
- }
- }
- return savedVariableValues;
- }
-
- /**
- * Restore variables in the passed map to the context.
- *
- * @param savedVariableValues
- * a Map keyed by variable name. If <code>null</code> the method
- * does nothing.
- * @throws JET2TagException
- * if a variable name is invalid
- */
- public void restoreVariables(Map savedVariableValues)
- throws JET2TagException {
- if (savedVariableValues != null) {
- for (Iterator i = savedVariableValues.entrySet().iterator(); i
- .hasNext();) {
- Map.Entry entry = (Map.Entry) i.next();
- setVariable((String) entry.getKey(), entry.getValue());
- }
- }
- }
-
- /**
- * Set the context variables to only the variables in variablesToPass
- *
- * @param variablesToPass
- * a non-null map keyed by variable name.
- * @throws JET2TagException
- * if a variable name is invalid
- */
- public void setVariables(Map variablesToPass) throws JET2TagException {
- globalVariables.clear();
- for (Iterator i = variablesToPass.entrySet().iterator(); i.hasNext();) {
- Map.Entry entry = (Map.Entry) i.next();
- String varName = (String) entry.getKey();
- setVariable(varName, entry.getValue());
- }
- }
-
- private final EmbeddedExpressionFactory expressionFactory = EmbeddedExpressionFactory
- .newInstance();
-
- /**
- * Evaluate the embedded expression found at the given line and column and return
- * the expression result as a string.
- * Should an error occur during evaluation, an appropriate error is logged in the
- * context's log.
- * @param expression the embedded expression, including the initial ${ and } characters
- * @param line the template line at which the expression starts
- * @param col the template column at which the expresison starts
- * @return the expression result
- */
- public String embeddedExpressionAsString(String expression, int line,
- int col) {
- try {
- final IEmbeddedExpression expr = expressionFactory
- .createExpression(expression);
- return expr.evalAsString(this);
- } catch (JET2TagException e) {
- logError(new TagInfo(expression, line, col, new String[0],
- new String[0]), e.getMessage(), null);
- return "";
- }
- }
-
- /**
- * Return the expression factory for parsing embedded expressions withing
- * strings.
- *
- * @return the expressionFactory
- */
- final public EmbeddedExpressionFactory getExpressionFactory() {
- return expressionFactory;
- }
-
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/JET2Template.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/JET2Template.java
deleted file mode 100644
index 13388fa..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/JET2Template.java
+++ /dev/null
@@ -1,34 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2007 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 - Initial API and implementation
- *
- * </copyright>
- *
- * $Id: JET2Template.java,v 1.2 2007/04/12 18:02:42 pelder Exp $
- * /
- *******************************************************************************/
-
-package org.eclipse.jet;
-
-
-/**
- * Interface to compiled JET2 templates.
- *
- */
-public interface JET2Template
-{
-
- /**
- * Execute the template against the input contained in the {@link JET2Context},
- * and writing the result to the {@link JET2Writer}.
- * @param context the input context. Cannot be <code>null</code>.
- * @param out the output writer. Cannote be <code>null</code>.
- */
- public abstract void generate(JET2Context context, JET2Writer out);
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/JET2TemplateLoader.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/JET2TemplateLoader.java
deleted file mode 100644
index 645cdc2..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/JET2TemplateLoader.java
+++ /dev/null
@@ -1,35 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2006, 2007 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 - Initial API and implementation
- *
- * </copyright>
- *
- * $Id: JET2TemplateLoader.java,v 1.2 2007/04/12 18:02:43 pelder Exp $
- * /
- *******************************************************************************/
-package org.eclipse.jet;
-
-/**
- * A loader for templates within a transform.
- */
-public interface JET2TemplateLoader
-{
-
- /**
- * Return an instance of the specified template, or <code>null</code>.
- * <p>
- * This class is not typically implemented by clients. The JET2 compiler will
- * emit an instance of this class for each JET2 project.
- * </p>
- * @param templatePath a transform project relative path to the template.
- * @return the template instance or <code>null</code> if the template cannot be found
- */
- public JET2Template getTemplate(String templatePath);
-
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/JET2TemplateLoaderExtension.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/JET2TemplateLoaderExtension.java
deleted file mode 100644
index d0a006a..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/JET2TemplateLoaderExtension.java
+++ /dev/null
@@ -1,37 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2006, 2007 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 - Initial API and implementation
- *
- * </copyright>
- *
- * $Id: JET2TemplateLoaderExtension.java,v 1.2 2007/04/12 18:02:42 pelder Exp $
- * /
- *******************************************************************************/
-package org.eclipse.jet;
-
-/**
- * Extension interface for {@link JET2TemplateLoader} allowing
- * for delegation of template loading to other loaders
- */
-public interface JET2TemplateLoaderExtension
-{
- /**
- * Add a template loader to which this loader will delegate
- * when it cannot find a template
- * @param loader a template loader or <code>null</code> to remove the delegate loader.
- */
- public abstract void setDelegateLoader(JET2TemplateLoader loader);
-
- /**
- * Return the template loader to which this loader will delegate
- * when it cannot find a template. The initial delegate loader is <code>null</code>.
- * @return the delegate loader or <code>null</code>.
- */
- public abstract JET2TemplateLoader getDelegateLoader();
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/JET2Writer.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/JET2Writer.java
deleted file mode 100644
index 019ca4a..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/JET2Writer.java
+++ /dev/null
@@ -1,193 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2007 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 - Initial API and implementation
- *
- * </copyright>
- *
- * $Id: JET2Writer.java,v 1.2 2007/04/12 18:02:43 pelder Exp $
- * /
- *******************************************************************************/
-
-package org.eclipse.jet;
-
-
-import org.eclipse.jface.text.IDocument;
-import org.eclipse.jface.text.Position;
-
-
-/**
- * Protocol for content writing in JET2 templates.
- * <p>
- * This interface is not intended to be implemented by clients.
- * </p>
- *
- */
-public interface JET2Writer
-{
-
- /**
- * Write the passed string.
- * @param string a string value.
- */
- public abstract void write(String string);
-
- /**
- * Write the contents of the passed writer to this writer.
- * @param bodyContent a writer
- */
- public abstract void write(JET2Writer bodyContent);
-
- /**
- * Write the passed boolean by calling {@link String#valueOf(boolean)}.
- * @param b a boolean value
- */
- public abstract void write(boolean b);
-
- /**
- * Write the passed character by calling {@link String#valueOf(char)}.
- * @param c a char value
- */
- public abstract void write(char c);
-
- /**
- * Write the passed character array by calling {@link String#valueOf(char[])}.
- * @param data an array of characters
- */
- public abstract void write(char[] data);
-
- /**
- * Write the passed double value by calling {@link String#valueOf(double)}.
- * @param d a double value
- */
- public abstract void write(double d);
-
- /**
- * Write the passed float value by calling {@link String#valueOf(float)}.
- * @param f a float value
- */
- public abstract void write(float f);
-
- /**
- * Write the passed integer by calling {@link String#valueOf(int)}.
- * @param i an integer value
- */
- public abstract void write(int i);
-
- /**
- * Write the passed long value calling {@link String#valueOf(long)}.
- * @param l a long value.
- */
- public abstract void write(long l);
-
- /**
- * Write the pass object by calling {@link Object#toString()}.
- * @param obj an object.
- */
- public abstract void write(Object obj);
-
- /**
- * Create a writer for handling nested content. The new writer will have access
- * to all position handlers defined on the parent writer (and its parents)
- * @return the nested content writer of type {@link BufferedJET2Writer}
- */
- public abstract JET2Writer newNestedContentWriter();
-
- /**
- * Return the parent of this writer, if it was created via {@link #newNestedContentWriter()}.
- * @return the parent writer, or <code>null</code>.
- */
- public abstract JET2Writer getParentWriter();
-
- /**
- * Return the current length (in characters) of the output
- * @return the current length
- * @deprecated Use {@link BufferedJET2Writer#getContentLength()}
- */
- public abstract int getLength();
-
- /**
- * Return the backing IDocument for this writer. Use this method to do advanced
- * writer processing, such as adding Positions for later re-writing of the document
- * contents.
- * @return the backing document
- * @deprecated Use {@link BufferedJET2Writer}.
- */
- public abstract IDocument getDocument();
-
- /**
- * Add a listener to the writer life cycle events. The writer records one listener per
- * category. Subsequent calls to this method with the same category value have no effect.
- * If the listener was created view {@link #newNestedContentWriter()}, then the listener is added
- * to the root writer, rather than the listener itself.
- * @param category the listener category
- * @param listener a listener
- * @throws NullPointerException if listener is <code>null</code>.
- */
- public abstract void addEventListener(String category, IWriterListener listener);
-
- /**
- * Return the registered writer event listeners
- * @return a possibly empty array of listeners
- */
- public abstract IWriterListener[] getEventListeners();
-
- /**
- * Convenience method wrapping getDocument().addPositionCategory(String).
- * @param category a Position Category
- * @throws IllegalArgumentException wrapping a {@link org.eclipse.jface.text.BadPositionCategoryException}
- * @see IDocument#addPositionCategory(java.lang.String)
- * @deprecated Use {@link BufferedJET2Writer#getAdapter(Class)} to return an IDocument, and then
- * use {@link IDocument#addPositionCategory(String)}.
- */
- public abstract void addPositionCategory(String category);
-
- /**
- * Convenience method wrapping getDocument().addPosition(String, Position).
- * Any
- * {@link org.eclipse.jface.text.BadPositionCategoryException} or
- * {@link org.eclipse.jface.text.BadLocationException} is wrapped in a
- * a runtime exception.
- * @param category a position category
- * @param position a position
- * @throws WriterPositionException wrapping a {@link org.eclipse.jface.text.BadPositionCategoryException}
- * or {@link org.eclipse.jface.text.BadLocationException}
- * @see IDocument#addPosition(java.lang.String, org.eclipse.jface.text.Position)
- * @deprecated Use {@link BufferedJET2Writer#getAdapter(Class)} to return an IDocument, and then
- * use {@link IDocument#addPosition(String, Position)}.
- */
- public abstract void addPosition(String category, Position position);
-
- /**
- * Convenience method wrapping getDocument().getPositions(String).
- * Any
- * {@link org.eclipse.jface.text.BadPositionCategoryException}
- * is wrapped in a runtime exception.
- * @param category a position category
- * @return an array of positions
- * @throws WriterPositionException wrapping a {@link org.eclipse.jface.text.BadPositionCategoryException}
- * @see IDocument#getPositions(java.lang.String)
- * @deprecated Use {@link BufferedJET2Writer#getAdapter(Class)} to return an IDocument, and then
- * use {@link IDocument#getPositions(String)}.
- */
- public abstract Position[] getPositions(String category);
-
- /**
- * Convenience method wrapping getDocument().replace(int,int,String).
- * Any
- * {@link org.eclipse.jface.text.BadLocationException}
- * is wrapped in a runtime exception.
- * @param offset the offset of the text to replace
- * @param length the length of the text to replace
- * @param text the replacement text
- * @throws WriterPositionException wrapping a {@link org.eclipse.jface.text.BadLocationException}
- * @see IDocument#replace(int, int, java.lang.String)
- * @deprecated Use {@link BufferedJET2Writer#replaceContent(int, int, String)}.
- */
- public abstract void replace(int offset, int length, String text);
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/compiler/JETCompilerOptions.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/compiler/JETCompilerOptions.java
deleted file mode 100644
index bceb55d..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/compiler/JETCompilerOptions.java
+++ /dev/null
@@ -1,279 +0,0 @@
-/**
- * <copyright>
- *
- * Copyright (c) 2007, 2009 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 - Initial API and implementation
- *
- * </copyright>
- *
- * $Id: JETCompilerOptions.java,v 1.5 2009/04/07 17:44:50 pelder Exp $
- */
-package org.eclipse.jet.core.compiler;
-
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.Map;
-
-import org.eclipse.jet.core.parser.ast.JETAST;
-
-/**
- * Utility class representing JET compiler Options
- */
-public final class JETCompilerOptions {
-
- /**
- * The default value of the {@link #OPTION_COMPILED_TEMPLATE_PACKAGE} option; value: "org.eclipse.jet2.internal.compiled".
- */
- public static final String DEFAULT_COMPILED_TEMPLATE_PACKAGE = "org.eclipse.jet.compiled"; //$NON-NLS-1$
-
- /**
- * The default value of the {@link #OPTION_COMPILED_TEMPLATE_SRC_DIR} option; value: "jet2java".
- */
- public static final String DEFAULT_COMPILED_TEMPLATE_SRC_DIR = "jet2java"; //$NON-NLS-1$
-
- /**
- * The default value of the {@link #OPTION_TEMPLATE_EXT} option; value: "jet".
- */
- public static final String DEFAULT_TEMPLATE_EXT = "jet,jet2"; //$NON-NLS-1$
-
- /**
- * The default value of the {@link #OPTION_SET_JAVA_FILES_AS_DERIVED} option (Boolean.TRUE).
- */
- public static final Boolean DEFAULT_SET_JAVA_FILES_AS_DERIVED = Boolean.TRUE;
-
- /**
- * Common prefix for compile option names
- */
- private static final String NS = "org.eclipse.jet."; //$NON-NLS-1$
-
- /**
- * Compiler option specifying the package to which compiled templates are written; value: "compiledTemplatePackage".
- */
- public static final String OPTION_COMPILED_TEMPLATE_PACKAGE = NS
- + "compiledTemplatePackage"; //$NON-NLS-1$
-
- /**
- * Compiler option specifying the Java project source directory to which compiled templates are written; value: "compiledTemplateSrcDir".
- */
- public static final String OPTION_COMPILED_TEMPLATE_SRC_DIR = NS
- + "compiledTemplateSrcDir"; //$NON-NLS-1$
-
- /**
- * Compiler option specifying which extensions are recognized as extensions; value: "templateExt".
- */
- public static final String OPTION_TEMPLATE_EXT = NS + "templateExt"; //$NON-NLS-1$
-
- /**
- * Compiler option specifying whether generated Java source should be marked as 'derived'.
- */
- public static final String OPTION_SET_JAVA_FILES_AS_DERIVED = NS
- + "setJavaDerived"; //$NON-NLS-1$
-
- /**
- * Compiler option specifying which JET specification version to compile; value "jetSpecificationVersion".
- */
- public static final String OPTION_JET_SPECIFICATION_VERSION = NS
- + "jetSpecificationVersion"; //$NON-NLS-1$
-
- /**
- * Default value for {@link #OPTION_JET_SPECIFICATION_VERSION}.
- */
- public static final Integer DEFAULT_JET_SPECIFICATION_VERSION = new Integer(
- JETAST.JET_SPEC_V2);
-
- /**
- * Compiler option specifying the base locations for JET1 templates to override; value "{@value #OPTION_V1_BASE_TRANSFORMATION}".
- * Use of this option is discouraged, along with the &lt;%&#064; include %&gt; directive.
- * <p>
- * This option is not set globally. It is only set at the project level.
- * </p>
- */
- public static final String OPTION_V1_BASE_TRANSFORMATION = NS
- + "v1BaseTransformationID"; //$NON-NLS-1$
-
- /**
- * Default value for {@link #OPTION_V1_BASE_TRANSFORMATION}.
- */
- public static final String DEFAULT_V1_BASE_TRANSFORMATION = ""; //$NON-NLS-1$
-
- /**
- * Compiler option specifying whether all base templates are recompiled into the current project; value "{@value #OPTION_V1_COMPILE_BASE_TEMPLATES}".
- * Use this option when {@link #OPTION_V1_BASE_TRANSFORMATION} is not empty to cause all base templates to be overriden. This will
- * be necessary if base templates use &lt;%&#064; include %&gt; directives that the current project overrides.
- */
- public static final String OPTION_V1_COMPILE_BASE_TEMPLATES = NS
- + "v1CompileBaseTemplates"; //$NON-NLS-1$
-
- /**
- * Default value for {@link #OPTION_V1_COMPILE_BASE_TEMPLATES}; value: {@link Boolean#FALSE}.
- */
- public static final Boolean DEFAULT_V1_COMPILE_BASE_TEMPLATES = Boolean.FALSE;
-
- /**
- * Compiler option specifying the project relative location of JET V1 templates.
- */
- public static final String OPTION_V1_TEMPLATES_DIR = NS + "v1TemplatesDir"; //$NON-NLS-1$
-
- /**
- * Default value for {@link #OPTION_V1_TEMPLATES_DIR}; value "{@value #DEFAULT_V1_TEMPLATES_DIR}".
- */
- public static final String DEFAULT_V1_TEMPLATES_DIR = "templates"; //$NON-NLS-1$
-
-
- /**
- * Folder name into which Java compiler will place its output of compiled JET templates
- * @since 0.9.0
- */
- public static final String OPTION_JAVA_OUTPUT_FOLDER = NS + "javaOutputFolder"; //$NON-NLS-1$
-
- /**
- * Default value for {@link #DEFAULT_JAVA_OUTPUT_FOLDER}; value "{@value #DEFAULT_JAVA_OUTPUT_FOLDER}".
- * @since 0.9.0
- */
- public static final String DEFAULT_JAVA_OUTPUT_FOLDER = "bin"; //$NON-NLS-1$
-
- /**
- * Indicates whether the JET Compiler will emit code requiring Java 5 source compliance.
- * @since 0.9.0
- */
- public static final String OPTION_USE_JAVA5 = NS + "useJava5"; //$NON-NLS-1$
-
- /**
- * Default value for {@link #OPTION_USE_JAVA5}; value: {@value #DEFAULT_USE_JAVA5}.
- */
- public static final String DEFAULT_USE_JAVA5 = Boolean.FALSE.toString();
-
- /**
- * Lazily initialized Map containing the default compiler options
- */
- static Map defaultCompileOptions = null;
-
- /**
- * Lock option used for compiler options initialization
- */
- static final Object defaultCompileOptionsLock = new Object();
-
- /**
- * Utility class - prevent instantiation
- *
- */
- private JETCompilerOptions() {
-
- }
-
- /**
- * Return the default compiler options
- * @return an unmodifiable map containing the default compiler options (keys) and their default values
- * @see #OPTION_COMPILED_TEMPLATE_PACKAGE
- * @see #OPTION_COMPILED_TEMPLATE_SRC_DIR
- * @see #OPTION_SET_JAVA_FILES_AS_DERIVED
- * @see #OPTION_TEMPLATE_EXT
- */
- public static Map getDefaultCompilerOptions() {
- if (defaultCompileOptions == null) {
- Map map = new HashMap();
- map.put(OPTION_COMPILED_TEMPLATE_PACKAGE,
- DEFAULT_COMPILED_TEMPLATE_PACKAGE);
- map.put(OPTION_COMPILED_TEMPLATE_SRC_DIR,
- DEFAULT_COMPILED_TEMPLATE_SRC_DIR);
- map.put(OPTION_TEMPLATE_EXT, DEFAULT_TEMPLATE_EXT);
- map.put(OPTION_SET_JAVA_FILES_AS_DERIVED,
- DEFAULT_SET_JAVA_FILES_AS_DERIVED);
- map.put(OPTION_JET_SPECIFICATION_VERSION,
- DEFAULT_JET_SPECIFICATION_VERSION);
- map.put(OPTION_V1_COMPILE_BASE_TEMPLATES,
- DEFAULT_V1_COMPILE_BASE_TEMPLATES);
- map.put(OPTION_V1_BASE_TRANSFORMATION,
- DEFAULT_V1_BASE_TRANSFORMATION);
- map.put(OPTION_V1_TEMPLATES_DIR, DEFAULT_V1_TEMPLATES_DIR);
- map.put(OPTION_JAVA_OUTPUT_FOLDER, DEFAULT_JAVA_OUTPUT_FOLDER);
- map.put(OPTION_USE_JAVA5, DEFAULT_USE_JAVA5);
-
- synchronized (defaultCompileOptionsLock) {
- defaultCompileOptions = Collections.unmodifiableMap(map);
- }
- }
- return defaultCompileOptions;
- }
-
- /**
- * Return the value of a string option, or the default value of the option if not specified in the pass options map
- * @param options a compiler options map
- * @param key a compiler option key
- * @return the option value or default value
- * @throws NullPointerException if <code>options</code> or <code>key</code> is <code>null</code>
- * @throws IllegalArgumentException if <code>key</code> is not a know compiler option
- */
- public static String getStringOption(Map options, String key) {
- if (options == null || key == null) {
- throw new NullPointerException();
- }
- if (!getDefaultCompilerOptions().containsKey(key)) {
- throw new IllegalArgumentException(key);
- }
-
- Object value = options.get(key);
- if (value == null) {
- value = getDefaultCompilerOptions().get(key);
- }
-
- return value == null ? null : value.toString();
- }
-
- /**
- * Return the value of a boolean option, or the default value of the option if not specified in the pass options map
- * @param options a compiler options map
- * @param key a compiler option key
- * @return the option value or default value
- * @throws NullPointerException if <code>options</code> or <code>key</code> is <code>null</code>
- * @throws IllegalArgumentException if <code>key</code> is not a know compiler option
- */
- public static boolean getBooleanOption(Map options, String key) {
- if (options == null || key == null) {
- throw new NullPointerException();
- }
- if (!getDefaultCompilerOptions().containsKey(key)) {
- throw new IllegalArgumentException(key);
- }
-
- Object value = options.get(key);
- if (value == null) {
- value = getDefaultCompilerOptions().get(key);
- }
- return value == null ? false
- : value instanceof Boolean ? ((Boolean) value).booleanValue()
- : Boolean.valueOf(value.toString()).booleanValue();
- }
-
- /**
- * Return the value of an integer option, or the default value of the option if not specified in the pass options map
- * @param options a compiler options map
- * @param key a compiler option key
- * @return the option value or default value
- * @throws NullPointerException if <code>options</code> or <code>key</code> is <code>null</code>
- * @throws IllegalArgumentException if <code>key</code> is not a know compiler option
- */
- public static int getIntOption(Map options,
- String key) {
- if (options == null || key == null) {
- throw new NullPointerException();
- }
- if (!getDefaultCompilerOptions().containsKey(key)) {
- throw new IllegalArgumentException(key);
- }
-
- Object value = options.get(key);
- if (value == null) {
- value = getDefaultCompilerOptions().get(key);
- }
- return value == null ? -1
- : value instanceof Integer ? ((Integer) value).intValue()
- : Integer.valueOf(value.toString()).intValue();
- }
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/expressions/EmbeddedExpressionFactory.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/expressions/EmbeddedExpressionFactory.java
deleted file mode 100644
index edfe8a4..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/expressions/EmbeddedExpressionFactory.java
+++ /dev/null
@@ -1,168 +0,0 @@
-/*
- * Copyright (c) 2009 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.jet.core.expressions;
-
-import java.util.Iterator;
-import java.util.LinkedList;
-import java.util.List;
-import java.util.Map;
-
-import org.eclipse.jet.JET2Context;
-import org.eclipse.jet.internal.core.expressions.EmbeddedExpressionLanguageManager;
-import org.eclipse.jet.internal.core.expressions.IEmbeddedExpressionScanner;
-import org.eclipse.jet.internal.core.expressions.IEmbeddedLanguage;
-
-/**
- * A factory for creating embedded expressions
- *
- */
-public final class EmbeddedExpressionFactory {
-
- /**
- * Implementation of an expression that concatenates other expression results to gether as strings.
- *
- */
- private static final class ConcatExpression implements IEmbeddedExpression {
-
- private final List expressions;
-
- public ConcatExpression(List expressions) {
- this.expressions = expressions;
- }
-
- public String evalAsString(JET2Context context) {
- StringBuffer result = new StringBuffer();
- for (Iterator i = expressions.iterator(); i.hasNext();) {
- IEmbeddedExpression expr = (IEmbeddedExpression) i.next();
- result.append(expr.evalAsString(context));
- }
- return result.toString();
- }
-
- public String toString() {
- StringBuffer result = new StringBuffer();
- for (Iterator i = expressions.iterator(); i.hasNext();) {
- IEmbeddedExpression expr = (IEmbeddedExpression) i.next();
- result.append(expr.toString());
- }
- return result.toString();
- }
-
- public boolean isText() {
- return false;
- }
-
- }
- /**
- * Implementation of an expression that wraps text
- *
- */
- private static final class TextExpression implements IEmbeddedExpression {
-
- private final String text;
-
- public TextExpression(String text) {
- this.text = text;
-
- }
- public String evalAsString(JET2Context context) {
- return text;
- }
-
- public String toString() {
- return text;
- }
-
- public boolean isText() {
- return true;
- }
- }
- /**
- * The default expression language. Value: jet.xpath
- */
- public static final String DEFAULT_EXPRESSION_LANGUAGE = "jet.xpath";
-
- public static final String EXPRESSION_OPEN = "${";
-
- public static final char EXPRESSION_CLOSE = '}';
-
- /**
- * Factory method for an embedded expression factory.
- * @return a embedded expression factory
- */
- public static EmbeddedExpressionFactory newInstance() {
- return new EmbeddedExpressionFactory(DEFAULT_EXPRESSION_LANGUAGE);
- }
-
- private final Map languages = EmbeddedExpressionLanguageManager.getInstance().getLanguages();
-
- private final String defaultExpressionLanguage;
-
- /**
- * @param defaultExpressionLanguage
- */
- private EmbeddedExpressionFactory(String defaultExpressionLanguage) {
- this.defaultExpressionLanguage = defaultExpressionLanguage;
- }
-
- /**
- * Create an expression using the default expression language
- * @param expression the expression
- * @return the expression implementation
- * @throws IllegalArgumentException if the expression is malformed
- */
- public IEmbeddedExpression createExpression(String expression) {
- return createExpression(defaultExpressionLanguage, expression);
- }
-
- public IEmbeddedExpression createExpression(String language,
- String expression) {
- final IEmbeddedLanguage lang = (IEmbeddedLanguage) languages.get(language);
- final List expressions = new LinkedList();
-
- for(int i = 0; i < expression.length();) {
- final int elStart = expression.indexOf(EXPRESSION_OPEN, i);;
- if(elStart == -1) {
- // no more expressions
- expressions.add(new TextExpression(expression.substring(i)));
- break;
- } else {
- final int elEnd = scanExpression(lang, expression, elStart);
- if(elStart > i) {
- expressions.add(new TextExpression(expression.substring(i, elStart)));
- }
- expressions.add(lang.getExpression(expression.substring(elStart + EXPRESSION_OPEN.length(), elEnd - 1)));
- i = elEnd;
- }
- }
-
- return expressions.size() == 1 ? (IEmbeddedExpression)expressions.get(0) : new ConcatExpression(expressions);
- }
-
- /**
- * @param lang
- * @param expression
- * @param elStart
- * @return
- */
- private int scanExpression(final IEmbeddedLanguage lang, String expression,
- final int elStart) {
- final IEmbeddedExpressionScanner scanner = lang.getScanner();
- for(int j = elStart + EXPRESSION_OPEN.length(); j < expression.length() ; j++) {
- int ch = expression.charAt(j);
- scanner.setNextChar(ch);
- if(EXPRESSION_CLOSE == ch && !scanner.ignoreChar()) {
- return j + 1;
- }
- }
- throw new IllegalArgumentException("Unterminated embedded expresion");
- }
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/expressions/IEmbeddedExpression.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/expressions/IEmbeddedExpression.java
deleted file mode 100644
index d3378cf..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/expressions/IEmbeddedExpression.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Copyright (c) 2009 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.jet.core.expressions;
-
-import org.eclipse.jet.JET2Context;
-import org.eclipse.jet.taglib.JET2TagException;
-
-/**
- * Protocol for embedded expression evaluators
- *
- */
-public interface IEmbeddedExpression {
-
- /**
- * Return the expression value as a string
- * @param context the JET context in which from which variables are to be resolved
- * @return a string value
- * @throws JET2TagException if the expression cannot be evaluated
- */
- public abstract String evalAsString(JET2Context context) throws JET2TagException;
-
- /**
- * Test whether the expression contains nothing but text.
- * @return <code>true</code> if the expression is text only
- */
- public abstract boolean isText();
-
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/AbstractTemplateResolver.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/AbstractTemplateResolver.java
deleted file mode 100644
index c56d533..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/AbstractTemplateResolver.java
+++ /dev/null
@@ -1,168 +0,0 @@
-/*
- * Copyright (c) 2007 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.jet.core.parser;
-
-import java.net.URI;
-import java.net.URISyntaxException;
-
-/**
- * Abstract implementatino of {@link ITemplateResolver}. Extenders must only implement
- * the following methods.
- *
- */
-public abstract class AbstractTemplateResolver implements ITemplateResolver {
-
- private static final String SLASH = "/"; //$NON-NLS-1$
-
- private final URI[] baseLocations;
-
- /**
- * Create a template resolver taking templates from one or more base locations
- * @param baseLocations an array of template URIs.
- */
- protected AbstractTemplateResolver(URI[] baseLocations) {
- if(baseLocations == null) {
- throw new NullPointerException();
- }
- // make a defensive copy of base locations.
- this.baseLocations = new URI[baseLocations.length];
- for (int i = 0; i < baseLocations.length; i++) {
- if(baseLocations[i] == null) {
- throw new NullPointerException();
- }
- // make sure all URI's end in a SLASH
- this.baseLocations[i] = baseLocations[i].toString().endsWith(SLASH)
- ? baseLocations[i]
- : baseLocations[i].resolve(baseLocations[i].getPath() + "/"); //$NON-NLS-1$
- }
- }
-
- /**
- * Create a template resolver taking templates from a single base location.
- * @param baseLocation a base location URI
- */
- protected AbstractTemplateResolver(URI baseLocation) {
- this(new URI[] {baseLocation});
- }
- /* (non-Javadoc)
- * @see org.eclipse.jet.tools.parser.ITemplateResolver#getBaseLocations()
- */
- public final URI[] getBaseLocations() {
- final URI[] tempArray = new URI[baseLocations.length];
- // return a defensive copy
- System.arraycopy(baseLocations, 0, tempArray, 0, baseLocations.length);
-
- return tempArray;
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jet.tools.parser.ITemplateResolver#getIncludedInput(java.lang.String, org.eclipse.jet.tools.parser.ITemplateInput[])
- */
- public final ITemplateInput getIncludedInput(String includePath,
- ITemplateInput[] activeInputs) throws RecursiveIncludeException {
- if(includePath == null || activeInputs == null) {
- throw new NullPointerException();
- }
- if(activeInputs.length == 0) {
- throw new IllegalArgumentException();
- }
-
- String templatePath = resolveToTemplatePath(includePath, activeInputs[activeInputs.length - 1].getTemplatePath());
-
- int baseLocationsStartIndex = 0;
-
- boolean recursiveInclude = templatePath.equals(activeInputs[activeInputs.length - 1].getTemplatePath());
- if(recursiveInclude) {
- final URI currentBaseURI = activeInputs[activeInputs.length - 1].getBaseLocation();
-
- baseLocationsStartIndex = 1 + findBaseLocationIndex(currentBaseURI);
- }
-
- for (int i = baseLocationsStartIndex; i < baseLocations.length; i++) {
- // check for recursive input
- for (int j = 0; j < activeInputs.length; j++) {
- if(templatePath.equals(activeInputs[j].getTemplatePath())
- && baseLocations[i].equals(activeInputs[j].getBaseLocation())) {
- throw new RecursiveIncludeException(templatePath, baseLocations[i], activeInputs);
- }
- }
- if(inputExists(baseLocations[i], templatePath)) {
- return createTemplateInput(baseLocations[i], templatePath);
- }
- }
- return null;
- }
-
- /**
- * Resolve an include path, which is relative to the current file
- * into a template path, which is relative to the templates base locations
- * @param includePath the include path
- * @param templatePath the template path of the current file
- * @return the templatePath of the include path.
- * @throws IllegalArgumentException if templatePath cannot be converted to a URI
- */
- private String resolveToTemplatePath(String includePath, String templatePath) {
- try {
- URI currentURI = new URI(null, templatePath, null);
- URI resolvedURI = currentURI.resolve(new URI(null, includePath, null));
- return resolvedURI.getSchemeSpecificPart();
- } catch (URISyntaxException e) {
- IllegalArgumentException wrapper = new IllegalArgumentException();
- wrapper.initCause(e);
- throw wrapper;
- }
- }
-
- /**
- * Return the index of the base passed base location in {@link #baseLocations}.
- * @param currentBaseURL the current base location
- * @return the zero-based index.
- * @throws IllegalArgumentException if currentBaseURL cannot be found
- */
- private int findBaseLocationIndex(URI currentBaseURL) {
- for (int i = 0; i < baseLocations.length; i++) {
- if(currentBaseURL.equals(baseLocations[i])) {
- return i;
- }
- }
- throw new IllegalArgumentException();
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jet.tools.parser.ITemplateResolver#getInput(java.lang.String)
- */
- public final ITemplateInput getInput(String templatePath) {
- for (int i = 0; i < baseLocations.length; i++) {
- if(inputExists(baseLocations[i], templatePath)) {
- return createTemplateInput(baseLocations[i], templatePath);
- }
- }
- return null;
- }
-
- /**
- * Test whether the template input exists. The default implementation opens in input
- * stream to confirme the existance
- * @param baseLocation the baseLocation
- * @param templatePath the template path
- * @return <code>true</code> if {@link #createTemplateInput(URI, String)}} will succeed, <code>false</code> otherwise.
- */
- protected abstract boolean inputExists(URI baseLocation, String templatePath);
-
- /**
- * Create a Template Input from the give base location and templatePath
- * @param baseLocation a base loction
- * @param templatePath a templatePath
- * @return the template input.
- */
- protected abstract ITemplateInput createTemplateInput(URI baseLocation, String templatePath);
-
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/DefaultTemplateResolver.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/DefaultTemplateResolver.java
deleted file mode 100644
index 019e890..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/DefaultTemplateResolver.java
+++ /dev/null
@@ -1,173 +0,0 @@
-/*
- * Copyright (c) 2007 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.jet.core.parser;
-
-import java.net.URI;
-import java.util.HashMap;
-import java.util.Map;
-
-import org.eclipse.jet.internal.core.parser.DefaultTemplateResolverHelper;
-
-/**
- * Default implementation of {@link ITemplateResolver} that is independent of
- * the Eclipse workspace. By specifying a {@link ITemplateResolverHelperFactory},
- * template resolution helpers {@link ITemplateResolverHelper} instances may be
- * created that leverage knowledge in the eclipse workspace.
- *
- */
-public final class DefaultTemplateResolver extends AbstractTemplateResolver
- implements ITemplateResolver {
-
- private static final String SLASH = "/"; //$NON-NLS-1$
-
- private static final ITemplateResolverHelperFactory defaultFactory = new ITemplateResolverHelperFactory() {
-
- public ITemplateResolverHelper getTemplateResolverHelper(
- URI baseLocation) {
- return new DefaultTemplateResolverHelper(baseLocation);
- }
-
- };
-
- /**
- * Builder for DefaultTemplateResolver
- *
- */
- public static final class Builder {
-
- private final URI[] baseLocations;
-
- private ITemplateResolverHelperFactory helper;
-
- /**
- * Create an input manager drawing templates from the listed based
- * locations URLs.
- *
- * @param baseLocations
- * an array of base template locations, in the desired search
- * order
- * @throws NullPointerException
- * if <code>baseLocations</code> or any of its elements is
- * <code>null</code>.
- * @throws IllegalArgumentException
- * if any baseLocation is not a directory URL (ends in a
- * "/").
- */
- public Builder(URI[] baseLocations) {
- if (baseLocations == null) {
- throw new NullPointerException();
- }
- for (int i = 0; i < baseLocations.length; i++) {
- if (baseLocations[i] == null) {
- throw new NullPointerException();
- }
- if (!baseLocations[i].getPath().endsWith(SLASH)) {
- throw new IllegalArgumentException();
- }
- }
-
- this.baseLocations = baseLocations;
- }
-
- /**
- * Convenience constructor when templates are drawn from one location
- * only
- *
- * @param baseLocation
- * the base location of templates.
- * @throws NullPointerException
- * if <code>baseLocation</code> is <code>null</code>.
- */
- public Builder(URI baseLocation) {
- this(new URI[] { baseLocation });
- }
-
- /**
- * Create the input manager instance described by the builder
- *
- * @return the {@link DefaultTemplateResolver} instance.
- */
-
- public Builder templateResolverHelperFactory(
- ITemplateResolverHelperFactory helper) {
- this.helper = helper;
- return this;
- }
-
- /**
- * Builder the template resolver
- *
- * @return the {@link DefaultTemplateResolver} instance
- */
- public ITemplateResolver build() {
- return new DefaultTemplateResolver(this);
- }
-
- }
-
- private final Map delegateByURI = new HashMap();
-
- private DefaultTemplateResolver(Builder builder) {
- super(builder.baseLocations);
- final URI[] uris = getBaseLocations();
- for (int i = 0; i < uris.length; i++) {
- final URI baseLocation = uris[i];
- ITemplateResolverHelper helper = getTemplateResolverHelper(
- builder.helper, baseLocation);
- delegateByURI.put(baseLocation, helper);
- }
- }
-
- private ITemplateResolverHelper getTemplateResolverHelper(
- ITemplateResolverHelperFactory helperFactory, URI baseLocation) {
- ITemplateResolverHelper helper = helperFactory == null ? null
- : helperFactory.getTemplateResolverHelper(baseLocation);
-
- if (helper == null) {
- helper = defaultFactory.getTemplateResolverHelper(baseLocation);
- }
- return helper;
- }
-
- /**
- * Create a Template Input from the give base location and templatePath
- *
- * @param baseLocation
- * a base loction
- * @param templatePath
- * a templatePath
- * @return the template input.
- */
- protected ITemplateInput createTemplateInput(URI baseLocation,
- String templatePath) {
- ITemplateResolverHelper helper = (ITemplateResolverHelper) delegateByURI
- .get(baseLocation);
- return helper.createTemplateInput(templatePath);
- }
-
- /**
- * Test whether the template input exists. The default implementation opens
- * in input stream to confirme the existance
- *
- * @param baseLocation
- * the baseLocation
- * @param templatePath
- * the template path
- * @return <code>true</code> if {@link #createTemplateInput(URI, String)}}
- * will succeed, <code>false</code> otherwise.
- */
- protected boolean inputExists(URI baseLocation, String templatePath) {
- ITemplateResolverHelper helper = (ITemplateResolverHelper) delegateByURI
- .get(baseLocation);
- return helper.inputExists(templatePath);
- }
-
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/IJETParser.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/IJETParser.java
deleted file mode 100644
index 9156cb2..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/IJETParser.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Copyright (c) 2007 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.jet.core.parser;
-
-
-/**
- * Define the behavior of a JET Parser
- */
-public interface IJETParser {
- /**
- * Parse the named input template
- * @param templatePath the template Path
- * @return the root of the AST
- */
- public Object parse(String templatePath);
-
- /**
- * Parse contents as a JET template
- * @param template the template
- * @return the root of the AST
- */
- public Object parse(char[] template);
-} \ No newline at end of file
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/IProblem.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/IProblem.java
deleted file mode 100644
index 0aeda7e..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/IProblem.java
+++ /dev/null
@@ -1,131 +0,0 @@
-/*
- * Copyright (c) 2007 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.jet.core.parser;
-
-/**
- * Describe a parsing problem
- *
- * This interface is not intended to be implemented by clients
- */
-public interface IProblem {
- /**
- * Error Id for an XML end tag that has no corresponding start tag.
- */
- public static final int MissingXmlStartTag = 1;
-
- /**
- * Error Id for an XML start tag that has no corresponding end tag.
- */
- public static final int MissingXmlEndTag = 2;
-
- /**
- * Error Id for an XML tag or JET directive that is missing a required attribute
- */
- public static final int MissingRequiredAttribute = 3;
-
- /**
- * Error Id for taglib directive that defines a prefix defined by a preceding taglib directive
- */
- public static final int DuplicateXMLNamespacePrefix = 4;
-
- /**
- * Error Id for taglib directive that defines references an unknown tag library id
- */
- public static final int UnknownTagLibrary = 5;
-
- /**
- * Error Id for an attribute that is not defined in the tag definition
- */
- public static final int UnknownAttributeInTag = 6;
-
- /**
- * Represent an unterminated XML Tag
- */
- public static final int UnterminatedXMLTag = 7;
-
- /**
- * Represent a duplicate attribute in an XML Tag;
- */
- public static final int DuplicateAttribute = 8;
-
- /**
- * An underlying JETException was thrown by the JET parser
- */
- public static final int JETException = 9;
-
- /**
- * Two templates specify that they compile to the same Java Class
- */
- public static final int MultipleTemplatesWithSameJavaClass = 10;
-
- /**
- * Use of an attribute that has been deprecated.
- */
- public static final int DeprecatedAttribute = 11;
-
- /**
- * Tag may not have a body - the tag must be of the form &lt;tagName/&gt;.
- */
- public static final int TagCannotHaveContent = 12;
-
- /**
- * Tag must have content - the tag must be of the form &lt;tagName&gt;xxx&lt;/tagName&gt;.
- */
- public static final int TagCannotBeEmpty = 13;
-
- /**
- * Use of the tag has been deprecated.
- */
- public static final int DeprecatedTag = 14;
-
- /**
- * Unsupported Directive.
- */
- public static final int UnsupportedDirective = 15;
-
- /**
- * A tag that has a known tag library prefix, but is not a recognized name. Usually
- * indicates a typographical error.
- */
- public static final int UnknownXMLTag = 16;
-
- /**
- * A tag this is declared as an 'emptyTag' occured as &lt;tag ...&gt;, and has been
- * interpreted as the equivalent empty tag &lt;tag .../&gt;.
- */
- public static final int TagInterpretedAsEmptyTag = 17;
-
- /**
- * An %&#064;include directive could not resolve a referenced file.
- */
- public static final int MissingFile = 18;
-
- /**
- * A &lt;%%&#064; start %&gt; directive was found other than after a &lt;%%&#064; include fail="alternative" %&gt; directive.
- */
- public static final int StartDirectiveOutOfContext = 19;
-
- /**
- * A &lt;%%&#064; end %&gt; directive was found other than after a &lt;%%&#064; include fail="alternative" %&gt; and &lt;%%&#064; start %&gt; directive.
- */
- public static final int EndDirectiveOutOfContext = 20;
-
- /**
- * An &lt;%%&#064; include fail="alternative" %&gt; directive has a &lt;%%&#064; start %&gt; directive, but no &lt;%%&#064; end %&gt; directive.
- */
- public static final int MissingEndDirective = 21;
-
- /**
- * An &lt;%%&#064; include fail="alternative" %&gt; directive has not &lt;%%&#064; start %&gt; and &lt;%%&#064; end %&gt; directives.
- */
- public static final int MissingIncludeAlternative = 22;
-
-} \ No newline at end of file
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ITagLibraryResolver.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ITagLibraryResolver.java
deleted file mode 100644
index f1daa94..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ITagLibraryResolver.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Copyright (c) 2007 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.jet.core.parser;
-
-import org.eclipse.jet.taglib.TagLibrary;
-
-/**
- * Protocol for resolving Tag library ids into instances of {@link TagLibrary}
- *
- */
-public interface ITagLibraryResolver {
-
- /**
- * Return a TagLibrary instance given a tag library ID
- * @param tagLibraryID a tag library id
- * @return a {@link TagLibrary} instance or <code>null</code> if the library ID is not known to the resolver
- */
- public abstract TagLibrary getLibrary(String tagLibraryID);
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ITemplateInput.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ITemplateInput.java
deleted file mode 100644
index f11b932..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ITemplateInput.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Copyright (c) 2007 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.jet.core.parser;
-
-import java.io.Reader;
-import java.net.URI;
-
-/**
- * Encapsulate a JET Templates input
- * @since 1.0
- */
-public interface ITemplateInput {
- /**
- * Return the template Path of the input.
- * @return the template Path
- */
- public String getTemplatePath();
-
- /**
- * Return the base URL of the input
- * @return the template base URL
- */
- public URI getBaseLocation();
-
- /**
- * Return a reader for the template input.
- * It is the responsibility of the caller to close the reader
- * @return a reader
- */
- public Reader getReader() throws TemplateInputException;
-
- /**
- * Return the encoding of the template input
- * @return the encoding or <code>null</code> if not known
- * @throws TemplateInputException if an error occurs while determing the encoding
- */
- public String getEncoding() throws TemplateInputException;
-} \ No newline at end of file
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ITemplateResolver.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ITemplateResolver.java
deleted file mode 100644
index 8c8b268..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ITemplateResolver.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Copyright (c) 2007 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.jet.core.parser;
-
-import java.net.URI;
-
-
-
-/**
- * Protocol for resolving JET template paths into actual input - used by the JET parser and compiler.
- */
-public interface ITemplateResolver {
- /**
- * Return the template input given a template path.
- * @param templatePath the JET template path
- * @return the template input, or <code>null</code>
- */
- public ITemplateInput getInput(String templatePath);
-
- /**
- * Return the appropriate template input, given a template path, and the current stack of
- * template inputs.
- * The activeInputs argument is order from initial input to most recently included input.
- * @param templatePath the JET template path
- * @param activeInputs the input stack.
- * @return the template input, or <code>null</code>
- * @throws RecursiveIncludeException if including templatePath would result in a recursive loop
- * @throws NullPointerException if either argument is <code>null</code>
- * @throws IllegalArgumentException if <code>inputStack</code> does not contain at least one element.
- */
- public ITemplateInput getIncludedInput(String templatePath, ITemplateInput[] activeInputs) throws RecursiveIncludeException;
-
- /**
- * Return the base locations from which the template resolver will load templates
- * @return a non-empty array of base location URIs.
- */
- public URI[] getBaseLocations();
-} \ No newline at end of file
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ITemplateResolverHelper.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ITemplateResolverHelper.java
deleted file mode 100644
index bba4503..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ITemplateResolverHelper.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/**
- * <copyright>
- *
- * Copyright (c) 2007 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 - Initial API and implementation
- *
- * </copyright>
- *
- * $Id: ITemplateResolverHelper.java,v 1.1 2007/04/04 14:53:54 pelder Exp $
- */
-package org.eclipse.jet.core.parser;
-
-
-/**
- * Protocal for template resolver that is responsible for resolving templates from
- * a single base location which is communicated to the helper on creation.
- * Helpers are called by {@link DefaultTemplateResolver} implementations.
- * @see ITemplateResolverHelperFactory
- */
-public interface ITemplateResolverHelper {
-
- /**
- * Test if templatePath exists
- * @param templatePath a template Path
- * @return <code>true</code>
- */
- boolean inputExists(String templatePath);
-
- /**
- * Create a template input for the given templatePath. The templatePath
- * will have been valided with {@link #inputExists(String)} prior to
- * calling this method
- * @param templatePath a template path
- * @return the template input object
- */
- ITemplateInput createTemplateInput(String templatePath);
-
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ITemplateResolverHelperFactory.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ITemplateResolverHelperFactory.java
deleted file mode 100644
index c047bd9..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ITemplateResolverHelperFactory.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Copyright (c) 2007 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.jet.core.parser;
-
-import java.net.URI;
-
-/**
- * Protocol for a factory that creates {@link ITemplateResolverHelper} instances.
- * A helper factory may be optionally passed to a {@link DefaultTemplateResolver} instance
- * during creation to allow for resolution template base URIs in ways other than
- * using {@link java.net.URL#openConnection()}. An example is mapping a base URI to the eclipse workspace
- * and using the workspace APIs instead.
- *
- */
-public interface ITemplateResolverHelperFactory {
-
- /**
- * Return a template resolver helper for the base location.
- * If no appropriate helper can be returned, return <code>null</code>.
- * @param baseLocation a template base location
- * @return a {@link ITemplateResolverHelper} instance or <code>null</code>
- */
- public abstract ITemplateResolverHelper getTemplateResolverHelper(URI baseLocation);
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ProblemSeverity.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ProblemSeverity.java
deleted file mode 100644
index 6418fa4..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ProblemSeverity.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2006, 2007 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 - Initial API and implementation
- *
- * </copyright>
- *
- * $Id: ProblemSeverity.java,v 1.2 2007/04/12 18:02:43 pelder Exp $
- * /
- *******************************************************************************/
-package org.eclipse.jet.core.parser;
-
-
-/**
- * Enumeration of problem Severities
- * <p>
- * This class is not intended to be subclassed by clients.
- * </p>
- *
- * @since 1.0
- */
-public final class ProblemSeverity
-{
-
- /**
- * The compilation unit has a problem, but it is will not prevent execution.
- */
- public static final ProblemSeverity WARNING = new ProblemSeverity("WARNING"); //$NON-NLS-1$
-
- /**
- * The compilation unit has a problem that will prevent execution.
- */
- public static final ProblemSeverity ERROR = new ProblemSeverity("ERROR"); //$NON-NLS-1$
-
- private final String display;
-
- protected ProblemSeverity(String display)
- {
- this.display = display;
- }
-
- /**
- * @see java.lang.Object#toString()
- */
- public String toString()
- {
- return display;
- }
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/RecursiveIncludeException.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/RecursiveIncludeException.java
deleted file mode 100644
index fd18555..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/RecursiveIncludeException.java
+++ /dev/null
@@ -1,84 +0,0 @@
-/*
- * Copyright (c) 2007 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.jet.core.parser;
-
-import java.net.URI;
-
-
-/**
- * Describes a recursive inclusion.
- *
- * @see ITemplateResolver#getIncludedInput(String, ITemplateInput[])
- *
- */
-public final class RecursiveIncludeException extends Exception {
-
- /**
- *
- */
- private static final long serialVersionUID = 3796819381247376434L;
-
- private final String templatePath;
- private final URI baseLocation;
- private final String[] activeTemplatePaths;
- private final URI[] activeBaseLocations;
-
- public RecursiveIncludeException(String templatePath, URI baseLocation, ITemplateInput[] activeInputs) {
- this.templatePath = templatePath;
- this.baseLocation = baseLocation;
- this.activeTemplatePaths = new String[activeInputs.length];
- this.activeBaseLocations = new URI[activeInputs.length];
- for (int i = 0; i < activeInputs.length; i++) {
- activeTemplatePaths[i] = activeInputs[i].getTemplatePath();
- activeBaseLocations[i] = activeInputs[i].getBaseLocation();
- }
- }
-
- /**
- * Return the base locations of the active templates.
- * Base locations are returned in order of inclusion.
- * That is, the base location of the most recently included
- * template is the last element in the array.
- * @return an array of base locations
- * @see #getActiveTemplatePaths()
- */
- public URI[] getActiveBaseLocations() {
- return activeBaseLocations;
- }
-
- /**
- * Return the template paths of the active templates.
- * Template paths are returned in the order of inclusion.
- * That is, the template path of the most recently included
- * template is the last element in the array.
- * @return an array of template paths
- */
- public String[] getActiveTemplatePaths() {
- return activeTemplatePaths;
- }
-
- /**
- * Return the base location at which the recursion was detected.
- * @return the base location.
- */
- public URI getBaseLocation() {
- return baseLocation;
- }
-
- /**
- * Return the template path that would have caused the recursion.
- * @return the templatePath
- */
- public String getTemplatePath() {
- return templatePath;
- }
-
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/TemplateInputException.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/TemplateInputException.java
deleted file mode 100644
index 4035485..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/TemplateInputException.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Copyright (c) 2007 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.jet.core.parser;
-
-/**
- * Wrap an exception from a ITemplateInput
- *
- */
-public class TemplateInputException extends Exception {
-
- /**
- *
- */
- private static final long serialVersionUID = 4844450071476080161L;
-
- /**
- * Construct a new exception with the specified message and cause.
- *
- * Delegates to {@link Exception#Exception(String, Throwable)}
- * @param message the message
- * @param cause the cause
- */
- public TemplateInputException(String message, Throwable cause) {
- super(message, cause);
- }
-
- /**
- * Construct a new exception with the specified message.
- * Delegates to {@link Exception#Exception(String)}.
- * @param message the detailed message
- */
- public TemplateInputException(String message) {
- super(message);
- }
-
- /**
- * Construct a new exception with the specified cause.
- * Delegates to {@link Exception#Exception(Throwable)}.
- * @param cause the cause
- */
- public TemplateInputException(Throwable cause) {
- super(cause);
- }
-
-
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/BodyElement.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/BodyElement.java
deleted file mode 100644
index 7da34b4..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/BodyElement.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2007 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 - Initial API and implementation
- *
- * </copyright>
- *
- * $Id: BodyElement.java,v 1.2 2007/04/12 18:02:42 pelder Exp $
- * /
- *******************************************************************************/
-package org.eclipse.jet.core.parser.ast;
-
-/**
- * Abstract element representing elements in the body of a compilation unit or another tag.
- *
- * <p>
- * This class is not intended to be subclassed by clients
- * </p>
- *
- */
-public abstract class BodyElement extends JETASTElement {
-
-
- /**
- * initialize a BodyElement
- * @param ast the parent AST
- * @param line the start line of the element
- * @param column the start column
- * @param start the zero-based offset of the first char of the element from the start of the document
- * @param end the zero-based offset of the next char after the element from the start of the document
- */
- protected BodyElement(JETAST ast, int line, int column, int start, int end) {
- super(ast, line, column, start, end);
- }
-
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/BodyElements.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/BodyElements.java
deleted file mode 100644
index 0b1b48b..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/BodyElements.java
+++ /dev/null
@@ -1,118 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2007 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 - Initial API and implementation
- *
- * </copyright>
- *
- * $Id: BodyElements.java,v 1.2 2007/04/12 18:02:42 pelder Exp $
- * /
- *******************************************************************************/
-package org.eclipse.jet.core.parser.ast;
-
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.List;
-
-/**
- * Container class core JET AST elements contained in another AST elements in
- * their body.
- *
- */
-class BodyElements {
-
- private List bodyElements = new ArrayList();
-
- private final JETASTElement owner;
-
- /**
- * Create a new instance
- *
- * @param owner
- * The owner of the body elements
- */
- public BodyElements(JETASTElement owner) {
- super();
- this.owner = owner;
- }
-
- /**
- * Return a list of elements in the body
- *
- * @return a {@link List} of elements, the empty list if there are no
- * elements.
- */
- public List getBodyElements() {
- return Collections.unmodifiableList(bodyElements);
- }
-
- /**
- * Add a body element to the body
- *
- * @param bodyElement
- * the text to add
- */
- public void addBodyElement(BodyElement bodyElement) {
- bodyElements.add(bodyElement);
- bodyElement.setParent(owner);
- }
-
- /**
- * @return Returns the owner.
- */
- public final JETASTElement getOwner() {
- return owner;
- }
-
- /**
- * Return the element after the passed element
- *
- * @param element
- * an element in the list
- * @return the next element or <code>null</code>
- * @throws IllegalArgumentException
- * if element is not in the body
- */
- public BodyElement elementAfter(JETASTElement element) {
- BodyElement nextElement = null;
- if (bodyElements == null) {
- throw new IllegalArgumentException();
- }
- int index = bodyElements.indexOf(element);
- if (index == -1) {
- throw new IllegalArgumentException();
- }
-
- if (index + 1 < bodyElements.size()) {
- nextElement = (BodyElement) bodyElements.get(index + 1);
- }
- return nextElement;
- }
-
- /**
- *
- * @param element
- * @return
- */
- public BodyElement elementBefore(JETASTElement element) {
- BodyElement prevElement = null;
- if (bodyElements == null) {
- throw new IllegalArgumentException();
- }
- int index = bodyElements.indexOf(element);
- if (index == -1) {
- throw new IllegalArgumentException();
- }
-
- if (index > 0) {
- prevElement = (BodyElement) bodyElements.get(index - 1);
- }
- return prevElement;
- }
-
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/Comment.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/Comment.java
deleted file mode 100644
index d2a8815..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/Comment.java
+++ /dev/null
@@ -1,84 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2007 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 - Initial API and implementation
- *
- * </copyright>
- *
- * $Id: Comment.java,v 1.3 2007/04/12 18:02:42 pelder Exp $
- * /
- *******************************************************************************/
-package org.eclipse.jet.core.parser.ast;
-
-/**
- * An JET AST element representing a comment
- *
- */
-public final class Comment extends BodyElement {
-
- private final int commentStart;
-
- private final int commentEnd;
-
- private final char[] comment;
-
- /**
- * Create a comment element
- * @param ast the root AST object to to which the comment will be long
- * @param line the start line of the comment
- * @param colOffset the offset within the line of the element's start.
- * @param start the start offset (doc relative) of the comment
- * @param end the end offset of the comment
- * @param commentStart the start offset of the comment text (doc relative)
- * @param commentEnd the end offset of the comment text (doc relative)
- * @param comment the comment text
- */
- Comment(JETAST ast, int line, int colOffset, int start, int end,
- int commentStart, int commentEnd, char[] comment) {
- super(ast, line, colOffset, start, end);
- this.commentStart = commentStart;
- this.commentEnd = commentEnd;
- this.comment = comment;
- }
-
- /**
- * @see org.eclipse.jet.core.parser.ast.JETASTElement#accept0(JETASTVisitor)
- */
- protected final void accept0(JETASTVisitor visitor) {
- visitor.visit(this);
- visitor.endVisit(this);
-
- }
-
- /**
- * @return Returns the commentEnd.
- */
- public int getCommentEnd() {
- return commentEnd;
- }
-
- /**
- * @return Returns the commentStart.
- */
- public int getCommentStart() {
- return commentStart;
- }
-
- /**
- * Return the comment text
- * @return the comment text
- */
- public String getCommentText() {
- return new String(comment);
- }
-
- public boolean removeLineWhenOtherwiseEmpty() {
- return true;
- }
-
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/EmbeddedExpression.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/EmbeddedExpression.java
deleted file mode 100644
index 7c2b019..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/EmbeddedExpression.java
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
- * Copyright (c) 2009 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.jet.core.parser.ast;
-
-/**
- * Represent an embedded expression in the template body
- *
- */
-public class EmbeddedExpression extends BodyElement {
-
- private final String language;
- private final String expression;
-
- protected EmbeddedExpression(JETAST ast, int line, int column, int start,
- int end, String language, char[] content) {
- super(ast, line, column, start, end);
- this.language = language;
- this.expression = new String(content);
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jet.core.parser.ast.JETASTElement#accept0(org.eclipse.jet.core.parser.ast.JETASTVisitor)
- */
- protected void accept0(JETASTVisitor visitor) {
- visitor.visit(this);
- visitor.endVisit(this);
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jet.core.parser.ast.JETASTElement#removeLineWhenOtherwiseEmpty()
- */
- public boolean removeLineWhenOtherwiseEmpty() {
- return false;
- }
-
- /**
- * Return the language of the embedded expression
- * @return the language a string
- */
- public final String getLanguage() {
- return language;
- }
-
- /**
- * Return the embedded Expression
- * @return the expression
- */
- public final String getExpression() {
- return expression;
- }
-
- /* (non-Javadoc)
- * @see java.lang.Object#toString()
- */
- public String toString() {
- return expression;
- }
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/IncludedContent.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/IncludedContent.java
deleted file mode 100644
index 39e6da6..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/IncludedContent.java
+++ /dev/null
@@ -1,140 +0,0 @@
-/*
- * Copyright (c) 2007 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.jet.core.parser.ast;
-
-import java.net.URI;
-import java.util.Collections;
-import java.util.Iterator;
-import java.util.List;
-
-/**
- * Container for content included as a result of a JET V1 &lt;%&#064;include %&gt; directive.
- *
- */
-public final class IncludedContent extends BodyElement {
-
- private final URI baseLocationURI;
- private BodyElements bodyElements = null;
-
- private final String templatePath;
-
- /**
- * @param ast
- * @param line
- * @param column
- * @param start
- * @param end
- */
- IncludedContent(JETAST ast, String templatePath, URI baseLocationURI, int line, int column, int start, int end) {
- super(ast, line, column, start, end);
- this.templatePath = templatePath;
- this.baseLocationURI = baseLocationURI;
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jet.tools.parser.ast.JETASTElement#accept(org.eclipse.jet.tools.parser.ast.IJETASTVisitor)
- */
- protected final void accept0(JETASTVisitor visitor) {
- final boolean visitChildren = visitor.visit(this);
- if (visitChildren) {
- for (Iterator i = getBodyElements().iterator(); i.hasNext();) {
- JETASTElement element = (JETASTElement) i.next();
- element.accept(visitor);
- }
- }
- visitor.endVisit(this);
- }
-
- /**
- * Return the base location URI of the template
- * @return a location URI
- */
- public URI getBaseLocationURI() {
- return baseLocationURI;
- }
-
- /**
- * Return a read-only list of JET elements contained by this element.
- * @return a List of {@link JETASTElement} instances. The empty list is returned if there are no elements.
- */
- public final List getBodyElements() {
- if (bodyElements == null) {
- return Collections.EMPTY_LIST;
- } else {
- return bodyElements.getBodyElements();
- }
- }
-
- /**
- * Return the template Path of the include content
- * @return the template Path
- */
- public String getTemplatePath() {
- return templatePath;
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jet.tools.parser.ast.JETASTElement#removeLineWhenOtherwiseEmpty()
- */
- public boolean removeLineWhenOtherwiseEmpty() {
- return false;
- }
-
- /**
- * Add an JET AST element to the body of the include
- * @param bodyElement
- */
- public void addBodyElement(BodyElement bodyElement) {
- getInternalBodyElements().addBodyElement(bodyElement);
-
- }
-
-
- /**
- * Find the element after the given element in the directly contained elements
- * @param element a JET AST element
- * @return a {@link BodyElement} or <code>null</code>
- */
- public BodyElement elementAfter(JETASTElement element) {
- return bodyElements.elementAfter(element);
- }
-
- /**
- * Find the element before the given element in the directly contained elements
- * @param element a JET AST element
- * @return a {@link BodyElement} or <code>null</code>
- */
- public BodyElement elementBefore(JETASTElement element) {
- return bodyElements.elementBefore(element);
- }
-
- /**
- * Return a object that allows writable access to the JET2 elements contained by this element.
- * @return a BodyElements instance
- */
- BodyElements getInternalBodyElements() {
- if (bodyElements == null) {
- bodyElements = new BodyElements(this);
- }
- return bodyElements;
- }
-
- public JETASTElement getNextElement() {
-
- if (getBodyElements().size() > 0) {
- return (JETASTElement) getBodyElements().get(0);
- } else {
- return super.getNextElement();
- }
- }
-
-
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/JETAST.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/JETAST.java
deleted file mode 100644
index 5865576..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/JETAST.java
+++ /dev/null
@@ -1,244 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2009 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 - Initial API and implementation
- *
- * </copyright>
- *
- * $Id: JETAST.java,v 1.5 2009/04/06 17:55:06 pelder Exp $
- * /
- *******************************************************************************/
-package org.eclipse.jet.core.parser.ast;
-
-import java.net.URI;
-import java.util.Map;
-
-import org.eclipse.jet.taglib.TagDefinition;
-
-/**
- * The root object of JET AST trees and a factory for JET nodes in that tree.
- * @since 0.8.0
- *
- */
-public final class JETAST {
-
- /**
- * Compile to the original JET specification (org.eclipse.emf.codegen).
- * @see JETASTParser
- */
- public static final int JET_SPEC_V1 = 1;
-
- /**
- * Compile according to the JET2 specification (org.eclipse.jet).
- * @see JETASTParser
- */
- public static final int JET_SPEC_V2 = 2;
-
- /**
- * Create an instance
- */
- public JETAST() {
- // do nothing
- }
-
- /**
- * Create a new, unparented JET2Compilation unit that is not based on a template reference
- * @return the compilation unit node
- * @since 0.8.0
- */
- public JETCompilationUnit newJETCompilationUnit() {
- return new JETCompilationUnit(this, null, "", null); //$NON-NLS-1$
- }
-
- /**
- * Create a new unparented JET2Compilation unit for the given template in the given base location
- * @param baseLocation
- * @param templatePath
- * @param encoding the template encoding
- * @return the compilation unit node
- * @since 0.8.0
- */
- public JETCompilationUnit newJETCompilationUnit(URI baseLocation,
- String templatePath, String encoding) {
- return new JETCompilationUnit(this, baseLocation, templatePath,
- encoding);
- }
-
- /**
- * Create a text element in the AST
- * @param chars the text
- * @return the new element
- */
- public TextElement newTextElement(char[] chars) {
- return new TextElement(this, chars);
- }
-
- /**
- * Create a new Directive element in the AST
- * @param line the start line
- * @param colOffset the offset within the line of the element's start.
- * @param start the start offset (doc relative)
- * @param end the end offset (doc relative)
- * @param directiveName the directive name
- * @param attributes a map off attribute names and values
- * @return the new element
- */
- public JETDirective newJETDirective(int line, int colOffset, int start,
- int end, String directiveName, Map attributes) {
- return new JETDirective(this, line, colOffset, start, end,
- directiveName, attributes);
- }
-
- /**
- * Create a new Java Expression element in the AST
- * @param line the start line
- * @param colOffset the offset within the line of the element's start.
- * @param start the offset of the expression element (doc relative)
- * @param end the end offset of the expression element (doc relative)
- * @param javaStart the offset of the Java code (doc relative)
- * @param javaEnd the end offset of the Java code
- * @param javaContent the Java content
- * @return the new element
- */
- public JavaExpression newJavaExpression(int line, int colOffset, int start,
- int end, int javaStart, int javaEnd, char[] javaContent) {
- return new JavaExpression(this, line, colOffset, start, end, javaStart,
- javaEnd, javaContent);
- }
-
- /**
- * Create a new Java Scriptlet element in the AST
- * @param line the start line
- * @param colOffset the offset within the line of the element's start.
- * @param start the offset of the scriptlet element (doc relative)
- * @param end the end offset of the scriplet element (doc relative)
- * @param javaStart the offset of the Java code (doc relative)
- * @param javaEnd the end offset of the Java code
- * @param javaContent the Java content
- * @return the new element
- */
- public JavaScriptlet newJavaScriptlet(int line, int colOffset, int start,
- int end, int javaStart, int javaEnd, char[] javaContent) {
- return new JavaScriptlet(this, line, colOffset, start, end, javaStart,
- javaEnd, javaContent);
- }
-
- /**
- * Create a new Java Declaration element in the AST
- * @param line the start line
- * @param colOffset the offset within the line of the element's start.
- * @param start the offset of the declaration element (doc relative)
- * @param end the end offset of the declaration element (doc relative)
- * @param javaStart the offset of the Java code (doc relative)
- * @param javaEnd the end offset of the Java code
- * @param javaContent the Java content
- * @return the new element
- */
- public JavaDeclaration newJavaDeclaration(int line, int colOffset,
- int start, int end, int javaStart, int javaEnd, char[] javaContent) {
- return new JavaDeclaration(this, line, colOffset, start, end,
- javaStart, javaEnd, javaContent);
- }
-
- /**
- * Create a new empty XML element in the AST
- * @param line the start line of the element
- * @param colOffset the offset within the line of the element's start.
- * @param start the start offset of the element (doc relative)
- * @param end the end offset of the element (doc relative)
- * @param tagName the QName of the element
- * @param attributeMap a Map off element attribute names and values
- * @param td the TagDefinition of the element
- * @return the new element
- */
- public XMLEmptyElement newXMLEmptyElement(int line, int colOffset,
- int start, int end, String tagName, Map attributeMap,
- TagDefinition td) {
- return new XMLEmptyElement(this, line, colOffset, start, end, tagName,
- attributeMap, td);
- }
-
- /**
- * Create a new XML element with body in the AST
- * @param line the start line of the element
- * @param colOffset the offset within the line of the element's start.
- * @param start the start offset of the element (doc relative)
- * @param end the end offset of the element (doc relative)
- * @param tagName the QName of the element
- * @param attributeMap a Map off element attribute names and values
- * @param td the TagDefinition of the tag
- * @return the new element
- */
- public XMLBodyElement newXMLBodyElement(int line, int colOffset,
- int start, int end, String tagName, Map attributeMap,
- TagDefinition td) {
- return new XMLBodyElement(this, line, colOffset, start, end, tagName,
- attributeMap, td);
- }
-
- /**
- * Create a new Comment element in the AST
- * @param line the start line of the element
- * @param colOffset the offset within the line of the element's start.
- * @param start the start offset of the element (doc relative)
- * @param end the end offset of the element (doc relative)
- * @param commentStart the start offset of the comment text (doc relative)
- * @param commentEnd the end offset of the comment text (doc relative)
- * @param comment the comment text
- * @return the new element
- */
- public Comment newComment(int line, int colOffset, int start, int end,
- int commentStart, int commentEnd, char[] comment) {
- return new Comment(this, line, colOffset, start, end, commentStart,
- commentEnd, comment);
- }
-
- /**
- * Create a new InludedContent element in the AST
- * @param line the start line of the element
- * @param colOffset the offset within the line of the element's start.
- * @param start the start offset of the element (doc relative)
- * @param end the end offset of the element (doc relative)
- * @param baseLocation the base Location URI of the resolved include
- * @param templatePath the templatePath (relative to the base location
- * @return the IncludedContent element
- */
- public IncludedContent newIncludedContent(int line, int colOffset, int start, int end, URI baseLocation, String templatePath) {
- return new IncludedContent(this, templatePath, baseLocation, line, colOffset, start, end);
- }
-
- /**
- * Create a new XML end element corresponding to the end of a XMLBodyElement.
- * @param line the start line of the element
- * @param col the offset within the line of the element's start.
- * @param start the start offset of the element (doc relative)
- * @param end the end offset of the element (doc relative)
- * @param tagName the fully qualified tag name
- * @return the new XML BodyElementEnd
- */
- public XMLBodyElementEnd newXMLBodyElementEnd(int line, int col,
- int start, int end, String tagName) {
- return new XMLBodyElementEnd(this, line, col, start, end);
- }
-
- /**
- * Create a new Embedded Expression element
- * @param line the start line of the element
- * @param col the offset within the line of the element's start.
- * @param start the start offset of the element (doc relative)
- * @param end the end offset of the element (doc relative)
- * @param language the expression language
- * @param content the expression including ${ and } delimiters
- * @return the AST element
- */
- public EmbeddedExpression newEmbeddedExpression(int line, int col,
- int start, int end, String language, char[] content) {
- return new EmbeddedExpression(this, line, col, start, end, language, content);
- }
-
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/JETASTElement.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/JETASTElement.java
deleted file mode 100644
index c115db8..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/JETASTElement.java
+++ /dev/null
@@ -1,198 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2007 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 - Initial API and implementation
- *
- * </copyright>
- *
- * $Id: JETASTElement.java,v 1.2 2007/04/12 18:02:42 pelder Exp $
- * /
- *******************************************************************************/
-package org.eclipse.jet.core.parser.ast;
-
-/**
- * An abstract class representing common aspects of all JET AST elements.
- *
- * <p>
- * This class is not intended to be subclassed by clients
- * </p>
- */
-public abstract class JETASTElement {
-
- private final int start;
-
- private final int end;
-
- private final JETAST ast;
-
- private final int line;
-
- private JETASTElement parent = null;
-
- private final int column;
-
- /**
- * @return Returns the parent.
- */
- public final JETASTElement getParent() {
- return parent;
- }
-
- /**
- * Set the parent element
- *
- * @param parent
- * The parent to set.
- */
- final void setParent(JETASTElement parent) {
- this.parent = parent;
- }
-
- /**
- * Construct a new AST element
- *
- * @param ast
- * the AST root
- * @param line
- * the line of the element
- * @param column
- * the one-based offset within the line of the element's start.
- * @param start
- * the start offset of the element
- * @param end
- * the end offset of the element
- *
- */
- JETASTElement(JETAST ast, int line, int column, int start, int end) {
- super();
- this.ast = ast;
- this.column = column;
- this.line = line;
- this.start = start;
- this.end = end;
- }
-
- /**
- * The document relative offset of the start of the element.
- *
- * @return the start offset
- */
- public final int getStart() {
- return start;
- }
-
- /**
- * The document relative offset of the first character after the element.
- *
- * @return the end offset
- */
- public final int getEnd() {
- return end;
- }
-
- /**
- * Visit the AST and its contained elements.
- *
- * @param visitor
- */
- public final void accept(JETASTVisitor visitor) {
- visitor.preVisit(this);
- accept0(visitor);
- visitor.postVisit(this);
- }
-
- /**
- * Visit the AST and its contained elements.
- *
- * @param visitor
- */
- protected abstract void accept0(JETASTVisitor visitor);
-
- /**
- * Return the AST root object
- *
- * @return the AST root object
- * @since 0.8.0
- */
- public JETAST getAst() {
- return ast;
- }
-
- /**
- * Return the line (one-based) on which the element starts.
- *
- * @return the line number.
- */
- public final int getLine() {
- return line;
- }
-
- /**
- * @param element
- * The element for which body elements are sought
- * @return the body elements object
- */
- private BodyElements getBodyElements(JETASTElement element) {
- BodyElements bodyElements = null;
- if (parent instanceof JETCompilationUnit) {
- bodyElements = ((JETCompilationUnit) parent)
- .getInternalBodyElements();
- } else if (parent instanceof XMLBodyElement) {
- bodyElements = ((XMLBodyElement) parent).getInternalBodyElements();
- }
- return bodyElements;
- }
-
- public JETASTElement getNextElement() {
- JETASTElement next = null;
- if (parent != null) {
- BodyElements bodyElements = getBodyElements(parent);
- if (bodyElements != null) {
- next = bodyElements.elementAfter(this);
- } else {
- next = parent.getNextElement();
- }
-
- }
- return next;
- }
-
- public JETASTElement getPrevElement() {
- JETASTElement prev = null;
- if (parent != null) {
- BodyElements bodyElements = getBodyElements(parent);
- if (bodyElements != null) {
- prev = bodyElements.elementBefore(this);
- } else {
- prev = parent.getPrevElement();
- }
-
- }
- return prev;
- }
-
- /**
- * Return the column number (one-based) at which the element starts.
- *
- * @return the column number.
- */
- public final int getColumn() {
- return column;
- }
-
- /**
- * Indicate whether the the surrounding whitespace, including the trailing
- * new line should be removed from the template output. In general, elements
- * that create output should return <code>false</code>, while element
- * that do should should return <code>true</code>.
- *
- * @return <code>true</code> if the containing line should be removed if
- * otherwise empty.
- */
- public abstract boolean removeLineWhenOtherwiseEmpty();
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/JETASTParser.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/JETASTParser.java
deleted file mode 100644
index bcb8826..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/JETASTParser.java
+++ /dev/null
@@ -1,197 +0,0 @@
-/**
- * <copyright>
- *
- * Copyright (c) 2007, 2009 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 - Initial API and implementation
- *
- * </copyright>
- *
- * $Id: JETASTParser.java,v 1.3 2009/04/06 17:55:06 pelder Exp $
- */
-package org.eclipse.jet.core.parser.ast;
-
-import java.net.URI;
-import java.net.URISyntaxException;
-import java.util.Collections;
-import java.util.Map;
-
-import org.eclipse.jet.core.parser.IJETParser;
-import org.eclipse.jet.core.parser.ITagLibraryResolver;
-import org.eclipse.jet.core.parser.ITemplateInput;
-import org.eclipse.jet.core.parser.ITemplateResolver;
-import org.eclipse.jet.core.parser.RecursiveIncludeException;
-import org.eclipse.jet.internal.core.parser.IJETParser2;
-import org.eclipse.jet.internal.core.parser.InternalJET1Parser;
-import org.eclipse.jet.internal.core.parser.InternalJET2Parser;
-import org.eclipse.jet.taglib.TagLibrary;
-
-/**
- * Parser for creating JET ASTs
- * @since 0.8.0
- */
-public final class JETASTParser implements IJETParser, IJETParser2 {
-
- private static final class NullTagLibraryResolver implements
- ITagLibraryResolver {
-
- public TagLibrary getLibrary(String tagLibraryID) {
- return null;
- }
- }
-
- /**
- * Builder for JETAST Parser
- */
- public static final class Builder {
-
- ITemplateResolver templateResolver = null;
-
- Map predefinedTagLibraries;
-
- ITagLibraryResolver tagLibraryResolver;
-
- final int jetSpec;
-
- boolean enableEmbeddedExpressions = false;
-
- /**
- * Create a JETASTParser builder for a parser using the specified JET language specification
- * @param jetSpec either {@link JETAST#JET_SPEC_V1} or {@link JETAST#JET_SPEC_V2}.
- * @throws IllegalArgumentException if <code>jetSpec</code> is not one of the specified values.
- */
- public Builder(int jetSpec) {
- if(jetSpec != JETAST.JET_SPEC_V1 && jetSpec != JETAST.JET_SPEC_V2) {
- throw new IllegalArgumentException();
- }
- this.jetSpec = jetSpec;
- }
-
- /**
- * Specify a template resolver for the parser. If not specified,
- * then not template paths are resolvable, and all templatePath references
- * in parser APIs or in JET directives will result in compilation errors.
- * @param templateResolver a templateResolver. Cannot be <code>null</code>
- * @return the builder
- * @throws NullPointerException if <code>templateResolver</code> is <code>null</code>
- */
- public Builder templateResolver(ITemplateResolver templateResolver) {
- if (templateResolver == null) {
- throw new NullPointerException();
- }
- this.templateResolver = templateResolver;
- return this;
- }
-
- /**
- * Specify a map of predefined JET tag library prefixes to their corresponding JET
- * tag libary ids. If not specified, then not tag libraries are predefined.
- * @param predefinedTagLibraries a non-null map of predefined JET tag libraries.
- * @return the builder.
- * @throws NullPointerException if <code>predefinedTagLibraries</code> is <code>null</code>
- */
- public Builder predefinedTagLibraries(Map predefinedTagLibraries) {
- if (predefinedTagLibraries == null) {
- throw new NullPointerException();
- }
- this.predefinedTagLibraries = predefinedTagLibraries;
- return this;
- }
-
- /**
- * Specify a tag library resolver for the parser
- * @param tagLibraryResolver a tag library resolver instance
- * @return the tag builder
- */
- public Builder tagLibraryResolver(ITagLibraryResolver tagLibraryResolver) {
- this.tagLibraryResolver = tagLibraryResolver;
- return this;
- }
-
- public Builder enableEmbeddedExpressions(boolean enableEmbeddedExpressions) {
- this.enableEmbeddedExpressions = enableEmbeddedExpressions;
- return this;
- }
- /**
- * Build the JETASTParser
- * @return the new parser.
- */
- public JETASTParser build() {
- return new JETASTParser(this);
- }
- }
-
- private static final ITemplateResolver nullTemplateResolver = new ITemplateResolver() {
-
- public URI[] getBaseLocations() {
- URI nullURI;
- try {
- nullURI = new URI(""); //$NON-NLS-1$
- return new URI[] { nullURI };
- } catch (URISyntaxException e) {
- throw new RuntimeException(e);
- }
- }
-
- public ITemplateInput getIncludedInput(String templatePath,
- ITemplateInput[] activeInputs) throws RecursiveIncludeException {
- return null;
- }
-
- public ITemplateInput getInput(String templatePath) {
- return null;
- }
-
- };
-
- private final IJETParser parser;
-
- /**
- * Private constructor based on Builder
- * @param builder
- */
- private JETASTParser(Builder builder) {
- ITemplateResolver templateResolver = builder.templateResolver == null ? nullTemplateResolver
- : builder.templateResolver;
- Map predefinedTagLibraries = builder.predefinedTagLibraries == null ? Collections.EMPTY_MAP
- : builder.predefinedTagLibraries;
-
-
- if(builder.jetSpec == JETAST.JET_SPEC_V2) {
- parser = new InternalJET2Parser(templateResolver,
- builder.tagLibraryResolver == null ?
- new NullTagLibraryResolver() : builder.tagLibraryResolver,
- predefinedTagLibraries, builder.enableEmbeddedExpressions);
- } else {
- parser = new InternalJET1Parser(templateResolver);
- }
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jet.tools.parser.IJETParser#parse(java.lang.String)
- */
- public Object parse(String templatePath) {
- return parser.parse(templatePath);
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jet.tools.parser.IJETParser#parse(char[])
- */
- public Object parse(char[] template) {
- return parser.parse(template);
- }
-
- public Object parse(char[] template, String templatePath) {
- if(parser instanceof IJETParser2) {
- return ((IJETParser2) parser).parse(template, templatePath);
- } else {
- return parser.parse(template);
- }
- }
-
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/JETASTVisitor.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/JETASTVisitor.java
deleted file mode 100644
index 5de2e3f..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/JETASTVisitor.java
+++ /dev/null
@@ -1,287 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2009 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 - Initial API and implementation
- *
- * </copyright>
- *
- * $Id: JETASTVisitor.java,v 1.3 2009/04/06 17:55:06 pelder Exp $
- * /
- *******************************************************************************/
-
-package org.eclipse.jet.core.parser.ast;
-
-/**
- * A visitor for a JETAST tree. This implementation provides 'do nothing' actions for each visit method.
- * Subclasses need override only the visit methods required.
- *
- * @see JETASTVisitor
- * @since 0.8.0
- *
- */
-public abstract class JETASTVisitor {
-
- /**
- *
- */
- public JETASTVisitor() {
- super();
- }
-
- /**
- * Visit a JETCompilationUnit element, prior to visiting its body elements.
- * @param compilationUnit
- * @return <code>true</code> if the children of this element should be
- * visited, and <code>false</code> if the children of this element should
- * be skipped
- */
- public boolean visit(JETCompilationUnit compilationUnit) {
- return true;
- }
-
- /**
- * Visit a JETCompilationUnit element, after visiting its body elements.
- * @param compilationUnit
- */
- public void endVisit(JETCompilationUnit compilationUnit) {
- // do nothing
- }
-
- /**
- * Visit a JavaDeclaration.
- * @param declaration the JavaDeclaration element
- * @return <code>true</code> if the children of this element should be
- * visited, and <code>false</code> if the children of this element should
- * be skipped
- */
- public boolean visit(JavaDeclaration declaration) {
- return true;
- }
-
- /**
- * Visit a JETDirective.
- * @param directive the JETDirective element
- * @return <code>true</code> if the children of this element should be
- * visited, and <code>false</code> if the children of this element should
- * be skipped
- */
- public boolean visit(JETDirective directive) {
- return true;
- }
-
- /**
- * Visit a JavaExpression.
- * @param expression
- * @return <code>true</code> if the children of this element should be
- * visited, and <code>false</code> if the children of this element should
- * be skipped
- */
- public boolean visit(JavaExpression expression) {
- return true;
- }
-
- /**
- * Visit a JavaScriptlet.
- * @param scriptlet
- * @return <code>true</code> if the children of this element should be
- * visited, and <code>false</code> if the children of this element should
- * be skipped
- */
- public boolean visit(JavaScriptlet scriptlet) {
- return true;
- }
-
- /**
- * Visit a TextElement.
- * @param text
- * @return <code>true</code> if the children of this element should be
- * visited, and <code>false</code> if the children of this element should
- * be skipped
- */
- public boolean visit(TextElement text) {
- return true;
- }
-
- /**
- * Visit an XMLEmptyElement.
- * @param xmlEmptyElement
- * @return <code>true</code> if the children of this element should be
- * visited, and <code>false</code> if the children of this element should
- * be skipped
- */
- public boolean visit(XMLEmptyElement xmlEmptyElement) {
- return true;
- }
-
- /**
- * Visit an XMLBodyElement, prior to visiting its body elements.
- * @param xmlBodyElement
- * @return <code>true</code> if the children of this element should be
- * visited, and <code>false</code> if the children of this element should
- * be skipped
- */
- public boolean visit(XMLBodyElement xmlBodyElement) {
- return true;
- }
-
- /**
- * Visit an XMLBodyElement, after visiting its body elements.
- * @param xmlBodyElement
- */
- public void endVisit(XMLBodyElement xmlBodyElement) {
- // do nothing
- }
-
- /**
- * Visit the end tag of an XMLBodyElement. Happens after {@link #endVisit(XMLBodyElement)}.
- * @param xmlBodyElementEnd
- * @return <code>true</code> if the children of this element should be
- * visited, and <code>false</code> if the children of this element should
- * be skipped
- */
- public boolean visit(XMLBodyElementEnd xmlBodyElementEnd) {
- return true;
- }
-
- /**
- * Visit a Comment element.
- * @param comment
- * @return <code>true</code> if the children of this element should be
- * visited, and <code>false</code> if the children of this element should
- * be skipped
- */
- public boolean visit(Comment comment) {
- return true;
- }
-
- /**
- * Visit a section of included content (JET1 only)
- * @param content the included content element
- * @return <code>true</code> if the children of this element should be
- * visited, and <code>false</code> if the children of this element should
- * be skipped
- */
- public boolean visit(IncludedContent content) {
- return true;
- }
-
- /**
- * Post visit a section of included content (JET1 only)
- * @param content the included content element
- */
- public void endVisit(IncludedContent content) {
- // Do nothing
- }
-
-
- /**
- * Visit a JavaDeclaration element, after visiting its children.
- * @param declaration the JavaDeclaration
- */
- public void endVisit(JavaDeclaration declaration) {
- // Do nothing
- }
-
-
- /**
- * Visit a JETDirective element, after visiting its children.
- * @param directive the JETDirective element
- */
- public void endVisit(JETDirective directive) {
- // Do nothing
- }
-
-
- /**
- * Visit a JavaExpression element, after visiting its children.
- * @param expression the JavaExpression element
- */
- public void endVisit(JavaExpression expression) {
- // Do nothing
- }
-
-
- /**
- * Visit a JavaScriptlet element, after visiting its children.
- * @param scriptlet the JavaScriptlet element
- */
- public void endVisit(JavaScriptlet scriptlet) {
- // Do nothing
- }
-
-
- /**
- * Visit a TextElement element, after visiting its children.
- * @param text the TextElement element
- */
- public void endVisit(TextElement text) {
- // Do nothing
- }
-
-
- /**
- * Visit a XMLEmptyElement element, after visiting its children.
- * @param xmlEmptyElement the XMLEmptyElement element
- */
- public void endVisit(XMLEmptyElement xmlEmptyElement) {
- // Do nothing
- }
-
-
- /**
- * Visit a XMLBodyElementEnd element, after visiting its children.
- * @param xmlBodyElementEnd the XMLBodyElementEnd element
- */
- public void endVisit(XMLBodyElementEnd xmlBodyElementEnd) {
- // Do nothing
- }
-
-
- /**
- * Visit a Comment element, after visiting its children.
- * @param comment the Comment element
- */
- public void endVisit(Comment comment) {
- // Do nothing
- }
-
-
- /**
- * Visits the AST Node after all type specific visit/end visits
- * @param element the AST element
- */
- public void postVisit(JETASTElement element) {
- // Do nothing
- }
-
-
- /**
- * Visits an AST Node prior to a type specific visit
- * @param element the AST element
- */
- public void preVisit(JETASTElement element) {
- // Do nothing
- }
-
- /**
- * @param embeddedExpression
- * @since 0.10.0
- */
- public boolean visit(EmbeddedExpression embeddedExpression) {
- return true;
- }
-
- /**
- * @param embeddedExpression
- * @since 0.10.0
- */
- public void endVisit(EmbeddedExpression embeddedExpression) {
- // Do nothing
- }
-
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/JETCompilationUnit.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/JETCompilationUnit.java
deleted file mode 100644
index 31b5b6a..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/JETCompilationUnit.java
+++ /dev/null
@@ -1,289 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2007 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 - Initial API and implementation
- *
- * </copyright>
- *
- * $Id: JETCompilationUnit.java,v 1.5 2007/06/01 20:26:19 pelder Exp $
- * /
- *******************************************************************************/
-
-package org.eclipse.jet.core.parser.ast;
-
-import java.net.URI;
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.Iterator;
-import java.util.LinkedHashSet;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-
-import org.eclipse.jet.core.parser.ProblemSeverity;
-import org.eclipse.jet.taglib.TagLibraryReference;
-
-/**
- * Represent a compilation unit (a template) in the JET AST.
- *
- */
-public final class JETCompilationUnit extends JETASTElement {
-
- private BodyElements bodyElements = null;
-
- private final List problems = new ArrayList();
-
- private String outputJavaPackage = null;
-
- private String outputJavaClassName;
-
- private boolean errors = false;
-
- private boolean warnings = false;
-
- private TagLibraryReference[] tagLibraryReferences;
-
- private Set imports = new LinkedHashSet();
-
- private final URI baseLocation;
-
- private final String templatePath;
-
- private final String encoding;
-
- /**
- * Create a JET2Compilation Unit
- *
- * @param ast
- * the parent AST
- * @param baseLocation
- * the base location URI or <code>null</code>
- * @param templatePath
- * the template path or the empty string
- * @param encoding
- * the template encoding or <code>null</code>
- */
- JETCompilationUnit(JETAST ast, URI baseLocation, String templatePath,
- String encoding) {
- super(ast, -1, -1, -1, -1);
- this.baseLocation = baseLocation;
- this.templatePath = templatePath;
- this.encoding = encoding;
- }
-
- /**
- * Define tag library prefixes (and associated tag library ids) that are
- * automatically available to the transform.
- *
- * @param predefinedLibraryMap
- * a map from prefix to tag library id.
- */
- public void setPredefinedTagLibraries(Map predefinedLibraryMap) {
- }
-
- /**
- * Return the internal BodyElements object that gives access to an
- * updateable list of AST elements the the compilation unit contains
- *
- * @return a BodyElements object
- */
- BodyElements getInternalBodyElements() {
- if (bodyElements == null) {
- bodyElements = new BodyElements(this);
- }
- return bodyElements;
- }
-
- /**
- * Return a {@link List} of JET2 AST element (@link JETASTElement}
- * instances.
- *
- * @return a List. The empty list of there are no body elements.
- */
- public final List getBodyElements() {
- if (bodyElements == null) {
- return Collections.EMPTY_LIST;
- } else {
- return bodyElements.getBodyElements();
- }
- }
-
- public final void addBodyElement(BodyElement bodyElement) {
- getInternalBodyElements().addBodyElement(bodyElement);
- }
-
- /**
- * @see org.eclipse.jet.core.parser.ast.JETASTElement#accept0(JETASTVisitor)
- */
- protected final void accept0(JETASTVisitor visitor) {
- final boolean visitChildren = visitor.visit(this);
- if (visitChildren) {
- for (Iterator i = getBodyElements().iterator(); i.hasNext();) {
- JETASTElement element = (JETASTElement) i.next();
- element.accept(visitor);
- }
- }
- visitor.endVisit(this);
- }
-
- /**
- * Return a list of problems discovered in the compilation unit
- *
- * @return a List of {@link Problem} objects. The empty list is returned if
- * no problems were found.
- */
- public List getProblems() {
- return Collections.unmodifiableList(problems);
- }
-
- /**
- * Test if the compilation unit has any errors
- *
- * @return <code>true</code> if the compilation unit had errors,
- * <code>false</code> otherwise.
- */
- public boolean hasErrors() {
- return errors;
- }
-
- /**
- * Test if the compilation unit has any warnings
- *
- * @return <code>true</code> if the compilation unit had warnings,
- * <code>false</code> otherwise.
- */
- public boolean hasWarnings() {
- return warnings;
- }
-
- /**
- * Create a new problem on the compilation unit
- *
- * @param error
- * the severity of the problem
- * @param problemId
- * the problem id. A value from {@link Problem} static files
- * @param message
- * an error message, with optional replacement tokens
- * @param messageArgs
- * the error message arguments
- * @param start
- * the start offset of the problem (doc relative)
- * @param end
- * the end offset of the problem (doc relative)
- * @param line
- * the line number of the problem (1 based)
- * @param colOffset
- * TODO
- */
- public void createProblem(ProblemSeverity error, int problemId,
- String message, Object[] messageArgs, int start, int end, int line,
- int colOffset) {
- if (error == ProblemSeverity.ERROR) {
- errors = true;
- } else if (error == ProblemSeverity.WARNING) {
- warnings = true;
- }
- problems.add(new Problem(baseLocation, templatePath, error, problemId,
- message, messageArgs, start, end, line, colOffset));
- }
-
- /**
- * Return the name of the Java package to which the compilation unit will be
- * compiled.
- *
- * @return a string
- */
- public String getOutputJavaPackage() {
- return outputJavaPackage;
- }
-
- /**
- * Return the unqualified name of the Java class into which the compilation
- * unit will be compiled.
- *
- * @return Returns the outputJavaClassName.
- */
- public String getOutputJavaClassName() {
- return outputJavaClassName;
- }
-
- /**
- * Set the unqualifeid name of the Java class into which the compilation
- * unit will be compiled.
- *
- * @param outputJavaClassName
- * The outputJavaClassName to set.
- */
- public void setOutputJavaClassName(String outputJavaClassName) {
- this.outputJavaClassName = outputJavaClassName;
- }
-
- /**
- * Set the Java package into which the compilation unit will be compiled.
- *
- * @param outputJavaPackage
- * The outputJavaPackage to set.
- */
- public void setOutputJavaPackage(String outputJavaPackage) {
- this.outputJavaPackage = outputJavaPackage;
- }
-
- public boolean removeLineWhenOtherwiseEmpty() {
- return false;
- }
-
- /**
- * Return an array of tag libraries referenced by this template.
- *
- * @return a possibly empty array of tag library references.
- */
- public TagLibraryReference[] getTagLibraryReferences() {
- return tagLibraryReferences == null ? new TagLibraryReference[0]
- : tagLibraryReferences;
- }
-
- public void addImports(List list) {
- imports.addAll(list);
- }
-
- public Set getImports() {
- return Collections.unmodifiableSet(imports);
- }
-
- /**
- * Set the tag libraries referenced by this template
- *
- * @param tagLibraryReferences
- * the tag library references
- * @since 0.8.0
- */
- public void setTagLibraryReferences(
- TagLibraryReference[] tagLibraryReferences) {
- this.tagLibraryReferences = tagLibraryReferences;
- }
-
- /**
- * Return the output encoding for the template
- *
- * @return the output encoding
- * @since 0.8.0
- */
- public String getOutputEncoding() {
- return encoding;
- }
-
- public JETASTElement elementAfter(JETASTElement element) {
- return bodyElements.elementAfter(element);
- }
-
- public BodyElement elementBefore(JETASTElement element) {
- return bodyElements.elementBefore(element);
- }
-
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/JETDirective.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/JETDirective.java
deleted file mode 100644
index ecbeba5..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/JETDirective.java
+++ /dev/null
@@ -1,89 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2007 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 - Initial API and implementation
- *
- * </copyright>
- *
- * $Id: JETDirective.java,v 1.3 2007/04/12 18:02:42 pelder Exp $
- * /
- *******************************************************************************/
-
-package org.eclipse.jet.core.parser.ast;
-
-import java.util.Collections;
-import java.util.LinkedHashMap;
-import java.util.Map;
-
-/**
- * Define a Directive Element in the JET AST
- *
- */
-public final class JETDirective extends BodyElement {
-
- private final String name;
-
- private final Map attributes;
-
- /**
- * Create an instance
- *
- * @param ast
- * the owning JET2 AST
- * @param line
- * the start line of the directive
- * @param colOffset
- * the offset within the line of the element's start.
- * @param start
- * the start offset of the directive (doc relative)
- * @param end
- * the end offset of the directive (doc relative)
- * @param name
- * the directive name
- * @param attributes
- * a Map of attribute names to attribute values for the directive
- */
- JETDirective(JETAST ast, int line, int colOffset, int start, int end,
- String name, Map attributes) {
- super(ast, line, colOffset, start, end);
- this.name = name;
- this.attributes = Collections.unmodifiableMap(new LinkedHashMap(
- attributes));
- }
-
- /**
- * Return the directive name
- *
- * @return the directive name
- */
- public final String getName() {
- return name;
- }
-
- /**
- * Return a Map the directive attribute names to values
- *
- * @return a Map of the directive attributes (unmodifiable)
- */
- public final Map getAttributes() {
- return attributes;
- }
-
- /**
- * @see org.eclipse.jet.core.parser.ast.JETASTElement#accept0(JETASTVisitor)
- */
- protected void accept0(JETASTVisitor visitor) {
- visitor.visit(this);
- visitor.endVisit(this);
- }
-
- public boolean removeLineWhenOtherwiseEmpty() {
- return true;
- }
-
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/JavaDeclaration.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/JavaDeclaration.java
deleted file mode 100644
index c97345e..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/JavaDeclaration.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2007 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 - Initial API and implementation
- *
- * </copyright>
- *
- * $Id: JavaDeclaration.java,v 1.3 2007/04/12 18:02:42 pelder Exp $
- * /
- *******************************************************************************/
-
-package org.eclipse.jet.core.parser.ast;
-
-/**
- * Define a Java Declaration Element in the JET AST
- *
- */
-public final class JavaDeclaration extends JavaElement {
-
- /**
- * Create an instance
- * @param ast the owning AST
- * @param line the start line of the element
- * @param colOffset the offset within the line of the element's start.
- * @param start the start offset of the element (doc relative)
- * @param end the end offset of the element (doc relative)
- * @param javaStart the start offset of the Java code (doc relative)
- * @param javaEnd the end offset of the Java code (doc relative)
- * @param javaContent the Java code
- */
- JavaDeclaration(JETAST ast, int line, int colOffset, int start, int end,
- int javaStart, int javaEnd, char[] javaContent) {
- super(ast, line, colOffset, start, end, javaStart, javaEnd, javaContent);
- }
-
- /**
- * @see org.eclipse.jet.core.parser.ast.JETASTElement#accept0(JETASTVisitor)
- */
- protected final void accept0(JETASTVisitor visitor) {
- visitor.visit(this);
- visitor.endVisit(this);
- }
-
- public boolean removeLineWhenOtherwiseEmpty() {
- return true;
- }
-
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/JavaElement.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/JavaElement.java
deleted file mode 100644
index 87bbd6c..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/JavaElement.java
+++ /dev/null
@@ -1,76 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2007 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 - Initial API and implementation
- *
- * </copyright>
- *
- * $Id: JavaElement.java,v 1.2 2007/04/12 18:02:42 pelder Exp $
- * /
- *******************************************************************************/
-
-package org.eclipse.jet.core.parser.ast;
-
-/**
- * Abstract representation of JET AST elements that contain Java code
- *
- * <p>
- * This class is not intended to be subclassed by clients
- * </p>
- */
-public abstract class JavaElement extends BodyElement {
-
- private final int javaStart;
-
- private final int javaEnd;
-
- private final char[] javaContent;
-
- /**
- * Create a new instance
- * @param ast the root AST to which the element belongs
- * @param line the line in which the element begins
- * @param colOffset the offset within the line of the element's start.
- * @param start the offset at which the element starts (doc relative)
- * @param end the offset at which the element ends (doc relative)
- * @param javaStart the offset at which the Java code starts (doc relative)
- * @param javaEnd the offset at which the Java code ends (doc relative)
- * @param javaContent the java code
- */
- JavaElement(JETAST ast, int line, int colOffset, int start, int end,
- int javaStart, int javaEnd, char[] javaContent) {
- super(ast, line, colOffset, start, end);
- this.javaStart = javaStart;
- this.javaEnd = javaEnd;
- this.javaContent = javaContent;
- }
-
- /**
- * The document relative offset of the Java code within the element.
- * @return the start offset
- */
- public final int getJavaStart() {
- return javaStart;
- }
-
- /**
- * The document relative offset of the first character after the Java code.
- * @return the end offset
- */
- public final int getJavaEnd() {
- return javaEnd;
- }
-
- /**
- * Return the Java content of the element
- * @return the Java content
- */
- public String getJavaContent() {
- return new String(javaContent);
- }
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/JavaExpression.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/JavaExpression.java
deleted file mode 100644
index 483471c..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/JavaExpression.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2007 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 - Initial API and implementation
- *
- * </copyright>
- *
- * $Id: JavaExpression.java,v 1.3 2007/04/12 18:02:42 pelder Exp $
- * /
- *******************************************************************************/
-
-package org.eclipse.jet.core.parser.ast;
-
-/**
- * Define a Java Expression Element in the JET AST
- *
- */
-
-public final class JavaExpression extends JavaElement {
-
- /**
- * Create an instance
- * @param ast the owning AST
- * @param line the start line of the element
- * @param colOffset the offset within the line of the element's start.
- * @param start the start offset of the element (doc relative)
- * @param end the end offset of the element (doc relative)
- * @param javaStart the start offset of the Java code (doc relative)
- * @param javaEnd the end offset of the Java code (doc relative)
- * @param javaContent the Java code
- */
- JavaExpression(JETAST ast, int line, int colOffset, int start, int end,
- int javaStart, int javaEnd, char[] javaContent) {
- super(ast, line, colOffset, start, end, javaStart, javaEnd, javaContent);
- }
-
- /**
- * @see org.eclipse.jet.core.parser.ast.JETASTElement#accept0(JETASTVisitor)
- */
- protected void accept0(JETASTVisitor visitor) {
- visitor.visit(this);
- visitor.endVisit(this);
- }
-
- public boolean removeLineWhenOtherwiseEmpty() {
- return false;
- }
-
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/JavaScriptlet.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/JavaScriptlet.java
deleted file mode 100644
index d31bf1d..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/JavaScriptlet.java
+++ /dev/null
@@ -1,62 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2007 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 - Initial API and implementation
- *
- * </copyright>
- *
- * $Id: JavaScriptlet.java,v 1.3 2007/04/12 18:02:42 pelder Exp $
- * /
- *******************************************************************************/
-
-package org.eclipse.jet.core.parser.ast;
-
-/**
- * Define a Java Scriptlet Element in the JET AST
- *
- */
-public final class JavaScriptlet extends JavaElement {
-
- /**
- * Create an instance
- *
- * @param ast
- * the owning AST
- * @param line
- * the start line of the element
- * @param colOffset
- * the offset within the line of the element's start.
- * @param start
- * the start offset of the element (doc relative)
- * @param end
- * the end offset of the element (doc relative)
- * @param javaStart
- * the start offset of the Java code (doc relative)
- * @param javaEnd
- * the end offset of the Java code (doc relative)
- * @param javaContent
- * the Java code
- */
- JavaScriptlet(JETAST ast, int line, int colOffset, int start, int end,
- int javaStart, int javaEnd, char[] javaContent) {
- super(ast, line, colOffset, start, end, javaStart, javaEnd, javaContent);
- }
-
- /**
- * @see org.eclipse.jet.core.parser.ast.JETASTElement#accept0(JETASTVisitor)
- */
- protected void accept0(JETASTVisitor visitor) {
- visitor.visit(this);
- visitor.endVisit(this);
- }
-
- public boolean removeLineWhenOtherwiseEmpty() {
- return true;
- }
-
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/Problem.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/Problem.java
deleted file mode 100644
index 11cd6af..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/Problem.java
+++ /dev/null
@@ -1,257 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2007 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 - Initial API and implementation
- *
- * </copyright>
- *
- * $Id: Problem.java,v 1.3 2007/04/12 18:02:42 pelder Exp $
- * /
- *******************************************************************************/
-
-package org.eclipse.jet.core.parser.ast;
-
-import java.net.URI;
-import java.text.MessageFormat;
-
-import org.eclipse.jet.core.parser.IProblem;
-import org.eclipse.jet.core.parser.ProblemSeverity;
-
-/**
- * Represent a compilation problem on a JET2 tempalte.
- * <p>
- * This class is not intended to be extended by clients
- * </p>
- * @since 0.8.0
- */
-public final class Problem {
-
- /**
- * Error Id for an XML end tag that has no corresponding start tag.
- * @see #getId()
- * @deprecated Use {@link IProblem#MissingXmlStartTag}
- */
- public static final int MissingXmlStartTag = IProblem.MissingXmlStartTag;
-
- /**
- * Error Id for an XML start tag that has no corresponding end tag.
- * @see #getId()
- * @deprecated Use {@link IProblem#MissingXmlEndTag}
- */
- public static final int MissingXmlEndTag = IProblem.MissingXmlEndTag;
-
- /**
- * Error Id for an XML tag or JET directive that is missing a required attribute
- * @see #getId()
- * @deprecated Use {@link IProblem#MissingRequiredAttribute}
- */
- public static final int MissingRequiredAttribute = IProblem.MissingRequiredAttribute;
-
- /**
- * Error Id for taglib directive that defines a prefix defined by a preceding taglib directive
- * @see #getId()
- * @deprecated Use {@link IProblem#DuplicateXMLNamespacePrefix}
- */
- public static final int DuplicateXMLNamespacePrefix = IProblem.DuplicateXMLNamespacePrefix;
-
- /**
- * Error Id for taglib directive that defines references an unknown tag library id
- * @see #getId()
- * @deprecated Use {@link IProblem#UnknownTagLibrary}
- */
- public static final int UnknownTagLibrary = IProblem.UnknownTagLibrary;
-
- /**
- * Error Id for an attribute that is not defined in the tag definition
- * @deprecated Use {@link IProblem#UnknownAttributeInTag}
- */
- public static final int UnknownAttributeInTag = IProblem.UnknownAttributeInTag;
-
- /**
- * Represent an unterminated XML Tag
- * @deprecated Use {@link IProblem#UnterminatedXMLTag}
- */
- public static final int UnterminatedXMLTag = IProblem.UnterminatedXMLTag;
-
- /**
- * Represent a duplicate attribute in an XML Tag;
- * @deprecated Use {@link IProblem#DuplicateAttribute}
- */
- public static final int DuplicateAttribute = IProblem.DuplicateAttribute;
-
- /**
- * An underlying JETException was thrown by the JET parser
- * @deprecated Use {@link IProblem#JETException}
- */
- public static final int JETException = IProblem.JETException;
-
- /**
- * Two templates specify that they compile to the same Java Class
- * @deprecated Use {@link IProblem#MultipleTemplatesWithSameJavaClass}
- */
- public static final int MultipleTemplatesWithSameJavaClass = IProblem.MultipleTemplatesWithSameJavaClass;
-
- /**
- * Use of an attribute that has been deprecated.
- * @deprecated Use {@link IProblem#DeprecatedAttribute}
- */
- public static final int DeprecatedAttribute = IProblem.DeprecatedAttribute;
-
- /**
- * Tag may not have a body - the tag must be of the form &lt;tagName/&gt;.
- * @deprecated Use {@link IProblem#TagCannotHaveContent}
- */
- public static final int TagCannotHaveContent = IProblem.TagCannotHaveContent;
-
- /**
- * Tag must have content - the tag must be of the form &lt;tagName&gt;xxx&lt;/tagName&gt;.
- * @deprecated Use {@link IProblem#TagCannotBeEmpty}
- */
- public static final int TagCannotBeEmpty = IProblem.TagCannotBeEmpty;
-
- /**
- * Use of the tag has been deprecated.
- * @deprecated Use {@link IProblem#DeprecatedTag}
- */
- public static final int DeprecatedTag = IProblem.DeprecatedTag;
-
- /**
- * Unsupported Directive.
- * @deprecated Use {@link IProblem#UnsupportedDirective}
- */
- public static final int UnsupportedDirective = IProblem.UnsupportedDirective;
-
- /**
- * A tag that has a known tag library prefix, but is not a recognized name. Usually
- * indicates a typographical error.
- * @deprecated Use {@link IProblem#UnknownXMLTag}
- */
- public static final int UnknownXMLTag = IProblem.UnknownXMLTag;
-
- /**
- * A tag this is declared as an 'emptyTag' occured as &lt;tag ...&gt;, and has been
- * interpreted as the equivalent empty tag &lt;tag .../&gt;.
- * @deprecated Use {@link IProblem#TagInterpretedAsEmptyTag}
- */
- public static final int TagInterpretedAsEmptyTag = IProblem.TagInterpretedAsEmptyTag;
-
- private final String originatingFileName;
-
- private final int id;
-
- private final String message;
-
- private final Object[] messageArgs;
-
- private final int start;
-
- private final int end;
-
- private final int lineNumber;
-
- private final ProblemSeverity problemSeverity;
-
- private final int colOffset;
-
- /**
- * Create an new instance
- * @param baseLocation the base location from which the template path is resolved.
- * @param templatePath the file name from which the problem originates
- * @param severity the problem severity
- * @param id the problem id. See static constants declared on this class
- * @param message the error message in {@link MessageFormat} style
- * @param messageArgs the error message arguments
- * @param start the start offset of the problem (doc relative)
- * @param end the end offset of the problem (doc relative)
- * @param lineNumber the start line of the problem
- * @param colOffset the column position (one based) of the problem start
- */
- public Problem(URI baseLocation, String templatePath,
- ProblemSeverity severity, int id, String message,
- Object[] messageArgs, int start, int end, int lineNumber,
- int colOffset) {
- super();
- this.originatingFileName = templatePath;
- this.problemSeverity = severity;
- this.id = id;
- this.colOffset = colOffset;
- this.message = messageArgs != null && messageArgs.length > 0 ? MessageFormat
- .format(message, messageArgs)
- : message;
- this.messageArgs = messageArgs;
- this.start = start;
- this.end = end;
- this.lineNumber = lineNumber;
- }
-
- /**
- * @return Returns the end.
- */
- public int getEnd() {
- return end;
- }
-
- /**
- * @return Returns the id.
- */
- public int getId() {
- return id;
- }
-
- /**
- * @return Returns the lineNumber.
- */
- public int getLineNumber() {
- return lineNumber;
- }
-
- /**
- * @return Returns the message.
- */
- public String getMessage() {
- return message;
- }
-
- /**
- * @return Returns the messageArgs.
- */
- public Object[] getMessageArgs() {
- return messageArgs;
- }
-
- /**
- * @return Returns the originatingFileName.
- */
- public String getOriginatingFileName() {
- return originatingFileName;
- }
-
- /**
- * @return Returns the start.
- */
- public int getStart() {
- return start;
- }
-
- /**
- * @return Returns the colOffset.
- */
- public final int getColOffset() {
- return colOffset;
- }
-
- /**
- * Return the problem severity
- * @return the problem severity
- * @since 0.8.0
- */
- public ProblemSeverity getProblemSeverity() {
- return problemSeverity;
- }
-
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/TagLibraryUsageManager.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/TagLibraryUsageManager.java
deleted file mode 100644
index e13c2ed..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/TagLibraryUsageManager.java
+++ /dev/null
@@ -1,223 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2007 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.jet.core.parser.ast;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-
-import org.eclipse.jet.core.parser.ITagLibraryResolver;
-import org.eclipse.jet.internal.taglib.TagLibraryReferenceImpl;
-import org.eclipse.jet.taglib.TagDefinition;
-import org.eclipse.jet.taglib.TagLibrary;
-import org.eclipse.jet.taglib.TagLibraryReference;
-
-/**
- * A class to manage usage of tag libraries in a JET2 template.
- *
- */
-public class TagLibraryUsageManager {
-
- private final Map tagLibraries = new HashMap();
-
- private final Map predefinedLibraryMap;
-
- private List tags = null;
-
- private final ITagLibraryResolver tagLibraryResolver;
-
- /**
- * @param predefinedLibraryMap
- * a map of predefined prefixes and their tag libary ids.
- *
- */
- public TagLibraryUsageManager(Map predefinedLibraryMap,
- ITagLibraryResolver tagLibraryResolver) {
- this.tagLibraryResolver = tagLibraryResolver;
- // make a defensive copy, we may change it...
- this.predefinedLibraryMap = new HashMap(predefinedLibraryMap);
- }
-
- /**
- * Test whether a prefix can be created.
- * <p>
- * Conditions where this can succeed: <bl>
- * <li>prefix is not defined in either the predefined library map or the
- * library map.</li>
- * </bl>
- * </p>
- *
- * @param prefix
- * a prefix
- * @param id
- * the tag libary id.
- * @return <code>true</code> if the prefix can be created.
- */
- public boolean canDefinePrefix(String prefix, String id) {
-
- if (!tagLibraries.containsKey(prefix)
- && !predefinedLibraryMap.containsKey(prefix)) {
- return true;
- }
-
- // check for duplicate definitions of predefined libraries, this is ok,
- // too.
- if (id.equals(predefinedLibraryMap.get(prefix))) {
- return true;
- } else {
- return false;
- }
- }
-
- public boolean isLibraryDefined(String libaryId) {
- return tagLibraries.containsValue(libaryId);
- }
-
- public String getLibraryIdFromPrefix(String prefix) {
- String id = (String) tagLibraries.get(prefix);
- if (id == null) {
- id = (String) predefinedLibraryMap.get(prefix);
- }
- return id;
- }
-
- /**
- * Defined a prefix for a tag library id. If a prefix for the tag library id
- * is already defined in the predefined librarys map, then that prefix is
- * removed.
- *
- * @param prefix
- * a prefix
- * @param libraryId
- * a library id
- */
- public void add(String prefix, String libraryId) {
- tagLibraries.put(prefix, libraryId);
-
- for (Iterator i = predefinedLibraryMap.entrySet().iterator(); i
- .hasNext();) {
- Map.Entry entry = (Map.Entry) i.next();
- if (libraryId.equals(entry.getValue())) {
- i.remove();
- }
- }
-
- tags = null; // clear the tags list cache
- }
-
- /**
- * Return the TagDefinition of the selected tag.
- *
- * @param tagName
- * the QName of the tag
- * @return the TagDefinition
- */
- public TagDefinition getTagDefinition(String tagName) {
- int sepIndex = tagName.indexOf(':');
- String prefix = sepIndex == -1 ? "" : tagName.substring(0, sepIndex); //$NON-NLS-1$
- String tagNCName = sepIndex == -1 ? tagName : tagName
- .substring(sepIndex + 1);
- String id = getLibraryIdFromPrefix(prefix.toLowerCase());
- TagLibrary tagLibrary = tagLibraryResolver.getLibrary(id);
- return tagLibrary.getTagDefinition(tagNCName);
- }
-
- /**
- * Test whether the tag name passed is know to this manager
- *
- * @return <code>true</code> if the tag matches one of the libraries,
- * <code>false</code> otherwise.
- */
- public boolean isKnownTag(String tagName) {
- boolean knownTag = false;
-
- int sepIndex = tagName.indexOf(':');
- String prefix = sepIndex == -1 ? "" : tagName.substring(0, sepIndex); //$NON-NLS-1$
- String tagNCName = sepIndex == -1 ? tagName : tagName
- .substring(sepIndex + 1);
- String id = getLibraryIdFromPrefix(prefix.toLowerCase());
- if (id != null) {
- TagLibrary tagLibrary = tagLibraryResolver.getLibrary(id);
- if (tagLibrary != null) {
- knownTag = tagLibrary.hasTag(tagNCName);
- }
- }
- return knownTag;
- }
-
- /**
- * Test whether the tag name passed is known to be an invalid name by the
- * manager. The tag name is known to be invalid if it has a known prefix,
- * but an unknown unqualified tag name.
- *
- * @return <code>true</code> if the tag matches one of the libraries,
- * <code>false</code> otherwise.
- */
- public boolean isKnownInvalidTagName(String tagName) {
- boolean knownInvalidTagName = false;
-
- int sepIndex = tagName.indexOf(':');
- String prefix = sepIndex == -1 ? "" : tagName.substring(0, sepIndex); //$NON-NLS-1$
- String tagNCName = sepIndex == -1 ? tagName : tagName
- .substring(sepIndex + 1);
- String id = getLibraryIdFromPrefix(prefix.toLowerCase());
- if (id != null) {
- TagLibrary tagLibrary = tagLibraryResolver.getLibrary(id);
- if (tagLibrary != null && prefix.length() > 0) {
- knownInvalidTagName = !tagLibrary.hasTag(tagNCName);
- }
- }
- return knownInvalidTagName;
-
- }
-
- public TagLibraryReference[] getTagLibraryReferences() {
- List result = new ArrayList(predefinedLibraryMap.size()
- + tagLibraries.size());
- for (Iterator i = predefinedLibraryMap.entrySet().iterator(); i
- .hasNext();) {
- Map.Entry entry = (Map.Entry) i.next();
- result.add(new TagLibraryReferenceImpl((String) entry.getKey(),
- (String) entry.getValue(), true));
- }
- for (Iterator i = tagLibraries.entrySet().iterator(); i.hasNext();) {
- Map.Entry entry = (Map.Entry) i.next();
- result.add(new TagLibraryReferenceImpl((String) entry.getKey(),
- (String) entry.getValue(), false));
- }
- return (TagLibraryReference[]) result
- .toArray(new TagLibraryReference[result.size()]);
- }
-
- public String[] getKnownTagNames() {
- List localTags = tags; // protect against concurrent access
- if (localTags == null) {
- localTags = new ArrayList();
- for (Iterator i = tagLibraries.entrySet().iterator(); i.hasNext();) {
- Map.Entry entry = (Map.Entry) i.next();
- String prefix = (String) entry.getKey();
- String id = (String) entry.getValue();
- TagLibrary tagLibrary = tagLibraryResolver.getLibrary(id);
- final String[] tagNames = tagLibrary.getTagNames();
-
- for (int j = 0; j < tagNames.length; j++) {
- localTags.add(prefix + "." + tagNames[j]); //$NON-NLS-1$
- }
- }
- }
- return (String[]) localTags.toArray(new String[localTags.size()]);
- }
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/TextElement.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/TextElement.java
deleted file mode 100644
index 515fffe..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/TextElement.java
+++ /dev/null
@@ -1,141 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2007 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 - Initial API and implementation
- *
- * </copyright>
- *
- * $Id: TextElement.java,v 1.3 2007/04/12 18:02:42 pelder Exp $
- * /
- *******************************************************************************/
-package org.eclipse.jet.core.parser.ast;
-
-import org.eclipse.jet.internal.core.parser.LineInfo;
-
-/**
- * Define a Text Element in the JET AST
- *
- * @since 0.8.0
- *
- */
-public final class TextElement extends BodyElement {
-
- private static final String ESCAPED_JET_ELEMENT_START = "<\\%"; //$NON-NLS-1$
-
- private char[] text;
-
- private boolean trimLastLine = false;
-
- private boolean trimFirstLine = false;
-
- private final LineInfo[] lines;
-
- /**
- * Create an instance
- * @param jetast the AST
- * @param text the text
- */
- TextElement(JETAST jetast, char[] text) {
- super(jetast, -1, -1, 0, 0);
- this.text = handleEscapes(text);
- this.lines = LineInfo.calculateLines(this.text);
- }
-
- /**
- * Remove any escape sequences in the raw text.
- * The only escaped sequences handled are:
- * <bl>
- * <li>&lt;\% to &lt;%</li>
- * </bl>
- * @param originalText
- * @return
- */
- private char[] handleEscapes(char[] originalText) {
- StringBuffer buffer = new StringBuffer(originalText.length);
- buffer.append(originalText);
- for (int i = buffer.indexOf(ESCAPED_JET_ELEMENT_START); i != -1; i = buffer
- .indexOf(ESCAPED_JET_ELEMENT_START, i)) {
- buffer.replace(i, i + ESCAPED_JET_ELEMENT_START.length(), "<%"); //$NON-NLS-1$
- }
- return buffer.toString().toCharArray();
- }
-
- /**
- * @see org.eclipse.jet.core.parser.ast.JETASTElement#accept0(JETASTVisitor)
- */
- protected void accept0(JETASTVisitor visitor) {
- visitor.visit(this);
- visitor.endVisit(this);
- }
-
- /**
- * Return the text content
- * @return the text
- */
- public char[] getText() {
- char[] result = text;
- if (lines.length > 0) {
- int start = isTrimFirstLine() && lines[0].hasDelimiter() ? lines[0]
- .getEnd()
- + lines[0].getDelimiter().length() : 0;
- int end = isTrimLastLine()
- && !lines[lines.length - 1].hasDelimiter() ? lines[lines.length - 1]
- .getStart()
- : text.length;
- result = new String(text, start, end - start).toCharArray();
- }
- return result;
- }
-
- public char[] getRawText() {
- return text;
- }
-
- /**
- *
- * @param newText
- * @deprecated
- */
- void setText(char[] newText) {
- text = newText;
- }
-
- public boolean removeLineWhenOtherwiseEmpty() {
- return false;
- }
-
- public void setTrimLastLine(boolean trim) {
- this.trimLastLine = trim;
- }
-
- /**
- * @return Returns the trimLastLine.
- */
- public final boolean isTrimLastLine() {
- return trimLastLine;
- }
-
- public void setTrimFirstLine(boolean trim) {
- this.trimFirstLine = trim;
- }
-
- /**
- * @return Returns the trimFirstLine.
- */
- public final boolean isTrimFirstLine() {
- return trimFirstLine;
- }
-
- /**
- * @return Returns the lines.
- */
- public final LineInfo[] getLines() {
- return lines;
- }
-
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/XMLBodyElement.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/XMLBodyElement.java
deleted file mode 100644
index 13d0f34..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/XMLBodyElement.java
+++ /dev/null
@@ -1,141 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2007 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 - Initial API and implementation
- *
- * </copyright>
- *
- * $Id: XMLBodyElement.java,v 1.4 2007/06/01 20:26:19 pelder Exp $
- * /
- *******************************************************************************/
-
-package org.eclipse.jet.core.parser.ast;
-
-import java.util.Collections;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-
-import org.eclipse.jet.taglib.TagDefinition;
-
-/**
- * Define a JET XML Element that has a begin-tag and end-tag, and zero or more
- * body elements.
- *
- * @since 0.8.0
- */
-public final class XMLBodyElement extends XMLElement {
-
- private BodyElements bodyElements = null;
-
- private XMLBodyElementEnd endTag = null;
-
- /**
- * Create an instance
- *
- * @param ast
- * the owning AST
- * @param line
- * the start line of the element
- * @param colOffset
- * the offset within the line of the element's start.
- * @param start
- * the start offset of the element (doc relative)
- * @param end
- * the end offset of the element (doc relative)
- * @param name
- * the QName of the element
- * @param attributes
- * a Map of attribute names to their values of the element
- * @param td
- * the TagDefinition
- */
- XMLBodyElement(JETAST ast, int line, int colOffset, int start, int end,
- String name, Map attributes, TagDefinition td) {
- super(ast, line, colOffset, start, end, name, attributes, td);
- }
-
- /**
- * Return a object that allows writable access to the JET2 elements
- * contained by this element.
- *
- * @return a BodyElements instance
- */
- BodyElements getInternalBodyElements() {
- if (bodyElements == null) {
- bodyElements = new BodyElements(this);
- }
- return bodyElements;
- }
-
- /**
- * Return a read-only list of JET2 elements contained by this element.
- *
- * @return a List of {@link JETASTElement} instances. The empty list is
- * returned if there are no elements.
- */
- public final List getBodyElements() {
- if (bodyElements == null) {
- return Collections.EMPTY_LIST;
- } else {
- return bodyElements.getBodyElements();
- }
- }
-
- /**
- * @see org.eclipse.jet.core.parser.ast.JETASTElement#accept0(JETASTVisitor)
- */
- protected final void accept0(JETASTVisitor visitor) {
- final boolean visitChildren = visitor.visit(this);
- if (visitChildren) {
- for (Iterator i = getBodyElements().iterator(); i.hasNext();) {
- JETASTElement element = (JETASTElement) i.next();
- element.accept(visitor);
- }
- }
- visitor.endVisit(this);
-
- }
-
- public void setEndTag(XMLBodyElementEnd endTag) {
- this.endTag = endTag;
- }
-
- /**
- * @return Returns the endTag.
- */
- public final XMLBodyElementEnd getEndTag() {
- return endTag;
- }
-
- public String toString() {
- return "Line " + getLine() + ": <" + getName() + ">"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- }
-
- public JETASTElement getNextElement() {
-
- if (getBodyElements().size() > 0) {
- return (JETASTElement) getBodyElements().get(0);
- } else {
- return super.getNextElement();
- }
- }
-
- public void addBodyElement(BodyElement bodyElement) {
- getInternalBodyElements().addBodyElement(bodyElement);
-
- }
-
- public JETASTElement elementAfter(JETASTElement element) {
- return bodyElements.elementAfter(element);
- }
-
- public BodyElement elementBefore(JETASTElement element) {
- return bodyElements.elementBefore(element);
- }
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/XMLBodyElementEnd.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/XMLBodyElementEnd.java
deleted file mode 100644
index fed2fac..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/XMLBodyElementEnd.java
+++ /dev/null
@@ -1,81 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2006, 2007 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 - Initial API and implementation
- *
- * </copyright>
- *
- * $Id: XMLBodyElementEnd.java,v 1.2 2007/04/12 18:02:42 pelder Exp $
- * /
- *******************************************************************************/
-package org.eclipse.jet.core.parser.ast;
-
-import java.util.List;
-
-/**
- * Represent the closing tag of an XML Tag with a body.
- *
- * @since 0.8.0
- */
-public class XMLBodyElementEnd extends BodyElement {
-
- private XMLBodyElement startTag;
-
- /**
- *
- * @param ast
- * @param line
- * @param colOffset
- * @param start
- * @param end
- * @param startTag
- */
- XMLBodyElementEnd(JETAST ast, int line, int colOffset, int start, int end) {
- super(ast, line, colOffset, start, end);
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jet.compiler.JET2ASTElement#accept(org.eclipse.jet.compiler.JET2ASTVisitor)
- */
- protected void accept0(JETASTVisitor visitor) {
- visitor.visit(this);
- visitor.endVisit(this);
- }
-
- /**
- * @return Returns the startTag.
- */
- public final XMLBodyElement getStartTag() {
- return startTag;
- }
-
- public boolean removeLineWhenOtherwiseEmpty() {
- return startTag == null ? false : startTag
- .removeLineWhenOtherwiseEmpty();
- }
-
- /**
- * @param startTag The startTag to set.
- */
- public final void setStartTag(XMLBodyElement startTag) {
- this.startTag = startTag;
- }
-
- public JETASTElement getPrevElement() {
- final List bodyElements = startTag.getBodyElements();
- if (bodyElements.size() > 0) {
- return (JETASTElement) bodyElements.get(bodyElements.size() - 1);
- } else {
- return startTag;
- }
- }
-
- public String toString() {
- return "Line " + getLine() + ": </" + getStartTag().getName() + ">"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- }
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/XMLElement.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/XMLElement.java
deleted file mode 100644
index 3bbfb10..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/XMLElement.java
+++ /dev/null
@@ -1,123 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2007 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 - Initial API and implementation
- *
- * </copyright>
- *
- * $Id: XMLElement.java,v 1.3 2007/05/17 14:18:10 pelder Exp $
- * /
- *******************************************************************************/
-
-package org.eclipse.jet.core.parser.ast;
-
-import java.util.Collections;
-import java.util.LinkedHashMap;
-import java.util.Map;
-
-import org.eclipse.jet.taglib.TagDefinition;
-
-/**
- * An abstract implementation representing all XML-based elements in the JET AST
- *
- * <p>
- * This class is not intended to be subclassed by clients
- * </p>
- *
- * @since 0.8.0
- */
-public abstract class XMLElement extends BodyElement {
-
- private final String name;
-
- private final Map attributes;
-
- private final TagDefinition tagDefinition;
-
- /**
- * Create an instance
- *
- * @param ast
- * the owning AST
- * @param line
- * the start line of the element
- * @param colOffset
- * the offset within the line of the element's start.
- * @param start
- * the start offset of the element (doc relative)
- * @param end
- * the end offset of the element (doc relative)
- * @param name
- * the QName of the element
- * @param attributes
- * a Map of attribute names to values for the element.
- * @param td
- * the TagDefinition
- */
- XMLElement(JETAST ast, int line, int colOffset, int start, int end,
- String name, Map attributes, TagDefinition td) {
- super(ast, line, colOffset, start, end);
- this.name = name;
- this.tagDefinition = td;
- this.attributes = Collections.unmodifiableMap(new LinkedHashMap(attributes)); // defensive
- // copy
-
- }
-
- /**
- * Return the QName of the element
- *
- * @return a string
- */
- public final String getName() {
- return name;
- }
-
- /**
- * Return a read-only map of the attributes (name to value map)
- *
- * @return a Map with String keys (attribute name) and String values
- */
- public final Map getAttributes() {
- return attributes;
- }
-
- /**
- * Return the NCName (unqualified name) of the element.
- *
- * @return the name with any XML namespace prefix (<i>prefix</i>:) removed
- */
- public String getTagNCName() {
- String qName = getName();
- int sepIndex = qName.indexOf(':');
- return sepIndex >= 0 ? qName.substring(sepIndex + 1) : qName;
- }
-
- /**
- * Return the XML Namespace prefixe of the element
- *
- * @return the namespace prefix or the empty string if there is no namespace
- * prefix.
- */
- public String getNSPrefix() {
- String qName = getName();
- int sepIndex = qName.indexOf(':');
- return sepIndex >= 0 ? qName.substring(0, sepIndex) : ""; //$NON-NLS-1$
- }
-
- /**
- * @return Returns the td.
- */
- public final TagDefinition getTagDefinition() {
- return tagDefinition;
- }
-
- public final boolean removeLineWhenOtherwiseEmpty() {
- return tagDefinition.removeWhenContainingLineIsEmpty();
- }
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/XMLEmptyElement.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/XMLEmptyElement.java
deleted file mode 100644
index eb8d352..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/core/parser/ast/XMLEmptyElement.java
+++ /dev/null
@@ -1,58 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2007 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 - Initial API and implementation
- *
- * </copyright>
- *
- * $Id: XMLEmptyElement.java,v 1.3 2007/04/12 18:02:42 pelder Exp $
- * /
- *******************************************************************************/
-
-package org.eclipse.jet.core.parser.ast;
-
-import java.util.Map;
-
-import org.eclipse.jet.taglib.TagDefinition;
-
-/**
- * Define an empty XML element in the JET AST.
- *
- * @since 0.8.0
- */
-public final class XMLEmptyElement extends XMLElement {
-
- /**
- * Create an instance
- * @param ast the owning AST
- * @param line the start line of the element
- * @param colOffset the offset within the line of the element's start.
- * @param start the start offset of the element (doc relative)
- * @param end the end offset of the element (doc relative)
- * @param name the QName of the element
- * @param attributes a Map of attribute names to values for the element.
- * @param td the TagDefinition
- */
- XMLEmptyElement(JETAST ast, int line, int colOffset, int start, int end,
- String name, Map attributes, TagDefinition td) {
- super(ast, line, colOffset, start, end, name, attributes, td);
- }
-
- /**
- * @see org.eclipse.jet.core.parser.ast.JETASTElement#accept0(JETASTVisitor)
- */
- protected void accept0(JETASTVisitor visitor) {
- visitor.visit(this);
- visitor.endVisit(this);
- }
-
- public String toString() {
- return "Line " + getLine() + ": <" + getName() + "/>"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- }
-
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/ContextLogEntryFactoryManager.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/ContextLogEntryFactoryManager.java
deleted file mode 100644
index f87d33e..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/ContextLogEntryFactoryManager.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Copyright (c) 2007 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.jet.internal.core;
-
-/**
- * Manager for the {@link IContextLogEntryFactory}. This class allows the replacement of the
- * default context log entry factory with a factory more tighly adapted to the execution enviornment.
- * <p>
- * This manager is type safe.
- * </p>
- *
- */
-public class ContextLogEntryFactoryManager {
-
- private static IContextLogEntryFactory factory = new DefaultContextLogEntryFactory();
-
- /**
- * Prevent instantiation
- */
- private ContextLogEntryFactoryManager() {
- // do nothing
- }
-
- /**
- * Return the context log entry factory
- * @return on instance of {@link IContextLogEntryFactory}. Will not be <code>null</code>.
- */
- public static synchronized IContextLogEntryFactory getFactory() {
- return factory;
- }
-
- /**
- * Set the context log entry factory
- * @param factory an implementation of {@link IContextLogEntryFactory}. Cannot be <code>null</code>.
- * @throws NullPointerException if <code>factory</code> is <code>null</code>
- */
- public static synchronized void setFactory(IContextLogEntryFactory factory) {
- if(factory == null) {
- throw new NullPointerException();
- }
- ContextLogEntryFactoryManager.factory = factory;
- }
-
-
-
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/DefaultContextLogEntryFactory.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/DefaultContextLogEntryFactory.java
deleted file mode 100644
index 16e45cd..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/DefaultContextLogEntryFactory.java
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * Copyright (c) 2007 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.jet.internal.core;
-
-import org.eclipse.jet.ContextLogEntry;
-
-/**
- * A default implementation of {@link IContextLogEntryFactory} that is independent of OSGi and Eclipse.
- *
- */
-public class DefaultContextLogEntryFactory implements IContextLogEntryFactory {
-
- public ContextLogEntry create(Throwable t) {
- return new ContextLogEntry.Builder(ContextLogEntry.ERROR).exception(t).build();
- }
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/IContextLogEntryFactory.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/IContextLogEntryFactory.java
deleted file mode 100644
index 2e84997..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/IContextLogEntryFactory.java
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
- * Copyright (c) 2007 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.jet.internal.core;
-
-import org.eclipse.jet.ContextLogEntry;
-
-/**
- * Define protocol for a factory that creates {@link ContextLogEntry} elements from an Exception
- *
- */
-public interface IContextLogEntryFactory {
-
- ContextLogEntry create(Throwable t);
-
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/NewLineUtil.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/NewLineUtil.java
deleted file mode 100644
index cf684b5..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/NewLineUtil.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Copyright (c) 2007 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.jet.internal.core;
-
-import java.util.regex.Matcher;
-import java.util.regex.Pattern;
-
-/**
- * Utility class for setting new line characters in strings
- */
-public class NewLineUtil {
-
- /**
- * This utility knows about the following line delimiters:
- * \r\n - windows
- * \n - linux/unix
- * \r - Mac OS 9
- */
- public static final Pattern NEW_LINE_PATTERN = Pattern.compile("(\\r\\n|\\n|\\r)", Pattern.MULTILINE); //$NON-NLS-1$
-
- private NewLineUtil() {
- // do nothing
- }
-
- /**
- * Set the new line in sourceText to the terminator supplied
- * @param sourceText the source text
- * @param lineTerminator the terminator to use
- * @return the text with the supplied line terminator
- */
- public static String setLineTerminator(CharSequence sourceText, String lineTerminator) {
- final Matcher m = NEW_LINE_PATTERN.matcher(sourceText);
- return m.replaceAll(lineTerminator);
- }
-
- /**
- * Find the line terminator used by the passed text. The line terminator
- * is the first valid line terminator found. If no line terminator is found then null is return.
- * @param sourceText the source text
- * @return the line terminator or <code>null</code> if no line terminator was found.
- */
- public static String getLineTerminator(CharSequence sourceText) {
- final Matcher m = NEW_LINE_PATTERN.matcher(sourceText);
- return m.find() ? sourceText.subSequence(m.start(), m.end()).toString() : null;
- }
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/compiler/DuplicateGeneratedClassException.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/compiler/DuplicateGeneratedClassException.java
deleted file mode 100644
index 7f35478..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/compiler/DuplicateGeneratedClassException.java
+++ /dev/null
@@ -1,75 +0,0 @@
-/**
- * <copyright>
- *
- * Copyright (c) 2007 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 - Initial API and implementation
- *
- * </copyright>
- *
- * $Id: DuplicateGeneratedClassException.java,v 1.1 2007/04/04 14:53:54 pelder Exp $
- */
-package org.eclipse.jet.internal.core.compiler;
-
-/**
- * Describe an exception where a JET template explicitly specifies the same
- * fully qualified Java class name as another JET template
- */
-public class DuplicateGeneratedClassException extends Exception
-{
-
- private final String templatePath;
- private final String otherTemplatePath;
- private final String fullyQualifiedJavaClassName;
-
- /**
- * Create a DuplicateGeneratedClassException
- * @param templatePath the templatePath that specifies a common generated Java class.
- * @param otherTemplatePath the other template Path that previously declared the
- * @param fullyQualifiedJavaClassName the common fully qualified Java class name specified by the templates
- */
- public DuplicateGeneratedClassException(String templatePath, String otherTemplatePath, String fullyQualifiedJavaClassName)
- {
- this.templatePath = templatePath;
- this.otherTemplatePath = otherTemplatePath;
- this.fullyQualifiedJavaClassName = fullyQualifiedJavaClassName;
- }
-
- /**
- *
- */
- private static final long serialVersionUID = 8154326381507911174L;
-
- /**
- * Return the fully qualifed Java class name specified by both templates
- * @return the fully qualified Java class name
- */
- public String getFullyQualifiedJavaClassName()
- {
- return fullyQualifiedJavaClassName;
- }
-
- /**
- * Return the template path of the template already specifying the common generated Java class.
- * @return a template path
- */
- public String getOtherTemplatePath()
- {
- return otherTemplatePath;
- }
-
- /**
- * Return the template path of a template being compiled when the exception was detected.
- * @return a template path
- */
- public String getTemplatePath()
- {
- return templatePath;
- }
-
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/compiler/ICompilerOutput.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/compiler/ICompilerOutput.java
deleted file mode 100644
index cc5c6dd..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/compiler/ICompilerOutput.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Copyright (c) 2007 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.jet.internal.core.compiler;
-
-import java.util.List;
-
-/**
- * Protocol for compiler output.
- * @see IJETCompiler
- */
-public interface ICompilerOutput {
-
- /**
- * Notification that templatePath is about to be compiled
- * @param templatePath a templatePath
- */
- void preCompile(String templatePath);
-
- /**
- * Write generated ouptut with the given encoding
- * @param outputFilePath a compiler output base location relative path of the file to write
- * @param contents the file contents
- * @param encoding the encoding for the generated class. A value of <code>null</code> indicates
- * the default encoding
- */
- void writeOutput(String outputFilePath, String contents, String encoding);
-
- /**
- * Remove a generated ouptput file
- * @param outputFilePath a compiler output base location relative path
- */
- void removeOutput(String outputFilePath);
-
- /**
- * Record problems found in the given templatePath
- * @param templatePath the templatePath being compiled
- * @param problems a list of problems
- */
- void recordProblems(String templatePath, List problems);
-
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/compiler/IJETCompiler.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/compiler/IJETCompiler.java
deleted file mode 100644
index d079879..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/compiler/IJETCompiler.java
+++ /dev/null
@@ -1,123 +0,0 @@
-/*
- * Copyright (c) 2007 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.jet.internal.core.compiler;
-
-import java.io.Serializable;
-
-
-/**
- * Protocol for an incremental JET Compiler. Typically, the compiler methods are called in the following order
- * <ol>
- * <li>{@link #clean()} - optional - remove any previously created compiler output</li>
- * <li>{@link #compile(String)} or {@link #removeOutput(String)} - once for each tempalte to compiler or template removed, respectively</li>
- * <li>{@link #finish()} - once, after all templates are compiled</li>
- * <li>{@link #getTagLibaryDependencies()} - once, in order to track tag library dependiencies
- * <li>{@link #getMemento()} - optional - obtain the compiler state for potential re-use later
- * </ol>
- *
- */
-public interface IJETCompiler {
-
- /**
- * Enumeration defining results for {@link IJETCompiler#compile(String)}
- *
- */
- public static final class CompileResult {
-
- /**
- * Compile was successful with no errors or warnings
- */
- public static final CompileResult OK = new CompileResult("OK"); //$NON-NLS-1$
-
- /**
- * Compile was successful with warnings
- */
- public static final CompileResult WARNINGS = new CompileResult("WARNINGS"); //$NON-NLS-1$
-
- /**
- * Compile failed with errors or errors and warnings
- */
- public static final CompileResult ERRORS = new CompileResult("ERRORS"); //$NON-NLS-1$
-
- /**
- * Compile was not attempted - file did not have a recognized file extension
- */
- public static final CompileResult IGNORED = new CompileResult("IGNORED"); //$NON-NLS-1$
-
- private final String display;
-
- private CompileResult(String display) {
- this.display = display;
- }
-
- public String toString() {
- return display;
- }
- }
-
- /**
- * Compile the specified template.
- * Any compile problems are included in the compilation unit returned.
- * @param templatePath the template path of the JET file
- * @return a {@link CompileResult} indicating the result of the compilation.
- * @throws IllegalStateException if called after a call to {@link #finish()}
- */
- public abstract CompileResult compile(String templatePath);
-
-
- /**
- * Retrieve the current compiler state.
- */
- public abstract Serializable getMemento();
-
- /**
- * Finish compilation by generating cross template information such as template loaders or maps.
- */
- public abstract void finish();
-
- /**
- * Remove any compiler created artifacts.
- * @throws IllegalStateException if {@link #compile(String)} has already been called
- */
- public abstract void clean();
-
- /**
- * Remove the previously generated output for a template, corresponding to the removal
- * of a tempalte
- * @param templatePath a tempate path
- */
- public abstract void removeTemplate(String templatePath);
-
- /**
- * Return the tag libaries referenced by the compilation
- * @return a non-null array of tag library ids.
- */
- public abstract String[] getTagLibaryDependencies();
-
- /**
- * Test whether the template path has a recognized JET extension according to this compiler.
- * @param templatePath a tempate path
- * @return <code>true</code> if the tempalte has a recognized template extension
- */
- public abstract boolean isTemplate(String templatePath);
-
- /**
- * Return the list of files needing recompilation if the file represented by
- * changedFilePath has changed.
- * Note that if changeFilePath is a a template path, the the template path
- * is not returned in the list.
- * Note also that this method depends on the compiler maintaining incremental
- * compilation state and is useful to an incremental builder.
- * @param changedFilePath a template or included file path
- * @return a possibly empty list of templates paths to recompile.
- */
- public abstract String[] getAffectedTemplatePaths(String changedFilePath);
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/compiler/IncludeDependencies.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/compiler/IncludeDependencies.java
deleted file mode 100644
index 5c49d9b..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/compiler/IncludeDependencies.java
+++ /dev/null
@@ -1,109 +0,0 @@
-/*
- * Copyright (c) 2007 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.jet.internal.core.compiler;
-
-import java.io.IOException;
-import java.io.ObjectInputStream;
-import java.io.ObjectOutputStream;
-import java.io.Serializable;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.Map;
-import java.util.Set;
-
-/**
- * Include dependencies for a JET transformation/compiler
- *
- */
-public class IncludeDependencies implements Serializable {
-
- /**
- *
- */
- private static final long serialVersionUID = 3810681358080776836L;
-
- private static final String[] EMPTY_STRINGS_ARRAY = new String[0];
-
- private Map dependentPathToTemplates = new HashMap(); // Map<String, Set<String>>
- private transient Map templatePathToDependencies = new HashMap(); // Map<String, Set<String>>
-
- public void addDependencies(String templatePath, String dependencies[]) {
- Set dependents = (Set)templatePathToDependencies.get(templatePath);
- if(dependents == null) {
- dependents = new HashSet(Arrays.asList(dependencies));
- templatePathToDependencies.put(templatePath, dependents);
- } else {
- dependents.addAll(Arrays.asList(dependencies));
- }
-
- for (int i = 0; i < dependencies.length; i++) {
- final String dependentPath = dependencies[i];
-
- Set templates = (Set) dependentPathToTemplates.get(dependentPath);
-
- if(templates == null) {
- templates = new HashSet();
- dependentPathToTemplates.put(dependentPath, templates);
- }
-
- templates.add(templatePath);
- }
- }
-
- public void removeDependencies(String templatePath) {
- Set dependencies = (Set) templatePathToDependencies.remove(templatePath);
- if(dependencies != null) {
- for (Iterator i = dependencies.iterator(); i.hasNext();) {
- String dependentPath = (String) i.next();
- final Set templates = (Set) dependentPathToTemplates.get(dependentPath);
- if(templates != null) {
- templates.remove(templatePath);
- if(templates.size() == 0) {
- dependentPathToTemplates.remove(dependentPath);
- }
- }
- }
- }
- }
-
- public String[] getAffectedTemplates(String dependency) {
- final Set templates = (Set) dependentPathToTemplates.get(dependency);
- return templates == null ? EMPTY_STRINGS_ARRAY : (String[])templates.toArray(EMPTY_STRINGS_ARRAY);
- }
-
- private void writeObject(ObjectOutputStream s) throws IOException {
- s.defaultWriteObject();
- }
-
- private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException{
- s.defaultReadObject();
-
- // rebuild the reverse map
- templatePathToDependencies = new HashMap();
- for (Iterator i = dependentPathToTemplates.entrySet().iterator(); i.hasNext();) {
- Map.Entry entry = (Map.Entry) i.next();
- String dependentPath = (String) entry.getKey();
- Set templates = (Set) entry.getValue();
- for (Iterator j = templates.iterator(); j.hasNext();) {
- String templatePath = (String) j.next();
- Set dependents = (Set)templatePathToDependencies.get(templatePath);
- if(dependents == null) {
- dependents = new HashSet();
- templatePathToDependencies.put(templatePath, dependents);
- }
-
- dependents.add(dependentPath);
- }
- }
- }
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/compiler/IncludeDependenciesUtil.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/compiler/IncludeDependenciesUtil.java
deleted file mode 100644
index e374870..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/compiler/IncludeDependenciesUtil.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * <copyright>
- *
- * Copyright (c) 2007 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 - Initial API and implementation
- *
- * </copyright>
- *
- * $Id: IncludeDependenciesUtil.java,v 1.1 2007/04/04 14:53:54 pelder Exp $
- */
-package org.eclipse.jet.internal.core.compiler;
-
-import java.util.HashSet;
-import java.util.Set;
-
-import org.eclipse.jet.core.parser.ast.IncludedContent;
-import org.eclipse.jet.core.parser.ast.JETASTVisitor;
-import org.eclipse.jet.core.parser.ast.JETCompilationUnit;
-
-/**
- * Utility for calculating include dependencies of a compilation unit
- */
-public final class IncludeDependenciesUtil extends JETASTVisitor {
-
- private static final String[] EMPTY_STRING_ARRAY = new String[0];
-
- /**
- * Return the include dependencies for a compilation unit.
- * @param cu a compilation unit
- * @return a possibly empty array of template paths
- */
- public static String[] getDependencies(JETCompilationUnit cu) {
- final IncludeDependenciesUtil util = new IncludeDependenciesUtil();
- cu.accept(util);
-
- return (String[]) util.dependencies.toArray(EMPTY_STRING_ARRAY);
- }
-
- private final Set dependencies = new HashSet();
-
- private IncludeDependenciesUtil() {
- // prevent instantiation
- }
-
- public boolean visit(IncludedContent content) {
- dependencies.add(content.getTemplatePath());
- return true;
- }
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/compiler/UniqueNameGenerator.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/compiler/UniqueNameGenerator.java
deleted file mode 100644
index d4692b8..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/compiler/UniqueNameGenerator.java
+++ /dev/null
@@ -1,221 +0,0 @@
-/**
- * <copyright>
- *
- * Copyright (c) 2007 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 - Initial API and implementation
- *
- * </copyright>
- *
- * $Id: UniqueNameGenerator.java,v 1.1 2007/04/04 14:53:54 pelder Exp $
- */
-package org.eclipse.jet.internal.core.compiler;
-
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-import org.eclipse.jet.core.parser.ast.JETCompilationUnit;
-
-
-/**
- * The class is responsible for managing the generation of Java class names for
- * JET templates
- */
-public class UniqueNameGenerator
-{
-
- private final Map pathToFQJavaClassMap;
-
- private final String defaultJavaPackage;
-
- private final Map fqJavaClassToPathMap;
-
- public UniqueNameGenerator(Map pathToFQJavaClassMap, Map fqJavaClassToPathMap, String defaultJavaPackage)
- {
- this.pathToFQJavaClassMap = new HashMap(pathToFQJavaClassMap);
- this.fqJavaClassToPathMap = new HashMap(fqJavaClassToPathMap);
- this.defaultJavaPackage = defaultJavaPackage;
-
- }
-
- /**
- * Ensure the the compilation unit has Java output package and class
- * set. If not, generate names for these, taking into account that
- * a name may have been generated for them already.
- * @param templatePath the template path of the compilation unit
- * @param cu the compilation unit
- */
- public void ensureJavaOutputSet(String templatePath, JETCompilationUnit cu) throws DuplicateGeneratedClassException
- {
- String fqn;
-
- // See if we already have a name for this...
- final String existingQualifiedClass = (String)pathToFQJavaClassMap.get(templatePath);
- if (existingQualifiedClass == null)
- {
- // we haven't generated a name before, do it now...
-
- if (cu.getOutputJavaPackage() == null)
- {
- cu.setOutputJavaPackage(defaultJavaPackage);
- }
- if (cu.getOutputJavaClassName() == null)
- {
- // check for conflicts because we have name mangled
- // or for identically named files in different directories.
- String baseClassName = makeJavaClassName(templateBaseName(templatePath));
-
- String className = baseClassName;
- String potentialQualifiedName = makeFullyQualifiedJavaName(cu.getOutputJavaPackage(), className);
-
- for (int i = 0; fqJavaClassToPathMap.get(potentialQualifiedName) != null; i++)
- {
- className = baseClassName + "_" + i; //$NON-NLS-1$
- potentialQualifiedName = makeFullyQualifiedJavaName(cu.getOutputJavaPackage(), className);
- }
-
- cu.setOutputJavaClassName(className);
- fqn = makeFullyQualifiedJavaName(cu.getOutputJavaPackage(), cu.getOutputJavaClassName());
- }
- else
- {
- // check for a name collision
- fqn = makeFullyQualifiedJavaName(cu.getOutputJavaPackage(), cu.getOutputJavaClassName());
- final String otherTemplatePath = (String)fqJavaClassToPathMap.get(fqn);
- if (otherTemplatePath != null)
- {
- throw new DuplicateGeneratedClassException(templatePath, otherTemplatePath, fqn);
- }
- }
- }
- else
- {
- fqn = existingQualifiedClass;
- int index = existingQualifiedClass.lastIndexOf('.');
- String existingPackage = index == -1 ? "" : existingQualifiedClass.substring(0, index); //$NON-NLS-1$
- String existingClass = index == -1 ? existingQualifiedClass : existingQualifiedClass.substring(index + 1);
-
- if (cu.getOutputJavaPackage() == null)
- {
- cu.setOutputJavaPackage(existingPackage);
- }
- if (cu.getOutputJavaClassName() == null)
- {
- cu.setOutputJavaClassName(existingClass);
- }
- }
-
- // update the maps
- fqJavaClassToPathMap.put(fqn, templatePath);
- pathToFQJavaClassMap.put(templatePath, fqn);
- }
-
- /**
- * Return the template base name, that is the template name with extension and path prefix removed.
- * @param templatePath a template path
- * @return the base name
- */
- private String templateBaseName(String templatePath)
- {
- int lastSlash = templatePath.lastIndexOf('/');
- String baseFile = lastSlash == -1 ? templatePath : templatePath.substring(lastSlash + 1);
- int lastDot = baseFile.lastIndexOf('.');
- return lastDot == -1 ? baseFile : baseFile.substring(0, lastDot);
- }
-
- /**
- * Make a a Java class name from the base template name
- * @param name the base template name (path and extension removed)
- * @return
- */
- private String makeJavaClassName(String name)
- {
- StringBuffer result = new StringBuffer("_jet_"); //$NON-NLS-1$
- for (int i = 0; i < name.length(); i++)
- {
- char c = name.charAt(i);
- if (Character.isJavaIdentifierPart(c))
- {
- result.append(c);
- }
- }
- return result.toString();
- }
-
- /**
- * Make a fully qualified Java class name given the possibly null or empty Java package
- * and a non-empty Java class name.
- * @param javaPackage a Java package name or the empty string or <code>null</code>
- * @param javaClassName a Java class name
- * @return a fully qualified Java class name
- */
- private String makeFullyQualifiedJavaName(String javaPackage, String javaClassName)
- {
- return javaPackage == null || javaPackage.trim().length() == 0 ? javaClassName : javaPackage + '.' + javaClassName;
- }
-
- /**
- * Return a copy for the map of template paths to fully qualified class names
- * @return a map of fully qualified class names (String) keyed by template path (String)
- */
- public Map getPathToFQNMap()
- {
- return new HashMap(pathToFQJavaClassMap);
- }
-
- /**
- * Return a copy of the map of fully qualified class names to the corresponding JET template path.
- * @return a map of template paths (String) keyd by fully qualified class name
- */
- public Map getFQNToPathMap()
- {
- return new HashMap(fqJavaClassToPathMap);
- }
-
- /**
- * Return the assets generated by the compiler for the given templatePath
- * @param templatePath a template path
- * @return a possibly empty array of file paths relative
- */
- public String getGeneratedOutputPath(String templatePath)
- {
- final String fqn = (String)pathToFQJavaClassMap.get(templatePath);
- return fqn == null ? null : fqn.replace('.', '/') + ".java"; //$NON-NLS-1$
- }
-
- /**
- * Clean the unique name manager.
- * @return the list of generated Java Class names the manager has forgotten.
- */
- public List clean()
- {
- List removedFQJavaClasses = new ArrayList(fqJavaClassToPathMap.keySet());
- fqJavaClassToPathMap.clear();
- pathToFQJavaClassMap.clear();
- return removedFQJavaClasses;
- }
-
- /**
- *
- * @param templatePath
- * @return
- */
- public String remove(String templatePath)
- {
- String outputPath = getGeneratedOutputPath(templatePath);
- if (outputPath != null)
- {
- String fqName = (String)pathToFQJavaClassMap.remove(templatePath);
- fqJavaClassToPathMap.remove(fqName);
- }
- return outputPath;
- }
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/expressions/EmbeddedExpressionLanguageManager.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/expressions/EmbeddedExpressionLanguageManager.java
deleted file mode 100644
index 8d1bbe0..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/expressions/EmbeddedExpressionLanguageManager.java
+++ /dev/null
@@ -1,73 +0,0 @@
-/*
- * Copyright (c) 2009 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.jet.internal.core.expressions;
-
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.Map;
-
-
-/**
- * A manager of embedded language implementations available to the JET parser
- *
- */
-public class EmbeddedExpressionLanguageManager {
-
- private static EmbeddedExpressionLanguageManager instance;
- private final Map languageRegistry = Collections.synchronizedMap(new HashMap());
-
- private EmbeddedExpressionLanguageManager() {
-
- }
-
- /**
- * Define an embedded language
- * @param language the language identifier
- * @param embeddedLanguage the implementation of the language
- * @throws NullPointerException if either argument is <code>null</code>
- */
- public void addLanguage(String language, IEmbeddedLanguage embeddedLanguage) {
- if(language == null || embeddedLanguage == null) {
- throw new NullPointerException();
- }
- languageRegistry.put(language, embeddedLanguage);
- }
-
- /**
- * return a map of the registered embedded languages. The map key is the language's String identifier, while
- * the map value is the language implementation, an {@link IEmbeddedLanguage}.
- * @return a map of registered embedded languages.
- */
- public Map getLanguages() {
- return new HashMap(languageRegistry);
- }
-
- /**
- * Return the default instance of the embedded language manager.
- * @return an {@link EmbeddedExpressionLanguageManager} instance
- */
- public static synchronized EmbeddedExpressionLanguageManager getInstance() {
- if(instance == null) {
- instance = new EmbeddedExpressionLanguageManager();
- }
- return instance;
- }
-
- /**
- * Return the embedded language implementation corresponding to the passed language identifier.
- * @param language a embedded langauge's String identifier.
- * @return the corresponding embedded language implementation or <code>null</code>
- */
- public IEmbeddedLanguage getLanguage(String language) {
- return (IEmbeddedLanguage) languageRegistry.get(language);
- }
-
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/expressions/IEmbeddedExpressionScanner.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/expressions/IEmbeddedExpressionScanner.java
deleted file mode 100644
index 99c17e9..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/expressions/IEmbeddedExpressionScanner.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright (c) 2009 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.jet.internal.core.expressions;
-
-/**
- * Defines the protocal to a scanner employed by the JET template parser to determine
- * the end of an embedded expression. The scanner's primary roll is to tell the XPath parser
- * whether each given character should be considered as the terminating character of the embedded expression, of
- * whether it should be ignored. The prime reason for ignoring a character is because it is contained in a literal
- * string in the expression language. The scanner interface, however, allows for other reasons to ignore the character.
- * <p>
- * The scanner is informed of every character from the beginning of the embedded expresion, excluding the JET language's lead-in characters.
- * After each character, the scanner may be asked whether the JET parser should ignore that character when considering whether
- * to terminate the embedded expression. The scanner is never asked to backtrack.
- * </p>
- * <p>
- * Note that scanners typically do not need to parse the embedded expression. Typically, they only need to recognized the embedded
- * language's string literals.
- * </p>
- *
- */
-public interface IEmbeddedExpressionScanner {
-
- /**
- * Informs the scanner of the text character in the embedded expression
- * @param ch the next character
- */
- void setNextChar(int ch);
-
- /**
- * Indicate whether the character passed by the last call to {@link #setNextChar(int)} should be
- * ignored when searching for JET's embedded expression terminating character.
- * @return <code>true</code> if the character should not be considered as the embedded expression terminator
- */
- boolean ignoreChar();
-
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/expressions/IEmbeddedLanguage.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/expressions/IEmbeddedLanguage.java
deleted file mode 100644
index 7cf1a67..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/expressions/IEmbeddedLanguage.java
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * Copyright (c) 2009 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.jet.internal.core.expressions;
-
-import org.eclipse.jet.core.expressions.IEmbeddedExpression;
-
-
-/**
- * Define the protocol for a JET embedded language implementation.
- * Embedded language implementations may be registered via {@link EmbeddedExpressionLanguageManager#addLanguage(String, IEmbeddedLanguage)}.
- *
- */
-public interface IEmbeddedLanguage {
-
- /**
- * Return an embedded expression implementation given the a JET execution context and an language expression.
- * Note that any errors in evaluating the expression should be logged via the JET contexts logging functions.
- * @param expression a
- * @return the expression implementation - this value must not be <code>null</code>
- */
- IEmbeddedExpression getExpression(String expression);
-
- /**
- * Return an scanner that enables the JET template parser to identify the JET language's embedded expression terminating character.
- * This
- * @return an implementation of {@link IEmbeddedExpressionScanner} - this value must not be <code>null</code>
- */
- IEmbeddedExpressionScanner getScanner();
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/parser/DefaultTemplateInput.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/parser/DefaultTemplateInput.java
deleted file mode 100644
index e4b68a8..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/parser/DefaultTemplateInput.java
+++ /dev/null
@@ -1,78 +0,0 @@
-/*
- * Copyright (c) 2007 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.jet.internal.core.parser;
-
-import java.io.BufferedReader;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.io.Reader;
-import java.net.URI;
-import java.net.URISyntaxException;
-import java.net.URL;
-
-import org.eclipse.jet.core.parser.ITemplateInput;
-import org.eclipse.jet.core.parser.TemplateInputException;
-import org.eclipse.jet.internal.core.url.URLUtility;
-
-/**
- * Standard inplementation of ITemplateInput
- *
- */
-public class DefaultTemplateInput implements ITemplateInput {
-
- private final URI baseLocation;
- private final String templatePath;
- private final String encoding;
-
-
- public DefaultTemplateInput(URI baseLocation, String templatePath, String encoding) {
- this.baseLocation = baseLocation;
- this.templatePath = templatePath;
- this.encoding = encoding;
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jet.tools.compiler.ITemplateInput#getBaseURL()
- */
- public URI getBaseLocation() {
- return baseLocation;
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jet.tools.compiler.ITemplateInput#getTemplatePath()
- */
- public String getTemplatePath() {
- return templatePath;
- }
-
- public Reader getReader() throws TemplateInputException {
- try {
- URI templateURI = new URI(null, templatePath, null);
- URI resolvedURI = baseLocation.resolve(templateURI);
- URL url = URLUtility.toURL(resolvedURI);
- InputStream urlStream = url.openStream();
- return new BufferedReader(new InputStreamReader(urlStream,
- getEncoding()));
- } catch (IOException e) {
- throw new TemplateInputException(e);
- } catch (URISyntaxException e) {
- IllegalArgumentException wrapper = new IllegalArgumentException();
- wrapper.initCause(e);
- throw wrapper;
- }
- }
-
-
- public String getEncoding() throws TemplateInputException {
- return encoding;
- }
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/parser/DefaultTemplateResolverHelper.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/parser/DefaultTemplateResolverHelper.java
deleted file mode 100644
index 7c19000..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/parser/DefaultTemplateResolverHelper.java
+++ /dev/null
@@ -1,99 +0,0 @@
-/**
- * <copyright>
- *
- * Copyright (c) 2007 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 - Initial API and implementation
- *
- * </copyright>
- *
- * $Id: DefaultTemplateResolverHelper.java,v 1.3 2007/07/11 18:37:28 pelder Exp $
- */
-package org.eclipse.jet.internal.core.parser;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.net.MalformedURLException;
-import java.net.URI;
-import java.net.URISyntaxException;
-import java.net.URL;
-
-import org.eclipse.jet.core.parser.ITemplateInput;
-import org.eclipse.jet.core.parser.ITemplateResolverHelper;
-import org.eclipse.jet.internal.core.url.URLUtility;
-
-/**
- * @author pelder
- */
-public class DefaultTemplateResolverHelper implements ITemplateResolverHelper
-{
-
- private final URI baseLocation;
-
- public DefaultTemplateResolverHelper(URI baseLocation)
- {
- this.baseLocation = baseLocation;
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jet.internal.parser.resources.ITemplateResolverHelper#createTemplateInput(java.net.URI, java.lang.String)
- */
- public ITemplateInput createTemplateInput(String templatePath)
- {
- String encoding = "UTF-8"; //$NON-NLS-1$
- return new DefaultTemplateInput(baseLocation, templatePath, encoding);
- }
-
- /**
- * Close an input stream, supressing IOExceptions for which we can do nothing.
- * @param input an input stream
- */
- private void closeStream(InputStream input) {
- try {
- input.close();
- } catch (IOException e) {
- // do nothing
- }
- }
-
- private InputStream openStream(URI baseLocation, String templatePath) {
- try {
- URI resolvedURI = baseLocation.resolve(new URI(null, templatePath, null));
- URL templateURL = URLUtility.toURL(resolvedURI);
- final InputStream input = templateURL.openStream();
- return input;
- } catch (MalformedURLException e) {
- // ignore;
- } catch (IOException e) {
- // ignore;
- } catch (URISyntaxException e) {
- IllegalArgumentException wrapper = new IllegalArgumentException();
- wrapper.initCause(e);
- throw wrapper;
- }
- return null;
- }
-
-
- /* (non-Javadoc)
- * @see org.eclipse.jet.internal.parser.resources.ITemplateResolverHelper#inputExists(java.net.URI, java.lang.String)
- */
- public boolean inputExists(String templatePath)
- {
- boolean exists = false;
- final InputStream input = openStream(baseLocation, templatePath);
-
- if(input != null) {
- exists = true;
- closeStream(input);
- }
-
- return exists;
- }
-
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/parser/ElementStack.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/parser/ElementStack.java
deleted file mode 100644
index 8601e66..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/parser/ElementStack.java
+++ /dev/null
@@ -1,137 +0,0 @@
-/**
- * <copyright>
- *
- * Copyright (c) 2007 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 - Initial API and implementation
- *
- * </copyright>
- *
- * $Id: ElementStack.java,v 1.1 2007/04/04 14:53:53 pelder Exp $
- */
-package org.eclipse.jet.internal.core.parser;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.jet.core.parser.ast.XMLBodyElement;
-
-
-/**
- * Stack of JET AST Elements used by parser.
- */
-public final class ElementStack
-{
-
- private final List stack = new ArrayList();
-
- /**
- *
- */
- public ElementStack()
- {
- super();
- }
-
- /**
- * Push an XML element on the active element stack
- * @param element
- */
- public void push(XMLBodyElement element)
- {
- stack.add(element);
- }
-
- /**
- * Remove an XML element from the active element stack
- * @return the popped element
- * @throws IllegalStateException if the stack is empty
- */
- public XMLBodyElement pop()
- {
- if (stack.size() == 0)
- {
- throw new IllegalStateException("stack is empty"); //$NON-NLS-1$
- }
- return (XMLBodyElement)stack.remove(stack.size() - 1);
- }
-
- /**
- * Return the top element on the active element statkc
- * @return the top element
- * @throws IllegalStateException if the stack is empty
- */
- public XMLBodyElement peek()
- {
- if (stack.size() == 0)
- {
- throw new IllegalStateException("stack is empty"); //$NON-NLS-1$
- }
- return (XMLBodyElement)stack.get(stack.size() - 1);
-
- }
-
- /**
- * Test if the stack is empty
- * @return <code>true</code> if empty, <code>false</code> otherwise
- */
- public boolean isEmpty()
- {
- return stack.size() == 0;
- }
-
- /**
- * Find the index of the element with the specified name that is closest to the top of the stack.
- * @param name the element name to search for
- * @return the found element's index or -1 if not found
- */
- public int findElementIndex(String name)
- {
- for (int i = stack.size() - 1; i >= 0; i--)
- {
- XMLBodyElement element = get(i);
- if (element.getName().equalsIgnoreCase(name))
- {
- return i;
- }
- }
-
- return -1;
- }
-
- /**
- * Test if the passed index is that of the top-most element in the active element stack.
- * @param index the test index
- * @return <code>true</code> if the index represents the top-most element, <code>false</code> otherwise.
- * @throws IllegalArgumentException if the index is less than 0 or larger than the stack size.
- */
- public boolean isAtTop(int index)
- {
- if (index < 0 || index >= stack.size())
- {
- throw new IllegalArgumentException();
- }
- return index == stack.size() - 1;
- }
-
- /**
- * Return the element at the specified index
- * @param index
- * @return the element
- * @throws IllegalArgumentException if the index is less than 0 or larger than the stack size.
- *
- */
- public XMLBodyElement get(int index)
- {
- if (index < 0 || index >= stack.size())
- {
- throw new IllegalArgumentException();
- }
- return (XMLBodyElement)stack.get(index);
- }
-} \ No newline at end of file
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/parser/IJETParser2.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/parser/IJETParser2.java
deleted file mode 100644
index 50a00d6..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/parser/IJETParser2.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/**
- * <copyright>
- *
- * Copyright (c) 2009 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 - Initial API and implementation
- *
- * </copyright>
- *
- * $Id: IJETParser2.java,v 1.2 2009/01/26 21:49:15 pelder Exp $
- */
-package org.eclipse.jet.internal.core.parser;
-
-import org.eclipse.jet.core.parser.IJETParser;
-
-/**
- * Extension interface to {@link IJETParser}
- *
- * NOTE: This should be public
- */
-public interface IJETParser2 extends IJETParser
-{
- /**
- * Parse contents as a JET template
- * @param template the template
- * @param templatePath the templatePath corresponding to the content of <code>null</code> if unknown
- * @return the root of the AST
- */
- public Object parse(char[] template, String templatePath);
-
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/parser/IncludeAlternativesTracker.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/parser/IncludeAlternativesTracker.java
deleted file mode 100644
index 301404a..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/parser/IncludeAlternativesTracker.java
+++ /dev/null
@@ -1,180 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2006, 2007 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 - Initial API and implementation
- *
- * </copyright>
- *
- * $Id: IncludeAlternativesTracker.java,v 1.3 2007/04/12 18:02:42 pelder Exp $
- * /
- *******************************************************************************/
-package org.eclipse.jet.internal.core.parser;
-
-import java.util.Stack;
-
-/**
- * Track processing and nesting of &#064;include's with &#064;start and &#064;end directives for the JET compiler.
- */
-public class IncludeAlternativesTracker {
- private final Stack stack = new Stack();
-
- private static final class State {
-
- public static final State INITIAL = new State("INITIAL"); //$NON-NLS-1$
-
- public static final State START = new State("START"); //$NON-NLS-1$
-
- public static final State END = new State("END"); //$NON-NLS-1$
-
- private final String display;
-
- private State(String display) {
- this.display = display;
- }
-
- public String toString() {
- return display;
- }
- }
-
- private static final class IncludeWithAlternative {
-
- private State state;
-
- private final boolean processAlternative;
-
- private final boolean parentCompileEnabled;
-
- private final Object includeDirective;
-
- private Object startDirective;
-
- public IncludeWithAlternative(Object includeDirective,
- boolean processAlternative, boolean parentCompileEnabled) {
- this.includeDirective = includeDirective;
- this.processAlternative = processAlternative;
- this.parentCompileEnabled = parentCompileEnabled;
- this.state = State.INITIAL;
-
- }
-
- public void doStart(Object startDirective) throws IllegalStateException {
- this.startDirective = startDirective;
- if (state != State.INITIAL) {
- throw new IllegalStateException();
- }
-
- state = State.START;
- }
-
- public void doEnd(Object startDirective) throws IllegalStateException {
- if (state != State.START) {
- throw new IllegalStateException();
- }
-
- state = State.END;
- }
-
- public boolean isProcessAlternative() {
- return processAlternative;
- }
-
- public boolean isCompileEnabled() throws IllegalStateException {
- if (state == State.END) {
- throw new IllegalStateException();
- }
- return parentCompileEnabled
- && (state != State.START || isProcessAlternative());
- }
-
- public boolean isStateInitial() {
- return state == State.INITIAL;
- }
-
- public boolean isStateStart() {
- return state == State.START;
- }
-
- public Object getIncludeDirective() {
- return includeDirective;
- }
-
- public Object getStartDirective() {
- return startDirective;
- }
- }
-
- /**
- * Test whether compiling is currently enabled
- * @return <code>true</code> if compiling currently enabled.
- */
- public boolean isCompileEnabled() {
- return stack.isEmpty()
- || ((IncludeWithAlternative) stack.peek()).isCompileEnabled();
- }
-
- /**
- * Start tracking an <code>&lt%&#064;include fail="alternative" ... %&gt;</code> directive
- * @param directive the include directive
- * @param processAlternative true if the content between &#064;start and &#064;end directives should be processed by the compiler.
- */
- public void addIncludeWithAlternative(Object directive,
- boolean processAlternative) {
- stack.push(new IncludeWithAlternative(directive, processAlternative,
- isCompileEnabled()));
- }
-
- /**
- * Mark the beginning of an include alternative, a <code>&lt;%&#064;start%&gt;</code> directive.
- * @param directive the Start directive
- * @throws IllegalStateException if there is no preceeding <code>at;include fail="alternative"</code> directive.
- */
- public void startAlternative(Object directive) throws IllegalStateException {
- if (stack.isEmpty()) {
- throw new IllegalStateException();
- }
-
- IncludeWithAlternative include = (IncludeWithAlternative) stack.peek();
- include.doStart(directive);
- }
-
- /**
- * Mark the end of an include alternative, a <code>&lt;%&#064;end%&gt;</code> directive.
- * @param directive
- * @throws IllegalStateException
- */
- public void endAlternative(Object directive) throws IllegalStateException {
- if (stack.isEmpty()) {
- throw new IllegalStateException();
- }
- // only peek on the stack, until we're certain doEnd succeeds
- IncludeWithAlternative include = (IncludeWithAlternative) stack.peek();
- include.doEnd(directive);
- stack.pop();
- }
-
- public static interface ValidationProblemReporter {
-
- void reportMissingStart(Object includeDirective);
-
- void reportMissingEnd(Object startDirective);
-
- }
-
- public void validateStackIsEmpty(ValidationProblemReporter reporter) {
- while (!stack.isEmpty()) {
- IncludeWithAlternative include = (IncludeWithAlternative) stack
- .pop();
- if (include.isStateInitial()) {
- reporter.reportMissingStart(include.getIncludeDirective());
- } else if (include.isStateStart()) {
- reporter.reportMissingEnd(include.getStartDirective());
- }
- }
- }
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/parser/InternalJET1Parser.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/parser/InternalJET1Parser.java
deleted file mode 100644
index 481cafb..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/parser/InternalJET1Parser.java
+++ /dev/null
@@ -1,621 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2009 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 - Initial API and implementation
- *
- * </copyright>
- *
- * $Id: InternalJET1Parser.java,v 1.4 2009/04/06 17:55:06 pelder Exp $
- * /
- *******************************************************************************/
-
-package org.eclipse.jet.internal.core.parser;
-
-import java.io.CharArrayReader;
-import java.net.URI;
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.Iterator;
-import java.util.LinkedHashSet;
-import java.util.Map;
-import java.util.Set;
-import java.util.Stack;
-
-import org.eclipse.jet.core.parser.IJETParser;
-import org.eclipse.jet.core.parser.IProblem;
-import org.eclipse.jet.core.parser.ITemplateInput;
-import org.eclipse.jet.core.parser.ITemplateResolver;
-import org.eclipse.jet.core.parser.ProblemSeverity;
-import org.eclipse.jet.core.parser.RecursiveIncludeException;
-import org.eclipse.jet.core.parser.TemplateInputException;
-import org.eclipse.jet.core.parser.ast.BodyElement;
-import org.eclipse.jet.core.parser.ast.Comment;
-import org.eclipse.jet.core.parser.ast.IncludedContent;
-import org.eclipse.jet.core.parser.ast.JETAST;
-import org.eclipse.jet.core.parser.ast.JETCompilationUnit;
-import org.eclipse.jet.core.parser.ast.JETDirective;
-import org.eclipse.jet.core.parser.ast.JavaDeclaration;
-import org.eclipse.jet.core.parser.ast.JavaExpression;
-import org.eclipse.jet.core.parser.ast.JavaScriptlet;
-import org.eclipse.jet.core.parser.ast.TextElement;
-import org.eclipse.jet.internal.core.parser.jasper.CommentElementDelegate;
-import org.eclipse.jet.internal.core.parser.jasper.DeclarationElementDelegate;
-import org.eclipse.jet.internal.core.parser.jasper.ErrorRedirectingCoreElementDelegate;
-import org.eclipse.jet.internal.core.parser.jasper.JETCoreElement;
-import org.eclipse.jet.internal.core.parser.jasper.JETException;
-import org.eclipse.jet.internal.core.parser.jasper.JETMark;
-import org.eclipse.jet.internal.core.parser.jasper.JETParseEventListener2;
-import org.eclipse.jet.internal.core.parser.jasper.JETParser;
-import org.eclipse.jet.internal.core.parser.jasper.JETReader;
-import org.eclipse.jet.internal.l10n.JET2Messages;
-
-/**
- * JET Parser Listener used by the JET1 Syntax
- *
- */
-public class InternalJET1Parser implements JETParseEventListener2, IJETParser, IJETParser2 {
-
- /**
- * Enumeratin of IncludeFailActions
- *
- */
- public final static class IncludeFailAction {
-
- public static final IncludeFailAction ERROR = new IncludeFailAction(
- "error"); //$NON-NLS-1$
-
- public static final IncludeFailAction SILENT = new IncludeFailAction(
- "silent"); //$NON-NLS-1$
-
- public static final IncludeFailAction ALTERNATIVE = new IncludeFailAction(
- "alternative"); //$NON-NLS-1$
-
- private final String displayValue;
-
- private IncludeFailAction(String displayValue) {
- this.displayValue = displayValue;
- }
-
- public String toString() {
- return displayValue;
- }
-
- public static IncludeFailAction getAction(String action) {
- if ("alternative".equalsIgnoreCase(action)) { //$NON-NLS-1$
- return ALTERNATIVE;
- } else if ("silent".equalsIgnoreCase(action)) { //$NON-NLS-1$
- return SILENT;
- } else {
- return ERROR;
- }
- }
- }
-
- private static final String JET__DIRECTIVE = "jet"; //$NON-NLS-1$
-
- private static final String INCLUDE__DIRECTIVE = "include"; //$NON-NLS-1$
-
- private static final String FILE__ATTR = "file"; //$NON-NLS-1$
-
- private static final String FAIL__ATTR = "fail"; //$NON-NLS-1$
-
- private static final String START__DIRECTIVE = "start"; //$NON-NLS-1$
-
- private static final String END__DIRECTIVE = "end"; //$NON-NLS-1$
-
- private final IncludeAlternativesTracker includeAlternativesTracker = new IncludeAlternativesTracker();
-
- /**
- * Stack of open includedContent elements
- */
- private final Stack includedContentStack = new Stack();
-
- /**
- * Stack of ITemplateInput objects.
- */
- private final Stack templateInputs = new Stack();
-
- private JETCompilationUnit compilationUnit;
-
- private JETAST ast;
-
- private JETReader reader;
-
- private final ITemplateResolver templateResolver;
-
- public InternalJET1Parser(ITemplateResolver templateResolver) {
- this.templateResolver = templateResolver;
- }
-
- /**
- * @see org.eclipse.jet.internal.parser.JETParseEventListener#beginPageProcessing()
- */
- public void beginPageProcessing() {
- // nothing to do
- }
-
- /**
- * @see org.eclipse.jet.internal.parser.JETParseEventListener#handleDirective(java.lang.String, org.eclipse.jet.internal.parser.JETMark, org.eclipse.jet.internal.parser.JETMark, java.util.Map)
- */
- public void handleDirective(String directive, JETMark start, JETMark stop,
- Map attributes) {
- JETDirective directiveElement = ast.newJETDirective(start.getLine(), start
- .getCol(), start.getCursor(), stop.getCursor() + 1, directive,
- attributes);
-
- boolean compileEnabled = includeAlternativesTracker.isCompileEnabled();
- // although a directive may appear nested, it really isn't. Add it to the compilation unit.
-
- if (JET__DIRECTIVE.equalsIgnoreCase(directive)) {
- if(compileEnabled) {
- addBodyElement(directiveElement);
- handleJetDirective(start, stop, attributes);
- }
- } else if (INCLUDE__DIRECTIVE.equalsIgnoreCase(directive)) {
- // add the include to the AST only if the section is enabled...
- if(compileEnabled) {
- addBodyElement(directiveElement);
- }
- handleIncludeDirective(directiveElement, start, stop, attributes);
- } else if (START__DIRECTIVE.equalsIgnoreCase(directive)) {
- try {
- includeAlternativesTracker.startAlternative(directiveElement);
- // add the start to the AST only if, AFTER processing the @start,
- // the section is enabled...
- if(includeAlternativesTracker.isCompileEnabled()) {
- addBodyElement(directiveElement);
- }
- } catch (IllegalStateException e) {
- recordProblem(ProblemSeverity.ERROR,
- IProblem.StartDirectiveOutOfContext,
- JET2Messages.JET2Compiler_StartDirectiveOutOfContext,
- new Object[] { directive }, start.getCursor(), stop
- .getCursor(), start.getLine(), start.getCol());
- }
- } else if (END__DIRECTIVE.equalsIgnoreCase(directive)) {
- try {
- // add the end to the AST only if the secion is enabled...
- if(compileEnabled) {
- addBodyElement(directiveElement);
- }
- includeAlternativesTracker.endAlternative(directiveElement);
- } catch (IllegalStateException e) {
- recordProblem(ProblemSeverity.ERROR,
- IProblem.EndDirectiveOutOfContext,
- JET2Messages.JET2Compiler_EndDirectiveOutOfContext,
- new Object[] { directive }, start.getCursor(), stop
- .getCursor(), start.getLine(), start.getCol());
- }
- } else if (compileEnabled) {
- recordProblem(ProblemSeverity.WARNING,
- IProblem.UnsupportedDirective,
- JET2Messages.ASTCompilerParseListener_UnsupportedDirective,
- new Object[] { directive }, start.getCursor(), stop
- .getCursor(), start.getLine(), start.getCol());
- }
- }
-
- private static Set knownIncludeAttributes = new LinkedHashSet(Arrays
- .asList(new String[] { FILE__ATTR, FAIL__ATTR, }));
-
- private void handleIncludeDirective(JETDirective directive, JETMark start,
- JETMark stop, Map attributes) {
- validateAttributes(start, stop, attributes, knownIncludeAttributes,
- Collections.EMPTY_SET);
-
- String file = (String) attributes.get(FILE__ATTR);
- if (file == null) {
- missingRequiredAttribute(start, stop, INCLUDE__DIRECTIVE,
- FILE__ATTR);
- return;
- }
-
- final IncludeFailAction failAction = IncludeFailAction
- .getAction((String) attributes.get(FAIL__ATTR));
-
- final boolean includePushed = includeAlternativesTracker.isCompileEnabled()
- && doPushInclude(file);
-
- if(includePushed) {
- ITemplateInput templateInput = (ITemplateInput) templateInputs.peek();
- final IncludedContent includedContent = ast.newIncludedContent(start.getLine(), start.getCol(), start.getCursor(), stop.getCursor(),
- templateInput.getBaseLocation(), templateInput.getTemplatePath());
- addBodyElement(includedContent);
- includedContentStack.push(includedContent);
- } else if (includeAlternativesTracker.isCompileEnabled()) {
- if (failAction == IncludeFailAction.ERROR) {
- recordProblem(ProblemSeverity.ERROR, IProblem.MissingFile,
- JET2Messages.JET2Compiler_MissingFile,
- new Object[] { file }, start.getCursor(), stop
- .getCursor(), start.getLine(), start.getCol());
- }
- }
- if (failAction == IncludeFailAction.ALTERNATIVE) {
- boolean processAlternative = includeAlternativesTracker
- .isCompileEnabled()
- && !includePushed;
- includeAlternativesTracker.addIncludeWithAlternative(directive,
- processAlternative);
- }
- }
-
- private boolean doPushInclude(String relativePath) {
- ITemplateInput[] activeInputs = (ITemplateInput[]) templateInputs.toArray(new ITemplateInput[templateInputs.size()]);
-
- if(activeInputs.length > 0) {
- try {
- final ITemplateInput includedInput = templateResolver.getIncludedInput(relativePath, activeInputs);
-
- if(includedInput != null) {
- reader.stackStream(includedInput.getBaseLocation().toString(), includedInput.getTemplatePath(), includedInput.getReader());
-
- templateInputs.push(includedInput);
-
- return true;
- }
- } catch (JETException e) {
- // fall through
- } catch (TemplateInputException e) {
- // fall through
- } catch (RecursiveIncludeException e) {
- // fall through
- }
- }
-
- return false;
- }
-
- private void validateAttributes(JETMark start, JETMark stop,
- Map attributes, Set knownAttributes, Set deprecatedAttributes) {
- for (Iterator i = attributes.keySet().iterator(); i.hasNext();) {
- String attrName = (String) i.next();
- if (!knownAttributes.contains(attrName)) {
- recordProblem(ProblemSeverity.ERROR,
- IProblem.UnknownAttributeInTag,
- JET2Messages.JET2Compiler_UnknownAttribute,
- new Object[] { attrName }, start.getCursor(), stop
- .getCursor(), start.getLine(), start.getCol());
- }
- if (deprecatedAttributes.contains(attrName)) {
- recordProblem(ProblemSeverity.WARNING,
- IProblem.DeprecatedAttribute,
- JET2Messages.JET2Compiler_DeprecatedAttribute,
- new Object[] { attrName }, start.getCursor(), stop
- .getCursor(), start.getLine(), start.getCol());
- }
- }
- }
-
- private void missingRequiredAttribute(JETMark start, JETMark stop,
- String directive, String attribute) {
- compilationUnit.createProblem(ProblemSeverity.ERROR,
- IProblem.MissingRequiredAttribute,
- JET2Messages.JET2Compiler_MissingDirectiveAttribute,
- new Object[] { directive, attribute },
- // start.getLocalFile(),
- start.getCursor(), stop.getCursor(), start.getLine(), start
- .getCol());
- }
-
- private static Set knownJETAttributes = new LinkedHashSet(Arrays
- .asList(new String[] { "skeleton", //$NON-NLS-1$
- "package", //$NON-NLS-1$
- "imports", //$NON-NLS-1$
- "class", //$NON-NLS-1$
- "nlString", //$NON-NLS-1$
- "startTag", //$NON-NLS-1$
- "endTag", //$NON-NLS-1$
- "version", //$NON-NLS-1$
- }));
-
- private static Set deprecatedJETAttributes = new LinkedHashSet(Arrays
- .asList(new String[] { "skeleton", //$NON-NLS-1$
- "nlString", //$NON-NLS-1$
- }));
-
- private JETParser parser;
-
- private void handleJetDirective(JETMark start, JETMark stop, Map attributes) {
- for (Iterator i = attributes.keySet().iterator(); i.hasNext();) {
- String attrName = (String) i.next();
- if (!knownJETAttributes.contains(attrName)) {
- recordProblem(ProblemSeverity.ERROR,
- IProblem.UnknownAttributeInTag,
- JET2Messages.JET2Compiler_UnknownAttribute,
- new Object[] { attrName }, start.getCursor(), stop
- .getCursor(), start.getLine(), start.getCol());
- }
- if (deprecatedJETAttributes.contains(attrName)) {
- recordProblem(ProblemSeverity.WARNING,
- IProblem.DeprecatedAttribute,
- JET2Messages.JET2Compiler_DeprecatedAttribute,
- new Object[] { attrName }, start.getCursor(), stop
- .getCursor(), start.getLine(), start.getCol());
- }
- }
-
- String pkg = (String) attributes.get("package"); //$NON-NLS-1$
- String cls = (String) attributes.get("class"); //$NON-NLS-1$
- String importStr = (String) attributes.get("imports"); //$NON-NLS-1$
- String startTag = (String) attributes.get("startTag"); //$NON-NLS-1$
- String endTag = (String) attributes.get("endTag"); //$NON-NLS-1$
-
- if (pkg != null) {
- compilationUnit.setOutputJavaPackage(pkg);
- }
- if (cls != null) {
- compilationUnit.setOutputJavaClassName(cls);
- }
- if (importStr != null) {
- String[] imports = importStr.split("\\s+"); //$NON-NLS-1$
- compilationUnit.addImports(Arrays.asList(imports));
- }
-
- if (startTag != null) {
- parser.setStartTag(startTag);
- }
- if (endTag != null) {
- parser.setEndTag(endTag);
- }
- }
-
- /**
- * @see org.eclipse.jet.internal.parser.JETParseEventListener#handleExpression(org.eclipse.jet.internal.parser.JETMark, org.eclipse.jet.internal.parser.JETMark, java.util.Map)
- */
- public void handleExpression(JETMark start, JETMark stop, Map attributes) {
- if(!includeAlternativesTracker.isCompileEnabled()) {
- return;
- }
- JavaExpression expression = ast.newJavaExpression(start.getLine(),
- start.getCol(), start.getCursor() - 3, stop.getCursor() + 2,
- start.getCursor(), stop.getCursor(), reader.getChars(start,
- stop));
-
- addBodyElement(expression);
- }
-
- /**
- * @see org.eclipse.jet.internal.parser.JETParseEventListener#handleCharData(char[])
- */
- public void handleCharData(char[] chars) {
- if(!includeAlternativesTracker.isCompileEnabled()) {
- return;
- }
- TextElement text = ast.newTextElement(chars);
-
- addBodyElement(text);
- }
-
- /**
- * @see org.eclipse.jet.internal.parser.JETParseEventListener#endPageProcessing()
- */
- public void endPageProcessing() {
- if(templateInputs.size() > 0) {
- templateInputs.pop();
- }
- if(includedContentStack.size() > 0) {
- includedContentStack.pop();
- }
- }
-
- /**
- * @see org.eclipse.jet.internal.parser.JETParseEventListener#handleScriptlet(org.eclipse.jet.internal.parser.JETMark, org.eclipse.jet.internal.parser.JETMark, java.util.Map)
- */
- public void handleScriptlet(JETMark start, JETMark stop, Map attributes) {
- if(!includeAlternativesTracker.isCompileEnabled()) {
- return;
- }
- JavaScriptlet scriplet = ast.newJavaScriptlet(start.getLine(), start
- .getCol(), start.getCursor() - 3, stop.getCursor() + 2, start
- .getCursor(), stop.getCursor(), reader.getChars(start, stop));
-
- addBodyElement(scriplet);
-
- }
-
- /**
- * @see org.eclipse.jet.internal.parser.JETParseEventListener2#handleComment(org.eclipse.jet.internal.parser.JETMark, org.eclipse.jet.internal.parser.JETMark)
- */
- public void handleComment(JETMark start, JETMark stop) {
- if(!includeAlternativesTracker.isCompileEnabled()) {
- return;
- }
- Comment comment = ast.newComment(start.getLine(), start.getCol(), start
- .getCursor() - 4, stop.getCursor() + 4, start.getCursor(), stop
- .getCursor(), reader.getChars(start, stop));
-
- addBodyElement(comment);
- }
-
- /**
- * @param bodyElement
- */
- private void addBodyElement(BodyElement bodyElement) {
- if (includedContentStack.isEmpty())
- {
- compilationUnit.addBodyElement(bodyElement);
- }
- else
- {
- IncludedContent topElement = (IncludedContent)includedContentStack.peek();
-
- topElement.addBodyElement(bodyElement);
- }
- }
-
- /**
- * @see org.eclipse.jet.internal.parser.JETParseEventListener2#handleDeclaration(org.eclipse.jet.internal.parser.JETMark, org.eclipse.jet.internal.parser.JETMark)
- */
- public void handleDeclaration(JETMark start, JETMark stop) {
- if(!includeAlternativesTracker.isCompileEnabled()) {
- return;
- }
- JavaDeclaration decl = ast.newJavaDeclaration(start.getLine(), start
- .getCol(), start.getCursor() - 3, stop.getCursor() + 2, start
- .getCursor(), stop.getCursor(), reader.getChars(start, stop));
-
- addBodyElement(decl);
- }
-
- /**
- * @see org.eclipse.jet.internal.parser.JETParseEventListener2#handleXMLEndTag(java.lang.String, org.eclipse.jet.internal.parser.JETMark, org.eclipse.jet.internal.parser.JETMark)
- */
- public void handleXMLEndTag(String tagName, JETMark start, JETMark stop) {
- throw new IllegalStateException();
- }
-
- /**
- * @see org.eclipse.jet.internal.parser.JETParseEventListener2#handleXMLEmptyTag(java.lang.String, org.eclipse.jet.internal.parser.JETMark, org.eclipse.jet.internal.parser.JETMark, java.util.Map)
- */
- public void handleXMLEmptyTag(String tagName, JETMark start, JETMark stop,
- Map attributeMap) {
- throw new IllegalStateException();
- }
-
- /**
- * @see org.eclipse.jet.internal.parser.JETParseEventListener2#handleXMLStartTag(java.lang.String, org.eclipse.jet.internal.parser.JETMark, org.eclipse.jet.internal.parser.JETMark, java.util.Map)
- */
- public void handleXMLStartTag(String tagName, JETMark start, JETMark stop,
- Map attributeMap) {
-
- throw new IllegalStateException();
- }
-
- /**
- * @see org.eclipse.jet.internal.parser.JETParseEventListener2#isKnownTag(java.lang.String)
- */
- public boolean isKnownTag(String tagName) {
- return false;
- }
-
- /**
- * Return the compilation unit created as a result of handling the JET2 parser events.
- * @return compilation unit
- */
- public JETCompilationUnit getCompilationUnit() {
- return compilationUnit;
- }
-
- /**
- * @see org.eclipse.jet.internal.parser.JETParseEventListener2#recordProblem(org.eclipse.jet.compiler.Problem.ProblemSeverity, int, java.lang.String, java.lang.Object[], int, int, int, int)
- */
- public void recordProblem(ProblemSeverity severity, int problemId,
- String message, Object[] msgArgs, int start, int end, int line,
- int colOffset) {
- compilationUnit.createProblem(severity, problemId, message, msgArgs,
- start, end, line, colOffset);
- }
-
- /**
- * @param reader
- * @return
- */
- private JETParser configureParser(JETReader reader) {
- JETParser.Directive directive = new JETParser.Directive();
- directive.getDirectives().add("jet"); //$NON-NLS-1$
- directive.getDirectives().add("include"); //$NON-NLS-1$
- directive.getDirectives().add("start"); //$NON-NLS-1$
- directive.getDirectives().add("end"); //$NON-NLS-1$
- JETCoreElement[] coreElements = new JETCoreElement[] {
- new ErrorRedirectingCoreElementDelegate(directive),
- new ErrorRedirectingCoreElementDelegate(
- new JETParser.Expression()),
- new ErrorRedirectingCoreElementDelegate(
- new CommentElementDelegate()),
- new ErrorRedirectingCoreElementDelegate(
- new DeclarationElementDelegate()),
- new ErrorRedirectingCoreElementDelegate(
- new JETParser.Scriptlet()), };
-
- return new JETParser(reader, this, coreElements);
- }
-
- public boolean isKnownInvalidTagName(String tagName) {
- return false;
- }
-
- public Object parse(String templatePath) {
- final ITemplateInput templateInput = templateResolver
- .getInput(templatePath);
- templateInputs.push(templateInput);
- final URI baseLocation = templateInput.getBaseLocation();
- try {
- if (compilationUnit == null) {
- compilationUnit = new JETAST()
- .newJETCompilationUnit(baseLocation, templatePath,
- templateInput.getEncoding());
- ast = compilationUnit.getAst();
- }
- reader = new JETReader(baseLocation == null ? null : baseLocation
- .toString(), templatePath, templateInput.getReader());
- intermalParse();
- } catch (org.eclipse.jet.internal.core.parser.jasper.JETException e) {
- // create a minimal compilation unit with the exeception recorded as the error.
- recordProblem(ProblemSeverity.ERROR, IProblem.JETException, e
- .getLocalizedMessage(), null, 0, 0, 1, 1);
- } catch (TemplateInputException e) {
- // create a minimal compilation unit with the exeception recorded as the error.
- recordProblem(ProblemSeverity.ERROR, IProblem.JETException, e
- .getLocalizedMessage(), null, 0, 0, 1, 1);
- }
- return compilationUnit;
- }
-
- public Object parse(char[] template) {
- return parse(template, "");
- }
-
- public Object parse(char[] template, String templatePath) {
- final ITemplateInput templateInput;
- final URI baseLocation;
- if(templatePath == null) {
- templatePath = "";
- }
- if(templatePath.length() > 0) {
- templateInput = templateResolver.getInput(templatePath);
- templateInputs.push(templateInput);
- baseLocation = templateInput.getBaseLocation();
- } else {
- templateInput = null;
- baseLocation = null;
- }
- if (compilationUnit == null) {
- compilationUnit = new JETAST()
- .newJETCompilationUnit(baseLocation, templatePath, null);
- ast = compilationUnit.getAst();
- }
- try {
- reader = new JETReader(baseLocation == null ? null : baseLocation
- .toString(), templatePath, new CharArrayReader(template)); //$NON-NLS-1$
- intermalParse();
- } catch (JETException e) {
- // create a minimal compilation unit with the exeception recorded as the error.
- recordProblem(ProblemSeverity.ERROR, IProblem.JETException, e
- .getLocalizedMessage(), null, 0, 0, 1, 1);
- }
- return compilationUnit;
-
- }
-
- /**
- * @throws JETException
- */
- private void intermalParse() throws JETException {
- parser = configureParser(reader);
- this.beginPageProcessing();
- parser.parse();
- this.endPageProcessing();
- compilationUnit.accept(new TextTrimmingVisitor());
- }
-
- public void handleEmbeddedExpression(String language, JETMark start, JETMark stop)
- throws JETException {
- throw new IllegalStateException();
- }
-
-}
diff --git a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/parser/InternalJET2Parser.java b/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/parser/InternalJET2Parser.java
deleted file mode 100644
index 971a904..0000000
--- a/plugins/org.eclipse.jet.core/src/org/eclipse/jet/internal/core/parser/InternalJET2Parser.java
+++ /dev/null
@@ -1,682 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005, 2009 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 - Initial API and implementation
- *
- * </copyright>
- *
- * $Id: InternalJET2Parser.java,v 1.3 2009/04/06 17:55:06 pelder Exp $
- * /
- *******************************************************************************/
-
-package org.eclipse.jet.internal.core.parser;
-
-
-import java.io.CharArrayReader;
-import java.net.URI;
-import java.util.Arrays;
-import java.util.Iterator;
-import java.util.LinkedHashSet;
-import java.util.Map;
-import java.util.Set;
-
-import org.eclipse.jet.core.expressions.EmbeddedExpressionFactory;
-import org.eclipse.jet.core.parser.IJETParser;
-import org.eclipse.jet.core.parser.IProblem;
-import org.eclipse.jet.core.parser.ITagLibraryResolver;
-import org.eclipse.jet.core.parser.ITemplateInput;
-import org.eclipse.jet.core.parser.ITemplateResolver;
-import org.eclipse.jet.core.parser.ProblemSeverity;
-import org.eclipse.jet.core.parser.TemplateInputException;
-import org.eclipse.jet.core.parser.ast.Comment;
-import org.eclipse.jet.core.parser.ast.EmbeddedExpression;
-import org.eclipse.jet.core.parser.ast.JETAST;
-import org.eclipse.jet.core.parser.ast.JETCompilationUnit;
-import org.eclipse.jet.core.parser.ast.JETDirective;
-import org.eclipse.jet.core.parser.ast.JavaDeclaration;
-import org.eclipse.jet.core.parser.ast.JavaExpression;
-import org.eclipse.jet.core.parser.ast.JavaScriptlet;
-import org.eclipse.jet.core.parser.ast.TagLibraryUsageManager;
-import org.eclipse.jet.core.parser.ast.TextElement;
-import org.eclipse.jet.core.parser.ast.XMLBodyElement;
-import org.eclipse.jet.core.parser.ast.XMLBodyElementEnd;
-import org.eclipse.jet.core.parser.ast.XMLEmptyElement;
-import org.eclipse.jet.internal.core.parser.jasper.CommentElementDelegate;
-import org.eclipse.jet.internal.core.parser.jasper.DeclarationElementDelegate;
-import org.eclipse.jet.internal.core.parser.jasper.EmbeddedExpressionElement;
-import org.eclipse.jet.internal.core.parser.jasper.ErrorRedirectingCoreElementDelegate;
-import org.eclipse.jet.internal.core.parser.jasper.JETCoreElement;
-import org.eclipse.jet.internal.core.parser.jasper.JETException;
-import org.eclipse.jet.internal.core.parser.jasper.JETMark;
-import org.eclipse.jet.internal.core.parser.jasper.JETParseEventListener2;
-import org.eclipse.jet.internal.core.parser.jasper.JETParser;
-import org.eclipse.jet.internal.core.parser.jasper.JETReader;
-import org.eclipse.jet.internal.core.parser.jasper.XMLElementDelegate;
-import org.eclipse.jet.internal.l10n.JET2Messages;
-import org.eclipse.jet.taglib.TagDefinition;
-import org.eclipse.jet.taglib.TagLibraryReference;
-
-
-/**
- * JET Parser Listener used by the JET2 Syntax
- *
- */
-public class InternalJET2Parser implements JETParseEventListener2, IJETParser
-{
-
- private static final String ID__ATTR = "id"; //$NON-NLS-1$
-
- private static final String PREFIX__ATTR = "prefix"; //$NON-NLS-1$
-
- private static final String TAGLIB__DIRECTIVE = "taglib"; //$NON-NLS-1$
- private static final String JET__DIRECTIVE = "jet"; //$NON-NLS-1$
- /**
- * Stack of elements waiting for end tags.
- */
- private final ElementStack elementStack = new ElementStack();
-
- private JETCompilationUnit compilationUnit;
-
- private JETAST ast;
-
- private final TagLibraryUsageManager tagLibManager;
-
- private JETReader reader;
-
- private final ITemplateResolver templateResolver;
-
- private final boolean supportEmbeddedExpressions;
-
- public InternalJET2Parser(ITemplateResolver templateResolver, ITagLibraryResolver tagLibraryResolver, Map predefinedLibraryMap, boolean supportEmbeddedExpressions)
- {
- this.templateResolver = templateResolver;
- this.supportEmbeddedExpressions = supportEmbeddedExpressions;
- tagLibManager = new TagLibraryUsageManager(predefinedLibraryMap, tagLibraryResolver);
- }
- /**
- * @see org.eclipse.jet.internal.parser.JETParseEventListener#beginPageProcessing()
- */
- public void beginPageProcessing()
- {
- // nothing to do
- }
-
- /**
- * @see org.eclipse.jet.internal.parser.JETParseEventListener#handleDirective(java.lang.String, org.eclipse.jet.internal.parser.JETMark, org.eclipse.jet.internal.parser.JETMark, java.util.Map)
- */
- public void handleDirective(String directive, JETMark start, JETMark stop, Map attributes)
- {
- JETDirective directiveImpl = ast.newJETDirective(start.getLine(), start.getCol(), start.getCursor(), stop.getCursor() + 1, directive, attributes);
-
- // although a directive may appear nested, it really isn't. Add it to the compilation unit.
- // TODO Does this work for @start and @end? Probably NOT.
- compilationUnit.addBodyElement(directiveImpl);
-
- if (TAGLIB__DIRECTIVE.equalsIgnoreCase(directive))
- {
- handleTagLibDirective(start, stop, attributes);
- }
- else if(JET__DIRECTIVE.equalsIgnoreCase(directive))
- {
- handleJetDirective(start, stop, attributes);
- } else {
- recordProblem(ProblemSeverity.WARNING, IProblem.UnsupportedDirective,
- JET2Messages.ASTCompilerParseListener_UnsupportedDirective,
- new Object[] {directive}, start.getCursor(), stop.getCursor(), start.getLine(), start.getCol() );
- }
- }
-
-
- private static Set knownJETAttributes =
- new LinkedHashSet(Arrays.asList(new String[] {
- "skeleton", //$NON-NLS-1$
- "package", //$NON-NLS-1$
- "imports", //$NON-NLS-1$
- "class", //$NON-NLS-1$
- "nlString", //$NON-NLS-1$
- "startTag", //$NON-NLS-1$
- "endTag", //$NON-NLS-1$
- "version", //$NON-NLS-1$
- }));
- private static Set deprecatedJETAttributes =
- new LinkedHashSet(Arrays.asList(new String[] {
- "skeleton", //$NON-NLS-1$
- "nlString", //$NON-NLS-1$
- }));
-
- private JETParser parser;
- private void handleJetDirective(JETMark start, JETMark stop, Map attributes)
- {
- for (Iterator i = attributes.keySet().iterator(); i.hasNext();)
- {
- String attrName = (String)i.next();
- if(!knownJETAttributes.contains(attrName))
- {
- recordProblem(ProblemSeverity.ERROR, IProblem.UnknownAttributeInTag,
- JET2Messages.JET2Compiler_UnknownAttribute, new Object[] {attrName},
- start.getCursor(), stop.getCursor(), start.getLine(), start.getCol());
- }
- if(deprecatedJETAttributes.contains(attrName))
- {
- recordProblem(ProblemSeverity.WARNING, IProblem.DeprecatedAttribute,
- JET2Messages.JET2Compiler_DeprecatedAttribute, new Object[] {attrName},
- start.getCursor(), stop.getCursor(), start.getLine(), start.getCol());
- }
- }
-
- String pkg = (String)attributes.get("package"); //$NON-NLS-1$
- String cls = (String)attributes.get("class"); //$NON-NLS-1$
- String importStr = (String)attributes.get("imports"); //$NON-NLS-1$
- String startTag = (String)attributes.get("startTag"); //$NON-NLS-1$
- String endTag = (String)attributes.get("endTag"); //$NON-NLS-1$
-
- if(pkg != null)
- {
- compilationUnit.setOutputJavaPackage(pkg);
- }
- if(cls != null)
- {
- compilationUnit.setOutputJavaClassName(cls);
- }
- if(importStr != null)
- {
- String[] imports = importStr.split("\\s+"); //$NON-NLS-1$
- compilationUnit.addImports(Arrays.asList(imports));
- }
-
- if(startTag != null)
- {
- parser.setStartTag(startTag);
- }
- if(endTag != null)
- {
- parser.setEndTag(endTag);
- }
- }
-
- /**
- * @param start
- * @param stop
- * @param attributes
- */
- private void handleTagLibDirective(JETMark start, JETMark stop, Map attributes)
- {
- String prefix = ((String)attributes.get(PREFIX__ATTR)).trim().toLowerCase();
- String id = (String)attributes.get(ID__ATTR);
-
- if (id == null)
- {
- compilationUnit.createProblem(
- ProblemSeverity.ERROR,
- IProblem.MissingRequiredAttribute,
- JET2Messages.JET2Compiler_MissingDirectiveAttribute,
- new Object []{ TAGLIB__DIRECTIVE, ID__ATTR },
- start.getCursor(),
- stop.getCursor(),
- start.getLine(), start.getCol());
- }
- else if (prefix == null)
- {
- compilationUnit.createProblem(
- ProblemSeverity.ERROR,
- IProblem.MissingRequiredAttribute,
- JET2Messages.JET2Compiler_MissingDirectiveAttribute,
- new Object []{ TAGLIB__DIRECTIVE, PREFIX__ATTR },
- start.getCursor(),
- stop.getCursor(),
- start.getLine(), start.getCol());
- }
- else if (!tagLibManager.canDefinePrefix(prefix, id))
- {
- compilationUnit.createProblem(
- ProblemSeverity.ERROR,
- IProblem.DuplicateXMLNamespacePrefix,
- JET2Messages.JET2Compiler_PrefixAlreadyAssigned,
- new Object []{ prefix, tagLibManager.getLibraryIdFromPrefix(prefix) },
- start.getCursor(),
- stop.getCursor(),
- start.getLine(), start.getCol());
- }
- else if (tagLibManager.isLibraryDefined(id))
- {
- compilationUnit.createProblem(
- ProblemSeverity.ERROR,
- IProblem.UnknownTagLibrary,
- JET2Messages.JET2Compiler_UnknownTagLibrary,
- new Object []{ id },
- start.getCursor(),
- stop.getCursor(),
- start.getLine(), start.getCol());
- }
- else
- {
- tagLibManager.add(prefix, id);
- }
- }
-
- /**
- * @see org.eclipse.jet.internal.parser.JETParseEventListener#handleExpression(org.eclipse.jet.internal.parser.JETMark, org.eclipse.jet.internal.parser.JETMark, java.util.Map)
- */
- public void handleExpression(JETMark start, JETMark stop, Map attributes)
- {
- JavaExpression expression = ast.newJavaExpression(
- start.getLine(),
- start.getCol(),
- start.getCursor() - 3,
- stop.getCursor() + 2,
- start.getCursor(),
- stop.getCursor(), reader.getChars(start, stop));
-
- if (elementStack.isEmpty())
- {
- compilationUnit.addBodyElement(expression);
- }
- else
- {
- XMLBodyElement topElement = elementStack.peek();
-
- topElement.addBodyElement(expression);
- }
-
- }
-
- /**
- * @see org.eclipse.jet.internal.parser.JETParseEventListener#handleCharData(char[])
- */
- public void handleCharData(char[] chars)
- {
- TextElement text = ast.newTextElement(chars);
-
- if (elementStack.isEmpty())
- {
- compilationUnit.addBodyElement(text);
- }
- else
- {
- XMLBodyElement topElement = elementStack.peek();
-
- topElement.addBodyElement(text);
- }
-
- }
-
- /**
- * @see org.eclipse.jet.internal.parser.JETParseEventListener#endPageProcessing()
- */
- public void endPageProcessing()
- {
- while (!elementStack.isEmpty())
- {
- XMLBodyElement element = elementStack.pop();
- compilationUnit.createProblem(
- ProblemSeverity.ERROR,
- IProblem.MissingXmlEndTag,
- JET2Messages.JET2Compiler_MissingEndTag,
- new Object []{ element.getName() },
- element.getStart(),
- element.getEnd(),
- element.getLine(), element.getColumn());
- }
-
- }
-
- /**
- * @see org.eclipse.jet.internal.parser.JETParseEventListener#handleScriptlet(org.eclipse.jet.internal.parser.JETMark, org.eclipse.jet.internal.parser.JETMark, java.util.Map)
- */
- public void handleScriptlet(JETMark start, JETMark stop, Map attributes)
- {
- JavaScriptlet scriplet = ast.newJavaScriptlet(
- start.getLine(),
- start.getCol(),
- start.getCursor() - 3,
- stop.getCursor() + 2,
- start.getCursor(),
- stop.getCursor(), reader.getChars(start, stop));
-
- if (elementStack.isEmpty())
- {
- compilationUnit.addBodyElement(scriplet);
- }
-