Author: DartPeng
Date: 2010-07-22 02:10:20 -0400 (Thu, 22 Jul 2010)
New Revision: 23653
Added:
branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/SmooksConstants.java
branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/Messages.java
branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksConfigFileHandle.java
branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksConfigfileContentDescriber.java
branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/messages.properties
branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/wizards/
branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/wizards/Messages.java
branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/wizards/SmooksConfigurationFileNewWizard.java
branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/wizards/SmooksFileContainerSelectionPage.java
branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/wizards/messages.properties
Modified:
branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/META-INF/MANIFEST.MF
branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/plugin.xml
Log:
Modified: branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/META-INF/MANIFEST.MF
===================================================================
--- branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/META-INF/MANIFEST.MF 2010-07-22
05:51:41 UTC (rev 23652)
+++ branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/META-INF/MANIFEST.MF 2010-07-22
06:10:20 UTC (rev 23653)
@@ -9,7 +9,8 @@
org.eclipse.jface.text,
org.eclipse.core.resources,
org.eclipse.ui.editors,
- org.eclipse.ui.forms
+ org.eclipse.ui.forms,
+ org.eclipse.ui.ide;bundle-version="3.6.0"
Bundle-ActivationPolicy: lazy
Bundle-Localization: plugin
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Modified: branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/plugin.xml
===================================================================
--- branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/plugin.xml 2010-07-22 05:51:41
UTC (rev 23652)
+++ branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/plugin.xml 2010-07-22 06:10:20
UTC (rev 23653)
@@ -1,8 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
-
-
-
-
+ <extension
+ point="org.eclipse.core.contenttype.contentTypes">
+ <content-type
+ base-type="org.eclipse.core.runtime.xml"
+
describer="org.jboss.tools.smooks.configuration.editors.SmooksConfigfileContentDescriber"
+ file-extensions="xml"
+ id="org.jboss.tools.smooks.ui.smooks.contentType"
+ name="Smooks Configuration File"
+ priority="low">
+ </content-type>
+ </extension>
+ <extension
+ point="org.eclipse.ui.newWizards">
+ <category
+ name="Smooks"
+ id="org.jboss.tools.smooks.configuration">
+ </category>
+ <wizard
+ name="Smooks Configuration File"
+ icon="icons/smooks-sm.gif"
+ category="org.jboss.tools.smooks.configuration"
+
class="org.jboss.tools.smooks.configuration.wizards.SmooksConfigurationFileNewWizard"
+
id="org.jboss.tools.smooks.configuration.wizards.NewConfigurationFileWizard">
+ </wizard>
+ </extension>
</plugin>
Added:
branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/SmooksConstants.java
===================================================================
---
branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/SmooksConstants.java
(rev 0)
+++
branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/SmooksConstants.java 2010-07-22
06:10:20 UTC (rev 23653)
@@ -0,0 +1,31 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.smooks.configuration;
+
+/**
+ * @author Dart Peng (dpeng(a)redhat.com)
+ * Date Apr 1, 2009
+ */
+public class SmooksConstants {
+ public static final String SMOOKS_EXTENTION_NAME = "xml"; //$NON-NLS-1$
+
+ public static final String SMOOKS_GRAPHICSEXT_EXTENTION_NAME = "ext";
//$NON-NLS-1$
+
+ public static final String SMOOKS_EXTENTION_NAME_WITHDOT = "." +
SMOOKS_EXTENTION_NAME; //$NON-NLS-1$
+
+ public static final String SMOOKS_GRAPHICSEXT_EXTENTION_NAME_WITHDOT = "." +
SMOOKS_GRAPHICSEXT_EXTENTION_NAME; //$NON-NLS-1$
+
+// public static final String VERSION_1_1 = "1.1"; //$NON-NLS-1$
+
+ public static final String VERSION_1_2 = "1.2"; //$NON-NLS-1$
+
+ public static final String[] SMOOKS_VERSIONS = new String[]{VERSION_1_2};
+}
Property changes on:
branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/SmooksConstants.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/Messages.java
===================================================================
---
branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/Messages.java
(rev 0)
+++
branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/Messages.java 2010-07-22
06:10:20 UTC (rev 23653)
@@ -0,0 +1,93 @@
+package org.jboss.tools.smooks.configuration.editors;
+
+import org.eclipse.osgi.util.NLS;
+
+public class Messages extends NLS {
+ private static final String BUNDLE_NAME =
"org.jboss.tools.smooks.configuration.editors.messages"; //$NON-NLS-1$
+ public static String ChildrenSelectionWizardPage_selectchilderror;
+ public static String ChildrenSelectionWizardPage_wizardtitle;
+ public static String FileSelectionWizard_WizardPageName;
+ public static String FileSelectionWizard_WizardTitle;
+ public static String FileSelectionWizardPage_PageDescription;
+ public static String FileSelectionWizardPage_PageTitle;
+ public static String ModelChildrenTablePanelCreator_DownButtonLable;
+ public static String ModelChildrenTablePanelCreator_NewButtonLabel;
+ public static String ModelChildrenTablePanelCreator_PropertiesButtonLabel;
+ public static String ModelChildrenTablePanelCreator_RemoveButtonLabel;
+ public static String ModelChildrenTablePanelCreator_UpButtonLabel;
+ public static String NewOrModifySmooksElementDialog_CloseButtonLabel;
+ public static String PropertyUICreator_browsebutton;
+ public static String PropertyUICreator_namelabel;
+ public static String PropertyUICreator_nslabel;
+ public static String SelectorCreationDialog_AddInputLinkLabel;
+ public static String SelectorCreationDialog_DialogTitle;
+ public static String SelectorCreationDialog_FullPathPolicy;
+ public static String SelectorCreationDialog_InputViewerlabel;
+ public static String SelectorCreationDialog_OnlyNamePolicy;
+ public static String SelectorCreationDialog_PolicyLabel;
+ public static String SelectorCreationDialog_SperatorCharlabel;
+ public static String SmooksActionBarContributor_33;
+ public static String SmooksActionBarContributor_AddSmooksReasourceActionLabel;
+ public static String SmooksActionBarContributor_AddSmooksResourceActionLabel;
+ public static String SmooksActionBarContributor_CreateSiblingActionLabel;
+ public static String SmooksActionBarContributor_NewSiblingActionLabel;
+ public static String SmooksActionBarContributor_OpenProperyViewActionLabel;
+ public static String SmooksActionBarContributor_RefreshViewActionLabel;
+ public static String SmooksActionBarContributor_ValidateActionLabel;
+ public static String SmooksConfigFileHandle_exception;
+ public static String SmooksConfigurationOverviewPage_ConfigurationSectionTitle;
+ public static String SmooksConfigurationOverviewPage_FilterSettingSectionTitle;
+ public static String SmooksConfigurationOverviewPage_FilterTypeLabel;
+ public static String SmooksConfigurationOverviewPage_SerializationLabel;
+ public static String SmooksConfigurationOverviewPage_VersionLabel;
+ public static String SmooksConfigurationReaderPage_AddInputButtonLabel;
+ public static String SmooksConfigurationReaderPage_DeleteInputButtonLabel;
+ public static String SmooksConfigurationReaderPage_EditReaderDes;
+ public static String SmooksConfigurationReaderPage_InputSectionTitle;
+ public static String SmooksConfigurationReaderPage_InputTableExtensionLabel;
+ public static String SmooksConfigurationReaderPage_InputTablePathColumnLabel;
+ public static String SmooksConfigurationReaderPage_InputTableTypeColumnText;
+ public static String SmooksConfigurationReaderPage_NewReaderDes;
+ public static String SmooksConfigurationReaderPage_NewReaderTitle;
+ public static String SmooksConfigurationReaderPage_PageTitle;
+ public static String SmooksConfigurationReaderPage_ReaderSectionTitle;
+ public static String SmooksConfigurationResourceConfigPage_FormTitle;
+ public static String SmooksConfigurationResourceConfigPage_SectionTitle;
+ public static String SmooksMasterDetailBlock_AddButtonLabel;
+ public static String SmooksMasterDetailBlock_DownButtonLabel;
+ public static String SmooksMasterDetailBlock_RemoveButtonlabel;
+ public static String SmooksMasterDetailBlock_UpButtonLabel;
+ public static String SmooksMultiFormEditor_opetiontab_label;
+ public static String SmooksMultiFormEditor_optinepage_name;
+ public static String SmooksMultiFormEditor_processpage_name;
+ public static String SmooksMultiFormEditor_processtabel_label;
+ public static String SmooksReaderFormPage_AddButtonLabel;
+ public static String SmooksReaderFormPage_CantFindTypeErrorTitle;
+ public static String SmooksReaderFormPage_DeleteButtonLabel;
+ public static String SmooksReaderFormPage_Error_Creating_Input_Model;
+ public static String SmooksReaderFormPage_Input_Error;
+ public static String SmooksReaderFormPage_InputConfigurationSectionDes;
+ public static String SmooksReaderFormPage_InputConfigurationSectionTitle;
+ public static String SmooksReaderFormPage_InputDataSectionDes;
+ public static String SmooksReaderFormPage_InputDataSectionTitle;
+ public static String SmooksReaderFormPage_InputSectionTitle;
+ public static String SmooksReaderFormPage_InputTypeLabel;
+ public static String SmooksReaderFormPage_InputTypeSectionTitle;
+ public static String SmooksReaderFormPage_JavaReaderComboText;
+ public static String SmooksReaderFormPage_NoInputComboText;
+ public static String SmooksReaderFormPage_OpenFileErrorTitle;
+ public static String SmooksReaderFormPage_PathColumnText;
+ public static String SmooksReaderFormPage_RefreshLinkLabel;
+ public static String SmooksReaderFormPage_TypeColumnText;
+ public static String SmooksReaderFormPage_Warning_Specify_Input_Type;
+ public static String SmooksReaderFormPage_Warning_Specify_Sample_Data;
+ public static String SmooksReaderFormPage_XMLReaderComboText;
+ public static String SmooksReaderFormPage_XSDReaderComboText;
+ static {
+ // initialize resource bundle
+ NLS.initializeMessages(BUNDLE_NAME, Messages.class);
+ }
+
+ private Messages() {
+ }
+}
Property changes on:
branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/Messages.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksConfigFileHandle.java
===================================================================
---
branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksConfigFileHandle.java
(rev 0)
+++
branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksConfigFileHandle.java 2010-07-22
06:10:20 UTC (rev 23653)
@@ -0,0 +1,155 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.smooks.configuration.editors;
+
+import java.io.IOException;
+import java.io.StringReader;
+
+import javax.xml.parsers.ParserConfigurationException;
+import javax.xml.parsers.SAXParser;
+import javax.xml.parsers.SAXParserFactory;
+
+import org.xml.sax.Attributes;
+import org.xml.sax.InputSource;
+import org.xml.sax.SAXException;
+import org.xml.sax.SAXNotRecognizedException;
+import org.xml.sax.SAXNotSupportedException;
+import org.xml.sax.XMLReader;
+import org.xml.sax.helpers.DefaultHandler;
+
+/**
+ * @author Dart dpeng(a)redhat.com
+ *
+ */
+public class SmooksConfigFileHandle extends DefaultHandler {
+ private boolean correctContentFile = false;
+
+ // private static final String SMOOKS_RESOURCE_LIST = "smooks-resource-list";
//$NON-NLS-1$
+
+ private String[] smooksSpportURI = null;
+
+ private SAXParserFactory fFactory;
+
+ public SmooksConfigFileHandle() {
+ super();
+ smooksSpportURI = createSupportURI();
+ }
+
+ protected String[] createSupportURI() {
+ return new String[] { "http://www.milyn.org/xsd/smooks-1.1.xsd",
+ "http://www.milyn.org/xsd/smooks-1.0.xsd",
"http://www.milyn.org/xsd/smooks/freemarker-1.1.xsd" }; //$NON-NLS-1$
+ }
+
+ private final SAXParser createParser(SAXParserFactory parserFactory) throws
ParserConfigurationException,
+ SAXException, SAXNotRecognizedException, SAXNotSupportedException {
+ // Initialize the parser.
+ final SAXParser parser = parserFactory.newSAXParser();
+ final XMLReader reader = parser.getXMLReader();
+ // disable DTD validation
+ try {
+
reader.setFeature("http://xml.org/sax/features/validation", false);
//$NON-NLS-1$
+
reader.setFeature("http://apache.org/xml/features/nonvalidating/load...;,
false); //$NON-NLS-1$
+ } catch (SAXNotRecognizedException e) {
+ } catch (SAXNotSupportedException e) {
+ }
+ return parser;
+ }
+
+ private SAXParserFactory getFactory() {
+ synchronized (this) {
+ if (fFactory != null) {
+ return fFactory;
+ }
+ fFactory = SAXParserFactory.newInstance();
+ fFactory.setNamespaceAware(true);
+ }
+ return fFactory;
+ }
+
+ public boolean parseContents(InputSource contents) throws ParserConfigurationException,
IOException {
+ try {
+ fFactory = getFactory();
+ if (fFactory == null) {
+ return false;
+ }
+ final SAXParser parser = createParser(fFactory);
+ contents.setSystemId("/"); //$NON-NLS-1$
+ parser.parse(contents, this);
+ } catch (SAXException e) {
+ // stop parsing
+ }
+ return true;
+ }
+
+ /*
+ * Resolve external entity definitions to an empty string. This is to speed
+ * up processing of files with external DTDs. Not resolving the contents of
+ * the DTD is ok, as only the System ID of the DTD declaration is used.
+ *
+ * @see org.xml.sax.helpers.DefaultHandler#resolveEntity(java.lang.String,
+ * java.lang.String)
+ */
+ public InputSource resolveEntity(String publicId, String systemId) throws SAXException
{
+ return new InputSource(new StringReader("")); //$NON-NLS-1$
+ }
+
+ @Override
+ public void startPrefixMapping(String prefix, String uri) throws SAXException {
+ super.startPrefixMapping(prefix, uri);
+ if (containtSmooksURI(uri)) {
+ setCorrectContentFile(true);
+ throw new SAXException(Messages.SmooksConfigFileHandle_exception);
+ }
+ }
+
+ private boolean unSupportUIR(String uri) {
+ // if (EdiPackage.eNS_URI.equals(uri)) {
+ // return true;
+ // }
+ return false;
+ }
+
+ private boolean containtSmooksURI(String uri) {
+ for (int i = 0; i < smooksSpportURI.length; i++) {
+ if (uri != null) {
+ if (uri.trim().equalsIgnoreCase(smooksSpportURI[i])) {
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.xml.sax.ContentHandler#startElement(java.lang.String,
+ * java.lang.String, java.lang.String, org.xml.sax.Attributes)
+ */
+ public final void startElement(final String uri, final String elementName, final String
qualifiedName,
+ final Attributes attributes) throws SAXException {
+ if (isCorrectContentFile()) {
+ throw new SAXException(Messages.SmooksConfigFileHandle_exception);
+ }
+ if (containtSmooksURI(uri)) {
+ setCorrectContentFile(true);
+ throw new SAXException(Messages.SmooksConfigFileHandle_exception);
+ }
+ }
+
+ public boolean isCorrectContentFile() {
+ return correctContentFile;
+ }
+
+ public void setCorrectContentFile(boolean correctContentFile) {
+ this.correctContentFile = correctContentFile;
+ }
+}
Property changes on:
branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksConfigFileHandle.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksConfigfileContentDescriber.java
===================================================================
---
branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksConfigfileContentDescriber.java
(rev 0)
+++
branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksConfigfileContentDescriber.java 2010-07-22
06:10:20 UTC (rev 23653)
@@ -0,0 +1,203 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.smooks.configuration.editors;
+
+import java.io.BufferedReader;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.Reader;
+
+import javax.xml.parsers.ParserConfigurationException;
+
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IConfigurationElement;
+import org.eclipse.core.runtime.IExecutableExtension;
+import org.eclipse.core.runtime.QualifiedName;
+import org.eclipse.core.runtime.content.IContentDescription;
+import org.eclipse.core.runtime.content.ITextContentDescriber;
+import org.xml.sax.InputSource;
+
+/**
+ * @author Dart (dpeng(a)redhat.com) note : Many codes comes from
+ * org.eclipse.core.internal.content.XMLConentDescriber
+ */
+public class SmooksConfigfileContentDescriber implements ITextContentDescriber,
IExecutableExtension {
+
+ private static final QualifiedName[] SUPPORTED_OPTIONS = new QualifiedName[] {
IContentDescription.CHARSET,
+ IContentDescription.BYTE_ORDER_MARK };
+
+ private static final String ENCODING = "encoding="; //$NON-NLS-1$
+
+ private static final String XML_PREFIX = "<?xml "; //$NON-NLS-1$
+
+ /**
+ *
+ */
+ public SmooksConfigfileContentDescriber() {
+ // TODO Auto-generated constructor stub
+ }
+
+ public void setInitializationData(IConfigurationElement config, String propertyName,
Object data)
+ throws CoreException {
+
+ }
+
+ public int describeXMLFile(InputStream input, IContentDescription description) throws
IOException {
+ byte[] bom = getByteOrderMark(input);
+ String xmlDeclEncoding = "UTF-8"; //$NON-NLS-1$
+ input.reset();
+ if (bom != null) {
+ if (bom == IContentDescription.BOM_UTF_16BE)
+ xmlDeclEncoding = "UTF-16BE"; //$NON-NLS-1$
+ else if (bom == IContentDescription.BOM_UTF_16LE)
+ xmlDeclEncoding = "UTF-16LE"; //$NON-NLS-1$
+ // skip BOM to make comparison simpler
+ input.skip(bom.length);
+ // set the BOM in the description if requested
+ if (description != null &&
description.isRequested(IContentDescription.BYTE_ORDER_MARK))
+ description.setProperty(IContentDescription.BYTE_ORDER_MARK, bom);
+ }
+ byte[] xmlPrefixBytes = XML_PREFIX.getBytes(xmlDeclEncoding);
+ byte[] prefix = new byte[xmlPrefixBytes.length];
+ if (input.read(prefix) < prefix.length)
+ // there is not enough info to say anything
+ return INDETERMINATE;
+ for (int i = 0; i < prefix.length; i++)
+ if (prefix[i] != xmlPrefixBytes[i])
+ // we don't have a XMLDecl... there is not enough info to say
+ // anything
+ return INDETERMINATE;
+ if (description == null)
+ return VALID;
+ // describe charset if requested
+ if (description.isRequested(IContentDescription.CHARSET)) {
+ String fullXMLDecl = readFullXMLDecl(input, xmlDeclEncoding);
+ if (fullXMLDecl != null) {
+ String charset = getCharset(fullXMLDecl);
+ if (charset != null && !"UTF-8".equalsIgnoreCase(charset))
//$NON-NLS-1$
+ // only set property if value is not default (avoid using a
+ // non-default content description)
+ description.setProperty(IContentDescription.CHARSET, getCharset(fullXMLDecl));
+ }
+ }
+ return VALID;
+ }
+
+ public int describeXMLType(Reader input, IContentDescription description) throws
IOException {
+ BufferedReader reader = new BufferedReader(input);
+ String line = reader.readLine();
+ // end of stream
+ if (line == null)
+ return INDETERMINATE;
+ // XMLDecl should be the first string (no blanks allowed)
+ if (!line.startsWith(XML_PREFIX))
+ return INDETERMINATE;
+ if (description == null)
+ return VALID;
+ // describe charset if requested
+ if ((description.isRequested(IContentDescription.CHARSET)))
+ description.setProperty(IContentDescription.CHARSET, getCharset(line));
+ return VALID;
+ }
+
+ public int describe(InputStream input, IContentDescription description) throws
IOException {
+ if (this.describeXMLFile(input, description) == INVALID) {
+ return INVALID;
+ }
+ input.reset();
+ return checkCriteria(new InputSource(input));
+ }
+
+ private String readFullXMLDecl(InputStream input, String unicodeEncoding) throws
IOException {
+ byte[] xmlDecl = new byte[100];
+ int c = 0;
+ // looks for XMLDecl ending char (?)
+ int read = 0;
+ while (read < xmlDecl.length && (c = input.read()) != -1 && c !=
'?')
+ xmlDecl[read++] = (byte) c;
+ return c == '?' ? new String(xmlDecl, 0, read, unicodeEncoding) : null;
+ }
+
+ public int describe(Reader input, IContentDescription description) throws IOException {
+ if (this.describeXMLType(input, description) == INVALID) {
+ return INVALID;
+ }
+ input.reset();
+ return checkCriteria(new InputSource(input));
+ }
+
+ protected SmooksConfigFileHandle createHandle(){
+ return new SmooksConfigFileHandle();
+ }
+
+ /**
+ * To check the namespaces of the file
+ *
+ * @param contents
+ * @return
+ * @throws IOException
+ */
+ private int checkCriteria(InputSource contents) throws IOException {
+ SmooksConfigFileHandle handle = createHandle();
+ try {
+ if (!handle.parseContents(contents)) {
+ return INDETERMINATE;
+ }
+ } catch (ParserConfigurationException e) {
+ return INDETERMINATE;
+ }
+ if (handle.isCorrectContentFile()) {
+ return VALID;
+ }
+ return INDETERMINATE;
+ }
+
+ private String getCharset(String firstLine) {
+ int encodingPos = firstLine.indexOf(ENCODING);
+ if (encodingPos == -1)
+ return null;
+ char quoteChar = '"';
+ int firstQuote = firstLine.indexOf(quoteChar, encodingPos);
+ if (firstQuote == -1) {
+ quoteChar = '\'';
+ firstQuote = firstLine.indexOf(quoteChar, encodingPos);
+ }
+ if (firstQuote == -1 || firstLine.length() == firstQuote - 1)
+ return null;
+ int secondQuote = firstLine.indexOf(quoteChar, firstQuote + 1);
+ if (secondQuote == -1)
+ return null;
+ return firstLine.substring(firstQuote + 1, secondQuote);
+ }
+
+ public QualifiedName[] getSupportedOptions() {
+ return SUPPORTED_OPTIONS;
+ }
+
+ byte[] getByteOrderMark(InputStream input) throws IOException {
+ int first = input.read();
+ if (first == 0xEF) {
+ // look for the UTF-8 Byte Order Mark (BOM)
+ int second = input.read();
+ int third = input.read();
+ if (second == 0xBB && third == 0xBF)
+ return IContentDescription.BOM_UTF_8;
+ } else if (first == 0xFE) {
+ // look for the UTF-16 BOM
+ if (input.read() == 0xFF)
+ return IContentDescription.BOM_UTF_16BE;
+ } else if (first == 0xFF) {
+ if (input.read() == 0xFE)
+ return IContentDescription.BOM_UTF_16LE;
+ }
+ return null;
+ }
+}
Property changes on:
branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksConfigfileContentDescriber.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/messages.properties
===================================================================
---
branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/messages.properties
(rev 0)
+++
branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/messages.properties 2010-07-22
06:10:20 UTC (rev 23653)
@@ -0,0 +1,79 @@
+ChildrenSelectionWizardPage_selectchilderror=Please choose a child type
+ChildrenSelectionWizardPage_wizardtitle=Select a Child's Type
+FileSelectionWizard_WizardPageName=File Selection
+FileSelectionWizard_WizardTitle=File Selection
+FileSelectionWizardPage_PageDescription=Select the file from workspace or from file
system.
+FileSelectionWizardPage_PageTitle=File Selection
+ModelChildrenTablePanelCreator_DownButtonLable=Down
+ModelChildrenTablePanelCreator_NewButtonLabel=New
+ModelChildrenTablePanelCreator_PropertiesButtonLabel=Properties..
+ModelChildrenTablePanelCreator_RemoveButtonLabel=Remove
+ModelChildrenTablePanelCreator_UpButtonLabel=Up
+NewOrModifySmooksElementDialog_CloseButtonLabel=Close
+PropertyUICreator_browsebutton=Browse
+PropertyUICreator_namelabel=Name
+PropertyUICreator_nslabel=Namespace
+SelectorCreationDialog_AddInputLinkLabel=Click to add Input Data
+SelectorCreationDialog_DialogTitle=Selector generate dialog
+SelectorCreationDialog_FullPathPolicy=Full Path
+SelectorCreationDialog_InputViewerlabel=Input Message:
+SelectorCreationDialog_OnlyNamePolicy=Only Name
+SelectorCreationDialog_PolicyLabel=Selector generate policy :
+SelectorCreationDialog_SperatorCharlabel=Sperator Char :
+SmooksActionBarContributor_33=
+SmooksActionBarContributor_AddSmooksReasourceActionLabel=Add Smooks Resource
+SmooksActionBarContributor_AddSmooksResourceActionLabel=Add Smooks Resource
+SmooksActionBarContributor_CreateSiblingActionLabel=Create Sibling
+SmooksActionBarContributor_NewSiblingActionLabel=New Sibling
+SmooksActionBarContributor_OpenProperyViewActionLabel=Show Properties
+SmooksActionBarContributor_RefreshViewActionLabel=Refresh Viewer
+SmooksActionBarContributor_ValidateActionLabel=Validate
+SmooksConfigFileHandle_exception=Stop parsing
+SmooksConfigurationOverviewPage_ConfigurationSectionTitle=Smooks configuration
+SmooksConfigurationOverviewPage_FilterSettingSectionTitle=Filter Settings
+SmooksConfigurationOverviewPage_FilterTypeLabel=Stream Filter Type:
+SmooksConfigurationOverviewPage_SerializationLabel=Default Serialization is On:
+SmooksConfigurationOverviewPage_VersionLabel=Smooks Platform Version :
+SmooksConfigurationReaderPage_AddInputButtonLabel=Add
+SmooksConfigurationReaderPage_DeleteInputButtonLabel=Delete
+SmooksConfigurationReaderPage_EditReaderDes=Edit the smooks readers
+SmooksConfigurationReaderPage_InputSectionTitle=Input Data
+SmooksConfigurationReaderPage_InputTableExtensionLabel=Extension Paramers
+SmooksConfigurationReaderPage_InputTablePathColumnLabel=Path
+SmooksConfigurationReaderPage_InputTableTypeColumnText=Type
+SmooksConfigurationReaderPage_NewReaderDes=create new smooks reader
+SmooksConfigurationReaderPage_NewReaderTitle=New Smooks Reader
+SmooksConfigurationReaderPage_PageTitle=Reader/Input
+SmooksConfigurationReaderPage_ReaderSectionTitle=Reader
+SmooksConfigurationResourceConfigPage_FormTitle=Message Filter
+SmooksConfigurationResourceConfigPage_SectionTitle=Message Filtering Resources
+SmooksMasterDetailBlock_AddButtonLabel=Add...
+SmooksMasterDetailBlock_DownButtonLabel=Down
+SmooksMasterDetailBlock_RemoveButtonlabel=Remove
+SmooksMasterDetailBlock_UpButtonLabel=Up
+SmooksMultiFormEditor_opetiontab_label=Options
+SmooksMultiFormEditor_optinepage_name=Options
+SmooksMultiFormEditor_processpage_name=Processing
+SmooksMultiFormEditor_processtabel_label=Process
+SmooksReaderFormPage_AddButtonLabel=Add
+SmooksReaderFormPage_CantFindTypeErrorTitle=Can't find type
+SmooksReaderFormPage_DeleteButtonLabel=Delete
+SmooksReaderFormPage_Error_Creating_Input_Model=Check Input Task configuration. Error
creating Input Model from Sample Input Data. Error: "
+SmooksReaderFormPage_Input_Error=Input Error
+SmooksReaderFormPage_InputConfigurationSectionDes=Specify reader details
+SmooksReaderFormPage_InputConfigurationSectionTitle=Input Configuration
+SmooksReaderFormPage_InputDataSectionDes=Select a sample data file
+SmooksReaderFormPage_InputDataSectionTitle=Input Data
+SmooksReaderFormPage_InputSectionTitle=Input Model View
+SmooksReaderFormPage_InputTypeLabel=Input Type:
+SmooksReaderFormPage_InputTypeSectionTitle=Input Type
+SmooksReaderFormPage_JavaReaderComboText=Java
+SmooksReaderFormPage_NoInputComboText=No Input
+SmooksReaderFormPage_OpenFileErrorTitle=Open File
+SmooksReaderFormPage_PathColumnText=Path
+SmooksReaderFormPage_RefreshLinkLabel=Refresh
+SmooksReaderFormPage_TypeColumnText=Type
+SmooksReaderFormPage_Warning_Specify_Input_Type=Input type should be specified.
+SmooksReaderFormPage_Warning_Specify_Sample_Data=Specify sample data in the Input Data
section.
+SmooksReaderFormPage_XMLReaderComboText=XML
+SmooksReaderFormPage_XSDReaderComboText=XSD/WSDL
Property changes on:
branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/messages.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/wizards/Messages.java
===================================================================
---
branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/wizards/Messages.java
(rev 0)
+++
branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/wizards/Messages.java 2010-07-22
06:10:20 UTC (rev 23653)
@@ -0,0 +1,26 @@
+package org.jboss.tools.smooks.configuration.wizards;
+
+import org.eclipse.osgi.util.NLS;
+
+public class Messages extends NLS {
+ private static final String BUNDLE_NAME =
"org.jboss.tools.smooks.configuration.wizards.messages"; //$NON-NLS-1$
+ public static String NewSmooksElementWizard_Smooks_Elements;
+ public static String NewSmooksElementWizardPage_Page_Description;
+ public static String NewSmooksElementWizardPage_Page_Title;
+ public static String SmooksConfigurationFileNewWizard_0;
+ public static String SmooksConfigurationFileNewWizard_ErrorDialogTitle;
+ public static String SmooksConfigurationFileNewWizard_PageName;
+/* public static String SmooksConfigurationFileNewWizard_VersionPageName; */
+ public static String SmooksFileContainerSelectionPage_Page_Description;
+ public static String SmooksFileContainerSelectionPage_Page_Title;
+ public static String SmooksVersionSelectionPage_Label_Smooks_Version;
+ public static String SmooksVersionSelectionPage_Page_Description;
+ public static String SmooksVersionSelectionPage_Page_Title;
+ static {
+ // initialize resource bundle
+ NLS.initializeMessages(BUNDLE_NAME, Messages.class);
+ }
+
+ private Messages() {
+ }
+}
Property changes on:
branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/wizards/Messages.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/wizards/SmooksConfigurationFileNewWizard.java
===================================================================
---
branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/wizards/SmooksConfigurationFileNewWizard.java
(rev 0)
+++
branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/wizards/SmooksConfigurationFileNewWizard.java 2010-07-22
06:10:20 UTC (rev 23653)
@@ -0,0 +1,215 @@
+package org.jboss.tools.smooks.configuration.wizards;
+
+import java.io.ByteArrayInputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.lang.reflect.InvocationTargetException;
+
+import org.eclipse.core.resources.IContainer;
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.resources.IWorkspaceRoot;
+import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.core.runtime.Path;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.jface.dialogs.MessageDialog;
+import org.eclipse.jface.operation.IRunnableWithProgress;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.jface.wizard.Wizard;
+import org.eclipse.ui.INewWizard;
+import org.eclipse.ui.IWorkbench;
+import org.eclipse.ui.IWorkbenchPage;
+import org.eclipse.ui.IWorkbenchWizard;
+import org.eclipse.ui.PartInitException;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.part.FileEditorInput;
+import org.jboss.tools.smooks.configuration.SmooksConfigurationActivator;
+import org.jboss.tools.smooks.configuration.SmooksConstants;
+//import org.jboss.tools.smooks.configuration.editors.SmooksMultiFormEditor;
+
+/**
+ *
+ * @author Dart Peng (dpeng(a)redhat.com) Date Apr 1, 2009
+ */
+public class SmooksConfigurationFileNewWizard extends Wizard implements INewWizard {
+ private SmooksFileContainerSelectionPage containerSelectionPage;
+// private SmooksVersionSelectionPage versionSelectionPage;
+ private ISelection selection;
+
+ /**
+ * Constructor for SampleNewWizard.
+ */
+ public SmooksConfigurationFileNewWizard() {
+ super();
+ setNeedsProgressMonitor(true);
+ setDefaultPageImageDescriptor(SmooksConfigurationActivator.getImageDescriptor(Messages.SmooksConfigurationFileNewWizard_0));
+ }
+
+ /**
+ * Adding the page to the wizard.
+ */
+
+ public void addPages() {
+ containerSelectionPage = new
SmooksFileContainerSelectionPage(Messages.SmooksConfigurationFileNewWizard_PageName,
+ (IStructuredSelection) selection);
+ addPage(containerSelectionPage);
+
+// versionSelectionPage = new
SmooksVersionSelectionPage(Messages.SmooksConfigurationFileNewWizard_VersionPageName);
+// addPage(versionSelectionPage);
+ }
+
+ /**
+ * This method is called when 'Finish' button is pressed in the wizard. We
+ * will create an operation and run it using wizard as execution context.
+ */
+ public boolean performFinish() {
+ final IPath containerPath = containerSelectionPage.getContainerFullPath();
+ final String fileName = containerSelectionPage.getFileName();
+ final String version = SmooksConstants.VERSION_1_2;
+ IRunnableWithProgress op = new IRunnableWithProgress() {
+ public void run(IProgressMonitor monitor) throws InvocationTargetException {
+ try {
+ doFinish(containerPath, fileName, monitor, version);
+ } catch (CoreException e) {
+ throw new InvocationTargetException(e);
+ } finally {
+ monitor.done();
+ }
+ }
+ };
+ try {
+ getContainer().run(true, false, op);
+ } catch (InterruptedException e) {
+ return false;
+ } catch (InvocationTargetException e) {
+ Throwable realException = e.getTargetException();
+ MessageDialog.openError(getShell(),
Messages.SmooksConfigurationFileNewWizard_ErrorDialogTitle, realException.getMessage());
+ return false;
+ }
+ return true;
+ }
+
+ /**
+ * The worker method. It will find the container, create the file if missing
+ * or just replace its contents, and open the editor on the newly created
+ * file.
+ */
+
+ private void doFinish(IPath containerPath, String fileName, IProgressMonitor monitor,
String version)
+ throws CoreException {
+ // create a sample file
+ monitor.beginTask("Creating " + fileName, 2); //$NON-NLS-1$
+ IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
+ IResource resource = root.findMember(containerPath);
+ IContainer container = null;
+ if (resource.exists() && resource instanceof IContainer) {
+ container = (IContainer) resource;
+ }
+ if (container == null)
+ throwCoreException("Container \"" + containerPath.toPortableString() +
"\" does not exist."); //$NON-NLS-1$ //$NON-NLS-2$
+ final IFile configFile = container.getFile(new Path(fileName));
+ // String extFileName = fileName + ".ext";
+ // final IFile extFile = container.getFile(new Path(extFileName));
+ try {
+ // create config file
+ InputStream stream = openContentStream(version);
+ if (configFile.exists()) {
+ configFile.setContents(stream, true, true, monitor);
+ } else {
+ configFile.create(stream, true, monitor);
+ }
+ stream.close();
+ // create ext file:
+ // createExtentionFile(extFile, version, null, monitor);
+ } catch (IOException e) {
+ SmooksConfigurationActivator.getDefault().log(e);
+ }
+ monitor.worked(1);
+ monitor.setTaskName("Opening file with Smooks Editor."); //$NON-NLS-1$
+ final String fversion = version;
+ getShell().getDisplay().asyncExec(new Runnable() {
+ public void run() {
+ IWorkbenchPage page =
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
+ FileEditorInput editorInput = new FileEditorInput(configFile);
+ try {
+ if ( fversion.equals(SmooksConstants.VERSION_1_2)) {
+ page.openEditor(editorInput,
"org.jboss.tools.smooks.configuration.editors.MultiPageEditor", true);
+ }
+ } catch (PartInitException e) {
+ SmooksConfigurationActivator.getDefault().log(e);
+ }
+ }
+ });
+ monitor.worked(1);
+ }
+
+ public static void createExtentionFile(IFile file, String version, String inputType,
IProgressMonitor monitor)
+ throws CoreException, IOException {
+ if (monitor == null) {
+ monitor = new NullProgressMonitor();
+ }
+ InputStream stream1 = createExtContentStream(version, inputType);
+ if (file.exists()) {
+ file.setContents(stream1, true, true, monitor);
+ } else {
+ file.create(stream1, true, monitor);
+ }
+ stream1.close();
+ }
+
+ public static InputStream createExtContentStream(String version, String inputType) {
+ String typeContents = null;
+ if (inputType != null) {
+ typeContents = "inputType = \"" + inputType + "\"";
//$NON-NLS-1$ //$NON-NLS-2$
+ }
+ String contents = ""; //$NON-NLS-1$
+ if (typeContents == null) {
+ contents = "<?xml version=\"1.0\"
encoding=\"UTF-8\"?>\n"; // + " <smooks-graphics-ext
platformVersion = \"" //$NON-NLS-1$
+// + version + "\"
xmlns=\"http://www.jboss.org/jbosstools/smooks/smooks-graphics-ext.x...;
+ } else {
+ contents = "<?xml version=\"1.0\"
encoding=\"UTF-8\"?>\n";// + " <smooks-graphics-ext
platformVersion = \"" //$NON-NLS-1$
+// + version + "\" " + typeContents
+// + "
xmlns=\"http://www.jboss.org/jbosstools/smooks/smooks-graphics-ext.x...;
+ }
+ return new ByteArrayInputStream(contents.getBytes());
+ }
+
+ /**
+ * We will initialize file contents with different smooks config file
+ * version.
+ */
+
+ private InputStream openContentStream(String version) {
+ String contents = ""; //$NON-NLS-1$
+ if (SmooksConstants.VERSION_1_2.equals(version)) {
+ contents = "<?xml version=\"1.0\"
encoding=\"UTF-8\"?>\n" //$NON-NLS-1$
+ + "<smooks-resource-list
xmlns=\"http://www.milyn.org/xsd/smooks-1.1.xsd\">\n"// xmlns:graph =
\"http://www.jboss.org/jbosstools/smooks/smooks-graphics-ext.xsd\">\n"//$NON-NLS-1$
+ + " <params>\n"//$NON-NLS-1$
+ + " <param
name=\"stream.filter.type\">SAX</param>\n"//$NON-NLS-1$
+ + " </params>\n"//$NON-NLS-1$
+ + "</smooks-resource-list>"; //$NON-NLS-1$
+ }
+ return new ByteArrayInputStream(contents.getBytes());
+ }
+
+ private void throwCoreException(String message) throws CoreException {
+ IStatus status = new Status(IStatus.ERROR, SmooksConfigurationActivator.PLUGIN_ID,
IStatus.OK, message, null);
+ throw new CoreException(status);
+ }
+
+ /**
+ * We will accept the selection in the workbench to see if we can initialize
+ * from it.
+ *
+ * @see IWorkbenchWizard#init(IWorkbench, IStructuredSelection)
+ */
+ public void init(IWorkbench workbench, IStructuredSelection selection) {
+ this.selection = selection;
+ }
+}
\ No newline at end of file
Property changes on:
branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/wizards/SmooksConfigurationFileNewWizard.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/wizards/SmooksFileContainerSelectionPage.java
===================================================================
---
branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/wizards/SmooksFileContainerSelectionPage.java
(rev 0)
+++
branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/wizards/SmooksFileContainerSelectionPage.java 2010-07-22
06:10:20 UTC (rev 23653)
@@ -0,0 +1,26 @@
+package org.jboss.tools.smooks.configuration.wizards;
+
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.dialogs.WizardNewFileCreationPage;
+
+/**
+ *
+ * @author Dart Peng (dpeng(a)redhat.com) Date Apr 1, 2009
+ */
+public class SmooksFileContainerSelectionPage extends WizardNewFileCreationPage {
+
+ public SmooksFileContainerSelectionPage(String pageName, IStructuredSelection selection)
{
+ super(pageName, selection);
+ setTitle(Messages.SmooksFileContainerSelectionPage_Page_Title);
+ setDescription(Messages.SmooksFileContainerSelectionPage_Page_Description);
+ setFileExtension("xml"); //$NON-NLS-1$
+ setFileName("smooks-config.xml"); //$NON-NLS-1$
+ }
+
+ @Override
+ public void createControl(Composite parent) {
+ super.createControl(parent);
+ validatePage();
+ }
+}
\ No newline at end of file
Property changes on:
branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/wizards/SmooksFileContainerSelectionPage.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/wizards/messages.properties
===================================================================
---
branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/wizards/messages.properties
(rev 0)
+++
branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/wizards/messages.properties 2010-07-22
06:10:20 UTC (rev 23653)
@@ -0,0 +1,12 @@
+NewSmooksElementWizard_Smooks_Elements=Smooks Elements
+NewSmooksElementWizardPage_Page_Description=Add Smooks Elements
+NewSmooksElementWizardPage_Page_Title=Add Child
+SmooksConfigurationFileNewWizard_0=icons/smooks-wiz.gif
+SmooksConfigurationFileNewWizard_ErrorDialogTitle=Error
+SmooksConfigurationFileNewWizard_PageName=Smooks Configuration File
+#SmooksConfigurationFileNewWizard_VersionPageName=Smooks Version Selection
+SmooksFileContainerSelectionPage_Page_Description=Create a new Smooks configuration
file.
+SmooksFileContainerSelectionPage_Page_Title=Smooks Configuration File Wizard Page
+SmooksVersionSelectionPage_Label_Smooks_Version=Smooks platform version
+SmooksVersionSelectionPage_Page_Description=Please select Smooks configuration file
version
+SmooksVersionSelectionPage_Page_Title=Smooks configuration file version selection
Property changes on:
branches/smooks-dmb/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/wizards/messages.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain