Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bonita
bonita-studio
Commits
571b923f
Commit
571b923f
authored
Oct 29, 2014
by
apupier
Browse files
add modifed files from the merge
parent
b7ba8146
Changes
3
Hide whitespace changes
Inline
Side-by-side
bundles/plugins/org.bonitasoft.studio-models/process.history
View file @
571b923f
...
...
@@ -8710,8 +8710,8 @@
<changes xsi:type="history:Set" element="process.ecore#//Document/documentType"
featureName="defaultValueLiteral" dataValue="NONE" oldDataValue="0"/>
</changes>
</releases>
<releases date="2014-10-
17
T10:
17
:1
4
.0
66
+0
2
00" label="6.4.0-00
3
">
</releases>
<releases date="2014-10-
28
T10:
45
:1
0
.0
92
+0
1
00" label="6.4.0-00
4
">
<changes xsi:type="history:Create" target="form.ecore#/" referenceName="eClassifiers"
element="form.ecore#//FileWidgetDownloadType"/>
<changes xsi:type="history:Set" element="form.ecore#//FileWidgetDownloadType"
...
...
@@ -8719,32 +8719,32 @@
<changes xsi:type="history:Create" target="form.ecore#//FileWidgetDownloadType"
referenceName="eLiterals" element="form.ecore#//FileWidgetDownloadType/Both"/>
<changes xsi:type="history:Set" element="form.ecore#//FileWidgetDownloadType/Both"
featureName="name" dataValue="All"/>
featureName="literal" dataValue="Both"/>
<changes xsi:type="history:Set" element="form.ecore#//FileWidgetDownloadType/Both"
featureName="name" dataValue="Both"/>
<changes xsi:type="history:Create" target="form.ecore#//FileWidgetDownloadType"
referenceName="eLiterals" element="form.ecore#//FileWidgetDownloadType/URL"/>
<changes xsi:type="history:Set" element="form.ecore#//FileWidgetDownloadType/URL"
featureName="
value" dataValue="1" oldD
ataValue="
0
"/>
featureName="
literal" d
ataValue="
URL
"/>
<changes xsi:type="history:Set" element="form.ecore#//FileWidgetDownloadType/URL"
featureName="name" dataValue="URL"/>
<changes xsi:type="history:Set" element="form.ecore#//FileWidgetDownloadType/URL"
featureName="value" dataValue="1" oldDataValue="0"/>
<changes xsi:type="history:Create" target="form.ecore#//FileWidgetDownloadType"
referenceName="eLiterals" element="form.ecore#//FileWidgetDownloadType/Browse"/>
<changes xsi:type="history:Set" element="form.ecore#//FileWidgetDownloadType/Browse"
featureName="
value" dataValue="2" oldD
ataValue="
0
"/>
featureName="
literal" d
ataValue="
Browse
"/>
<changes xsi:type="history:Set" element="form.ecore#//FileWidgetDownloadType/Browse"
featureName="name" dataValue="Browse"/>
<changes xsi:type="history:Set" element="form.ecore#//FileWidgetDownloadType/B
oth
"
featureName="
nam
e" dataValue="
Both
" oldDataValue="
All
"/>
<changes xsi:type="history:Set" element="form.ecore#//FileWidgetDownloadType/B
rowse
"
featureName="
valu
e" dataValue="
2
" oldDataValue="
0
"/>
<changes xsi:type="history:Create" target="form.ecore#//FileWidget" referenceName="eStructuralFeatures"
element="form.ecore#//FileWidget/downloadType"/>
<changes xsi:type="history:Set" element="form.ecore#//FileWidget/downloadType"
featureName="name" dataValue="downloadType"/>
<changes xsi:type="history:Set" element="form.ecore#//FileWidget/downloadType"
featureName="defaultValueLiteral" dataValue=""/>
<changes xsi:type="history:Set" element="form.ecore#//FileWidget/downloadType"
featureName="eType" referenceValue="form.ecore#//FileWidgetDownloadType"/>
<changes xsi:type="history:Set" element="form.ecore#//FileWidget/downloadType"
featureName="defaultValueLiteral" dataValue="Both" oldDataValue=""/>
<changes xsi:type="history:MigrationChange" migration="org.bonitasoft.studio.migration.custom.migration.form.FileWidgetResourceMigration"/>
<changes xsi:type="history:MigrationChange" migration="org.bonitasoft.studio.migration.custom.migration.form.FileWidgetDocumentMigration"/>
</releases>
<releases/>
</history:History>
bundles/plugins/org.bonitasoft.studio.common/src/org/bonitasoft/studio/common/ModelVersion.java
View file @
571b923f
...
...
@@ -20,7 +20,7 @@ package org.bonitasoft.studio.common;
public
class
ModelVersion
{
public
static
final
String
VERSION_6_0_0_ALPHA
=
"6.0.0-Alpha"
;
public
static
final
String
CURRENT_VERSION
=
"6.4.0-00
3
"
;
public
static
final
String
CURRENT_VERSION
=
"6.4.0-00
4
"
;
public
static
boolean
sameVersion
(
final
String
version
)
{
return
CURRENT_VERSION
.
equals
(
version
);
...
...
bundles/plugins/org.bonitasoft.studio.exporter/src-test/java/org/bonitasoft/studio/exporter/form/FormsExporterTest.java
View file @
571b923f
...
...
@@ -85,13 +85,6 @@ public class FormsExporterTest {
verify
(
formExporter
).
addAction
(
formBuilder
,
operation
);
}
@Test
public
void
should_AddFileWidgetInputType_All
()
throws
InvalidFormDefinitionException
{
final
FileWidget
fileWidget
=
FileWidgetBuilder
.
create
().
withInputType
(
FileWidgetInputType
.
DOCUMENT
).
build
();
formExporter
.
addDocumentInitialValue
(
fileWidget
,
formBuilder
);
verify
(
formBuilder
).
addFileWidgetInputType
(
org
.
bonitasoft
.
forms
.
client
.
model
.
FileWidgetInputType
.
ALL
);
}
@Test
public
void
should_addFileWidgetInitialValueExpression_whenTypeIsDocument
()
throws
InvalidFormDefinitionException
{
final
FileWidget
fileWidget
=
FileWidgetBuilder
.
create
().
withInputType
(
FileWidgetInputType
.
DOCUMENT
).
build
();
...
...
@@ -159,7 +152,7 @@ public class FormsExporterTest {
@Test
public
void
should_addDocumentInitialValue_WhenFileDocumentDownloadType_isURL
()
throws
InvalidFormDefinitionException
{
final
FileWidget
fileWidget
=
create
FileWidget
(
FileWidgetInputType
.
DOCUMENT
);
final
FileWidget
fileWidget
=
FileWidget
Builder
.
create
().
withInputType
(
FileWidgetInputType
.
DOCUMENT
)
.
build
()
;
fileWidget
.
setDuplicate
(
false
);
fileWidget
.
setDownloadType
(
FileWidgetDownloadType
.
URL
);
formExporter
.
addFileWidgetInputType
(
fileWidget
,
formBuilder
);
...
...
@@ -168,7 +161,7 @@ public class FormsExporterTest {
@Test
public
void
should_addDocumentInitialValue_WhenFileDocumentDownloadType_isBrowse
()
throws
InvalidFormDefinitionException
{
final
FileWidget
fileWidget
=
create
FileWidget
(
FileWidgetInputType
.
DOCUMENT
);
final
FileWidget
fileWidget
=
FileWidget
Builder
.
create
().
withInputType
(
FileWidgetInputType
.
DOCUMENT
)
.
build
()
;
fileWidget
.
setDuplicate
(
false
);
fileWidget
.
setDownloadType
(
FileWidgetDownloadType
.
BROWSE
);
formExporter
.
addFileWidgetInputType
(
fileWidget
,
formBuilder
);
...
...
@@ -177,7 +170,7 @@ public class FormsExporterTest {
@Test
public
void
should_addDocumentInitialValue_WhenFileDocumentDownloadType_isBoth
()
throws
InvalidFormDefinitionException
{
final
FileWidget
fileWidget
=
create
FileWidget
(
FileWidgetInputType
.
DOCUMENT
);
final
FileWidget
fileWidget
=
FileWidget
Builder
.
create
().
withInputType
(
FileWidgetInputType
.
DOCUMENT
)
.
build
()
;
fileWidget
.
setDuplicate
(
false
);
fileWidget
.
setDownloadType
(
FileWidgetDownloadType
.
BOTH
);
formExporter
.
addFileWidgetInputType
(
fileWidget
,
formBuilder
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment