Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
WebGUI
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Kieker
WebGUI
Commits
11b93a1a
Commit
11b93a1a
authored
13 years ago
by
Nils Christian Ehmke
Browse files
Options
Downloads
Patches
Plain Diff
Minor corrections and modifications.
parent
fccd268e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Kieker.WebGUI/src/main/java/kieker/webgui/common/FileManager.java
+8
-5
8 additions, 5 deletions
...ebGUI/src/main/java/kieker/webgui/common/FileManager.java
Kieker.WebGUI/src/main/webapp/main.xhtml
+3
-3
3 additions, 3 deletions
Kieker.WebGUI/src/main/webapp/main.xhtml
with
11 additions
and
8 deletions
Kieker.WebGUI/src/main/java/kieker/webgui/common/FileManager.java
+
8
−
5
View file @
11b93a1a
...
...
@@ -26,6 +26,8 @@ import java.io.FileOutputStream;
import
java.io.IOException
;
import
java.util.ArrayList
;
import
java.util.List
;
import
javax.faces.application.FacesMessage
;
import
javax.faces.context.FacesContext
;
import
kieker.analysis.AnalysisController
;
import
kieker.analysis.model.analysisMetaModel.MIDependency
;
...
...
@@ -135,9 +137,7 @@ public final class FileManager {
/*
* Make sure that the directory for the project exists.
*/
if
(!
dirProject
.
exists
())
{
return
false
;
}
else
{
if
(
dirProject
.
exists
())
{
/*
* Try to save the project.
*/
...
...
@@ -145,12 +145,15 @@ public final class FileManager {
try
{
// TODO Copy before saving as the controller destroys at least the dependencies.
final
AnalysisController
controller
=
new
AnalysisController
(
project
);
return
controller
.
saveToFile
(
fileProject
);
if
(
controller
.
saveToFile
(
fileProject
))
{
FacesContext
.
getCurrentInstance
().
addMessage
(
null
,
new
FacesMessage
(
FacesMessage
.
SEVERITY_INFO
,
""
,
"Project saved: "
+
project
.
getName
()));
return
true
;
}
}
catch
(
final
NullPointerException
ex
)
{
FileManager
.
LOG
.
error
(
"Could not save project '"
+
projectName
+
"'."
,
ex
);
return
false
;
}
}
return
false
;
}
/**
...
...
This diff is collapsed.
Click to expand it.
Kieker.WebGUI/src/main/webapp/main.xhtml
+
3
−
3
View file @
11b93a1a
...
...
@@ -32,11 +32,11 @@
<!-- This is the submenu for the current project, for example if someone doesn't want to use the context menu within the browser. -->
<p:submenu
label=
"Current Project"
>
<p:menuitem
value=
"Save Project"
ajax=
"true"
action=
"#{availableProjectsBean.saveProject(selectedProjectBean.getSelectedProject)}"
update=
":projectsForm"
/>
<p:menuitem
value=
"Save Project"
ajax=
"true"
action=
"#{availableProjectsBean.saveProject(selectedProjectBean.getSelectedProject
()
)}"
update=
":projectsForm"
/>
<p:menuitem
value=
"Set as Main Project"
ajax=
"true"
action=
"#{selectedProjectBean.setMainProject(selectedProjectBean.getSelectedProject())}"
update=
":projectsForm"
/>
<p:separator
/>
<p:menuitem
value=
"Delete Project"
ajax=
"true"
action=
"#{availableProjectsBean.deleteProject(selectedProjectBean.getSelectedProject)}"
update=
":projectsForm"
/>
<p:menuitem
value=
"Reset Project"
ajax=
"true"
action=
"#{availableProjectsBean.resetProject(selectedProjectBean.getSelectedProject)}"
update=
":projectsForm"
/>
<p:menuitem
value=
"Delete Project"
ajax=
"true"
action=
"#{availableProjectsBean.deleteProject(selectedProjectBean.getSelectedProject
()
)}"
update=
":projectsForm"
/>
<p:menuitem
value=
"Reset Project"
ajax=
"true"
action=
"#{availableProjectsBean.resetProject(selectedProjectBean.getSelectedProject
()
)}"
update=
":projectsForm"
/>
<p:separator
/>
<p:menuitem
value=
"Configure Dependencies"
ajax=
"false"
url=
"/Kieker.WebGUI/projectDependencies"
/>
</p:submenu>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment