| author | Rainer Pielmann | 2012-02-07 07:06:11 (EST) |
|---|---|---|
| committer | Stephan Born | 2012-04-27 06:56:01 (EDT) |
| commit | c442d044ded570736615a567fe3b76b8962dd1e5 (patch) (side-by-side diff) | |
| tree | a9b86f83396c96fba0543b4f8c1ad98b624c00bb | |
| parent | 56e6c0ade991582e6b63cc35b14d10ecee7f75d1 (diff) | |
| download | org.eclipse.stardust.reporting.ui-c442d044ded570736615a567fe3b76b8962dd1e5.zip org.eclipse.stardust.reporting.ui-c442d044ded570736615a567fe3b76b8962dd1e5.tar.gz org.eclipse.stardust.reporting.ui-c442d044ded570736615a567fe3b76b8962dd1e5.tar.bz2 | |
Jira-ID: CRNT-22383 Merge changes done on b_dev_6_0_x after 6.0.2.GA (6.0.2.2-r49368) through 6.0.3.GA (6.0.3.6-r50668) and beyond (6.0.x HEAD) to 7.0 (trunk) - moonglow / simulation / tate / tds (org.eclipse.stardust.reporting.ide.integration)
git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/reporting.ui@53447 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
8 files changed, 421 insertions, 73 deletions
diff --git a/org.eclipse.stardust.reporting.ide.integration/ReportRunner.java b/org.eclipse.stardust.reporting.ide.integration/ReportRunner.java new file mode 100644 index 0000000..0c4b239 --- a/dev/null +++ b/org.eclipse.stardust.reporting.ide.integration/ReportRunner.java @@ -0,0 +1,286 @@ +/*
+ * $Id: ReportRunner.java 49556 2011-09-28 13:21:53Z rainer.pielmann $
+ * (C) 2000 - 2006 CARNOT AG
+ */
+package ag.carnot.workflow.model.reporting;
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.OutputStream;
+import java.net.URL;
+import java.text.MessageFormat;
+import java.util.Arrays;
+import java.util.Enumeration;
+
+import org.eclipse.birt.report.designer.core.model.SessionHandleAdapter;
+import org.eclipse.birt.report.model.api.ModuleHandle;
+import org.eclipse.birt.report.model.elements.Library;
+import org.eclipse.birt.report.model.elements.OdaDataSource;
+import org.eclipse.birt.report.viewer.utilities.WebViewer;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.Platform;
+import org.osgi.framework.Bundle;
+
+import ag.carnot.base.StringUtils;
+import ag.carnot.error.InternalException;
+import ag.carnot.error.PublicException;
+import ag.carnot.reporting.default_reports.DefaultReportsPlugin;
+
+public class ReportRunner
+{
+ private static final String HOME = "HOME"; //$NON-NLS-1$
+
+ private static final String DEFINITION_OVERVIEW_RPTDESIGN = "DefinitionOverview.rptdesign"; //$NON-NLS-1$
+
+ private static final String CARNOT_DS_LIBRARY_RPTLIBRARY = "CARNOT-ds-library.rptlibrary"; //$NON-NLS-1$
+
+ private static final String TEMP_FOLDER_OFFSET = "CARNOT/reports/"; //$NON-NLS-1$
+
+ private static final int STREAM_BUFFER_SIZE = 1024;
+
+ private final String dataSourceslibFileName;
+
+ private final String designFileName;
+
+ private static ReportRunner runner;
+
+ private String tempFolder;
+
+ public static ReportRunner instance()
+ {
+ if (null == runner)
+ {
+ runner = new ReportRunner();
+ }
+
+ return runner;
+ }
+
+ void startReportOnModel(String modelFileName, String modelId)
+ {
+ startReportOnModel(modelFileName, modelId, WebViewer.HTML);
+ }
+
+ void startReportOnModel(String modelFileName, String modelId, String format)
+ {
+ try
+ {
+ prepareReports(tempFolder);
+ }
+ catch (CoreException e)
+ {
+ throw new PublicException(Reporting_Model_Messages.EXP_CouldNotCreateCopyOfReportingFiles, e);
+ }
+ catch (IOException e)
+ {
+ throw new PublicException(Reporting_Model_Messages.EXP_CouldNotCreateCopyOfReportingFiles, e);
+ }
+
+ SessionHandleAdapter adapter = SessionHandleAdapter.getInstance();
+
+ InputStream stream = null;
+ try
+ {
+ stream = new FileInputStream(dataSourceslibFileName);
+ ModuleHandle handle = adapter.init(dataSourceslibFileName, stream);// ,
+ // SessionHandleAdapter.LIBRARYFILE);
+
+ // ModuleHandle handle = adapter.getReportDesignHandle();
+ Library library = (Library) handle.getModule();
+ OdaDataSource dataSource = (OdaDataSource) library
+ .findDataSource("CARNOT Process Model"); //$NON-NLS-1$
+
+ String fileName = (String) dataSource.getProperty(library, HOME);
+ modelFileName = ";" + modelFileName; //$NON-NLS-1$
+ if (StringUtils.isEmpty(fileName) || !fileName.equals(modelFileName))
+ {
+ dataSource.setProperty(HOME, modelFileName);
+ handle.saveAs(dataSourceslibFileName);
+ }
+
+ stream.close();
+ stream = null;
+
+ stream = new FileInputStream(designFileName);
+ adapter.init(designFileName, stream);
+
+ // TODO: !!! DIRTY HACK !!!
+ // This was the easiest way to append additional parameters.
+ // Find a better way!
+ String parameterCarryingFormat = format + "&__overwrite=true&hideMenu=true"; //$NON-NLS-1$
+ if (!StringUtils.isEmpty(modelId))
+ {
+ parameterCarryingFormat = parameterCarryingFormat + "&ModelID=" + modelId; //$NON-NLS-1$
+ }
+ WebViewer.display(designFileName, parameterCarryingFormat, true);
+ }
+ catch (Exception e)
+ {
+ throw new InternalException(MessageFormat.format(
+ Reporting_Model_Messages.EXP_CannotStartReportForModel, new Object[] {modelFileName}), e);
+ }
+ finally
+ {
+ if (null != stream)
+ {
+ try
+ {
+ stream.close();
+ }
+ catch (IOException e)
+ {
+ throw new InternalException("", e); //$NON-NLS-1$
+ }
+ }
+ }
+ }
+
+ private ReportRunner()
+ {
+ try
+ {
+ tempFolder = getTempFolder() + TEMP_FOLDER_OFFSET;
+ }
+ catch (IOException e)
+ {
+ throw new PublicException(Reporting_Model_Messages.EXP_CouldNotCreateCopyOfReportingFiles, e);
+ }
+
+ dataSourceslibFileName = tempFolder + CARNOT_DS_LIBRARY_RPTLIBRARY;
+ designFileName = tempFolder + DEFINITION_OVERVIEW_RPTDESIGN;
+
+ touchReportFiles();
+ WebViewer.startup("viewer"); //$NON-NLS-1$
+ }
+
+ private static void prepareReports(String destinationPath) throws CoreException,
+ IOException
+ {
+ String overviewDesign = getSystemPath(DefaultReportsPlugin.PLUGIN_ID,
+ new String[] {"reports/carnot/DefinitionOverview.rptdesign"}); //$NON-NLS-1$
+ String sourcePath = overviewDesign
+ .substring(0, overviewDesign.lastIndexOf("/") + 1); //$NON-NLS-1$
+
+ // copy all files non-recursively from sourcePath to destinationPath
+ new File(destinationPath).mkdirs();
+ File folder = new File(sourcePath);
+ File[] files = folder.listFiles();
+ for (int idx = 0; idx < files.length; ++idx)
+ {
+ if (!files[idx].isDirectory())
+ {
+ File target = new File(destinationPath + "/" + files[idx].getName()); //$NON-NLS-1$
+ copy(files[idx], target);
+ }
+ }
+ }
+
+ private static String getTempFolder() throws IOException
+ {
+ File temp = File.createTempFile("CARNOT", ".tmp"); //$NON-NLS-1$ //$NON-NLS-2$
+ temp.deleteOnExit();
+ String path = StringUtils.replace(temp.getAbsolutePath(), "\\", "/"); //$NON-NLS-1$ //$NON-NLS-2$
+ return path.substring(0, path.lastIndexOf("/") + 1); //$NON-NLS-1$
+ }
+
+ private static void touchReportFiles()
+ {
+ String pluginId = DefaultReportsPlugin.PLUGIN_ID;
+
+ try
+ {
+ Bundle bundle = Platform.getBundle(pluginId);
+ if (null == bundle)
+ {
+ throw new InternalException((MessageFormat.format(
+ Reporting_Model_Messages.EXP_BundleHasNotBeenLoadedYet, new Object[] {pluginId})));
+ }
+
+ Enumeration enumerator = bundle.getEntryPaths("reports/carnot"); //$NON-NLS-1$
+ while (enumerator.hasMoreElements())
+ {
+ String elem = (String) enumerator.nextElement();
+ URL entryUrl = bundle.getEntry(elem);
+ if (null != entryUrl)
+ {
+ Platform.asLocalURL(entryUrl).getPath();
+ }
+ }
+ }
+ catch (IOException e)
+ {
+ throw new PublicException(Reporting_Model_Messages.EXP_CouldNotCreateCopyOfReportingFiles, e);
+ }
+
+ }
+
+ private static String getSystemPath(String pluginId, String[] entryNames)
+ throws IOException
+ {
+ Bundle bundle = Platform.getBundle(pluginId);
+ if (null == bundle)
+ {
+ throw new InternalException((MessageFormat.format(
+ Reporting_Model_Messages.EXP_BundleHasNotBeenLoadedYet, new Object[] {pluginId})));
+ }
+
+ String systemPath = ""; //$NON-NLS-1$
+
+ boolean found = false;
+ for (int idx = 0; idx < entryNames.length; ++idx)
+ {
+ URL entryUrl = bundle.getEntry(entryNames[idx]);
+ if (null != entryUrl)
+ {
+ found = true;
+ systemPath = Platform.asLocalURL(entryUrl).getPath();
+ break;
+ }
+ }
+
+ if (!found)
+ {
+ throw new InternalException((MessageFormat.format(
+ Reporting_Model_Messages.EXP_BundleDoesNotContain, new Object[] {
+ pluginId,
+ StringUtils.join(Arrays.asList(entryNames).iterator(), ", ")}))); //$NON-NLS-1$
+ }
+
+ return StringUtils.replace(systemPath, "\\", "/"); //$NON-NLS-1$ //$NON-NLS-2$
+ }
+
+ private static void copy(File source, File dest) throws IOException
+ {
+ InputStream in = null;
+ OutputStream out = null;
+
+ try
+ {
+ in = new FileInputStream(source);
+ out = new FileOutputStream(dest);
+
+ // Transfer bytes from in to out
+ byte[] buffer = new byte[STREAM_BUFFER_SIZE];
+ int length;
+ while ((length = in.read(buffer)) > 0)
+ {
+ out.write(buffer, 0, length);
+ }
+ }
+ finally
+ {
+ if (null != in)
+ {
+ in.close();
+ }
+
+ if (null != out)
+ {
+ out.close();
+ }
+ }
+ }
+}
diff --git a/org.eclipse.stardust.reporting.ide.integration/ReportingPlugin.java b/org.eclipse.stardust.reporting.ide.integration/ReportingPlugin.java new file mode 100644 index 0000000..51c6a56 --- a/dev/null +++ b/org.eclipse.stardust.reporting.ide.integration/ReportingPlugin.java @@ -0,0 +1,62 @@ +package ag.carnot.workflow.model.reporting;
+
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The main plugin class to be used in the desktop.
+ */
+public class ReportingPlugin extends AbstractUIPlugin
+{
+ public static final String PLUGIN_ID = "ag.carnot.workflow.model.reporting"; //$NON-NLS-1$
+
+ // The shared instance.
+ private static ReportingPlugin plugin;
+
+ /**
+ * The constructor.
+ */
+ public ReportingPlugin()
+ {
+ plugin = this;
+ }
+
+ /**
+ * This method is called upon plug-in activation
+ */
+ public void start(BundleContext context) throws Exception
+ {
+ super.start(context);
+ }
+
+ /**
+ * This method is called when the plug-in is stopped
+ */
+ public void stop(BundleContext context) throws Exception
+ {
+ super.stop(context);
+ plugin = null;
+ }
+
+ /**
+ * Returns the shared instance.
+ */
+ public static ReportingPlugin getDefault()
+ {
+ return plugin;
+ }
+
+ /**
+ * Returns an image descriptor for the image file at the given plug-in relative path.
+ *
+ * @param path
+ * the path
+ * @return the image descriptor
+ */
+ public static ImageDescriptor getImageDescriptor(String path)
+ {
+ return AbstractUIPlugin.imageDescriptorFromPlugin(
+ "ag.carnot.workflow.model.reporting", path); //$NON-NLS-1$
+ }
+}
diff --git a/org.eclipse.stardust.reporting.ide.integration/src/org/eclipse/stardust/reporting/ide/integration/ReportRunner.java b/org.eclipse.stardust.reporting.ide.integration/src/org/eclipse/stardust/reporting/ide/integration/ReportRunner.java index 0ac467e..8b84b7f 100644 --- a/org.eclipse.stardust.reporting.ide.integration/src/org/eclipse/stardust/reporting/ide/integration/ReportRunner.java +++ b/org.eclipse.stardust.reporting.ide.integration/src/org/eclipse/stardust/reporting/ide/integration/ReportRunner.java @@ -77,11 +77,11 @@ public class ReportRunner } catch (CoreException e) { - throw new PublicException(Messages.EXP_CouldNotCreateCopyOfReportingFiles, e); + throw new PublicException(Reporting_Model_Messages.EXP_CouldNotCreateCopyOfReportingFiles, e); } catch (IOException e) { - throw new PublicException(Messages.EXP_CouldNotCreateCopyOfReportingFiles, e); + throw new PublicException(Reporting_Model_Messages.EXP_CouldNotCreateCopyOfReportingFiles, e); } SessionHandleAdapter adapter = SessionHandleAdapter.getInstance(); @@ -115,17 +115,17 @@ public class ReportRunner // Workaround: // This was the easiest way to append additional parameters. // Find a better way! - String parameterCarryingFormat = format + "&__overwrite=true&hideMenu=true"; + String parameterCarryingFormat = format + "&__overwrite=true&hideMenu=true"; //$NON-NLS-1$ if (!StringUtils.isEmpty(modelId)) { - parameterCarryingFormat = parameterCarryingFormat + "&ModelID=" + modelId; + parameterCarryingFormat = parameterCarryingFormat + "&ModelID=" + modelId; //$NON-NLS-1$ } WebViewer.display(designFileName, parameterCarryingFormat, true); } catch (Exception e) { throw new InternalException(MessageFormat.format( - Messages.EXP_CannotStartReportForModel, new Object[] {modelFileName}), e); + Reporting_Model_Messages.EXP_CannotStartReportForModel, new Object[] {modelFileName}), e); } finally { @@ -151,14 +151,14 @@ public class ReportRunner } catch (IOException e) { - throw new PublicException(Messages.EXP_CouldNotCreateCopyOfReportingFiles, e); + throw new PublicException(Reporting_Model_Messages.EXP_CouldNotCreateCopyOfReportingFiles, e); } dataSourceslibFileName = tempFolder + CARNOT_DS_LIBRARY_RPTLIBRARY; designFileName = tempFolder + DEFINITION_OVERVIEW_RPTDESIGN; touchReportFiles(); - WebViewer.startup("viewer"); + WebViewer.startup("viewer"); //$NON-NLS-1$ } private static void prepareReports(String destinationPath) throws CoreException, @@ -177,7 +177,7 @@ public class ReportRunner { if (!files[idx].isDirectory()) { - File target = new File(destinationPath + "/" + files[idx].getName()); + File target = new File(destinationPath + "/" + files[idx].getName()); //$NON-NLS-1$ copy(files[idx], target); } } @@ -201,10 +201,10 @@ public class ReportRunner if (null == bundle) { throw new InternalException((MessageFormat.format( - Messages.EXP_BundleHasNotBeenLoadedYet, new Object[] {pluginId}))); + Reporting_Model_Messages.EXP_BundleHasNotBeenLoadedYet, new Object[] {pluginId}))); } - Enumeration enumerator = bundle.getEntryPaths("reports/carnot"); + Enumeration enumerator = bundle.getEntryPaths("reports/carnot"); //$NON-NLS-1$ while (enumerator.hasMoreElements()) { String elem = (String) enumerator.nextElement(); @@ -217,7 +217,7 @@ public class ReportRunner } catch (IOException e) { - throw new PublicException(Messages.EXP_CouldNotCreateCopyOfReportingFiles, e); + throw new PublicException(Reporting_Model_Messages.EXP_CouldNotCreateCopyOfReportingFiles, e); } } @@ -229,7 +229,7 @@ public class ReportRunner if (null == bundle) { throw new InternalException((MessageFormat.format( - Messages.EXP_BundleHasNotBeenLoadedYet, new Object[] {pluginId}))); + Reporting_Model_Messages.EXP_BundleHasNotBeenLoadedYet, new Object[] {pluginId}))); } String systemPath = ""; //$NON-NLS-1$ @@ -249,7 +249,7 @@ public class ReportRunner if (!found) { throw new InternalException((MessageFormat.format( - Messages.EXP_BundleDoesNotContain, new Object[] { + Reporting_Model_Messages.EXP_BundleDoesNotContain, new Object[] { pluginId, StringUtils.join(Arrays.asList(entryNames).iterator(), ", ")}))); //$NON-NLS-1$ } diff --git a/org.eclipse.stardust.reporting.ide.integration/src/org/eclipse/stardust/reporting/ide/integration/ReportingAction.java b/org.eclipse.stardust.reporting.ide.integration/src/org/eclipse/stardust/reporting/ide/integration/ReportingAction.java index 42ae54e..3f91586 100644 --- a/org.eclipse.stardust.reporting.ide.integration/src/org/eclipse/stardust/reporting/ide/integration/ReportingAction.java +++ b/org.eclipse.stardust.reporting.ide.integration/src/org/eclipse/stardust/reporting/ide/integration/ReportingAction.java @@ -25,7 +25,7 @@ public class ReportingAction extends EditDomainAwareAction public ReportingAction() { setId(ReportingAction.class.getName()); - setText(Messages.TEXT_WorkflowModelReporting); + setText(Reporting_Model_Messages.TEXT_WorkflowModelReporting); } public void run() diff --git a/org.eclipse.stardust.reporting.ide.integration/src/org/eclipse/stardust/reporting/ide/integration/ReportingFormatDialog.java b/org.eclipse.stardust.reporting.ide.integration/src/org/eclipse/stardust/reporting/ide/integration/ReportingFormatDialog.java index c5ec370..d15b47b 100644 --- a/org.eclipse.stardust.reporting.ide.integration/src/org/eclipse/stardust/reporting/ide/integration/ReportingFormatDialog.java +++ b/org.eclipse.stardust.reporting.ide.integration/src/org/eclipse/stardust/reporting/ide/integration/ReportingFormatDialog.java @@ -38,9 +38,9 @@ public class ReportingFormatDialog extends MessageDialogWithToggle public ReportingFormatDialog() { - super(null, Messages.TITLE_Format, null, "", MessageDialog.QUESTION, new String[] { //$NON-NLS-1$ + super(null, Reporting_Model_Messages.TITLE_Format, null, "", MessageDialog.QUESTION, new String[] { //$NON-NLS-1$ IDialogConstants.OK_LABEL, IDialogConstants.CANCEL_LABEL}, 0, - Messages.LB_RememberDecision, false); + Reporting_Model_Messages.LB_RememberDecision, false); } public String getReportFormat() @@ -59,7 +59,7 @@ public class ReportingFormatDialog extends MessageDialogWithToggle imageLabel.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_CENTER | GridData.VERTICAL_ALIGN_BEGINNING)); } - Group group = FormBuilder.createGroup(composite, Messages.MSG_SelectFormat, 2); + Group group = FormBuilder.createGroup(composite, Reporting_Model_Messages.MSG_SelectFormat, 2); ((GridLayout) composite.getLayout()).horizontalSpacing = 15; htmlRadio = FormBuilder.createRadioButton(group, "HTML"); //$NON-NLS-1$ pdfRadio = FormBuilder.createRadioButton(group, "PDF"); //$NON-NLS-1$ diff --git a/org.eclipse.stardust.reporting.ide.integration/src/org/eclipse/stardust/reporting/ide/integration/ReportingPlugin.java b/org.eclipse.stardust.reporting.ide.integration/src/org/eclipse/stardust/reporting/ide/integration/ReportingPlugin.java index 9346f54..91ac38c 100644 --- a/org.eclipse.stardust.reporting.ide.integration/src/org/eclipse/stardust/reporting/ide/integration/ReportingPlugin.java +++ b/org.eclipse.stardust.reporting.ide.integration/src/org/eclipse/stardust/reporting/ide/integration/ReportingPlugin.java @@ -19,7 +19,7 @@ import org.osgi.framework.BundleContext; */ public class ReportingPlugin extends AbstractUIPlugin { - public static final String PLUGIN_ID = "org.eclipse.stardust.reporting.ide.integration"; + public static final String PLUGIN_ID = "org.eclipse.stardust.reporting.ide.integration"; //$NON-NLS-1$ // The shared instance. private static ReportingPlugin plugin; @@ -67,6 +67,6 @@ public class ReportingPlugin extends AbstractUIPlugin public static ImageDescriptor getImageDescriptor(String path) { return AbstractUIPlugin.imageDescriptorFromPlugin( - "org.eclipse.stardust.reporting.ide.integration", path); + "org.eclipse.stardust.reporting.ide.integration", path); //$NON-NLS-1$ } } diff --git a/org.eclipse.stardust.reporting.ide.integration/src/org/eclipse/stardust/reporting/ide/integration/Messages.java b/org.eclipse.stardust.reporting.ide.integration/src/org/eclipse/stardust/reporting/ide/integration/Reporting_Model_Messages.java index 2dff1dd..216ad0f 100644 --- a/org.eclipse.stardust.reporting.ide.integration/src/org/eclipse/stardust/reporting/ide/integration/Messages.java +++ b/org.eclipse.stardust.reporting.ide.integration/src/org/eclipse/stardust/reporting/ide/integration/Reporting_Model_Messages.java @@ -1,36 +1,36 @@ -/******************************************************************************* - * Copyright (c) 2011 SunGard CSA LLC and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * SunGard CSA LLC - initial API and implementation and/or initial documentation - *******************************************************************************/ -package org.eclipse.stardust.reporting.ide.integration; - -import org.eclipse.osgi.util.NLS; - -public class Messages extends NLS -{ - private static final String BUNDLE_NAME = "org.eclipse.stardust.reporting.ide.integration.messages"; //$NON-NLS-1$ - - private Messages() - {} - - static - { - // initialize resource bundle - NLS.initializeMessages(BUNDLE_NAME, Messages.class); - } - - public static String LB_RememberDecision; - public static String MSG_SelectFormat; - public static String TEXT_WorkflowModelReporting; - public static String EXP_CannotStartReportForModel; - public static String EXP_CouldNotCreateCopyOfReportingFiles; - public static String EXP_BundleHasNotBeenLoadedYet; - public static String EXP_BundleDoesNotContain; - public static String TITLE_Format; -} +/*******************************************************************************
+ * Copyright (c) 2011 SunGard CSA LLC and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * SunGard CSA LLC - initial API and implementation and/or initial documentation
+ *******************************************************************************/
+package org.eclipse.stardust.reporting.ide.integration;
+
+import org.eclipse.osgi.util.NLS;
+
+public class Reporting_Model_Messages extends NLS
+{
+ private static final String BUNDLE_NAME = "org.eclipse.stardust.reporting.ide.integration.reporting-model-messages"; //$NON-NLS-1$
+
+ private Reporting_Model_Messages()
+ {}
+
+ static
+ {
+ // initialize resource bundle
+ NLS.initializeMessages(BUNDLE_NAME, Reporting_Model_Messages.class);
+ }
+
+ public static String LB_RememberDecision;
+ public static String MSG_SelectFormat;
+ public static String TEXT_WorkflowModelReporting;
+ public static String EXP_CannotStartReportForModel;
+ public static String EXP_CouldNotCreateCopyOfReportingFiles;
+ public static String EXP_BundleHasNotBeenLoadedYet;
+ public static String EXP_BundleDoesNotContain;
+ public static String TITLE_Format;
+}
diff --git a/org.eclipse.stardust.reporting.ide.integration/src/org/eclipse/stardust/reporting/ide/integration/messages.properties b/org.eclipse.stardust.reporting.ide.integration/src/org/eclipse/stardust/reporting/ide/integration/reporting-model-messages.properties index 4b8106a..317138b 100644 --- a/org.eclipse.stardust.reporting.ide.integration/src/org/eclipse/stardust/reporting/ide/integration/messages.properties +++ b/org.eclipse.stardust.reporting.ide.integration/src/org/eclipse/stardust/reporting/ide/integration/reporting-model-messages.properties @@ -1,18 +1,18 @@ -############################################################################### -# Copyright (c) 2011 SunGard CSA LLC and others. -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Eclipse Public License v1.0 -# which accompanies this distribution, and is available at -# http://www.eclipse.org/legal/epl-v10.html -# -# Contributors: -# SunGard CSA LLC - initial API and implementation and/or initial documentation -############################################################################### -TEXT_WorkflowModelReporting=Process Model Report -EXP_CannotStartReportForModel=Cannot start report for model {0}. -EXP_CouldNotCreateCopyOfReportingFiles=Could not create copy of reporting files. -EXP_BundleHasNotBeenLoadedYet=Bundle {0} has not been loaded yet. -EXP_BundleDoesNotContain=Bundle {0} does not contain {1}. -TITLE_Format=Report Format -MSG_SelectFormat=Select Report Format -LB_RememberDecision=Remember my decision +###############################################################################
+# Copyright (c) 2011 SunGard CSA LLC and others.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+#
+# Contributors:
+# SunGard CSA LLC - initial API and implementation and/or initial documentation
+###############################################################################
+TEXT_WorkflowModelReporting=Process Model Report
+EXP_CannotStartReportForModel=Cannot start report for model {0}.
+EXP_CouldNotCreateCopyOfReportingFiles=Could not create copy of reporting files.
+EXP_BundleHasNotBeenLoadedYet=Bundle {0} has not been loaded yet.
+EXP_BundleDoesNotContain=Bundle {0} does not contain {1}.
+TITLE_Format=Report Format
+MSG_SelectFormat=Select Report Format
+LB_RememberDecision=Remember my decision
|

