Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Leicht Vogt2013-03-09 16:17:40 +0000
committerStephan Leicht Vogt2013-03-09 16:17:40 +0000
commitb6a5f9783761ec8657dd922f6a2af7a2467ba68a (patch)
treee76db2402b86d889adb33eb937f71842d60d9754
parent775245047960916efafcbacc93a0d1d6b618484f (diff)
downloadorg.eclipse.scout.sdk-b6a5f9783761ec8657dd922f6a2af7a2467ba68a.tar.gz
org.eclipse.scout.sdk-b6a5f9783761ec8657dd922f6a2af7a2467ba68a.tar.xz
org.eclipse.scout.sdk-b6a5f9783761ec8657dd922f6a2af7a2467ba68a.zip
Normalize line endings
-rw-r--r--org.eclipse.scout.sdk.rap/templates/client.mobile/build.properties10
-rw-r--r--org.eclipse.scout.sdk.rap/templates/client.mobile/plugin.xml30
-rw-r--r--org.eclipse.scout.sdk.rap/templates/client.mobile/src/Activator.java46
-rw-r--r--org.eclipse.scout.sdk.rap/templates/client.mobile/src/ui/desktop/HomeForm.java424
-rw-r--r--org.eclipse.scout.sdk.rap/templates/ui.rap/src/MobileStandaloneRwtEnvironment.java22
-rw-r--r--org.eclipse.scout.sdk.rap/templates/ui.rap/src/TabletStandaloneRwtEnvironment.java22
6 files changed, 277 insertions, 277 deletions
diff --git a/org.eclipse.scout.sdk.rap/templates/client.mobile/build.properties b/org.eclipse.scout.sdk.rap/templates/client.mobile/build.properties
index 6f20375d6..e9863e281 100644
--- a/org.eclipse.scout.sdk.rap/templates/client.mobile/build.properties
+++ b/org.eclipse.scout.sdk.rap/templates/client.mobile/build.properties
@@ -1,5 +1,5 @@
-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- plugin.xml
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ plugin.xml
diff --git a/org.eclipse.scout.sdk.rap/templates/client.mobile/plugin.xml b/org.eclipse.scout.sdk.rap/templates/client.mobile/plugin.xml
index 9f70ca1dc..eba4da36c 100644
--- a/org.eclipse.scout.sdk.rap/templates/client.mobile/plugin.xml
+++ b/org.eclipse.scout.sdk.rap/templates/client.mobile/plugin.xml
@@ -1,15 +1,15 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.4"?>
-<plugin>
- <extension
- point="org.eclipse.scout.rt.extension.client.desktopExtensions">
- <desktopExtension
- active="true"
- class="@@BUNDLE_MOBILE_CLIENT_NAME@@.ui.desktop.DesktopExtension">
- </desktopExtension>
- <desktopExtension
- active="true"
- class="org.eclipse.scout.rt.client.mobile.ui.desktop.DeviceTransformationDesktopExtension">
- </desktopExtension>
- </extension>
-</plugin>
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<plugin>
+ <extension
+ point="org.eclipse.scout.rt.extension.client.desktopExtensions">
+ <desktopExtension
+ active="true"
+ class="@@BUNDLE_MOBILE_CLIENT_NAME@@.ui.desktop.DesktopExtension">
+ </desktopExtension>
+ <desktopExtension
+ active="true"
+ class="org.eclipse.scout.rt.client.mobile.ui.desktop.DeviceTransformationDesktopExtension">
+ </desktopExtension>
+ </extension>
+</plugin>
diff --git a/org.eclipse.scout.sdk.rap/templates/client.mobile/src/Activator.java b/org.eclipse.scout.sdk.rap/templates/client.mobile/src/Activator.java
index 996ac89f7..fdf71c3b7 100644
--- a/org.eclipse.scout.sdk.rap/templates/client.mobile/src/Activator.java
+++ b/org.eclipse.scout.sdk.rap/templates/client.mobile/src/Activator.java
@@ -1,23 +1,23 @@
-package @@BUNDLE_MOBILE_CLIENT_NAME@@;
-
-import org.osgi.framework.BundleActivator;
-import org.osgi.framework.BundleContext;
-
-public class Activator implements BundleActivator {
-
- private static BundleContext context;
-
- public static BundleContext getContext() {
- return context;
- }
-
- @Override
- public void start(BundleContext bundleContext) throws Exception {
- Activator.context = bundleContext;
- }
-
- @Override
- public void stop(BundleContext bundleContext) throws Exception {
- Activator.context = null;
- }
-}
+package @@BUNDLE_MOBILE_CLIENT_NAME@@;
+
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+
+public class Activator implements BundleActivator {
+
+ private static BundleContext context;
+
+ public static BundleContext getContext() {
+ return context;
+ }
+
+ @Override
+ public void start(BundleContext bundleContext) throws Exception {
+ Activator.context = bundleContext;
+ }
+
+ @Override
+ public void stop(BundleContext bundleContext) throws Exception {
+ Activator.context = null;
+ }
+}
diff --git a/org.eclipse.scout.sdk.rap/templates/client.mobile/src/ui/desktop/HomeForm.java b/org.eclipse.scout.sdk.rap/templates/client.mobile/src/ui/desktop/HomeForm.java
index cfa29d198..0f6ccd8ce 100644
--- a/org.eclipse.scout.sdk.rap/templates/client.mobile/src/ui/desktop/HomeForm.java
+++ b/org.eclipse.scout.sdk.rap/templates/client.mobile/src/ui/desktop/HomeForm.java
@@ -1,212 +1,212 @@
-package @@BUNDLE_MOBILE_CLIENT_NAME@@.ui.desktop;
-
-import org.eclipse.scout.commons.annotations.Order;
-import org.eclipse.scout.commons.exception.ProcessingException;
-import org.eclipse.scout.rt.client.ClientJob;
-import org.eclipse.scout.rt.client.mobile.transformation.IDeviceTransformationService;
-import org.eclipse.scout.rt.client.mobile.transformation.MobileDeviceTransformation;
-import org.eclipse.scout.rt.client.mobile.ui.basic.table.AbstractMobileTable;
-import org.eclipse.scout.rt.client.mobile.ui.desktop.MobileDesktopUtility;
-import org.eclipse.scout.rt.client.mobile.ui.form.AbstractMobileForm;
-import org.eclipse.scout.rt.client.mobile.ui.form.outline.IOutlineChooserForm;
-import org.eclipse.scout.rt.client.ui.basic.table.ITableRow;
-import org.eclipse.scout.rt.client.ui.basic.table.columns.AbstractColumn;
-import org.eclipse.scout.rt.client.ui.basic.table.columns.AbstractStringColumn;
-import org.eclipse.scout.rt.client.ui.desktop.outline.IOutline;
-import org.eclipse.scout.rt.client.ui.form.AbstractFormHandler;
-import org.eclipse.scout.rt.client.ui.form.fields.button.AbstractButton;
-import org.eclipse.scout.rt.client.ui.form.fields.groupbox.AbstractGroupBox;
-import org.eclipse.scout.rt.client.ui.form.fields.tablefield.AbstractTableField;
-import org.eclipse.scout.rt.shared.AbstractIcons;
-import org.eclipse.scout.rt.shared.TEXTS;
-import org.eclipse.scout.service.SERVICES;
-
-import com.bsiag.crm.client.mobile.ui.desktop.HomeForm.MainBox.OutlinesTableField;
-
-public class HomeForm extends AbstractMobileForm implements IOutlineChooserForm {
-
- public HomeForm() throws ProcessingException {
- super();
- }
-
- @Override
- protected boolean getConfiguredAskIfNeedSave() {
- return false;
- }
-
- @Override
- protected int getConfiguredDisplayHint() {
- return DISPLAY_HINT_VIEW;
- }
-
- @Override
- protected String getConfiguredDisplayViewId() {
- return VIEW_ID_CENTER;
- }
-
- @Override
- protected String getConfiguredTitle() {
- return TEXTS.get("MobileOutlineChooserTitle");
- }
-
- public void startView() throws ProcessingException {
- startInternal(new ViewHandler());
- }
-
- public MainBox getMainBox() {
- return (MainBox) getRootGroupBox();
- }
-
- public OutlinesTableField getOutlinesTableField() {
- return getFieldByClass(OutlinesTableField.class);
- }
-
- @Override
- protected boolean getConfiguredFooterVisible() {
- return true;
- }
-
- @Order(10.0)
- public class MainBox extends AbstractGroupBox {
-
- @Override
- protected boolean getConfiguredBorderVisible() {
- return false;
- }
-
- @Override
- protected void execInitField() throws ProcessingException {
- //Table already is scrollable, it's not necessary to make the form scrollable too
- IDeviceTransformationService service = SERVICES.getService(IDeviceTransformationService.class);
- if (service != null && service.getDeviceTransformer() != null) {
- service.getDeviceTransformer().getDeviceTransformationExcluder().excludeFieldTransformation(this, MobileDeviceTransformation.MAKE_MAINBOX_SCROLLABLE);
- }
- }
-
- @Order(10.0)
- public class OutlinesTableField extends AbstractTableField<OutlinesTableField.Table> {
-
- @Override
- protected boolean getConfiguredLabelVisible() {
- return false;
- }
-
- @Override
- protected int getConfiguredGridH() {
- return 2;
- }
-
- @Order(10.0)
- public class Table extends AbstractMobileTable {
-
- @Override
- protected boolean execIsAutoCreateTableRowForm() {
- return false;
- }
-
- @Override
- protected boolean getConfiguredAutoDiscardOnDelete() {
- return true;
- }
-
- @Override
- protected String getConfiguredDefaultIconId() {
- return AbstractIcons.TreeNode;
- }
-
- @Override
- protected boolean getConfiguredAutoResizeColumns() {
- return true;
- }
-
- @Override
- protected boolean getConfiguredSortEnabled() {
- return false;
- }
-
- public LabelColumn getLableColumn() {
- return getColumnSet().getColumnByClass(LabelColumn.class);
- }
-
- public OutlineColumn getOutlineColumn() {
- return getColumnSet().getColumnByClass(OutlineColumn.class);
- }
-
- @Override
- protected void execDecorateRow(ITableRow row) throws ProcessingException {
- final String outlineIcon = getOutlineColumn().getValue(row).getIconId();
- if (outlineIcon != null) {
- row.setIconId(outlineIcon);
- }
- }
-
- @Order(10.0)
- public class OutlineColumn extends AbstractColumn<IOutline> {
-
- @Override
- protected boolean getConfiguredDisplayable() {
- return false;
- }
- }
-
- @Order(20.0)
- public class LabelColumn extends AbstractStringColumn {
-
- }
-
- @Override
- protected void execRowsSelected(ITableRow[] rows) throws ProcessingException {
- if (rows == null || rows.length == 0) {
- return;
- }
-
- IOutline outline = getOutlineColumn().getValue(rows[0]);
-
- MobileDesktopUtility.activateOutline(outline);
- getDesktop().removeForm(HomeForm.this);
-
- clearSelectionDelayed();
- }
- }
- }
-
- @Order(20.0)
- public class LogoutButton extends AbstractButton {
-
- @Override
- protected String getConfiguredLabel() {
- return TEXTS.get("Logoff");
- }
-
- @Override
- protected void execClickAction() throws ProcessingException {
- ClientJob.getCurrentSession().stopSession();
- }
-
- }
- }
-
- @Order(10.0)
- public class ViewHandler extends AbstractFormHandler {
-
- @Override
- protected void execLoad() throws ProcessingException {
- final OutlinesTableField.Table table = getOutlinesTableField().getTable();
-
- IOutline[] outlines = getDesktop().getAvailableOutlines();
- for (IOutline outline : outlines) {
- if (outline.isVisible() && outline.getRootNode() != null) {
- ITableRow row = table.createRow(new Object[]{outline, outline.getTitle()});
- row.setEnabled(outline.isEnabled());
- table.addRow(row);
- }
- }
- }
-
- @Override
- protected void execFinally() throws ProcessingException {
- final OutlinesTableField.Table table = getOutlinesTableField().getTable();
- table.discardAllRows();
- }
- }
-}
+package @@BUNDLE_MOBILE_CLIENT_NAME@@.ui.desktop;
+
+import org.eclipse.scout.commons.annotations.Order;
+import org.eclipse.scout.commons.exception.ProcessingException;
+import org.eclipse.scout.rt.client.ClientJob;
+import org.eclipse.scout.rt.client.mobile.transformation.IDeviceTransformationService;
+import org.eclipse.scout.rt.client.mobile.transformation.MobileDeviceTransformation;
+import org.eclipse.scout.rt.client.mobile.ui.basic.table.AbstractMobileTable;
+import org.eclipse.scout.rt.client.mobile.ui.desktop.MobileDesktopUtility;
+import org.eclipse.scout.rt.client.mobile.ui.form.AbstractMobileForm;
+import org.eclipse.scout.rt.client.mobile.ui.form.outline.IOutlineChooserForm;
+import org.eclipse.scout.rt.client.ui.basic.table.ITableRow;
+import org.eclipse.scout.rt.client.ui.basic.table.columns.AbstractColumn;
+import org.eclipse.scout.rt.client.ui.basic.table.columns.AbstractStringColumn;
+import org.eclipse.scout.rt.client.ui.desktop.outline.IOutline;
+import org.eclipse.scout.rt.client.ui.form.AbstractFormHandler;
+import org.eclipse.scout.rt.client.ui.form.fields.button.AbstractButton;
+import org.eclipse.scout.rt.client.ui.form.fields.groupbox.AbstractGroupBox;
+import org.eclipse.scout.rt.client.ui.form.fields.tablefield.AbstractTableField;
+import org.eclipse.scout.rt.shared.AbstractIcons;
+import org.eclipse.scout.rt.shared.TEXTS;
+import org.eclipse.scout.service.SERVICES;
+
+import com.bsiag.crm.client.mobile.ui.desktop.HomeForm.MainBox.OutlinesTableField;
+
+public class HomeForm extends AbstractMobileForm implements IOutlineChooserForm {
+
+ public HomeForm() throws ProcessingException {
+ super();
+ }
+
+ @Override
+ protected boolean getConfiguredAskIfNeedSave() {
+ return false;
+ }
+
+ @Override
+ protected int getConfiguredDisplayHint() {
+ return DISPLAY_HINT_VIEW;
+ }
+
+ @Override
+ protected String getConfiguredDisplayViewId() {
+ return VIEW_ID_CENTER;
+ }
+
+ @Override
+ protected String getConfiguredTitle() {
+ return TEXTS.get("MobileOutlineChooserTitle");
+ }
+
+ public void startView() throws ProcessingException {
+ startInternal(new ViewHandler());
+ }
+
+ public MainBox getMainBox() {
+ return (MainBox) getRootGroupBox();
+ }
+
+ public OutlinesTableField getOutlinesTableField() {
+ return getFieldByClass(OutlinesTableField.class);
+ }
+
+ @Override
+ protected boolean getConfiguredFooterVisible() {
+ return true;
+ }
+
+ @Order(10.0)
+ public class MainBox extends AbstractGroupBox {
+
+ @Override
+ protected boolean getConfiguredBorderVisible() {
+ return false;
+ }
+
+ @Override
+ protected void execInitField() throws ProcessingException {
+ //Table already is scrollable, it's not necessary to make the form scrollable too
+ IDeviceTransformationService service = SERVICES.getService(IDeviceTransformationService.class);
+ if (service != null && service.getDeviceTransformer() != null) {
+ service.getDeviceTransformer().getDeviceTransformationExcluder().excludeFieldTransformation(this, MobileDeviceTransformation.MAKE_MAINBOX_SCROLLABLE);
+ }
+ }
+
+ @Order(10.0)
+ public class OutlinesTableField extends AbstractTableField<OutlinesTableField.Table> {
+
+ @Override
+ protected boolean getConfiguredLabelVisible() {
+ return false;
+ }
+
+ @Override
+ protected int getConfiguredGridH() {
+ return 2;
+ }
+
+ @Order(10.0)
+ public class Table extends AbstractMobileTable {
+
+ @Override
+ protected boolean execIsAutoCreateTableRowForm() {
+ return false;
+ }
+
+ @Override
+ protected boolean getConfiguredAutoDiscardOnDelete() {
+ return true;
+ }
+
+ @Override
+ protected String getConfiguredDefaultIconId() {
+ return AbstractIcons.TreeNode;
+ }
+
+ @Override
+ protected boolean getConfiguredAutoResizeColumns() {
+ return true;
+ }
+
+ @Override
+ protected boolean getConfiguredSortEnabled() {
+ return false;
+ }
+
+ public LabelColumn getLableColumn() {
+ return getColumnSet().getColumnByClass(LabelColumn.class);
+ }
+
+ public OutlineColumn getOutlineColumn() {
+ return getColumnSet().getColumnByClass(OutlineColumn.class);
+ }
+
+ @Override
+ protected void execDecorateRow(ITableRow row) throws ProcessingException {
+ final String outlineIcon = getOutlineColumn().getValue(row).getIconId();
+ if (outlineIcon != null) {
+ row.setIconId(outlineIcon);
+ }
+ }
+
+ @Order(10.0)
+ public class OutlineColumn extends AbstractColumn<IOutline> {
+
+ @Override
+ protected boolean getConfiguredDisplayable() {
+ return false;
+ }
+ }
+
+ @Order(20.0)
+ public class LabelColumn extends AbstractStringColumn {
+
+ }
+
+ @Override
+ protected void execRowsSelected(ITableRow[] rows) throws ProcessingException {
+ if (rows == null || rows.length == 0) {
+ return;
+ }
+
+ IOutline outline = getOutlineColumn().getValue(rows[0]);
+
+ MobileDesktopUtility.activateOutline(outline);
+ getDesktop().removeForm(HomeForm.this);
+
+ clearSelectionDelayed();
+ }
+ }
+ }
+
+ @Order(20.0)
+ public class LogoutButton extends AbstractButton {
+
+ @Override
+ protected String getConfiguredLabel() {
+ return TEXTS.get("Logoff");
+ }
+
+ @Override
+ protected void execClickAction() throws ProcessingException {
+ ClientJob.getCurrentSession().stopSession();
+ }
+
+ }
+ }
+
+ @Order(10.0)
+ public class ViewHandler extends AbstractFormHandler {
+
+ @Override
+ protected void execLoad() throws ProcessingException {
+ final OutlinesTableField.Table table = getOutlinesTableField().getTable();
+
+ IOutline[] outlines = getDesktop().getAvailableOutlines();
+ for (IOutline outline : outlines) {
+ if (outline.isVisible() && outline.getRootNode() != null) {
+ ITableRow row = table.createRow(new Object[]{outline, outline.getTitle()});
+ row.setEnabled(outline.isEnabled());
+ table.addRow(row);
+ }
+ }
+ }
+
+ @Override
+ protected void execFinally() throws ProcessingException {
+ final OutlinesTableField.Table table = getOutlinesTableField().getTable();
+ table.discardAllRows();
+ }
+ }
+}
diff --git a/org.eclipse.scout.sdk.rap/templates/ui.rap/src/MobileStandaloneRwtEnvironment.java b/org.eclipse.scout.sdk.rap/templates/ui.rap/src/MobileStandaloneRwtEnvironment.java
index 2a52bb22c..df14046e1 100644
--- a/org.eclipse.scout.sdk.rap/templates/ui.rap/src/MobileStandaloneRwtEnvironment.java
+++ b/org.eclipse.scout.sdk.rap/templates/ui.rap/src/MobileStandaloneRwtEnvironment.java
@@ -1,11 +1,11 @@
-package @@BUNDLE_RAP_NAME@@;
-
-import @@BUNDLE_CLIENT_NAME@@.ClientSession;
-import org.eclipse.scout.rt.ui.rap.mobile.AbstractMobileStandaloneRwtEnvironment;
-
-public class MobileStandaloneRwtEnvironment extends AbstractMobileStandaloneRwtEnvironment {
-
- public MobileStandaloneRwtEnvironment() {
- super(Activator.getDefault().getBundle(), ClientSession.class);
- }
-}
+package @@BUNDLE_RAP_NAME@@;
+
+import @@BUNDLE_CLIENT_NAME@@.ClientSession;
+import org.eclipse.scout.rt.ui.rap.mobile.AbstractMobileStandaloneRwtEnvironment;
+
+public class MobileStandaloneRwtEnvironment extends AbstractMobileStandaloneRwtEnvironment {
+
+ public MobileStandaloneRwtEnvironment() {
+ super(Activator.getDefault().getBundle(), ClientSession.class);
+ }
+}
diff --git a/org.eclipse.scout.sdk.rap/templates/ui.rap/src/TabletStandaloneRwtEnvironment.java b/org.eclipse.scout.sdk.rap/templates/ui.rap/src/TabletStandaloneRwtEnvironment.java
index 5d47f527c..3325f84de 100644
--- a/org.eclipse.scout.sdk.rap/templates/ui.rap/src/TabletStandaloneRwtEnvironment.java
+++ b/org.eclipse.scout.sdk.rap/templates/ui.rap/src/TabletStandaloneRwtEnvironment.java
@@ -1,11 +1,11 @@
-package @@BUNDLE_RAP_NAME@@;
-
-import @@BUNDLE_CLIENT_NAME@@.ClientSession;
-import org.eclipse.scout.rt.ui.rap.mobile.AbstractTabletStandaloneRwtEnvironment;
-
-public class TabletStandaloneRwtEnvironment extends AbstractTabletStandaloneRwtEnvironment {
-
- public TabletStandaloneRwtEnvironment() {
- super(Activator.getDefault().getBundle(), ClientSession.class);
- }
-}
+package @@BUNDLE_RAP_NAME@@;
+
+import @@BUNDLE_CLIENT_NAME@@.ClientSession;
+import org.eclipse.scout.rt.ui.rap.mobile.AbstractTabletStandaloneRwtEnvironment;
+
+public class TabletStandaloneRwtEnvironment extends AbstractTabletStandaloneRwtEnvironment {
+
+ public TabletStandaloneRwtEnvironment() {
+ super(Activator.getDefault().getBundle(), ClientSession.class);
+ }
+}

Back to the top