-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4d816af
commit 1e5f54f
Showing
31 changed files
with
290 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/> | ||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> | ||
<classpathentry kind="src" path="src"/> | ||
<classpathentry kind="output" path="bin"/> | ||
</classpath> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>aev.core.ui.rap</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> | ||
<buildCommand> | ||
<name>org.eclipse.pde.ds.core.builder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.pde.PluginNature</nature> | ||
<nature>org.eclipse.jdt.core.javanature</nature> | ||
</natures> | ||
</projectDescription> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Manifest-Version: 1.0 | ||
Bundle-ManifestVersion: 2 | ||
Bundle-Name: ARCAD-Evolution Core UI RAP | ||
Automatic-Module-Name: com.arcadsoftware.aev.core.ui.rap | ||
Bundle-SymbolicName: com.arcadsoftware.aev.core.ui.rap;singleton:=true | ||
Bundle-Version: 12.0.2.qualifier | ||
Require-Bundle: com.arcadsoftware.aev.core.ui, | ||
com.arcadsoftware.aev.core, | ||
org.eclipse.rap.ui;bundle-version="3.6.0", | ||
org.eclipse.rap.ui.forms;bundle-version="3.6.0", | ||
org.eclipse.rap.filedialog;bundle-version="3.6.0" | ||
Bundle-ActivationPolicy: lazy | ||
Bundle-RequiredExecutionEnvironment: JavaSE-1.8 | ||
Bundle-Vendor: ARCAD-Software | ||
Export-Package: com.arcadsoftware.aev.core.ui.common, | ||
com.arcadsoftware.aev.core.ui.rap.dialogs, | ||
com.arcadsoftware.aev.core.ui.rap.tools | ||
Import-Package: org.osgi.service.component.annotations;resolution:=optional | ||
Service-Component: OSGI-INF/com.arcadsoftware.aev.core.ui.rap.dialogs.RAPDialogConstantFiller.xml, | ||
OSGI-INF/com.arcadsoftware.aev.core.ui.rap.tools.FileManagerProvider.xml |
7 changes: 7 additions & 0 deletions
7
...ore.ui.rap/OSGI-INF/com.arcadsoftware.aev.core.ui.rap.dialogs.RAPDialogConstantFiller.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" immediate="true" name="com.arcadsoftware.aev.core.ui.rap.dialogs.RAPDialogConstantFiller"> | ||
<service> | ||
<provide interface="com.arcadsoftware.aev.core.ui.dialogs.IDialogConstantFiller"/> | ||
</service> | ||
<implementation class="com.arcadsoftware.aev.core.ui.rap.dialogs.RAPDialogConstantFiller"/> | ||
</scr:component> |
7 changes: 7 additions & 0 deletions
7
.../aev.core.ui.rap/OSGI-INF/com.arcadsoftware.aev.core.ui.rap.tools.FileManagerProvider.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" name="com.arcadsoftware.aev.core.ui.rap.tools.FileManagerProvider"> | ||
<service> | ||
<provide interface="com.arcadsoftware.aev.core.ui.tools.IFileManagerProvider"/> | ||
</service> | ||
<implementation class="com.arcadsoftware.aev.core.ui.rap.tools.FileManagerProvider"/> | ||
</scr:component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
source.. = src/ | ||
output.. = bin/ | ||
bin.includes = META-INF/,\ | ||
.,\ | ||
OSGI-INF/ |
17 changes: 17 additions & 0 deletions
17
bundles/aev.core.ui.rap/src/com/arcadsoftware/aev/core/ui/common/FormToolKitUtils.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.arcadsoftware.aev.core.ui.common; | ||
|
||
import org.eclipse.swt.widgets.Composite; | ||
import org.eclipse.ui.forms.widgets.FormToolkit; | ||
|
||
public class FormToolKitUtils { | ||
|
||
public static void paintBordersFor(final FormToolkit toolkit, final Composite composite) { | ||
// toolkit.paintBordersFor(composite); | ||
// there is nothing to do when using RAP. | ||
} | ||
|
||
public static void setOrientationRightToLeft(final FormToolkit toolkit) { | ||
// Not supported by RAP ! | ||
// toolkit.setOrientation(SWT.RIGHT_TO_LEFT); | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
...ev.core.ui.rap/src/com/arcadsoftware/aev/core/ui/rap/dialogs/RAPDialogConstantFiller.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package com.arcadsoftware.aev.core.ui.rap.dialogs; | ||
|
||
import org.eclipse.jface.dialogs.IDialogConstants; | ||
import org.osgi.service.component.annotations.Component; | ||
|
||
import com.arcadsoftware.aev.core.ui.dialogs.DialogConstantProvider; | ||
import com.arcadsoftware.aev.core.ui.dialogs.IDialogConstantFiller; | ||
|
||
@Component(service = IDialogConstantFiller.class, immediate = true) | ||
public class RAPDialogConstantFiller implements IDialogConstantFiller { | ||
|
||
@Override | ||
public void fill(final DialogConstantProvider provider) { | ||
provider.OK_LABEL = IDialogConstants.get().OK_LABEL; | ||
provider.CANCEL_LABEL = IDialogConstants.get().CANCEL_LABEL; | ||
provider.YES_LABEL = IDialogConstants.get().YES_LABEL; | ||
provider.NO_LABEL = IDialogConstants.get().NO_LABEL; | ||
provider.NO_TO_ALL_LABEL = IDialogConstants.get().NO_TO_ALL_LABEL; | ||
provider.YES_TO_ALL_LABEL = IDialogConstants.get().YES_TO_ALL_LABEL; | ||
provider.SKIP_LABEL = IDialogConstants.get().SKIP_LABEL; | ||
provider.STOP_LABEL = IDialogConstants.get().STOP_LABEL; | ||
provider.ABORT_LABEL = IDialogConstants.get().ABORT_LABEL; | ||
provider.RETRY_LABEL = IDialogConstants.get().RETRY_LABEL; | ||
|
||
provider.IGNORE_LABEL = IDialogConstants.get().IGNORE_LABEL; | ||
provider.PROCEED_LABEL = IDialogConstants.get().PROCEED_LABEL; | ||
provider.OPEN_LABEL = IDialogConstants.get().OPEN_LABEL; | ||
provider.CLOSE_LABEL = IDialogConstants.get().CLOSE_LABEL; | ||
provider.SHOW_DETAILS_LABEL = IDialogConstants.get().SHOW_DETAILS_LABEL; | ||
provider.HIDE_DETAILS_LABEL = IDialogConstants.get().HIDE_DETAILS_LABEL; | ||
|
||
provider.BACK_LABEL = IDialogConstants.get().BACK_LABEL; | ||
provider.NEXT_LABEL = IDialogConstants.get().NEXT_LABEL; | ||
provider.FINISH_LABEL = IDialogConstants.get().FINISH_LABEL; | ||
provider.HELP_LABEL = IDialogConstants.get().HELP_LABEL; | ||
|
||
} | ||
|
||
} |
57 changes: 57 additions & 0 deletions
57
bundles/aev.core.ui.rap/src/com/arcadsoftware/aev/core/ui/rap/tools/FileManagerProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
package com.arcadsoftware.aev.core.ui.rap.tools; | ||
|
||
import java.io.File; | ||
import java.io.InputStream; | ||
import java.util.List; | ||
|
||
import org.eclipse.swt.SWT; | ||
import org.eclipse.swt.widgets.FileDialog; | ||
import org.eclipse.swt.widgets.Shell; | ||
import org.osgi.service.component.annotations.Component; | ||
|
||
import com.arcadsoftware.aev.core.ui.tools.IFileManagerProvider; | ||
|
||
@Component(service = IFileManagerProvider.class) | ||
public class FileManagerProvider implements IFileManagerProvider { | ||
@Override | ||
public boolean isSelectorAvailable() { | ||
return false; | ||
} | ||
|
||
@Override | ||
public void openFile(final File file) { | ||
// We do nothing under RAP Execution | ||
} | ||
|
||
@Override | ||
public void openFileFromStream(final InputStream stream, final String tempFileName) { | ||
// We do nothing under RAP Execution | ||
} | ||
|
||
@Override | ||
public String selectDirectory(final Shell shell, final int actionStyle, final String title) { | ||
return null; | ||
} | ||
|
||
@Override | ||
public String selectFile(final Shell shell, final int actionStyle, final String title, | ||
final String[] fileExtensions) { | ||
final FileDialog fileDialog = new FileDialog(shell, SWT.OPEN | SWT.APPLICATION_MODAL); | ||
// fileDialog.setFilterExtensions(fileExtensions); | ||
fileDialog.setText(title); | ||
return fileDialog.open(); | ||
} | ||
|
||
@Override | ||
public String selectFile(final Shell shell, final int actionStyle, final String title, | ||
final String[] fileExtensions, final String filename) { | ||
return null; | ||
} | ||
|
||
@Override | ||
public List<String> selectFiles(final Shell shell, final int actionStyle, final String title, | ||
final String[] fileExtensions) { | ||
return null; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>aev.rap.features</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.pde.FeatureBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.m2e.core.maven2Builder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.m2e.core.maven2Nature</nature> | ||
<nature>org.eclipse.pde.FeatureNature</nature> | ||
</natures> | ||
</projectDescription> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
bin.includes = feature.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<feature | ||
id="com.arcadsoftware.aev.rap.features" | ||
label="ARCAD-Evolution RAP" | ||
version="12.0.2.qualifier" | ||
provider-name="ARCAD-Software"> | ||
|
||
<description> | ||
Contains the ARCAD Evolution RAP bundle and its dependencies. | ||
</description> | ||
|
||
<copyright url="http://www.arcadsoftware.com"> | ||
(c) ARCAD-Software, All Rights Reserved. | ||
</copyright> | ||
|
||
<license url="http://www.arcadsoftware.com"> | ||
General ARCAD-Software Commercial License | ||
(c) 2021, ARCAD Software, all rights reserved. | ||
The software and documentation cannot be used without explicit | ||
authorization of ARCAD-Software. | ||
Please refer to the global ARCAD products licence for details. | ||
</license> | ||
|
||
<includes | ||
id="com.arcadsoftware.aev.core.ui.features" | ||
version="0.0.0"/> | ||
|
||
<plugin | ||
id="com.arcadsoftware.aev.core.ui.rap" | ||
download-size="0" | ||
install-size="0" | ||
version="0.0.0" | ||
unpack="false"/> | ||
|
||
</feature> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.