JBoss Tools SVN: r16400 - in trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor: META-INF and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: vyemialyanchyk
Date: 2009-07-06 09:17:34 -0400 (Mon, 06 Jul 2009)
New Revision: 16400
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/META-INF/MANIFEST.MF
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/build.properties
Log:
https://jira.jboss.org/jira/browse/JBIDE-4524
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/META-INF/MANIFEST.MF
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/META-INF/MANIFEST.MF 2009-07-06 11:50:08 UTC (rev 16399)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/META-INF/MANIFEST.MF 2009-07-06 13:17:34 UTC (rev 16400)
@@ -3,7 +3,7 @@
Bundle-Name: %Bundle-Name.0
Bundle-SymbolicName: org.jboss.tools.hibernate.ui.veditor;singleton:=true
Bundle-Version: 2.0.0
-Bundle-ClassPath: view.jar
+Bundle-ClassPath: veditor.jar
Bundle-Activator: org.jboss.tools.hibernate.ui.veditor.ViewPlugin
Bundle-Vendor: %Bundle-Vendor.0
Bundle-Localization: plugin
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/build.properties
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/build.properties 2009-07-06 11:50:08 UTC (rev 16399)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/build.properties 2009-07-06 13:17:34 UTC (rev 16400)
@@ -1,8 +1,7 @@
-source.view.jar = src/
-output.view.jar = bin/
-bin.includes = plugin.xml,\
- META-INF/,\
+source.veditor.jar = src/
+output.veditor.jar = bin/
+bin.includes = plugin.xml,\
+ META-INF/,\
about.html,\
- view.jar,\
- images/,\
+ veditor.jar,\
plugin.properties
14 years, 10 months
JBoss Tools SVN: r16398 - trunk/hibernatetools/tests.
by jbosstools-commits@lists.jboss.org
Author: vyemialyanchyk
Date: 2009-07-06 07:38:36 -0400 (Mon, 06 Jul 2009)
New Revision: 16398
Added:
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.test/
Removed:
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.veditor.test/
Log:
Copied: trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.test (from rev 16394, trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.veditor.test)
14 years, 10 months
JBoss Tools SVN: r16397 - trunk/hibernatetools/plugins.
by jbosstools-commits@lists.jboss.org
Author: vyemialyanchyk
Date: 2009-07-06 07:28:21 -0400 (Mon, 06 Jul 2009)
New Revision: 16397
Added:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/
Removed:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor2/
Log:
Copied: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor (from rev 16395, trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor2)
14 years, 10 months
JBoss Tools SVN: r16396 - trunk/hibernatetools/plugins.
by jbosstools-commits@lists.jboss.org
Author: vyemialyanchyk
Date: 2009-07-06 07:27:13 -0400 (Mon, 06 Jul 2009)
New Revision: 16396
Added:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/
Removed:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/
Log:
Copied: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui (from rev 16395, trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor)
14 years, 10 months
JBoss Tools SVN: r16395 - trunk/hibernatetools/plugins.
by jbosstools-commits@lists.jboss.org
Author: vyemialyanchyk
Date: 2009-07-06 06:32:43 -0400 (Mon, 06 Jul 2009)
New Revision: 16395
Added:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor2/
Removed:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/
Log:
Copied: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor2 (from rev 16394, trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui)
14 years, 10 months
JBoss Tools SVN: r16393 - in trunk/hibernatetools/plugins: org.jboss.tools.hibernate.ui and 9 other directories.
by jbosstools-commits@lists.jboss.org
Author: vyemialyanchyk
Date: 2009-07-06 05:44:08 -0400 (Mon, 06 Jul 2009)
New Revision: 16393
Added:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/.classpath
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/.cvsignore
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/.options
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/.project
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/.settings/
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/.settings/org.eclipse.jdt.core.prefs
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/META-INF/
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/META-INF/MANIFEST.MF
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/about.html
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/build.properties
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/plugin.properties
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/plugin.xml
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/tools/
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/tools/hibernate/
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/tools/hibernate/ui/
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/tools/hibernate/ui/veditor/
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/tools/hibernate/ui/veditor/ViewPlugin.java
Log:
Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/.classpath
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/.classpath (rev 0)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/.classpath 2009-07-06 09:44:08 UTC (rev 16393)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/.cvsignore
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/.cvsignore (rev 0)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/.cvsignore 2009-07-06 09:44:08 UTC (rev 16393)
@@ -0,0 +1 @@
+bin
Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/.options
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/.options (rev 0)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/.options 2009-07-06 09:44:08 UTC (rev 16393)
@@ -0,0 +1,3 @@
+org.jboss.tools.hibernate.view/debug=false
+org.jboss.tools.hibernate.view/debug/view=false
+org.jboss.tools.hibernate.view/debug/view/wizard=false
\ No newline at end of file
Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/.project
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/.project (rev 0)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/.project 2009-07-06 09:44:08 UTC (rev 16393)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.hibernate.ui.veditor</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.jdt.core.javanature</nature>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ </natures>
+</projectDescription>
Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/.settings/org.eclipse.jdt.core.prefs 2009-07-06 09:44:08 UTC (rev 16393)
@@ -0,0 +1 @@
+org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=warning
Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/META-INF/MANIFEST.MF
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/META-INF/MANIFEST.MF (rev 0)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/META-INF/MANIFEST.MF 2009-07-06 09:44:08 UTC (rev 16393)
@@ -0,0 +1,13 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %Bundle-Name.0
+Bundle-SymbolicName: org.jboss.tools.hibernate.ui.veditor;singleton:=true
+Bundle-Version: 2.0.0
+Bundle-ClassPath: view.jar
+Bundle-Activator: org.jboss.tools.hibernate.ui.veditor.ViewPlugin
+Bundle-Vendor: %Bundle-Vendor.0
+Bundle-Localization: plugin
+Export-Package: org.jboss.tools.hibernate.ui.veditor
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime
+Bundle-ActivationPolicy: lazy
Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/about.html
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/about.html (rev 0)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/about.html 2009-07-06 09:44:08 UTC (rev 16393)
@@ -0,0 +1,34 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<HTML>
+
+<head>
+<title>About</title>
+<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
+</head>
+
+<BODY lang="EN-US">
+
+<H3>About This Content</H3>
+
+<P>©2007 Red Hat, Inc. All rights reserved</P>
+
+<H3>License</H3>
+
+<P>Red Hat Inc., through its JBoss division, makes available all content in this plug-in
+("Content"). Unless otherwise indicated below, the Content is provided to you
+under the terms and conditions of the Eclipse Public License Version 1.0
+("EPL"). A copy of the EPL is available at
+<A href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/org/documents/epl-v10.php</A>.
+For purposes of the EPL, "Program" will mean the Content.</P>
+
+<P>If you did not receive this Content directly from Red Hat Inc., the
+Content is being redistributed by another party ("Redistributor") and different
+terms and conditions may apply to your use of any object code in the Content.
+Check the Redistributor's license that was provided with the Content. If no such
+license exists, contact the Redistributor. Unless otherwise indicated below, the
+terms and conditions of the EPL still apply to any source code in the Content
+and such source code may be obtained at
+ <A href="http://www.jboss.org/tools">http://www.jboss.org/tools</A>.</P>
+
+</BODY>
+</HTML>
\ No newline at end of file
Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/build.properties
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/build.properties (rev 0)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/build.properties 2009-07-06 09:44:08 UTC (rev 16393)
@@ -0,0 +1,8 @@
+source.view.jar = src/
+output.view.jar = bin/
+bin.includes = plugin.xml,\
+ META-INF/,\
+ about.html,\
+ view.jar,\
+ images/,\
+ plugin.properties
Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/plugin.properties
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/plugin.properties (rev 0)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/plugin.properties 2009-07-06 09:44:08 UTC (rev 16393)
@@ -0,0 +1,10 @@
+actionSets_license.label=ORM Studio License
+actionSets_license.description=ORM Studio License
+actionSets.license.label=&ORM Studio License
+
+popupMenus.action.addOrmNature=Add Hibernate Capabilities...
+popupMenus.action.removeOrmNature=Remove Hibernate Capabilities...
+
+
+Bundle-Vendor.0 = JBoss by Red Hat
+Bundle-Name.0 = Veditor Plug-in
\ No newline at end of file
Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/plugin.xml
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/plugin.xml (rev 0)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/plugin.xml 2009-07-06 09:44:08 UTC (rev 16393)
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8"?><?eclipse version="3.0"?>
+<plugin>
+</plugin>
Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/tools/hibernate/ui/veditor/ViewPlugin.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/tools/hibernate/ui/veditor/ViewPlugin.java (rev 0)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/tools/hibernate/ui/veditor/ViewPlugin.java 2009-07-06 09:44:08 UTC (rev 16393)
@@ -0,0 +1,56 @@
+/*******************************************************************************
+ * Copyright (c) 2007 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.hibernate.ui.veditor;
+
+import org.eclipse.ui.IWorkbench;
+import org.eclipse.ui.IWorkbenchPage;
+import org.eclipse.ui.IWorkbenchWindow;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The main plugin class to be used in the desktop.
+ */
+public class ViewPlugin extends AbstractUIPlugin {
+
+ public static final String ID = "org.jboss.tools.hibernate.ui.veditor"; //$NON-NLS-1$
+
+ private static ViewPlugin plugin;
+
+ public ViewPlugin() {
+ super();
+ setPlugin(this);
+ }
+
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ }
+
+ public void stop(BundleContext context) throws Exception {
+ super.stop(context);
+ setPlugin(null);
+ }
+
+ public static ViewPlugin getDefault() {
+ return plugin;
+ }
+ private static void setPlugin(ViewPlugin plugin) {
+ ViewPlugin.plugin = plugin;
+ }
+
+ public static IWorkbenchPage getPage(){
+ IWorkbench workbench = PlatformUI.getWorkbench();
+ IWorkbenchWindow window = workbench.getActiveWorkbenchWindow();
+ return window.getActivePage();
+ }
+
+}
\ No newline at end of file
14 years, 10 months
JBoss Tools SVN: r16392 - in trunk/smooks/plugins/org.jboss.tools.smooks.ui: src/org/jboss/tools/smooks/configuration/editors and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: DartPeng
Date: 2009-07-06 05:02:08 -0400 (Mon, 06 Jul 2009)
New Revision: 16392
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/csv/CSVDataParser.java
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/META-INF/MANIFEST.MF
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SelectoreSelectionDialog.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/csv/CSVDataConfigurationWizardPage.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/csv/CSVDataPathWizardPage.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/csv/CSVInputDataWizard.java
Log:
JBIDE-4551
Done
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/META-INF/MANIFEST.MF
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/META-INF/MANIFEST.MF 2009-07-06 02:16:20 UTC (rev 16391)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/META-INF/MANIFEST.MF 2009-07-06 09:02:08 UTC (rev 16392)
@@ -25,7 +25,8 @@
org.eclipse.wst.wsdl,
org.apache.xerces,
javax.wsdl,
- org.jboss.tools.smooks.runtime;bundle-version="1.1.2"
+ org.jboss.tools.smooks.runtime;bundle-version="1.1.2",
+ org.eclipse.gef
Bundle-ActivationPolicy: lazy
Bundle-Localization: plugin
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SelectoreSelectionDialog.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SelectoreSelectionDialog.java 2009-07-06 02:16:20 UTC (rev 16391)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SelectoreSelectionDialog.java 2009-07-06 09:02:08 UTC (rev 16392)
@@ -43,6 +43,7 @@
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.eclipse.ui.forms.widgets.Hyperlink;
import org.jboss.tools.smooks.configuration.SmooksConfigurationActivator;
+import org.jboss.tools.smooks.configuration.editors.csv.CSVDataParser;
import org.jboss.tools.smooks.configuration.editors.javabean.JavaBeanModel;
import org.jboss.tools.smooks.configuration.editors.javabean.JavaBeanModelFactory;
import org.jboss.tools.smooks.configuration.editors.uitls.JsonInputDataParser;
@@ -253,6 +254,17 @@
String path = SmooksModelUtils.getInputPath(inputType);
if (type != null && path != null) {
path = path.trim();
+ if (SmooksModelUtils.INPUT_TYPE_CSV.equals(type)) {
+ CSVDataParser parser = new CSVDataParser();
+ try {
+ TagList tl = parser.parseCSV(path, inputType, smooksResourceListType);
+ if (tl != null) {
+ list.addAll(((TagList) tl).getChildren());
+ }
+ } catch (Throwable t) {
+ t.printStackTrace();
+ }
+ }
if (SmooksModelUtils.INPUT_TYPE_JSON.equals(type)) {
try {
JsonInputDataParser parser = new JsonInputDataParser();
@@ -265,7 +277,7 @@
}
} catch (Throwable tt) {
// ignore
-// SmooksConfigurationActivator.getDefault().log(tt);
+ // SmooksConfigurationActivator.getDefault().log(tt);
}
}
if (SmooksModelUtils.INPUT_TYPE_JAVA.equals(type)) {
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/csv/CSVDataConfigurationWizardPage.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/csv/CSVDataConfigurationWizardPage.java 2009-07-06 02:16:20 UTC (rev 16391)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/csv/CSVDataConfigurationWizardPage.java 2009-07-06 09:02:08 UTC (rev 16392)
@@ -3,14 +3,20 @@
*/
package org.jboss.tools.smooks.configuration.editors.csv;
+import java.io.BufferedReader;
+import java.io.FileReader;
import java.util.ArrayList;
+import java.util.Iterator;
import java.util.List;
+import org.eclipse.draw2d.ColorConstants;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.viewers.CellEditor;
import org.eclipse.jface.viewers.ICellModifier;
import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.jface.viewers.ITableColorProvider;
+import org.eclipse.jface.viewers.ITableFontProvider;
import org.eclipse.jface.viewers.ITableLabelProvider;
import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.jface.viewers.TableViewer;
@@ -22,6 +28,9 @@
import org.eclipse.swt.events.ModifyListener;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.SelectionListener;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.Font;
+import org.eclipse.swt.graphics.FontData;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
@@ -30,8 +39,8 @@
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Item;
import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.TableColumn;
import org.eclipse.swt.widgets.Text;
-import org.jboss.tools.smooks.configuration.editors.json.JsonDataConfiguraitonWizardPage.KeyValueModel;
import org.jboss.tools.smooks.configuration.editors.uitls.SmooksUIUtils;
import org.jboss.tools.smooks.model.csv.CsvReader;
import org.jboss.tools.smooks.model.csv.impl.CsvReaderImpl;
@@ -57,13 +66,15 @@
private Button removeButton;
private Button createCSVReaderButton;
+ private String filePath = null;
+
private boolean useAvailabelReader = false;
private boolean hasReader = false;
private boolean createCSVReader = true;
- private String speartor;
+ private String separator;
private String skipLines;
@@ -178,16 +189,28 @@
fieldsComposite.setLayout(kgl);
gd = new GridData(GridData.FILL_BOTH);
+ gd.heightHint = 200;
- fieldsViewer = new TableViewer(fieldsComposite, SWT.BORDER | SWT.MULTI);
+ fieldsViewer = new TableViewer(fieldsComposite, SWT.BORDER | SWT.MULTI | SWT.FULL_SELECTION);
fieldsViewer.getControl().setLayoutData(gd);
-// fieldsViewer.getTable().setHeaderVisible(true);
+ // fieldsViewer.getTable().setHeaderVisible(true);
fieldsViewer.getTable().setLinesVisible(true);
fieldsViewer.setContentProvider(new FieldsContentProvider());
fieldsViewer.setLabelProvider(new FieldsLabelProvider());
CellEditor fieldCellEditor = new TextCellEditor(fieldsViewer.getTable(), SWT.BORDER);
+ TableColumn fieldColumn = new TableColumn(fieldsViewer.getTable(), SWT.NONE);
+ fieldColumn.setText("Field");
+ fieldColumn.setWidth(150);
+
+ TableColumn exampleValueColumn = new TableColumn(fieldsViewer.getTable(), SWT.NONE);
+ exampleValueColumn.setText("Example Value");
+ exampleValueColumn.setWidth(150);
+
+ fieldsViewer.getTable().setHeaderVisible(true);
+ fieldsViewer.getTable().setLinesVisible(true);
+
fieldsViewer.setCellEditors(new CellEditor[] { fieldCellEditor });
fieldsViewer.setColumnProperties(new String[] { "field" });
@@ -207,6 +230,7 @@
}
fieldsViewer.refresh(el);
}
+ changePageStatus();
}
public Object getValue(Object element, String property) {
@@ -243,7 +267,9 @@
Composite buttonComposite = new Composite(fieldsComposite, SWT.NONE);
gd = new GridData(GridData.FILL_VERTICAL);
+ gd.widthHint = 0;
buttonComposite.setLayoutData(gd);
+ buttonComposite.setVisible(false);
GridLayout bgl = new GridLayout();
buttonComposite.setLayout(bgl);
@@ -272,10 +298,10 @@
createCSVReaderButton.setEnabled(false);
setConfigCompositeStates(false);
}
-
+
changePageStatus();
hookControls();
-
+
this.setControl(mainComposite);
}
@@ -313,7 +339,8 @@
this.separatorText.addModifyListener(new ModifyListener() {
public void modifyText(ModifyEvent e) {
- speartor = separatorText.getText();
+ separator = separatorText.getText();
+ resetViewerContent();
changePageStatus();
}
});
@@ -341,6 +368,33 @@
}
});
+ this.createCSVReaderButton.addSelectionListener(new SelectionListener() {
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.eclipse.swt.events.SelectionListener#widgetDefaultSelected
+ * (org.eclipse.swt.events.SelectionEvent)
+ */
+ public void widgetDefaultSelected(SelectionEvent e) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse
+ * .swt.events.SelectionEvent)
+ */
+ public void widgetSelected(SelectionEvent e) {
+ createCSVReader = createCSVReaderButton.getSelection();
+ }
+
+ });
+
this.addButton.addSelectionListener(new SelectionListener() {
public void widgetSelected(SelectionEvent e) {
@@ -358,7 +412,7 @@
this.removeButton.addSelectionListener(new SelectionListener() {
public void widgetSelected(SelectionEvent e) {
- IStructuredSelection s = (IStructuredSelection)fieldsViewer.getSelection();
+ IStructuredSelection s = (IStructuredSelection) fieldsViewer.getSelection();
fieldsList.removeAll(s.toList());
fieldsViewer.refresh();
}
@@ -369,26 +423,70 @@
});
}
+ private void resetViewerContent() {
+ try {
+ fieldsList.clear();
+ if (filePath != null && separator != null && separator.length() == 1) {
+
+ filePath = SmooksUIUtils.parseFilePath(filePath);
+
+ FileReader fr = new FileReader(filePath);
+ BufferedReader br = new BufferedReader(fr);
+
+ String content = br.readLine();
+ if (content != null) {
+ String[] exampleValues = content.split(separator);
+ if (exampleValues != null) {
+ List<FieldString> list = new ArrayList<FieldString>();
+ for (int i = 0; i < exampleValues.length; i++) {
+ String s = exampleValues[i];
+ if (s != null) {
+ if (s.length() == 0)
+ s = "<Null>";
+ FieldString fs = new FieldString("");
+ fs.setExampleValue(s);
+ list.add(fs);
+ }
+ }
+ if(!list.isEmpty()){
+ fieldsList.addAll(list);
+ }
+ }
+ }
+ }
+ } catch (Exception e) {
+ this.setErrorMessage("Occurs an error when parse CSV file");
+ }
+ fieldsViewer.refresh();
+ }
+
private void changePageStatus() {
if (useAvailabelReader) {
+ setErrorMessage(null);
+ setPageComplete(true);
return;
}
String error = null;
- if (speartor == null || speartor.length() == 0) {
+ if (separator == null || separator.length() == 0) {
error = "Sperator can't be null";
}
-
+ if (separator != null && separator.length() > 1) {
+ error = "Sperator needs only one char";
+ }
if (quoteChar == null || quoteChar.length() == 0) {
- error = "Quote char can't be null";
+ error = "QuoteChar can't be null";
}
-
+ if (quoteChar != null && quoteChar.length() > 1) {
+ error = "QuoteChar needs only one char";
+ }
+
if (encoding == null || encoding.length() == 0) {
error = "Encoding can't be null";
}
if (skipLines == null || skipLines.length() == 0) {
- error = "Skip lines can't be null";
+// error = "Skip lines can't be null";
} else {
try {
Integer.parseInt(skipLines);
@@ -396,6 +494,13 @@
error = "Skip lines text must be the number";
}
}
+
+ for (Iterator<?> iterator = fieldsList.iterator(); iterator.hasNext();) {
+ FieldString field = (FieldString) iterator.next();
+ if(field.getText() == null || field.getText().length() == 0 ){
+ error = "Fields can't be null";
+ }
+ }
setErrorMessage(error);
setPageComplete(error == null);
@@ -423,8 +528,115 @@
}
}
+ /**
+ * @return the separator
+ */
+ public String getSeparator() {
+ return separator;
+ }
+
+ /**
+ * @param separator
+ * the separator to set
+ */
+ public void setSeparator(String separator) {
+ this.separator = separator;
+ }
+
+ /**
+ * @return the fieldsList
+ */
+ public List<FieldString> getFieldsList() {
+ return fieldsList;
+ }
+
+ /**
+ * @param fieldsList
+ * the fieldsList to set
+ */
+ public void setFieldsList(List<FieldString> fieldsList) {
+ this.fieldsList = fieldsList;
+ }
+
+ /**
+ * @return the useAvailabelReader
+ */
+ public boolean isUseAvailabelReader() {
+ return useAvailabelReader;
+ }
+
+ /**
+ * @param useAvailabelReader
+ * the useAvailabelReader to set
+ */
+ public void setUseAvailabelReader(boolean useAvailabelReader) {
+ this.useAvailabelReader = useAvailabelReader;
+ }
+
+ /**
+ * @return the createCSVReader
+ */
+ public boolean isCreateCSVReader() {
+ return createCSVReader;
+ }
+
+ /**
+ * @param createCSVReader
+ * the createCSVReader to set
+ */
+ public void setCreateCSVReader(boolean createCSVReader) {
+ this.createCSVReader = createCSVReader;
+ }
+
+ /**
+ * @return the skipLines
+ */
+ public String getSkipLines() {
+ return skipLines;
+ }
+
+ /**
+ * @param skipLines
+ * the skipLines to set
+ */
+ public void setSkipLines(String skipLines) {
+ this.skipLines = skipLines;
+ }
+
+ /**
+ * @return the quoteChar
+ */
+ public String getQuoteChar() {
+ return quoteChar;
+ }
+
+ /**
+ * @param quoteChar
+ * the quoteChar to set
+ */
+ public void setQuoteChar(String quoteChar) {
+ this.quoteChar = quoteChar;
+ }
+
+ /**
+ * @return the encoding
+ */
+ public String getEncoding() {
+ return encoding;
+ }
+
+ /**
+ * @param encoding
+ * the encoding to set
+ */
+ public void setEncoding(String encoding) {
+ this.encoding = encoding;
+ }
+
private void initValue() {
useAvailabelReader = false;
+
+ filePath = null;
hasReader = false;
@@ -437,7 +649,7 @@
encoding = "UTF-8";
- speartor = null;
+ separator = null;
skipLines = null;
@@ -455,13 +667,45 @@
return smooksResourceList;
}
+ /**
+ * @return the filePath
+ */
+ public String getFilePath() {
+ return filePath;
+ }
+
+ /**
+ * @param filePath
+ * the filePath to set
+ */
+ public void setFilePath(String filePath) {
+ this.filePath = filePath;
+ }
+
public void setSmooksResourceList(SmooksResourceListType smooksResourceList) {
this.smooksResourceList = smooksResourceList;
}
- private class FieldString {
+ public class FieldString {
private String text = null;
+ private String exampleValue;
+
+ /**
+ * @return the exampleValue
+ */
+ public String getExampleValue() {
+ return exampleValue;
+ }
+
+ /**
+ * @param exampleValue
+ * the exampleValue to set
+ */
+ public void setExampleValue(String exampleValue) {
+ this.exampleValue = exampleValue;
+ }
+
public FieldString(String text) {
this.setText(text);
}
@@ -475,19 +719,63 @@
}
}
- private class FieldsLabelProvider extends LabelProvider implements ITableLabelProvider {
+ private class FieldsLabelProvider extends LabelProvider implements ITableLabelProvider, ITableFontProvider,
+ ITableColorProvider {
+ private Font font = null;
+
+ public void dispose() {
+ if (font != null) {
+ font.dispose();
+ }
+ super.dispose();
+ }
+
+ public FieldsLabelProvider() {
+ FontData fd = new FontData();
+ fd.setName("Arial");
+ fd.setStyle(SWT.BOLD);
+ font = new Font(null, fd);
+ }
+
public Image getColumnImage(Object element, int columnIndex) {
return null;
}
public String getColumnText(Object element, int columnIndex) {
- if(element instanceof FieldString){
- return ((FieldString)element).getText();
+ if (element instanceof FieldString) {
+ switch(columnIndex){
+ case 0 :
+ return ((FieldString) element).getText();
+ case 1:
+ return ((FieldString) element).getExampleValue();
+ }
+ return ((FieldString) element).getText();
}
return getText(element);
}
+ public Font getFont(Object element, int columnIndex) {
+ if (columnIndex == 0) {
+ return font;
+ }
+ return null;
+ }
+
+ public Color getBackground(Object element, int columnIndex) {
+ if (columnIndex == 1) {
+ return ColorConstants.lightGray;
+ }
+ return null;
+ }
+
+ public Color getForeground(Object element, int columnIndex) {
+ if (columnIndex == 1) {
+ return org.eclipse.draw2d.ColorConstants.darkGray;
+ }
+ return null;
+ }
+
}
private class FieldsContentProvider implements IStructuredContentProvider {
Added: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/csv/CSVDataParser.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/csv/CSVDataParser.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/csv/CSVDataParser.java 2009-07-06 09:02:08 UTC (rev 16392)
@@ -0,0 +1,211 @@
+/*******************************************************************************
+ * 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.csv;
+
+import java.io.ByteArrayInputStream;
+import java.io.FileInputStream;
+import java.io.FileNotFoundException;
+import java.io.InputStream;
+import java.io.StringWriter;
+import java.lang.reflect.InvocationTargetException;
+import java.util.Iterator;
+import java.util.List;
+
+import javax.xml.parsers.ParserConfigurationException;
+import javax.xml.transform.dom.DOMResult;
+import javax.xml.transform.stream.StreamSource;
+
+import org.dom4j.DocumentException;
+import org.jboss.tools.smooks.configuration.editors.uitls.SmooksUIUtils;
+import org.jboss.tools.smooks.configuration.editors.xml.TagList;
+import org.jboss.tools.smooks.configuration.editors.xml.XMLObjectAnalyzer;
+import org.jboss.tools.smooks.model.csv.CsvReader;
+import org.jboss.tools.smooks.model.graphics.ext.InputType;
+import org.jboss.tools.smooks.model.graphics.ext.ParamType;
+import org.jboss.tools.smooks.model.smooks.AbstractReader;
+import org.jboss.tools.smooks.model.smooks.SmooksResourceListType;
+import org.milyn.Smooks;
+import org.milyn.SmooksUtil;
+import org.milyn.cdr.SmooksResourceConfiguration;
+import org.milyn.csv.CSVReader;
+import org.milyn.xml.XmlUtil;
+import org.w3c.dom.Document;
+
+/**
+ * @author Dart (dpeng(a)redhat.com)
+ *
+ */
+public class CSVDataParser {
+
+ public static final String LINK_CSV_READER = "linkCSVReader";
+
+ public static final String SEPARATOR = "separator";
+
+ public static final String QUOTECHAR = "quoteChar";
+
+ public static final String SKIPLINES = "skiplines";
+
+ public static final String ENCODING = "encoding";
+
+ public static final String FIELDS = "fields";
+
+ public TagList parseCSV(String filePath, InputType inputType, SmooksResourceListType resourceList)
+ throws FileNotFoundException, DocumentException, InvocationTargetException, ParserConfigurationException {
+ return parseCSV(new FileInputStream(SmooksUIUtils.parseFilePath(filePath)), inputType, resourceList);
+ }
+
+ public TagList parseCSV(InputStream inputStream, CsvReader reader)
+ throws ParserConfigurationException, DocumentException {
+ String fields = null;
+ String separator = null;
+ String quoteChar = null;
+ String skiplines = null;
+ String encoding = null;
+ if (reader == null)
+ return null;
+ fields = reader.getFields();
+ separator = reader.getSeparator();
+ skiplines = reader.getSkipLines().toString();
+ quoteChar = reader.getQuote();
+ encoding = reader.getEncoding();
+ return this.parseCSV(inputStream, fields, separator, quoteChar, skiplines, encoding);
+ }
+
+ public TagList parseCSV(InputStream stream, InputType inputType, SmooksResourceListType resourceList)
+ throws DocumentException, ParserConfigurationException {
+ List<ParamType> paramList = inputType.getParam();
+ String fields = null;
+ String separator = null;
+ String quoteChar = null;
+ String skiplines = null;
+ String encoding = null;
+
+ for (Iterator<?> iterator = paramList.iterator(); iterator.hasNext();) {
+ ParamType paramType = (ParamType) iterator.next();
+ if (paramType.getName().equals(LINK_CSV_READER)) {
+ if (paramType.getValue().equalsIgnoreCase("true") && resourceList != null) {
+ List<AbstractReader> readers = resourceList.getAbstractReader();
+ int count = 0;
+ int index = -1;
+ for (Iterator<?> iterator2 = readers.iterator(); iterator2.hasNext();) {
+ AbstractReader abstractReader = (AbstractReader) iterator2.next();
+ if (abstractReader instanceof CsvReader) {
+ count++;
+ if (index == -1) {
+ index = readers.indexOf(abstractReader);
+ }
+ }
+ }
+
+ if (count > 1) {
+ // throw new
+ // RuntimeException("The smooks config file should have only one JSON reader");
+ }
+ if (index != -1) {
+ return parseCSV(stream, (CsvReader)readers.get(index));
+ // return parseJsonFile(stream, (JsonReader)
+ // readers.get(index));
+ }
+
+ }
+ }
+ if (paramType.getName().equals(FIELDS)) {
+ fields = paramType.getValue();
+ try {
+// fields = fields.replace(';', ',');
+ } catch (Throwable t) {
+
+ }
+ }
+ if (paramType.getName().equals(SEPARATOR)) {
+ separator = paramType.getValue();
+ }
+ if (paramType.getName().equals(SKIPLINES)) {
+ skiplines = paramType.getValue();
+ }
+ if (paramType.getName().equals(QUOTECHAR)) {
+ quoteChar = paramType.getValue();
+ }
+ if (paramType.getName().equals(ENCODING)) {
+ encoding = paramType.getValue();
+ }
+ }
+
+ return this.parseCSV(stream, fields, separator, quoteChar, skiplines, encoding);
+ }
+
+ public TagList parseCSV(String filePath, String fields, String separator, String quoteChar, String skiplines,
+ String encoding) throws DocumentException, FileNotFoundException {
+ return parseCSV(new FileInputStream(filePath), fields, separator, quoteChar, skiplines, encoding);
+ }
+
+ public TagList parseCSV(InputStream stream, String fields, String separator, String quoteChar, String skiplines,
+ String encoding) throws DocumentException {
+
+ Smooks smooks = new Smooks();
+ SmooksResourceConfiguration readerConfig = new SmooksResourceConfiguration("org.xml.sax.driver",
+ CSVReader.class.getName());
+// if(quoteChar == null) quoteChar = "\"";
+// if(skiplines == null) skiplines = "0";
+// if(encoding == null) encoding = "UTF-8";
+ readerConfig.setParameter("fields", fields);
+ readerConfig.setParameter("separator", separator);
+ readerConfig.setParameter("quote-char", quoteChar);
+ readerConfig.setParameter("skip-line-count", skiplines);
+ readerConfig.setParameter("encoding", encoding);
+
+ SmooksUtil.registerResource(readerConfig, smooks);
+
+ DOMResult domResult = new DOMResult();
+
+ // Filter the message through Smooks and capture the result as a DOM in
+ // the domResult instance...
+ smooks.filter(new StreamSource(stream), domResult);
+
+ // Get the Document object from the domResult. This is the message
+ // model!!!...
+ Document model = (Document) domResult.getNode();
+
+ // So using the model Document, you can construct a tree structure for
+ // the editor.
+
+ StringWriter modelWriter = new StringWriter();
+ XmlUtil.serialize(model, true, modelWriter);
+
+ XMLObjectAnalyzer analyzer = new XMLObjectAnalyzer();
+ ByteArrayInputStream byteinputStream = new ByteArrayInputStream(modelWriter.toString().getBytes());
+ TagList tagList = analyzer.analyze(byteinputStream, null);
+
+ try {
+ if (byteinputStream != null) {
+ byteinputStream.close();
+ byteinputStream = null;
+ }
+ if (modelWriter != null) {
+ modelWriter.close();
+ modelWriter = null;
+ }
+ if (smooks != null) {
+ smooks.close();
+ smooks = null;
+ }
+ if (stream != null) {
+ stream.close();
+ stream = null;
+ }
+ model = null;
+ } catch (Throwable t) {
+ t.printStackTrace();
+ }
+
+ return tagList;
+ }
+}
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/csv/CSVDataParser.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/csv/CSVDataPathWizardPage.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/csv/CSVDataPathWizardPage.java 2009-07-06 02:16:20 UTC (rev 16391)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/csv/CSVDataPathWizardPage.java 2009-07-06 09:02:08 UTC (rev 16392)
@@ -10,34 +10,66 @@
******************************************************************************/
package org.jboss.tools.smooks.configuration.editors.csv;
+import java.io.File;
+import java.lang.reflect.InvocationTargetException;
import java.util.List;
import org.eclipse.jface.viewers.ViewerFilter;
+import org.eclipse.swt.events.ModifyEvent;
+import org.eclipse.swt.events.ModifyListener;
+import org.jboss.tools.smooks.configuration.editors.uitls.SmooksUIUtils;
import org.jboss.tools.smooks.configuration.editors.xml.AbstractFileSelectionWizardPage;
/**
* @author Dart (dpeng(a)redhat.com)
- *
+ *
*/
public class CSVDataPathWizardPage extends AbstractFileSelectionWizardPage {
+ private CSVDataConfigurationWizardPage configPage;
+
public CSVDataPathWizardPage(String pageName, boolean multiSelect, Object[] initSelections,
- List<ViewerFilter> filters) {
+ List<ViewerFilter> filters,CSVDataConfigurationWizardPage configPage) {
super(pageName, multiSelect, initSelections, filters);
+ this.configPage = configPage;
}
- public CSVDataPathWizardPage(String pageName, String[] fileExtensionNames) {
+ public CSVDataPathWizardPage(String pageName, String[] fileExtensionNames,CSVDataConfigurationWizardPage configPage) {
super(pageName, fileExtensionNames);
this.setTitle("CSV file selection");
this.setDescription("Select a CSV data file");
+ this.configPage = configPage;
}
+
-
/* (non-Javadoc)
- * @see org.jboss.tools.smooks.configuration.editors.xml.AbstractFileSelectionWizardPage#loadedTheObject(java.lang.String)
+ * @see org.jboss.tools.smooks.configuration.editors.xml.AbstractFileSelectionWizardPage#hookFileTextModifyListener()
*/
@Override
+ protected void hookFileTextModifyListener() {
+ super.hookFileTextModifyListener();
+ this.fileText.addModifyListener(new ModifyListener(){
+
+ /* (non-Javadoc)
+ * @see org.eclipse.swt.events.ModifyListener#modifyText(org.eclipse.swt.events.ModifyEvent)
+ */
+ public void modifyText(ModifyEvent e) {
+ if(configPage != null){
+ configPage.setFilePath(fileText.getText());
+ }
+ }
+
+ });
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @seeorg.jboss.tools.smooks.configuration.editors.xml.
+ * AbstractFileSelectionWizardPage#loadedTheObject(java.lang.String)
+ */
+ @Override
protected Object loadedTheObject(String path) throws Exception {
return null;
}
@@ -45,18 +77,32 @@
@Override
protected void changeWizardPageStatus() {
super.changeWizardPageStatus();
+ String text = this.fileText.getText();
+ String error = null;
+ String filePath;
+ try {
+ filePath = SmooksUIUtils.parseFilePath(text);
+ if (!new File(filePath).exists()) {
+ error = "Can't find the file : " + filePath;
+ }
+ } catch (InvocationTargetException e) {
+ error = "Error file path";
+ }
+
+ this.setErrorMessage(error);
+ this.setPageComplete(error == null);
}
@Override
public boolean canFlipToNextPage() {
return super.canFlipToNextPage();
-// String filePath = this.getFilePath();
-// try {
-// filePath = SmooksUIUtils.parseFilePath(filePath);
-// if(filePath == null) return false;
-// return new File(filePath).exists();
-// } catch (InvocationTargetException e) {
-// return false;
-// }
+ // String filePath = this.getFilePath();
+ // try {
+ // filePath = SmooksUIUtils.parseFilePath(filePath);
+ // if(filePath == null) return false;
+ // return new File(filePath).exists();
+ // } catch (InvocationTargetException e) {
+ // return false;
+ // }
}
}
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/csv/CSVInputDataWizard.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/csv/CSVInputDataWizard.java 2009-07-06 02:16:20 UTC (rev 16391)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/csv/CSVInputDataWizard.java 2009-07-06 09:02:08 UTC (rev 16392)
@@ -3,8 +3,13 @@
*/
package org.jboss.tools.smooks.configuration.editors.csv;
+import java.math.BigInteger;
+import java.util.Iterator;
+import java.util.List;
import java.util.Properties;
+import org.eclipse.emf.common.command.Command;
+import org.eclipse.emf.edit.command.AddCommand;
import org.eclipse.emf.edit.domain.EditingDomain;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.wizard.Wizard;
@@ -14,97 +19,228 @@
import org.eclipse.ui.INewWizard;
import org.eclipse.ui.IWorkbench;
import org.jboss.tools.smooks.configuration.editors.SmooksMultiFormEditor;
+import org.jboss.tools.smooks.configuration.editors.csv.CSVDataConfigurationWizardPage.FieldString;
import org.jboss.tools.smooks.configuration.editors.wizard.IStructuredDataSelectionWizard;
+import org.jboss.tools.smooks.model.csv.CsvFactory;
+import org.jboss.tools.smooks.model.csv.CsvReader;
import org.jboss.tools.smooks.model.smooks.DocumentRoot;
+import org.jboss.tools.smooks.model.smooks.SmooksPackage;
import org.jboss.tools.smooks.model.smooks.SmooksResourceListType;
+import org.jboss.tools.smooks10.model.smooks.util.SmooksModelUtils;
/**
* @author Dart
- *
+ *
*/
public class CSVInputDataWizard extends Wizard implements IStructuredDataSelectionWizard, INewWizard {
-
- private SmooksResourceListType resourceList ;
-
+
+ private SmooksResourceListType resourceList;
+
private EditingDomain editingDomain;
-
+
private CSVDataConfigurationWizardPage configPage;
-
+
private CSVDataPathWizardPage pathPage;
-
public CSVInputDataWizard() {
super();
this.setWindowTitle("CSV Input Data Wizard");
}
-
-
@Override
public void addPages() {
- if(pathPage == null){
- pathPage = new CSVDataPathWizardPage("CSV Path Page", new String[]{});
- }
- if(configPage == null){
+ if (configPage == null) {
configPage = new CSVDataConfigurationWizardPage("CSV Configurations Page");
configPage.setSmooksResourceList(resourceList);
}
+
+ if (pathPage == null) {
+ pathPage = new CSVDataPathWizardPage("CSV Path Page", new String[] {},configPage);
+ }
+
this.addPage(pathPage);
this.addPage(configPage);
super.addPages();
}
-
-
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
+ *
* @see org.eclipse.jface.wizard.Wizard#performFinish()
*/
@Override
public boolean performFinish() {
- if(configPage != null){
-
+ if (configPage != null) {
+ boolean createCSVReader = configPage.isCreateCSVReader();
+ if (createCSVReader) {
+ CsvReader reader = CsvFactory.eINSTANCE.createCsvReader();
+
+ String encoding = configPage.getEncoding();
+ reader.setEncoding(encoding);
+
+ String separator = configPage.getSeparator();
+ reader.setSeparator(separator);
+
+ String skipLines = configPage.getSkipLines();
+ long skip = -1;
+ try {
+ skip = Long.parseLong(skipLines);
+ } catch (Throwable t) {
+
+ }
+ if (skip >= 0) {
+ reader.setSkipLines(BigInteger.valueOf(skip));
+ }
+
+ String quoteChar = configPage.getQuoteChar();
+ reader.setQuote(quoteChar);
+
+ String fields = null;
+ List<FieldString> fieldList = configPage.getFieldsList();
+ if (fieldList != null && !fieldList.isEmpty()) {
+ fields = "";
+ for (Iterator<?> iterator = fieldList.iterator(); iterator.hasNext();) {
+ FieldString fieldString = (FieldString) iterator.next();
+ String f = fieldString.getText();
+ fields += (f + ",");
+ }
+ if (fields.length() > 1) {
+ fields = fields.substring(0, fields.length() - 1);
+ }
+ }
+ reader.setFields(fields);
+
+ Command command = AddCommand.create(editingDomain, resourceList, SmooksPackage.eINSTANCE
+ .getSmooksResourceListType_AbstractReader(), reader);
+ editingDomain.getCommandStack().execute(command);
+
+ }
}
return true;
}
+
+ public boolean canFinish() {
+ if (configPage != null && pathPage != null) {
+ if (configPage.isPageComplete() && pathPage.isPageComplete())
+ return true;
+ }
+ return false;
+ }
- /* (non-Javadoc)
- * @see org.jboss.tools.smooks.configuration.editors.wizard.IStructuredDataSelectionWizard#complate(org.jboss.tools.smooks.configuration.editors.SmooksMultiFormEditor)
+ /*
+ * (non-Javadoc)
+ *
+ * @seeorg.jboss.tools.smooks.configuration.editors.wizard.
+ * IStructuredDataSelectionWizard
+ * #complate(org.jboss.tools.smooks.configuration
+ * .editors.SmooksMultiFormEditor)
*/
public void complate(SmooksMultiFormEditor formEditor) {
}
- /* (non-Javadoc)
- * @see org.jboss.tools.smooks.configuration.editors.wizard.IStructuredDataSelectionWizard#getInputDataTypeID()
+ /*
+ * (non-Javadoc)
+ *
+ * @seeorg.jboss.tools.smooks.configuration.editors.wizard.
+ * IStructuredDataSelectionWizard#getInputDataTypeID()
*/
public String getInputDataTypeID() {
- return null;
+ return SmooksModelUtils.INPUT_TYPE_CSV;
}
- /* (non-Javadoc)
- * @see org.jboss.tools.smooks.configuration.editors.wizard.IStructuredDataSelectionWizard#getProperties()
+ /*
+ * (non-Javadoc)
+ *
+ * @seeorg.jboss.tools.smooks.configuration.editors.wizard.
+ * IStructuredDataSelectionWizard#getProperties()
*/
public Properties getProperties() {
- return null;
+ Properties pro = new Properties();
+ fillProperties(pro);
+ return pro;
}
- /* (non-Javadoc)
- * @see org.jboss.tools.smooks.configuration.editors.wizard.IStructuredDataSelectionWizard#getReturnData()
+ private void fillProperties(Properties pro) {
+ if (configPage != null) {
+ boolean createCSVReader = configPage.isCreateCSVReader();
+ boolean useAvailabelReader = configPage.isUseAvailabelReader();
+
+ if (useAvailabelReader || createCSVReader) {
+ pro.put(CSVDataParser.LINK_CSV_READER, "true");
+ return;
+ }
+
+ String fields = null;
+ List<FieldString> fieldList = configPage.getFieldsList();
+ if (fieldList != null && !fieldList.isEmpty()) {
+ fields = "";
+ for (Iterator<?> iterator = fieldList.iterator(); iterator.hasNext();) {
+ FieldString fieldString = (FieldString) iterator.next();
+ String f = fieldString.getText();
+ fields += (f + ",");
+ }
+ if (fields.length() > 1) {
+ fields = fields.substring(0, fields.length() - 1);
+ }
+ }
+
+ if (fields != null && fields.length() != 0) {
+ pro.put(CSVDataParser.FIELDS, fields);
+ }
+
+ String encoding = configPage.getEncoding();
+ if (encoding != null && encoding.length() != 0) {
+ pro.put(CSVDataParser.ENCODING, encoding);
+ }
+
+ String separator = configPage.getSeparator();
+ if (separator != null && separator.length() != 0) {
+ pro.put(CSVDataParser.SEPARATOR, separator);
+ }
+
+ String quoteChar = configPage.getQuoteChar();
+ if (quoteChar != null && quoteChar.length() != 0) {
+ pro.put(CSVDataParser.QUOTECHAR, quoteChar);
+ }
+
+ String skiplines = configPage.getSkipLines();
+ if (skiplines != null && skiplines.length() != 0) {
+ pro.put(CSVDataParser.SKIPLINES, skiplines);
+ }
+
+ }
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @seeorg.jboss.tools.smooks.configuration.editors.wizard.
+ * IStructuredDataSelectionWizard#getReturnData()
*/
public Object getReturnData() {
return null;
}
- /* (non-Javadoc)
- * @see org.jboss.tools.smooks.configuration.editors.wizard.IStructuredDataSelectionWizard#getStructuredDataSourcePath()
+ /*
+ * (non-Javadoc)
+ *
+ * @seeorg.jboss.tools.smooks.configuration.editors.wizard.
+ * IStructuredDataSelectionWizard#getStructuredDataSourcePath()
*/
public String getStructuredDataSourcePath() {
- // TODO Auto-generated method stub
+ if (pathPage != null) {
+ return pathPage.getFilePath();
+ }
return null;
}
- /* (non-Javadoc)
- * @see org.jboss.tools.smooks.configuration.editors.wizard.IStructuredDataSelectionWizard#init(org.eclipse.ui.IEditorSite, org.eclipse.ui.IEditorInput)
+ /*
+ * (non-Javadoc)
+ *
+ * @seeorg.jboss.tools.smooks.configuration.editors.wizard.
+ * IStructuredDataSelectionWizard#init(org.eclipse.ui.IEditorSite,
+ * org.eclipse.ui.IEditorInput)
*/
public void init(IEditorSite site, IEditorInput input) {
IEditorPart editorPart = site.getWorkbenchWindow().getActivePage().findEditor(input);
@@ -116,14 +252,17 @@
}
editingDomain = formEditor.getEditingDomain();
}
- if(configPage != null){
+ if (configPage != null) {
configPage.setSmooksResourceList(resourceList);
}
}
- /* (non-Javadoc)
- * @see org.eclipse.ui.IWorkbenchWizard#init(org.eclipse.ui.IWorkbench, org.eclipse.jface.viewers.IStructuredSelection)
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.eclipse.ui.IWorkbenchWizard#init(org.eclipse.ui.IWorkbench,
+ * org.eclipse.jface.viewers.IStructuredSelection)
*/
public void init(IWorkbench workbench, IStructuredSelection selection) {
}
14 years, 10 months
JBoss Tools SVN: r16391 - trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/form.
by jbosstools-commits@lists.jboss.org
Author: sflanigan
Date: 2009-07-05 22:16:20 -0400 (Sun, 05 Jul 2009)
New Revision: 16391
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/form/Hibernate3ClassFormLayoutData.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/form/Hibernate3ComponentFormLayoutData.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/form/Hibernate3CompositeElementFormLayoutData.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/form/Hibernate3DatabaseObjectFormLayoutData.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/form/Hibernate3ElementFormLayoutData.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/form/Hibernate3FileFormLayoutData.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/form/Hibernate3FilterFormLayoutData.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/form/Hibernate3FormLayoutData.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/form/Messages.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/form/messages.properties
Log:
https://jira.jboss.org/jira/browse/JBIDE-3557 Externalize English strings
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/form/Hibernate3ClassFormLayoutData.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/form/Hibernate3ClassFormLayoutData.java 2009-07-06 01:01:23 UTC (rev 16390)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/form/Hibernate3ClassFormLayoutData.java 2009-07-06 02:16:20 UTC (rev 16391)
@@ -27,73 +27,73 @@
static String JOINED_SUBCLASSES_ENTITY = "Hibernate3JoinedSubclassFolder"; //$NON-NLS-1$
static IFormData ALL_SUBCLASSES_LIST_DEFINITION = new FormData(
- "Subclasses",
+ Messages.Hibernate3ClassFormLayoutData_Subclasses,
"", //Description //$NON-NLS-1$
"Subclasses", //$NON-NLS-1$
- new FormAttributeData[]{new FormAttributeData("details", 100, "subclass info")}, //$NON-NLS-1$
- Hibernate3FormLayoutDataUtil.getChildEntitiesWithAttribute(ALL_SUBCLASSES_ENTITY, "details"),
+ new FormAttributeData[]{new FormAttributeData("details", 100, Messages.Hibernate3ClassFormLayoutData_SubclassInfo)}, //$NON-NLS-1$
+ Hibernate3FormLayoutDataUtil.getChildEntitiesWithAttribute(ALL_SUBCLASSES_ENTITY, Messages.Hibernate3ClassFormLayoutData_Details),
Hibernate3FormLayoutDataUtil.createDefaultFormActionData("CreateActions.AddAnyClass") //$NON-NLS-1$
);
static IFormData ALL_SUBCLASSES_FOLDER_DEFINITION = new FormData(
- "Subclasses",
+ Messages.Hibernate3ClassFormLayoutData_Subclasses,
"", //Description //$NON-NLS-1$
ALL_SUBCLASSES_ENTITY,
- new FormAttributeData[]{new FormAttributeData("details", 100, "subclass info")}, //$NON-NLS-1$
- Hibernate3FormLayoutDataUtil.getChildEntitiesWithAttribute(ALL_SUBCLASSES_ENTITY, "details"),
+ new FormAttributeData[]{new FormAttributeData("details", 100, Messages.Hibernate3ClassFormLayoutData_SubclassInfo)}, //$NON-NLS-1$
+ Hibernate3FormLayoutDataUtil.getChildEntitiesWithAttribute(ALL_SUBCLASSES_ENTITY, Messages.Hibernate3ClassFormLayoutData_Details),
Hibernate3FormLayoutDataUtil.createDefaultFormActionData("CreateActions.AddAnyClass") //$NON-NLS-1$
);
static IFormData SUBCLASSES_LIST_DEFINITION = new FormData(
- "Subclasses",
+ Messages.Hibernate3ClassFormLayoutData_Subclasses,
"", //Description //$NON-NLS-1$
"Subclasses", //$NON-NLS-1$
- new FormAttributeData[]{new FormAttributeData("details", 100, "subclass info")}, //$NON-NLS-1$
- Hibernate3FormLayoutDataUtil.getChildEntitiesWithAttribute(SUBCLASSES_ENTITY, "details"),
+ new FormAttributeData[]{new FormAttributeData("details", 100, Messages.Hibernate3ClassFormLayoutData_SubclassInfo)}, //$NON-NLS-1$
+ Hibernate3FormLayoutDataUtil.getChildEntitiesWithAttribute(SUBCLASSES_ENTITY, Messages.Hibernate3ClassFormLayoutData_Details),
Hibernate3FormLayoutDataUtil.createDefaultFormActionData("CreateActions.AddAnyClass") //$NON-NLS-1$
);
static IFormData SUBCLASSES_FOLDER_DEFINITION = new FormData(
- "Subclasses",
+ Messages.Hibernate3ClassFormLayoutData_Subclasses,
"", //Description //$NON-NLS-1$
SUBCLASSES_ENTITY,
- new FormAttributeData[]{new FormAttributeData("details", 100, "subclass info")}, //$NON-NLS-1$
- Hibernate3FormLayoutDataUtil.getChildEntitiesWithAttribute(SUBCLASSES_ENTITY, "details"),
+ new FormAttributeData[]{new FormAttributeData("details", 100, Messages.Hibernate3ClassFormLayoutData_SubclassInfo)}, //$NON-NLS-1$
+ Hibernate3FormLayoutDataUtil.getChildEntitiesWithAttribute(SUBCLASSES_ENTITY, Messages.Hibernate3ClassFormLayoutData_Details),
Hibernate3FormLayoutDataUtil.createDefaultFormActionData("CreateActions.AddAnyClass") //$NON-NLS-1$
);
static IFormData JOINED_SUBCLASSES_LIST_DEFINITION = new FormData(
- "Subclasses",
+ Messages.Hibernate3ClassFormLayoutData_Subclasses,
"", //Description //$NON-NLS-1$
"Subclasses", //$NON-NLS-1$
- new FormAttributeData[]{new FormAttributeData("name", 100, "class name")}, //$NON-NLS-1$
- Hibernate3FormLayoutDataUtil.getChildEntitiesWithAttribute(JOINED_SUBCLASSES_ENTITY, "name"),
+ new FormAttributeData[]{new FormAttributeData("name", 100, Messages.Hibernate3ClassFormLayoutData_ClassName)}, //$NON-NLS-1$
+ Hibernate3FormLayoutDataUtil.getChildEntitiesWithAttribute(JOINED_SUBCLASSES_ENTITY, Messages.Hibernate3ClassFormLayoutData_Name),
Hibernate3FormLayoutDataUtil.createDefaultFormActionData("CreateActions.AddJoinedSubclass") //$NON-NLS-1$
);
static IFormData JOINED_SUBCLASSES_FOLDER_DEFINITION = new FormData(
- "Subclasses",
+ Messages.Hibernate3ClassFormLayoutData_Subclasses,
"", //Description //$NON-NLS-1$
JOINED_SUBCLASSES_ENTITY,
- new FormAttributeData[]{new FormAttributeData("name", 100, "class name")}, //$NON-NLS-1$
- Hibernate3FormLayoutDataUtil.getChildEntitiesWithAttribute(JOINED_SUBCLASSES_ENTITY, "name"),
+ new FormAttributeData[]{new FormAttributeData("name", 100, Messages.Hibernate3ClassFormLayoutData_ClassName)}, //$NON-NLS-1$
+ Hibernate3FormLayoutDataUtil.getChildEntitiesWithAttribute(JOINED_SUBCLASSES_ENTITY, Messages.Hibernate3ClassFormLayoutData_Name),
Hibernate3FormLayoutDataUtil.createDefaultFormActionData("CreateActions.AddJoinedSubclass") //$NON-NLS-1$
);
private final static IFormData[] CLASS_DEFINITIONS = new IFormData[] {
new FormData(
- "Class",
+ Messages.Hibernate3ClassFormLayoutData_Class,
"", //"Description //$NON-NLS-1$
Hibernate3FormLayoutDataUtil.createGeneralFormAttributeData(CLASS_ENTITY)
),
- Hibernate3FormLayoutDataUtil.createAllChildrenFormData("Properties",
+ Hibernate3FormLayoutDataUtil.createAllChildrenFormData(Messages.Hibernate3ClassFormLayoutData_Properties,
"Hibernate3AttributesCFolder", "Properties", "name", "CreateActions.AddAttribute"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
ALL_SUBCLASSES_LIST_DEFINITION,
Hibernate3MetaFormLayoutData.META_LIST_DEFINITION,
Hibernate3FilterFormLayoutData.FILTER_LIST_DEFINITION,
Hibernate3SQLQueryFormLayoutData.SYNCHRONIZES_LIST_DEFINITION,
new FormData(
- "Advanced",
+ Messages.Hibernate3ClassFormLayoutData_Advanced,
"", //"Description //$NON-NLS-1$
Hibernate3FormLayoutDataUtil.createAdvancedFormAttributeData(CLASS_ENTITY)
),
@@ -105,17 +105,17 @@
private final static IFormData[] SUBCLASS_DEFINITIONS = new IFormData[] {
new FormData(
- "Subclass",
+ Messages.Hibernate3ClassFormLayoutData_Subclass,
"", //"Description //$NON-NLS-1$
Hibernate3FormLayoutDataUtil.createGeneralFormAttributeData(SUBCLASS_ENTITY)
),
- Hibernate3FormLayoutDataUtil.createAllChildrenFormData("Properties",
+ Hibernate3FormLayoutDataUtil.createAllChildrenFormData(Messages.Hibernate3ClassFormLayoutData_Properties,
"Hibernate3AttributesCFolder", "Properties", "name", "CreateActions.AddAttribute"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
SUBCLASSES_LIST_DEFINITION,
Hibernate3MetaFormLayoutData.META_LIST_DEFINITION,
Hibernate3SQLQueryFormLayoutData.SYNCHRONIZES_FOLDER_DEFINITION,
new FormData(
- "Advanced",
+ Messages.Hibernate3ClassFormLayoutData_Advanced,
"", //"Description //$NON-NLS-1$
Hibernate3FormLayoutDataUtil.createAdvancedFormAttributeData(SUBCLASS_ENTITY)
),
@@ -127,15 +127,15 @@
private final static IFormData[] JOIN_DEFINITIONS = new IFormData[] {
new FormData(
- "Join",
+ Messages.Hibernate3ClassFormLayoutData_Join,
"", //"Description //$NON-NLS-1$
Hibernate3FormLayoutDataUtil.createGeneralFormAttributeData(JOIN_ENTITY)
),
- Hibernate3FormLayoutDataUtil.createAllChildrenFormData("Properties",
+ Hibernate3FormLayoutDataUtil.createAllChildrenFormData(Messages.Hibernate3ClassFormLayoutData_Properties,
"Hibernate3AttributesJFolder", "Properties", "name", "CreateActions.AddAttribute"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
Hibernate3MetaFormLayoutData.META_LIST_DEFINITION,
new FormData(
- "Advanced",
+ Messages.Hibernate3ClassFormLayoutData_Advanced,
"", //"Description //$NON-NLS-1$
Hibernate3FormLayoutDataUtil.createAdvancedFormAttributeData(JOIN_ENTITY)
),
@@ -147,17 +147,17 @@
private final static IFormData[] JOINED_SUBCLASS_DEFINITIONS = new IFormData[] {
new FormData(
- "Joined Subclass",
+ Messages.Hibernate3ClassFormLayoutData_JoinedSubclass,
"", //"Description //$NON-NLS-1$
Hibernate3FormLayoutDataUtil.createGeneralFormAttributeData(JOINED_SUBCLASS_ENTITY)
),
- Hibernate3FormLayoutDataUtil.createAllChildrenFormData("Properties",
+ Hibernate3FormLayoutDataUtil.createAllChildrenFormData(Messages.Hibernate3ClassFormLayoutData_Properties,
"Hibernate3AttributesCFolder", "Properties", "name", "CreateActions.AddAttribute"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
JOINED_SUBCLASSES_LIST_DEFINITION,
Hibernate3MetaFormLayoutData.META_LIST_DEFINITION,
Hibernate3SQLQueryFormLayoutData.SYNCHRONIZES_LIST_DEFINITION,
new FormData(
- "Advanced",
+ Messages.Hibernate3ClassFormLayoutData_Advanced,
"", //"Description //$NON-NLS-1$
Hibernate3FormLayoutDataUtil.createAdvancedFormAttributeData(JOINED_SUBCLASS_ENTITY)
),
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/form/Hibernate3ComponentFormLayoutData.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/form/Hibernate3ComponentFormLayoutData.java 2009-07-06 01:01:23 UTC (rev 16390)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/form/Hibernate3ComponentFormLayoutData.java 2009-07-06 02:16:20 UTC (rev 16391)
@@ -22,15 +22,15 @@
final static IFormData[] COMPONENT_DEFINITIONS = new IFormData[] {
new FormData(
- "Component",
+ Messages.Hibernate3ComponentFormLayoutData_Component,
"", //"Description //$NON-NLS-1$
Hibernate3FormLayoutDataUtil.createGeneralFormAttributeData(COMPONENT_ENTITY)
),
- Hibernate3FormLayoutDataUtil.createAllChildrenFormData("Properties",
+ Hibernate3FormLayoutDataUtil.createAllChildrenFormData(Messages.Hibernate3ComponentFormLayoutData_Properties,
"Hibernate3AttributesFolder", "Properties", "name", "CreateActions.AddAttribute"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
Hibernate3MetaFormLayoutData.META_LIST_DEFINITION,
new FormData(
- "Advanced",
+ Messages.Hibernate3ComponentFormLayoutData_Advanced,
"", //"Description //$NON-NLS-1$
Hibernate3FormLayoutDataUtil.createAdvancedFormAttributeData(COMPONENT_ENTITY)
),
@@ -42,14 +42,14 @@
final static IFormData[] DYNAMIC_COMPONENT_DEFINITIONS = new IFormData[] {
new FormData(
- "Dynamic Component",
+ Messages.Hibernate3ComponentFormLayoutData_DynamicComponent,
"", //"Description //$NON-NLS-1$
Hibernate3FormLayoutDataUtil.createGeneralFormAttributeData(DYNAMIC_COMPONENT_ENTITY)
),
- Hibernate3FormLayoutDataUtil.createAllChildrenFormData("Properties",
+ Hibernate3FormLayoutDataUtil.createAllChildrenFormData(Messages.Hibernate3ComponentFormLayoutData_Properties,
"Hibernate3AttributesFolder", "Properties", "name", "CreateActions.AddAttribute"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
new FormData(
- "Advanced",
+ Messages.Hibernate3ComponentFormLayoutData_Advanced,
"", //"Description //$NON-NLS-1$
Hibernate3FormLayoutDataUtil.createAdvancedFormAttributeData(COMPONENT_ENTITY)
),
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/form/Hibernate3CompositeElementFormLayoutData.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/form/Hibernate3CompositeElementFormLayoutData.java 2009-07-06 01:01:23 UTC (rev 16390)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/form/Hibernate3CompositeElementFormLayoutData.java 2009-07-06 02:16:20 UTC (rev 16391)
@@ -19,15 +19,15 @@
final static IFormData[] ELEMENT_DEFINITIONS = new IFormData[] {
new FormData(
- "Composite Element",
+ Messages.Hibernate3CompositeElementFormLayoutData_CompositeElement,
"", //"Description //$NON-NLS-1$
Hibernate3FormLayoutDataUtil.createGeneralFormAttributeData(ELEMENT_ENTITY)
),
- Hibernate3FormLayoutDataUtil.createAllChildrenFormData("Properties",
+ Hibernate3FormLayoutDataUtil.createAllChildrenFormData(Messages.Hibernate3CompositeElementFormLayoutData_Properties,
"Hibernate3AttributesNestedFolder", "Properties", "name", "CreateActions.AddAttribute"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
Hibernate3MetaFormLayoutData.META_LIST_DEFINITION,
new FormData(
- "Advanced",
+ Messages.Hibernate3CompositeElementFormLayoutData_Advanced,
"", //"Description //$NON-NLS-1$
Hibernate3FormLayoutDataUtil.createAdvancedFormAttributeData(ELEMENT_ENTITY)
)
@@ -39,15 +39,15 @@
final static IFormData[] NESTED_ELEMENT_DEFINITIONS = new IFormData[] {
new FormData(
- "Composite Element",
+ Messages.Hibernate3CompositeElementFormLayoutData_CompositeElementNested,
"", //"Description //$NON-NLS-1$
Hibernate3FormLayoutDataUtil.createGeneralFormAttributeData(NESTED_ELEMENT_ENTITY)
),
- Hibernate3FormLayoutDataUtil.createAllChildrenFormData("Properties",
+ Hibernate3FormLayoutDataUtil.createAllChildrenFormData(Messages.Hibernate3CompositeElementFormLayoutData_Properties,
"Hibernate3AttributesNestedFolder", "Properties", "name", "CreateActions.AddAttribute"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
Hibernate3MetaFormLayoutData.META_LIST_DEFINITION,
new FormData(
- "Advanced",
+ Messages.Hibernate3CompositeElementFormLayoutData_Advanced,
"", //"Description //$NON-NLS-1$
Hibernate3FormLayoutDataUtil.createAdvancedFormAttributeData(NESTED_ELEMENT_ENTITY)
)
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/form/Hibernate3DatabaseObjectFormLayoutData.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/form/Hibernate3DatabaseObjectFormLayoutData.java 2009-07-06 01:01:23 UTC (rev 16390)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/form/Hibernate3DatabaseObjectFormLayoutData.java 2009-07-06 02:16:20 UTC (rev 16391)
@@ -22,7 +22,7 @@
static String DATABASE_FOLDER_ENTITY = "Hibernate3DatabaseObjectFolder"; //$NON-NLS-1$
final static IFormData DIALECT_SCOPE_LIST_DEFINITION = new FormData(
- "Dialect Scopes",
+ Messages.Hibernate3DatabaseObjectFormLayoutData_DialectScopes,
"", //"Description //$NON-NLS-1$
new FormAttributeData[]{new FormAttributeData("name", 100)}, //$NON-NLS-1$
new String[]{DIALECT_SCOPE_ENTITY},
@@ -30,16 +30,16 @@
);
final static IFormData DATABASE_OBJECT_LIST_DEFINITION = new FormData(
- "Database Objects",
+ Messages.Hibernate3DatabaseObjectFormLayoutData_DatabaseObjectList,
"", //"Description //$NON-NLS-1$
- new FormAttributeData[]{new FormAttributeData("presentation", 100, "database object")}, //$NON-NLS-1$
+ new FormAttributeData[]{new FormAttributeData("presentation", 100, Messages.Hibernate3DatabaseObjectFormLayoutData_DatabaseObjectAttr)}, //$NON-NLS-1$
new String[]{DATABASE_OBJECT_DEF_ENTITY, DATABASE_OBJECT_CD_ENTITY},
Hibernate3FormLayoutDataUtil.createDefaultFormActionData("CreateActions.AddDatabaseObject") //$NON-NLS-1$
);
final static IFormData[] DATABASE_OBJECT_DEF_DEFINITIONS = new IFormData[] {
new FormData(
- "Database Object",
+ Messages.Hibernate3DatabaseObjectFormLayoutData_DatabaseObjectDef,
"", //"Description //$NON-NLS-1$
Hibernate3FormLayoutDataUtil.createGeneralFormAttributeData(DATABASE_OBJECT_DEF_ENTITY)
),
@@ -48,7 +48,7 @@
final static IFormData[] DATABASE_OBJECT_CD_DEFINITIONS = new IFormData[] {
new FormData(
- "Database Object",
+ Messages.Hibernate3DatabaseObjectFormLayoutData_DatabaseObjectCreateDrop,
"", //"Description //$NON-NLS-1$
// Hibernate3FormLayoutDataUtil.createGeneralFormAttributeData(DATABASE_OBJECT_CD_ENTITY)
new IFormAttributeData[]{
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/form/Hibernate3ElementFormLayoutData.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/form/Hibernate3ElementFormLayoutData.java 2009-07-06 01:01:23 UTC (rev 16390)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/form/Hibernate3ElementFormLayoutData.java 2009-07-06 02:16:20 UTC (rev 16391)
@@ -20,14 +20,14 @@
final static IFormData[] ELEMENT_DEFINITIONS = new IFormData[] {
new FormData(
- "Element",
+ Messages.Hibernate3ElementFormLayoutData_Element,
"", //"Description //$NON-NLS-1$
Hibernate3FormLayoutDataUtil.createGeneralFormAttributeData(ELEMENT_ENTITY)
),
Hibernate3ColumnFormLayoutData.COLUMN_LIST_DEFINITION,
Hibernate3FormulaFormLayoutData.FORMULA_LIST_DEFINITION,
new FormData(
- "Advanced",
+ Messages.Hibernate3ElementFormLayoutData_Advanced,
"", //"Description //$NON-NLS-1$
Hibernate3FormLayoutDataUtil.createAdvancedFormAttributeData(ELEMENT_ENTITY)
)
@@ -39,7 +39,7 @@
final static IFormData[] MANY_TO_MANY_DEFINITIONS = new IFormData[] {
new FormData(
- "Many To Many",
+ Messages.Hibernate3ElementFormLayoutData_ManyToMany,
"", //"Description //$NON-NLS-1$
Hibernate3FormLayoutDataUtil.createGeneralFormAttributeData(MANY_TO_MANY_ENTITY)
),
@@ -48,7 +48,7 @@
Hibernate3FilterFormLayoutData.FILTER_LIST_DEFINITION,
Hibernate3MetaFormLayoutData.META_LIST_DEFINITION,
new FormData(
- "Advanced",
+ Messages.Hibernate3ElementFormLayoutData_Advanced,
"", //"Description //$NON-NLS-1$
Hibernate3FormLayoutDataUtil.createAdvancedFormAttributeData(MANY_TO_MANY_ENTITY)
)
@@ -60,7 +60,7 @@
final static IFormData[] MANY_TO_ANY_DEFINITIONS = new IFormData[] {
new FormData(
- "Many To Any",
+ Messages.Hibernate3ElementFormLayoutData_ManyToAny,
"", //"Description //$NON-NLS-1$
Hibernate3FormLayoutDataUtil.createGeneralFormAttributeData(MANY_TO_ANY_ENTITY)
),
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/form/Hibernate3FileFormLayoutData.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/form/Hibernate3FileFormLayoutData.java 2009-07-06 01:01:23 UTC (rev 16390)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/form/Hibernate3FileFormLayoutData.java 2009-07-06 02:16:20 UTC (rev 16391)
@@ -22,61 +22,61 @@
private final static IFormData[] FILE_DEFINITIONS =
new IFormData[] {
new FormData(
- "File Hibernate 3.0",
+ Messages.Hibernate3FileFormLayoutData_FileDef,
"", //"Description //$NON-NLS-1$
Hibernate3FormLayoutDataUtil.createGeneralFormAttributeData("FileHibernate3") //$NON-NLS-1$
),
new FormData(
- "Advanced",
+ Messages.Hibernate3FileFormLayoutData_Advanced,
"", //"Description //$NON-NLS-1$
Hibernate3FormLayoutDataUtil.createAdvancedFormAttributeData("FileHibernate3") //$NON-NLS-1$
),
Hibernate3MetaFormLayoutData.META_LIST_DEFINITION,
new FormData(
- "Types",
+ Messages.Hibernate3FileFormLayoutData_Types,
"", //Description //$NON-NLS-1$
"Types", //$NON-NLS-1$
new FormAttributeData[]{
- new FormAttributeData("name", 30, "name"), //$NON-NLS-1$
- new FormAttributeData("class", 70, "class")}, //$NON-NLS-1$
+ new FormAttributeData("name", 30, Messages.Hibernate3FileFormLayoutData_Name), //$NON-NLS-1$
+ new FormAttributeData("class", 70, Messages.Hibernate3FileFormLayoutData_Class)}, //$NON-NLS-1$
new String[]{"Hibernate3Typedef"}, //$NON-NLS-1$
Hibernate3FormLayoutDataUtil.createDefaultFormActionData("CreateActions.AddTypedef") //$NON-NLS-1$
),
new FormData(
- "Imports",
+ Messages.Hibernate3FileFormLayoutData_Imports,
"", //Description //$NON-NLS-1$
"Imports", //$NON-NLS-1$
new FormAttributeData[]{
- new FormAttributeData("class", 60, "class"), //$NON-NLS-1$
- new FormAttributeData("rename", 40, "rename")}, //$NON-NLS-1$
+ new FormAttributeData("class", 60, Messages.Hibernate3FileFormLayoutData_Class), //$NON-NLS-1$
+ new FormAttributeData("rename", 40, Messages.Hibernate3FileFormLayoutData_Rename)}, //$NON-NLS-1$
new String[]{"Hibernate3Import"}, //$NON-NLS-1$
Hibernate3FormLayoutDataUtil.createDefaultFormActionData("CreateActions.AddImport") //$NON-NLS-1$
),
new FormData(
- "Classes",
+ Messages.Hibernate3FileFormLayoutData_Classes,
"", //Description //$NON-NLS-1$
"Classes", //$NON-NLS-1$
- new FormAttributeData[]{new FormAttributeData("name", 100, "class name")}, //$NON-NLS-1$
+ new FormAttributeData[]{new FormAttributeData("name", 100, Messages.Hibernate3FileFormLayoutData_ClassName)}, //$NON-NLS-1$
new String[]{"Hibernate3Class", "Hibernate3Subclass", "Hibernate3JoinedSubclass", "Hibernate3UnionSubclass"}, //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
Hibernate3FormLayoutDataUtil.createDefaultFormActionData("CreateActions.AddAnyClass") //$NON-NLS-1$
),
new FormData(
- "Queries",
+ Messages.Hibernate3FileFormLayoutData_Queries,
"", //"Description //$NON-NLS-1$
"Queries", //$NON-NLS-1$
new FormAttributeData[]{
- new FormAttributeData("name", 30, "name"), //$NON-NLS-1$
- new FormAttributeData("query", 70, "query")}, //$NON-NLS-1$
+ new FormAttributeData("name", 30, Messages.Hibernate3FileFormLayoutData_Name), //$NON-NLS-1$
+ new FormAttributeData("query", 70, Messages.Hibernate3FileFormLayoutData_Query)}, //$NON-NLS-1$
new String[]{"Hibernate3Query", "Hibernate3SQLQuery"}, //$NON-NLS-1$ //$NON-NLS-2$
Hibernate3FormLayoutDataUtil.createDefaultFormActionData("CreateActions.AddAnyQuery") //$NON-NLS-1$
),
new FormData(
- "Filters",
+ Messages.Hibernate3FileFormLayoutData_Filters,
"", //"Description //$NON-NLS-1$
"Filters", //$NON-NLS-1$
new FormAttributeData[]{
- new FormAttributeData("name", 30, "name"), //$NON-NLS-1$
- new FormAttributeData("value", 70, "value")}, //$NON-NLS-1$
+ new FormAttributeData("name", 30, Messages.Hibernate3FileFormLayoutData_Name), //$NON-NLS-1$
+ new FormAttributeData("value", 70, Messages.Hibernate3FileFormLayoutData_Value)}, //$NON-NLS-1$
new String[]{"Hibernate3Filterdef"}, //$NON-NLS-1$
Hibernate3FormLayoutDataUtil.createDefaultFormActionData("CreateActions.AddFilterdef") //$NON-NLS-1$
),
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/form/Hibernate3FilterFormLayoutData.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/form/Hibernate3FilterFormLayoutData.java 2009-07-06 01:01:23 UTC (rev 16390)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/form/Hibernate3FilterFormLayoutData.java 2009-07-06 02:16:20 UTC (rev 16391)
@@ -25,34 +25,34 @@
static String TYPEDEF_ENTITY = "Hibernate3Typedef"; //$NON-NLS-1$
final static IFormData FILTER_LIST_DEFINITION = new FormData(
- "Filters",
+ Messages.Hibernate3FilterFormLayoutData_List,
"", //Description //$NON-NLS-1$
"Filters", //$NON-NLS-1$
- new FormAttributeData[]{new FormAttributeData("name", 100, "name")}, //$NON-NLS-1$
+ new FormAttributeData[]{new FormAttributeData("name", 100, Messages.Hibernate3FilterFormLayoutData_Name)}, //$NON-NLS-1$
new String[]{FILTER_ENTITY},
Hibernate3FormLayoutDataUtil.createDefaultFormActionData("CreateActions.AddFilter") //$NON-NLS-1$
);
final static IFormData FILTER_FOLDER_DEFINITION = new FormData(
- "Filters",
+ Messages.Hibernate3FilterFormLayoutData_Folder,
"", //"Description //$NON-NLS-1$
FILTER_FOLDER_ENTITY,
- new FormAttributeData[]{new FormAttributeData("name", 100, "name")}, //$NON-NLS-1$
+ new FormAttributeData[]{new FormAttributeData("name", 100, Messages.Hibernate3FilterFormLayoutData_Name)}, //$NON-NLS-1$
new String[]{FILTER_ENTITY},
Hibernate3FormLayoutDataUtil.createDefaultFormActionData("CreateActions.AddFilter") //$NON-NLS-1$
);
final static IFormData FILTERDEF_FOLDER_DEFINITION = new FormData(
- "Filters",
+ Messages.Hibernate3FilterFormLayoutData_FilterDefFolder,
"", //"Description //$NON-NLS-1$
FILTERDEF_FOLDER_ENTITY,
- new FormAttributeData[]{new FormAttributeData("name", 100, "name")}, //$NON-NLS-1$
+ new FormAttributeData[]{new FormAttributeData("name", 100, Messages.Hibernate3FilterFormLayoutData_Name)}, //$NON-NLS-1$
new String[]{FILTERDEF_ENTITY},
Hibernate3FormLayoutDataUtil.createDefaultFormActionData("CreateActions.AddFilterdef") //$NON-NLS-1$
);
private final static IFormData PARAMETERS = new FormData(
- "Parameters",
+ Messages.Hibernate3FilterFormLayoutData_Params,
"", //"Description //$NON-NLS-1$
new FormAttributeData[]{new FormAttributeData("name", 30), new FormAttributeData("type", 70)}, //$NON-NLS-1$ //$NON-NLS-2$
new String[]{"Hibernate3FilterParam"}, //$NON-NLS-1$
@@ -61,7 +61,7 @@
private final static IFormData[] FILTERDEF_DEFINITIONS = new IFormData[] {
new FormData(
- "Filter Definition",
+ Messages.Hibernate3FilterFormLayoutData_FilterDef,
"", //"Description //$NON-NLS-1$
Hibernate3FormLayoutDataUtil.createGeneralFormAttributeData(FILTERDEF_ENTITY)
),
@@ -74,7 +74,7 @@
private final static IFormData[] TYPEDEF_DEFINITIONS = new IFormData[] {
new FormData(
- "Type Definition",
+ Messages.Hibernate3FilterFormLayoutData_TypeDef,
"", //"Description //$NON-NLS-1$
Hibernate3FormLayoutDataUtil.createGeneralFormAttributeData(TYPEDEF_ENTITY)
),
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/form/Hibernate3FormLayoutData.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/form/Hibernate3FormLayoutData.java 2009-07-06 01:01:23 UTC (rev 16390)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/form/Hibernate3FormLayoutData.java 2009-07-06 02:16:20 UTC (rev 16391)
@@ -73,40 +73,40 @@
Hibernate3FormulaFormLayoutData.FORMULA_DEFINITION,
new FormData(
- "Types",
+ Messages.Hibernate3FormLayoutData_Types,
"", //"Description //$NON-NLS-1$
"Hibernate3TypedefFolder", //$NON-NLS-1$
new FormAttributeData[]{
- new FormAttributeData("name", 30, "name"), //$NON-NLS-1$
- new FormAttributeData("class", 70, "class")}, //$NON-NLS-1$
+ new FormAttributeData("name", 30, Messages.Hibernate3FormLayoutData_Name), //$NON-NLS-1$
+ new FormAttributeData("class", 70, Messages.Hibernate3FormLayoutData_Class)}, //$NON-NLS-1$
new String[]{"Hibernate3Typedef"}, //$NON-NLS-1$
Hibernate3FormLayoutDataUtil.createDefaultFormActionData("CreateActions.AddTypedef") //$NON-NLS-1$
),
new FormData(
- "Imports",
+ Messages.Hibernate3FormLayoutData_Imports,
"", //"Description //$NON-NLS-1$
"Hibernate3ImportFolder", //$NON-NLS-1$
new FormAttributeData[]{
- new FormAttributeData("class", 60, "class"), //$NON-NLS-1$
- new FormAttributeData("rename", 40, "rename")}, //$NON-NLS-1$
+ new FormAttributeData("class", 60, Messages.Hibernate3FormLayoutData_Class), //$NON-NLS-1$
+ new FormAttributeData("rename", 40, Messages.Hibernate3FormLayoutData_Rename)}, //$NON-NLS-1$
new String[]{"Hibernate3Import"}, //$NON-NLS-1$
Hibernate3FormLayoutDataUtil.createDefaultFormActionData("CreateActions.AddTypedef") //$NON-NLS-1$
),
new FormData(
- "Classes",
+ Messages.Hibernate3FormLayoutData_Classes,
"", //"Description //$NON-NLS-1$
"Hibernate3ClassFolder", //$NON-NLS-1$
- new FormAttributeData[]{new FormAttributeData("name", 100, "class name")}, //$NON-NLS-1$
- Hibernate3FormLayoutDataUtil.getChildEntitiesWithAttribute("Hibernate3ClassFolder", "name"), //$NON-NLS-1$
+ new FormAttributeData[]{new FormAttributeData("name", 100, Messages.Hibernate3FormLayoutData_ClassName)}, //$NON-NLS-1$
+ Hibernate3FormLayoutDataUtil.getChildEntitiesWithAttribute("Hibernate3ClassFolder", Messages.Hibernate3FormLayoutData_Name), //$NON-NLS-1$
Hibernate3FormLayoutDataUtil.createDefaultFormActionData("CreateActions.AddAnyClass") //$NON-NLS-1$
),
new FormData(
- "Queries",
+ Messages.Hibernate3FormLayoutData_Queries,
"", //"Description //$NON-NLS-1$
"Hibernate3QueryFolder", //$NON-NLS-1$
new FormAttributeData[]{
- new FormAttributeData("name", 30, "name"), //$NON-NLS-1$
- new FormAttributeData("query", 70, "query")}, //$NON-NLS-1$
+ new FormAttributeData("name", 30, Messages.Hibernate3FormLayoutData_Name), //$NON-NLS-1$
+ new FormAttributeData("query", 70, Messages.Hibernate3FormLayoutData_Query)}, //$NON-NLS-1$
new String[]{"Hibernate3Query", "Hibernate3SQLQuery"}, //$NON-NLS-1$ //$NON-NLS-2$
Hibernate3FormLayoutDataUtil.createDefaultFormActionData("CreateActions.AddAnyQuery") //$NON-NLS-1$
),
@@ -119,15 +119,15 @@
Hibernate3FilterFormLayoutData.FILTERDEF_DEFINITION,
Hibernate3FilterFormLayoutData.TYPEDEF_DEFINITION,
- Hibernate3FormLayoutDataUtil.createAllChildrenFormData("Properties",
+ Hibernate3FormLayoutDataUtil.createAllChildrenFormData(Messages.Hibernate3FormLayoutData_Properties,
"Hibernate3AttributesCFolder", null, "name", "CreateActions.AddAttribute"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- Hibernate3FormLayoutDataUtil.createAllChildrenFormData("Properties",
+ Hibernate3FormLayoutDataUtil.createAllChildrenFormData(Messages.Hibernate3FormLayoutData_Properties,
"Hibernate3AttributesFolder", null, "name", "CreateActions.AddAttribute"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- Hibernate3FormLayoutDataUtil.createAllChildrenFormData("Properties",
+ Hibernate3FormLayoutDataUtil.createAllChildrenFormData(Messages.Hibernate3FormLayoutData_Properties,
"Hibernate3AttributesJFolder", null, "name", "CreateActions.AddAttribute"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- Hibernate3FormLayoutDataUtil.createAllChildrenFormData("Properties",
+ Hibernate3FormLayoutDataUtil.createAllChildrenFormData(Messages.Hibernate3FormLayoutData_Properties,
"Hibernate3AttributesPFolder", null, "name", "CreateActions.AddAttribute"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- Hibernate3FormLayoutDataUtil.createAllChildrenFormData("Properties",
+ Hibernate3FormLayoutDataUtil.createAllChildrenFormData(Messages.Hibernate3FormLayoutData_Properties,
"Hibernate3AttributesNestedFolder", null, "name", "CreateActions.AddAttribute"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
Hibernate3DatabaseObjectFormLayoutData.DATABASE_OBJECT_CD_DEFINITION,
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/form/Messages.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/form/Messages.java 2009-07-06 01:01:23 UTC (rev 16390)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/form/Messages.java 2009-07-06 02:16:20 UTC (rev 16391)
@@ -25,7 +25,65 @@
public static String Hibernate3AnyFormLayoutData_Advanced;
public static String Hibernate3AnyFormLayoutData_General;
public static String Hibernate3AnyFormLayoutData_List;
+ public static String Hibernate3ClassFormLayoutData_Advanced;
+ public static String Hibernate3ClassFormLayoutData_Class;
+ public static String Hibernate3ClassFormLayoutData_ClassName;
+ public static String Hibernate3ClassFormLayoutData_Details;
+ public static String Hibernate3ClassFormLayoutData_Join;
+ public static String Hibernate3ClassFormLayoutData_JoinedSubclass;
+ public static String Hibernate3ClassFormLayoutData_Name;
+ public static String Hibernate3ClassFormLayoutData_Properties;
+ public static String Hibernate3ClassFormLayoutData_Subclass;
+ public static String Hibernate3ClassFormLayoutData_Subclasses;
+ public static String Hibernate3ClassFormLayoutData_SubclassInfo;
public static String Hibernate3ColumnFormLayoutData_List;
+ public static String Hibernate3ComponentFormLayoutData_Advanced;
+ public static String Hibernate3ComponentFormLayoutData_Component;
+ public static String Hibernate3ComponentFormLayoutData_DynamicComponent;
+ public static String Hibernate3ComponentFormLayoutData_Properties;
+ public static String Hibernate3CompositeElementFormLayoutData_Advanced;
+ public static String Hibernate3CompositeElementFormLayoutData_CompositeElement;
+ public static String Hibernate3CompositeElementFormLayoutData_CompositeElementNested;
+ public static String Hibernate3CompositeElementFormLayoutData_Properties;
+ public static String Hibernate3DatabaseObjectFormLayoutData_DatabaseObjectAttr;
+ public static String Hibernate3DatabaseObjectFormLayoutData_DatabaseObjectCreateDrop;
+ public static String Hibernate3DatabaseObjectFormLayoutData_DatabaseObjectDef;
+ public static String Hibernate3DatabaseObjectFormLayoutData_DatabaseObjectList;
+ public static String Hibernate3DatabaseObjectFormLayoutData_DialectScopes;
+ public static String Hibernate3ElementFormLayoutData_Advanced;
+ public static String Hibernate3ElementFormLayoutData_Element;
+ public static String Hibernate3ElementFormLayoutData_ManyToAny;
+ public static String Hibernate3ElementFormLayoutData_ManyToMany;
+ public static String Hibernate3FileFormLayoutData_Advanced;
+ public static String Hibernate3FileFormLayoutData_Class;
+ public static String Hibernate3FileFormLayoutData_Classes;
+ public static String Hibernate3FileFormLayoutData_ClassName;
+ public static String Hibernate3FileFormLayoutData_FileDef;
+ public static String Hibernate3FileFormLayoutData_Filters;
+ public static String Hibernate3FileFormLayoutData_Imports;
+ public static String Hibernate3FileFormLayoutData_Name;
+ public static String Hibernate3FileFormLayoutData_Queries;
+ public static String Hibernate3FileFormLayoutData_Query;
+ public static String Hibernate3FileFormLayoutData_Rename;
+ public static String Hibernate3FileFormLayoutData_Types;
+ public static String Hibernate3FileFormLayoutData_Value;
+ public static String Hibernate3FilterFormLayoutData_FilterDef;
+ public static String Hibernate3FilterFormLayoutData_FilterDefFolder;
+ public static String Hibernate3FilterFormLayoutData_Folder;
+ public static String Hibernate3FilterFormLayoutData_List;
+ public static String Hibernate3FilterFormLayoutData_Name;
+ public static String Hibernate3FilterFormLayoutData_Params;
+ public static String Hibernate3FilterFormLayoutData_TypeDef;
+ public static String Hibernate3FormLayoutData_Class;
+ public static String Hibernate3FormLayoutData_Classes;
+ public static String Hibernate3FormLayoutData_ClassName;
+ public static String Hibernate3FormLayoutData_Imports;
+ public static String Hibernate3FormLayoutData_Name;
+ public static String Hibernate3FormLayoutData_Properties;
+ public static String Hibernate3FormLayoutData_Queries;
+ public static String Hibernate3FormLayoutData_Query;
+ public static String Hibernate3FormLayoutData_Rename;
+ public static String Hibernate3FormLayoutData_Types;
public static String Hibernate3FormulaFormLayoutData_Formula;
public static String Hibernate3FormulaFormLayoutData_FormulaList;
public static String Hibernate3IdFormLayoutData_Advanced;
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/form/messages.properties
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/form/messages.properties 2009-07-06 01:01:23 UTC (rev 16390)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/form/messages.properties 2009-07-06 02:16:20 UTC (rev 16391)
@@ -19,7 +19,65 @@
Hibernate3AnyFormLayoutData_Advanced=Advanced
Hibernate3AnyFormLayoutData_General=Any
Hibernate3AnyFormLayoutData_List=Meta Values
+Hibernate3ClassFormLayoutData_Advanced=Advanced
+Hibernate3ClassFormLayoutData_Class=Class
+Hibernate3ClassFormLayoutData_ClassName=class name
+Hibernate3ClassFormLayoutData_Details=details
+Hibernate3ClassFormLayoutData_Join=Join
+Hibernate3ClassFormLayoutData_JoinedSubclass=Joined Subclass
+Hibernate3ClassFormLayoutData_Name=name
+Hibernate3ClassFormLayoutData_Properties=Properties
+Hibernate3ClassFormLayoutData_Subclass=Subclass
+Hibernate3ClassFormLayoutData_Subclasses=Subclasses
+Hibernate3ClassFormLayoutData_SubclassInfo=subclass info
Hibernate3ColumnFormLayoutData_List=Columns
+Hibernate3ComponentFormLayoutData_Advanced=Advanced
+Hibernate3ComponentFormLayoutData_Component=Component
+Hibernate3ComponentFormLayoutData_DynamicComponent=Dynamic Component
+Hibernate3ComponentFormLayoutData_Properties=Properties
+Hibernate3CompositeElementFormLayoutData_Advanced=Advanced
+Hibernate3CompositeElementFormLayoutData_CompositeElement=Composite Element
+Hibernate3CompositeElementFormLayoutData_CompositeElementNested=Composite Element
+Hibernate3CompositeElementFormLayoutData_Properties=Properties
+Hibernate3DatabaseObjectFormLayoutData_DatabaseObjectAttr=database object
+Hibernate3DatabaseObjectFormLayoutData_DatabaseObjectCreateDrop=Database Object
+Hibernate3DatabaseObjectFormLayoutData_DatabaseObjectDef=Database Object
+Hibernate3DatabaseObjectFormLayoutData_DatabaseObjectList=Database Objects
+Hibernate3DatabaseObjectFormLayoutData_DialectScopes=Dialect Scopes
+Hibernate3ElementFormLayoutData_Advanced=Advanced
+Hibernate3ElementFormLayoutData_Element=Element
+Hibernate3ElementFormLayoutData_ManyToAny=Many To Any
+Hibernate3ElementFormLayoutData_ManyToMany=Many To Many
+Hibernate3FileFormLayoutData_Advanced=Advanced
+Hibernate3FileFormLayoutData_Class=class
+Hibernate3FileFormLayoutData_Classes=Classes
+Hibernate3FileFormLayoutData_ClassName=class name
+Hibernate3FileFormLayoutData_FileDef=File Hibernate 3.0
+Hibernate3FileFormLayoutData_Filters=Filters
+Hibernate3FileFormLayoutData_Imports=Imports
+Hibernate3FileFormLayoutData_Name=name
+Hibernate3FileFormLayoutData_Queries=Queries
+Hibernate3FileFormLayoutData_Query=query
+Hibernate3FileFormLayoutData_Rename=rename
+Hibernate3FileFormLayoutData_Types=Types
+Hibernate3FileFormLayoutData_Value=value
+Hibernate3FilterFormLayoutData_FilterDef=Filter Definition
+Hibernate3FilterFormLayoutData_FilterDefFolder=Filters
+Hibernate3FilterFormLayoutData_Folder=Filters
+Hibernate3FilterFormLayoutData_List=Filters
+Hibernate3FilterFormLayoutData_Name=name
+Hibernate3FilterFormLayoutData_Params=Parameters
+Hibernate3FilterFormLayoutData_TypeDef=Type Definition
+Hibernate3FormLayoutData_Class=class
+Hibernate3FormLayoutData_Classes=Classes
+Hibernate3FormLayoutData_ClassName=class name
+Hibernate3FormLayoutData_Imports=Imports
+Hibernate3FormLayoutData_Name=name
+Hibernate3FormLayoutData_Properties=Properties
+Hibernate3FormLayoutData_Queries=Queries
+Hibernate3FormLayoutData_Query=query
+Hibernate3FormLayoutData_Rename=rename
+Hibernate3FormLayoutData_Types=Types
Hibernate3FormulaFormLayoutData_Formula=Formula
Hibernate3FormulaFormLayoutData_FormulaList=Formulas
Hibernate3IdFormLayoutData_Advanced=Advanced
14 years, 10 months
JBoss Tools SVN: r16390 - trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/form.
by jbosstools-commits@lists.jboss.org
Author: sflanigan
Date: 2009-07-05 21:01:23 -0400 (Sun, 05 Jul 2009)
New Revision: 16390
Added:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/form/Messages.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/form/messages.properties
Log:
https://jira.jboss.org/jira/browse/JBIDE-3557 Externalize English strings
Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/form/Messages.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/form/Messages.java (rev 0)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/form/Messages.java 2009-07-06 01:01:23 UTC (rev 16390)
@@ -0,0 +1,108 @@
+package org.jboss.tools.hibernate.ui.xml.form;
+
+import org.eclipse.osgi.util.NLS;
+
+public class Messages extends NLS {
+ private static final String BUNDLE_NAME = "org.jboss.tools.hibernate.ui.xml.form.messages"; //$NON-NLS-1$
+ public static String HibConfig3CacheFormLayoutData_Folder;
+ public static String HibConfig3CacheFormLayoutData_Item;
+ public static String HibConfig3CacheFormLayoutData_List;
+ public static String HibConfig3EventFormLayoutData_Class;
+ public static String HibConfig3EventFormLayoutData_Folder;
+ public static String HibConfig3EventFormLayoutData_EventHeader;
+ public static String HibConfig3EventFormLayoutData_List;
+ public static String HibConfig3EventFormLayoutData_ListenerFolder;
+ public static String HibConfig3EventFormLayoutData_ListenerList;
+ public static String HibConfig3EventFormLayoutData_Type;
+ public static String HibConfig3FileFormLayoutData_Header;
+ public static String HibConfig3MappingFormLayoutData_Folder;
+ public static String HibConfig3MappingFormLayoutData_List;
+ public static String HibConfig3MappingFormLayoutData_Item;
+ public static String HibConfig3PropertyFormLayoutData_Name;
+ public static String HibConfig3PropertyFormLayoutData_Folder;
+ public static String HibConfig3PropertyFormLayoutData_List;
+ public static String HibConfig3SessionFormLayoutData_Header;
+ public static String Hibernate3AnyFormLayoutData_Advanced;
+ public static String Hibernate3AnyFormLayoutData_General;
+ public static String Hibernate3AnyFormLayoutData_List;
+ public static String Hibernate3ColumnFormLayoutData_List;
+ public static String Hibernate3FormulaFormLayoutData_Formula;
+ public static String Hibernate3FormulaFormLayoutData_FormulaList;
+ public static String Hibernate3IdFormLayoutData_Advanced;
+ public static String Hibernate3IdFormLayoutData_CollectionID;
+ public static String Hibernate3IdFormLayoutData_CompositeID;
+ public static String Hibernate3IdFormLayoutData_CompositeIndex;
+ public static String Hibernate3IdFormLayoutData_IDKeyProperties;
+ public static String Hibernate3IdFormLayoutData_IndexKeyProperties;
+ public static String Hibernate3KeyFormLayoutData_Advanced;
+ public static String Hibernate3KeyFormLayoutData_CompositeMapKey;
+ public static String Hibernate3KeyFormLayoutData_Index;
+ public static String Hibernate3KeyFormLayoutData_Key;
+ public static String Hibernate3KeyFormLayoutData_KeyManyToOne;
+ public static String Hibernate3KeyFormLayoutData_KeyProperties;
+ public static String Hibernate3KeyFormLayoutData_KeyProperty;
+ public static String Hibernate3KeyFormLayoutData_ListIndex;
+ public static String Hibernate3KeyFormLayoutData_MapKey;
+ public static String Hibernate3KeyFormLayoutData_MapKeyManyToMany;
+ public static String Hibernate3ListFormLayoutData_Array;
+ public static String Hibernate3ListFormLayoutData_ArrayAdvanced;
+ public static String Hibernate3ListFormLayoutData_ArrayElement;
+ public static String Hibernate3ListFormLayoutData_ArrayElementKind;
+ public static String Hibernate3ListFormLayoutData_ArrayIndex;
+ public static String Hibernate3ListFormLayoutData_ArrayIndexKind;
+ public static String Hibernate3ListFormLayoutData_ArrayKey;
+ public static String Hibernate3ListFormLayoutData_List;
+ public static String Hibernate3ListFormLayoutData_ListAdvanced;
+ public static String Hibernate3ListFormLayoutData_ListElement;
+ public static String Hibernate3ListFormLayoutData_ListElementKind;
+ public static String Hibernate3ListFormLayoutData_ListIndex;
+ public static String Hibernate3ListFormLayoutData_ListIndexKind;
+ public static String Hibernate3ListFormLayoutData_ListKey;
+ public static String Hibernate3ManyToOneFormLayoutData_Advanced;
+ public static String Hibernate3ManyToOneFormLayoutData_ManyToOne;
+ public static String Hibernate3MapFormLayoutData_Advanced;
+ public static String Hibernate3MapFormLayoutData_Element;
+ public static String Hibernate3MapFormLayoutData_ElementKind;
+ public static String Hibernate3MapFormLayoutData_Index;
+ public static String Hibernate3MapFormLayoutData_IndexKind;
+ public static String Hibernate3MapFormLayoutData_Key;
+ public static String Hibernate3MapFormLayoutData_Map;
+ public static String Hibernate3MetaFormLayoutData_Attr;
+ public static String Hibernate3MetaFormLayoutData_Class;
+ public static String Hibernate3MetaFormLayoutData_Folder;
+ public static String Hibernate3MetaFormLayoutData_List;
+ public static String Hibernate3MetaFormLayoutData_TuplizersFolder;
+ public static String Hibernate3MetaFormLayoutData_TuplizersList;
+ public static String Hibernate3MetaFormLayoutData_Value;
+ public static String Hibernate3OneToOneFormLayoutData_Advanced;
+ public static String Hibernate3OneToOneFormLayoutData_OneToOne;
+ public static String Hibernate3PropertyFormLayoutData_Advanced;
+ public static String Hibernate3PropertyFormLayoutData_Property;
+ public static String Hibernate3SetFormLayoutData_Bag;
+ public static String Hibernate3SetFormLayoutData_BagAdvanced;
+ public static String Hibernate3SetFormLayoutData_BagElement;
+ public static String Hibernate3SetFormLayoutData_BagElementKind;
+ public static String Hibernate3SetFormLayoutData_BagKey;
+ public static String Hibernate3SetFormLayoutData_Set;
+ public static String Hibernate3SetFormLayoutData_SetAdvanced;
+ public static String Hibernate3SetFormLayoutData_SetElement;
+ public static String Hibernate3SetFormLayoutData_SetElementKind;
+ public static String Hibernate3SetFormLayoutData_SetKey;
+ public static String Hibernate3SQLQueryFormLayoutData_QueryAdvanced;
+ public static String Hibernate3SQLQueryFormLayoutData_QueryReturns;
+ public static String Hibernate3SQLQueryFormLayoutData_ResultSet;
+ public static String Hibernate3SQLQueryFormLayoutData_ResultSetAdvanced;
+ public static String Hibernate3SQLQueryFormLayoutData_ResultSetReturns;
+ public static String Hibernate3SQLQueryFormLayoutData_ResultSetReturnScalars;
+ public static String Hibernate3SQLQueryFormLayoutData_QueryReturnScalars;
+ public static String Hibernate3SQLQueryFormLayoutData_SQLQuery;
+ public static String Hibernate3SQLQueryFormLayoutData_SyncFolder;
+ public static String Hibernate3SQLQueryFormLayoutData_SyncList;
+ static {
+ // initialize resource bundle
+ NLS.initializeMessages(BUNDLE_NAME, Messages.class);
+ }
+
+ private Messages() {
+ }
+}
Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/form/messages.properties
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/form/messages.properties (rev 0)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/form/messages.properties 2009-07-06 01:01:23 UTC (rev 16390)
@@ -0,0 +1,94 @@
+HibConfig3CacheFormLayoutData_Folder=Caches
+HibConfig3CacheFormLayoutData_Item=item
+HibConfig3CacheFormLayoutData_List=Caches
+HibConfig3EventFormLayoutData_Class=class
+HibConfig3EventFormLayoutData_Folder=Events
+HibConfig3EventFormLayoutData_EventHeader=Event
+HibConfig3EventFormLayoutData_List=Events
+HibConfig3EventFormLayoutData_ListenerFolder=Listeners
+HibConfig3EventFormLayoutData_ListenerList=Listeners
+HibConfig3EventFormLayoutData_Type=type
+HibConfig3FileFormLayoutData_Header=File Hibernate Configuration 3.0
+HibConfig3MappingFormLayoutData_Folder=Mappings
+HibConfig3MappingFormLayoutData_List=Mappings
+HibConfig3MappingFormLayoutData_Item=item
+HibConfig3PropertyFormLayoutData_Name=name
+HibConfig3PropertyFormLayoutData_Folder=Properties
+HibConfig3PropertyFormLayoutData_List=Properties
+HibConfig3SessionFormLayoutData_Header=Session Factory
+Hibernate3AnyFormLayoutData_Advanced=Advanced
+Hibernate3AnyFormLayoutData_General=Any
+Hibernate3AnyFormLayoutData_List=Meta Values
+Hibernate3ColumnFormLayoutData_List=Columns
+Hibernate3FormulaFormLayoutData_Formula=Formula
+Hibernate3FormulaFormLayoutData_FormulaList=Formulas
+Hibernate3IdFormLayoutData_Advanced=Advanced
+Hibernate3IdFormLayoutData_CollectionID=Collection ID
+Hibernate3IdFormLayoutData_CompositeID=Composite ID
+Hibernate3IdFormLayoutData_CompositeIndex=Composite Index
+Hibernate3IdFormLayoutData_IndexKeyProperties=Key Properties
+Hibernate3IdFormLayoutData_IDKeyProperties=Key Properties
+Hibernate3KeyFormLayoutData_Advanced=Advanced
+Hibernate3KeyFormLayoutData_CompositeMapKey=Composite Map key
+Hibernate3KeyFormLayoutData_Index=Index
+Hibernate3KeyFormLayoutData_Key=Key
+Hibernate3KeyFormLayoutData_KeyManyToOne=Key Many To One
+Hibernate3KeyFormLayoutData_KeyProperties=Key Properties
+Hibernate3KeyFormLayoutData_KeyProperty=Key Property
+Hibernate3KeyFormLayoutData_ListIndex=List Index
+Hibernate3KeyFormLayoutData_MapKey=Map Key
+Hibernate3KeyFormLayoutData_MapKeyManyToMany=Map Key Many To Many
+Hibernate3ListFormLayoutData_Array=Array
+Hibernate3ListFormLayoutData_ArrayAdvanced=Advanced
+Hibernate3ListFormLayoutData_ArrayElement=Element
+Hibernate3ListFormLayoutData_ArrayElementKind=Element Kind
+Hibernate3ListFormLayoutData_ArrayIndex=Index
+Hibernate3ListFormLayoutData_ArrayIndexKind=Index Kind
+Hibernate3ListFormLayoutData_ArrayKey=Key
+Hibernate3ListFormLayoutData_List=List
+Hibernate3ListFormLayoutData_ListAdvanced=Advanced
+Hibernate3ListFormLayoutData_ListElement=Element
+Hibernate3ListFormLayoutData_ListElementKind=Element Kind
+Hibernate3ListFormLayoutData_ListIndex=Index
+Hibernate3ListFormLayoutData_ListIndexKind=Index Kind
+Hibernate3ListFormLayoutData_ListKey=Key
+Hibernate3ManyToOneFormLayoutData_Advanced=Advanced
+Hibernate3ManyToOneFormLayoutData_ManyToOne=Many To One
+Hibernate3MapFormLayoutData_Advanced=Advanced
+Hibernate3MapFormLayoutData_Element=Element
+Hibernate3MapFormLayoutData_ElementKind=Element Kind
+Hibernate3MapFormLayoutData_Index=Index
+Hibernate3MapFormLayoutData_IndexKind=Index Kind
+Hibernate3MapFormLayoutData_Key=Key
+Hibernate3MapFormLayoutData_Map=Map
+Hibernate3MetaFormLayoutData_Attr=attribute
+Hibernate3MetaFormLayoutData_Class=class
+Hibernate3MetaFormLayoutData_Folder=Meta
+Hibernate3MetaFormLayoutData_List=Meta
+Hibernate3MetaFormLayoutData_TuplizersFolder=Tuplizers
+Hibernate3MetaFormLayoutData_TuplizersList=Tuplizers
+Hibernate3MetaFormLayoutData_Value=value
+Hibernate3OneToOneFormLayoutData_Advanced=Advanced
+Hibernate3OneToOneFormLayoutData_OneToOne=One To One
+Hibernate3PropertyFormLayoutData_Advanced=Advanced
+Hibernate3PropertyFormLayoutData_Property=Property
+Hibernate3SetFormLayoutData_Bag=Bag
+Hibernate3SetFormLayoutData_BagAdvanced=Advanced
+Hibernate3SetFormLayoutData_BagElement=Element
+Hibernate3SetFormLayoutData_BagElementKind=Element Kind
+Hibernate3SetFormLayoutData_BagKey=Key
+Hibernate3SetFormLayoutData_Set=Set
+Hibernate3SetFormLayoutData_SetAdvanced=Advanced
+Hibernate3SetFormLayoutData_SetElement=Element
+Hibernate3SetFormLayoutData_SetElementKind=Element Kind
+Hibernate3SetFormLayoutData_SetKey=Key
+Hibernate3SQLQueryFormLayoutData_QueryAdvanced=Advanced
+Hibernate3SQLQueryFormLayoutData_QueryReturns=Returns
+Hibernate3SQLQueryFormLayoutData_ResultSet=Result Set
+Hibernate3SQLQueryFormLayoutData_ResultSetAdvanced=Advanced
+Hibernate3SQLQueryFormLayoutData_ResultSetReturns=Returns
+Hibernate3SQLQueryFormLayoutData_ResultSetReturnScalars=Return Scalars
+Hibernate3SQLQueryFormLayoutData_QueryReturnScalars=Return Scalars
+Hibernate3SQLQueryFormLayoutData_SQLQuery=SQL Query
+Hibernate3SQLQueryFormLayoutData_SyncFolder=Synchronize
+Hibernate3SQLQueryFormLayoutData_SyncList=Synchronize
14 years, 10 months