Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bonita-studio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
bonita
bonita-studio
Commits
9b9ce78d
Commit
9b9ce78d
authored
Nov 09, 2015
by
Romain Bioteau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BS-14585 Legacy Form Preview with Templates
Handle form not in process use case.
parent
96b025cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
bundles/plugins/org.bonitasoft.studio.form.preview/src/org/bonitasoft/studio/form/preview/view/FormPreviewPropertiesView.java
...t/studio/form/preview/view/FormPreviewPropertiesView.java
+10
-7
No files found.
bundles/plugins/org.bonitasoft.studio.form.preview/src/org/bonitasoft/studio/form/preview/view/FormPreviewPropertiesView.java
View file @
9b9ce78d
...
...
@@ -213,20 +213,23 @@ public class FormPreviewPropertiesView extends ViewPart {
if
(
advancedFormPreview
!=
null
)
{
advancedFormPreview
.
setForm
(
form
);
}
//webBrowserCombo.setSelection(new StructuredSelection(BrowserManager.getInstance().getCurrentWebBrowser()));
}
private
ApplicationLookNFeelFileStore
getCurrentLookNFeel
()
{
if
(
getSite
().
getPage
().
getActiveEditor
()
instanceof
FormDiagramEditor
)
{
final
String
themeId
=
BonitaStudioPreferencesPlugin
.
getDefault
().
getPreferenceStore
()
.
getString
(
BonitaPreferenceConstants
.
DEFAULT_APPLICATION_THEME
);
final
Form
form
=
(
Form
)
((
FormDiagramEditor
)
getSite
().
getPage
().
getActiveEditor
()).
getDiagramEditPart
().
resolveSemanticElement
();
final
AbstractProcess
process
=
ModelHelper
.
getParentProcess
(
form
);
ApplicationLookNFeelFileStore
lnfStore
=
(
ApplicationLookNFeelFileStore
)
repositoryStore
.
getChild
(
process
.
getBasedOnLookAndFeel
());
if
(
lnfStore
==
null
)
{
final
String
themeId
=
BonitaStudioPreferencesPlugin
.
getDefault
().
getPreferenceStore
()
.
getString
(
BonitaPreferenceConstants
.
DEFAULT_APPLICATION_THEME
);
lnfStore
=
(
ApplicationLookNFeelFileStore
)
repositoryStore
.
getChild
(
themeId
);
if
(
process
!=
null
)
{
ApplicationLookNFeelFileStore
lnfStore
=
(
ApplicationLookNFeelFileStore
)
repositoryStore
.
getChild
(
process
.
getBasedOnLookAndFeel
());
if
(
lnfStore
==
null
)
{
lnfStore
=
(
ApplicationLookNFeelFileStore
)
repositoryStore
.
getChild
(
themeId
);
}
return
lnfStore
;
}
return
lnfStore
;
return
(
ApplicationLookNFeelFileStore
)
repositoryStore
.
getChild
(
themeId
)
;
}
return
null
;
}
...
...
Write
Preview
Markdown
is supported
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