978 |
27 Feb 09 |
nicklas |
1 |
<%-- $Id$ |
978 |
27 Feb 09 |
nicklas |
2 |
------------------------------------------------------------------ |
978 |
27 Feb 09 |
nicklas |
Copyright (C) 2009 Nicklas Nordborg |
978 |
27 Feb 09 |
nicklas |
4 |
|
1416 |
20 Oct 11 |
nicklas |
5 |
This file is part of the MeV Launcher extension for BASE. |
1416 |
20 Oct 11 |
nicklas |
6 |
Available at http://baseplugins.thep.lu.se/ |
1416 |
20 Oct 11 |
nicklas |
7 |
BASE main site: http://base.thep.lu.se/ |
1416 |
20 Oct 11 |
nicklas |
8 |
----------------------------------------------------------- |
1416 |
20 Oct 11 |
nicklas |
9 |
|
1416 |
20 Oct 11 |
nicklas |
10 |
This is free software; you can redistribute it and/or |
978 |
27 Feb 09 |
nicklas |
11 |
modify it under the terms of the GNU General Public License |
1416 |
20 Oct 11 |
nicklas |
12 |
as published by the Free Software Foundation; either version 3 |
978 |
27 Feb 09 |
nicklas |
13 |
of the License, or (at your option) any later version. |
1416 |
20 Oct 11 |
nicklas |
14 |
|
1416 |
20 Oct 11 |
nicklas |
15 |
The software is distributed in the hope that it will be useful, |
978 |
27 Feb 09 |
nicklas |
16 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
1416 |
20 Oct 11 |
nicklas |
17 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
978 |
27 Feb 09 |
nicklas |
18 |
GNU General Public License for more details. |
1416 |
20 Oct 11 |
nicklas |
19 |
|
978 |
27 Feb 09 |
nicklas |
20 |
You should have received a copy of the GNU General Public License |
1416 |
20 Oct 11 |
nicklas |
21 |
along with BASE. If not, see <http://www.gnu.org/licenses/>. |
978 |
27 Feb 09 |
nicklas |
22 |
------------------------------------------------------------------ |
978 |
27 Feb 09 |
nicklas |
23 |
|
978 |
27 Feb 09 |
nicklas |
24 |
@author Jari, Nicklas |
978 |
27 Feb 09 |
nicklas |
25 |
--%> |
1026 |
07 Apr 09 |
nicklas |
26 |
<%@ page |
1026 |
07 Apr 09 |
nicklas |
27 |
pageEncoding="UTF-8" |
1026 |
07 Apr 09 |
nicklas |
28 |
session="false" |
978 |
27 Feb 09 |
nicklas |
29 |
import="net.sf.basedb.core.Application" |
978 |
27 Feb 09 |
nicklas |
30 |
import="net.sf.basedb.core.BioAssaySet" |
978 |
27 Feb 09 |
nicklas |
31 |
import="net.sf.basedb.core.Experiment" |
978 |
27 Feb 09 |
nicklas |
32 |
import="net.sf.basedb.core.Directory" |
978 |
27 Feb 09 |
nicklas |
33 |
import="net.sf.basedb.core.User" |
978 |
27 Feb 09 |
nicklas |
34 |
import="net.sf.basedb.core.DbControl" |
978 |
27 Feb 09 |
nicklas |
35 |
import="net.sf.basedb.core.SessionControl" |
978 |
27 Feb 09 |
nicklas |
36 |
import="net.sf.basedb.core.Path" |
978 |
27 Feb 09 |
nicklas |
37 |
import="net.sf.basedb.clients.web.Base" |
978 |
27 Feb 09 |
nicklas |
38 |
import="net.sf.basedb.clients.web.util.HTML" |
978 |
27 Feb 09 |
nicklas |
39 |
import="net.sf.basedb.clients.web.extensions.ExtensionsControl" |
978 |
27 Feb 09 |
nicklas |
40 |
import="net.sf.basedb.util.Values" |
978 |
27 Feb 09 |
nicklas |
41 |
%> |
978 |
27 Feb 09 |
nicklas |
42 |
<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> |
978 |
27 Feb 09 |
nicklas |
43 |
|
978 |
27 Feb 09 |
nicklas |
44 |
<% |
978 |
27 Feb 09 |
nicklas |
45 |
final SessionControl sc = Base.getExistingSessionControl(request, true); |
978 |
27 Feb 09 |
nicklas |
46 |
final String ID = sc.getId(); |
978 |
27 Feb 09 |
nicklas |
47 |
final float scale = Base.getScale(sc); |
978 |
27 Feb 09 |
nicklas |
48 |
DbControl dc = null; |
978 |
27 Feb 09 |
nicklas |
49 |
try |
978 |
27 Feb 09 |
nicklas |
50 |
{ |
978 |
27 Feb 09 |
nicklas |
51 |
dc = sc.newDbControl(); |
978 |
27 Feb 09 |
nicklas |
52 |
final User user = User.getById(dc, sc.getLoggedInUserId()); |
978 |
27 Feb 09 |
nicklas |
53 |
int maxMemory = Values.getInt(sc.getUserClientSetting("net.sf.basedb.mev.launchmev.jvm.maxmemory"), 512); |
978 |
27 Feb 09 |
nicklas |
54 |
%> |
2209 |
03 Feb 14 |
nicklas |
55 |
<base:page type="popup" title="<%="MeV Launcher options for "+HTML.encodeTags(user.getName())%>" id="mev-options"> |
2209 |
03 Feb 14 |
nicklas |
56 |
<base:head scripts="tabcontrol.js,~scripts/mev.js" styles="tabcontrol.css" /> |
978 |
27 Feb 09 |
nicklas |
57 |
<base:body> |
978 |
27 Feb 09 |
nicklas |
58 |
|
1541 |
22 Feb 12 |
nicklas |
59 |
<h1>MeV Launcher options for <%=HTML.encodeTags(user.getName())%></h1> |
2209 |
03 Feb 14 |
nicklas |
60 |
<form action="submit.jsp?ID=<%=ID%>" method="post" name="mevoptions"> |
978 |
27 Feb 09 |
nicklas |
61 |
<input type=hidden name="cmd" value="SaveOptions"> |
978 |
27 Feb 09 |
nicklas |
62 |
|
1541 |
22 Feb 12 |
nicklas |
63 |
<div class="content filled"> |
1541 |
22 Feb 12 |
nicklas |
64 |
<div> |
1541 |
22 Feb 12 |
nicklas |
65 |
<table class="fullform bottomborder"> |
1541 |
22 Feb 12 |
nicklas |
66 |
<tr style="height: 3em;"> |
1541 |
22 Feb 12 |
nicklas |
67 |
<th>JVM max memory</td> |
2209 |
03 Feb 14 |
nicklas |
68 |
<td><input class="text" type="text" name="maxMemory" id="maxMemory" |
2209 |
03 Feb 14 |
nicklas |
69 |
value="<%=maxMemory%>" style="width: 12em;" maxlength="6"> MB</td> |
978 |
27 Feb 09 |
nicklas |
70 |
</tr> |
978 |
27 Feb 09 |
nicklas |
71 |
</table> |
1541 |
22 Feb 12 |
nicklas |
72 |
</div> |
1541 |
22 Feb 12 |
nicklas |
73 |
|
1541 |
22 Feb 12 |
nicklas |
74 |
<div class="messagecontainer note"> |
1541 |
22 Feb 12 |
nicklas |
75 |
Specify the amount of memory the Java Virtual Machine for MeV is allowed to use. |
1541 |
22 Feb 12 |
nicklas |
76 |
The default value is 512MB. We don't recommend a lower value, but you may increase the value |
1541 |
22 Feb 12 |
nicklas |
77 |
if your computer has memory to spare. |
1541 |
22 Feb 12 |
nicklas |
78 |
</div> |
978 |
27 Feb 09 |
nicklas |
79 |
|
1541 |
22 Feb 12 |
nicklas |
80 |
</div> |
1541 |
22 Feb 12 |
nicklas |
81 |
|
1541 |
22 Feb 12 |
nicklas |
82 |
<base:buttongroup subclass="dialogbuttons"> |
2209 |
03 Feb 14 |
nicklas |
83 |
<base:button id="btnSave" title="Save" /> |
2209 |
03 Feb 14 |
nicklas |
84 |
<base:button id="close" title="Cancel" /> |
1541 |
22 Feb 12 |
nicklas |
85 |
</base:buttongroup> |
1541 |
22 Feb 12 |
nicklas |
86 |
|
978 |
27 Feb 09 |
nicklas |
87 |
</base:body> |
978 |
27 Feb 09 |
nicklas |
88 |
</base:page> |
978 |
27 Feb 09 |
nicklas |
89 |
<% |
978 |
27 Feb 09 |
nicklas |
90 |
} |
978 |
27 Feb 09 |
nicklas |
91 |
finally |
978 |
27 Feb 09 |
nicklas |
92 |
{ |
978 |
27 Feb 09 |
nicklas |
93 |
if (dc != null) dc.close(); |
978 |
27 Feb 09 |
nicklas |
94 |
} |
978 |
27 Feb 09 |
nicklas |
95 |
%> |