Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
dc0bc8d1
Commit
dc0bc8d1
authored
14 years ago
by
felmer
Browse files
Options
Downloads
Patches
Plain Diff
SE-251 fixed bug concerning experiment identifier in protein details view
SVN: 16222
parent
c2251806
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openbis/source/java/ch/systemsx/cisd/openbis/plugin/generic/client/web/client/application/experiment/GenericExperimentViewer.java
+8
-6
8 additions, 6 deletions
...lient/application/experiment/GenericExperimentViewer.java
with
8 additions
and
6 deletions
openbis/source/java/ch/systemsx/cisd/openbis/plugin/generic/client/web/client/application/experiment/GenericExperimentViewer.java
+
8
−
6
View file @
dc0bc8d1
...
@@ -42,7 +42,6 @@ import ch.systemsx.cisd.openbis.generic.client.web.client.application.ui.widget.
...
@@ -42,7 +42,6 @@ import ch.systemsx.cisd.openbis.generic.client.web.client.application.ui.widget.
import
ch.systemsx.cisd.openbis.generic.client.web.client.application.util.GWTUtils
;
import
ch.systemsx.cisd.openbis.generic.client.web.client.application.util.GWTUtils
;
import
ch.systemsx.cisd.openbis.generic.client.web.client.application.util.IDelegatedAction
;
import
ch.systemsx.cisd.openbis.generic.client.web.client.application.util.IDelegatedAction
;
import
ch.systemsx.cisd.openbis.generic.shared.basic.IAttachmentHolder
;
import
ch.systemsx.cisd.openbis.generic.shared.basic.IAttachmentHolder
;
import
ch.systemsx.cisd.openbis.generic.shared.basic.IEntityInformationHolderWithIdentifier
;
import
ch.systemsx.cisd.openbis.generic.shared.basic.IIdAndCodeHolder
;
import
ch.systemsx.cisd.openbis.generic.shared.basic.IIdAndCodeHolder
;
import
ch.systemsx.cisd.openbis.generic.shared.basic.TechId
;
import
ch.systemsx.cisd.openbis.generic.shared.basic.TechId
;
import
ch.systemsx.cisd.openbis.generic.shared.basic.dto.AttachmentHolderKind
;
import
ch.systemsx.cisd.openbis.generic.shared.basic.dto.AttachmentHolderKind
;
...
@@ -70,6 +69,8 @@ public class GenericExperimentViewer extends AbstractViewer<Experiment> implemen
...
@@ -70,6 +69,8 @@ public class GenericExperimentViewer extends AbstractViewer<Experiment> implemen
protected
final
IIdAndCodeHolder
experimentId
;
protected
final
IIdAndCodeHolder
experimentId
;
protected
final
BasicEntityType
experimentType
;
protected
final
BasicEntityType
experimentType
;
protected
Experiment
experiment
;
private
ExperimentPropertiesPanel
propertiesPanelOrNull
;
private
ExperimentPropertiesPanel
propertiesPanelOrNull
;
...
@@ -123,10 +124,12 @@ public class GenericExperimentViewer extends AbstractViewer<Experiment> implemen
...
@@ -123,10 +124,12 @@ public class GenericExperimentViewer extends AbstractViewer<Experiment> implemen
{
{
reloadExperiment
(
new
AbstractAsyncCallback
<
Experiment
>(
viewContext
)
reloadExperiment
(
new
AbstractAsyncCallback
<
Experiment
>(
viewContext
)
{
{
@Override
@Override
protected
final
void
process
(
final
Experiment
result
)
protected
final
void
process
(
final
Experiment
result
)
{
{
layoutExperimentDetailView
(
result
);
experiment
=
result
;
layoutExperimentDetailView
();
}
}
});
});
}
}
...
@@ -136,7 +139,7 @@ public class GenericExperimentViewer extends AbstractViewer<Experiment> implemen
...
@@ -136,7 +139,7 @@ public class GenericExperimentViewer extends AbstractViewer<Experiment> implemen
viewContext
.
getService
().
getExperimentInfo
(
new
TechId
(
experimentId
),
callback
);
viewContext
.
getService
().
getExperimentInfo
(
new
TechId
(
experimentId
),
callback
);
}
}
private
void
layoutExperimentDetailView
(
final
Experiment
experiment
)
private
void
layoutExperimentDetailView
()
{
{
int
logId
=
viewContext
.
log
(
"layoutExperimentDetailView"
);
int
logId
=
viewContext
.
log
(
"layoutExperimentDetailView"
);
updateOriginalData
(
experiment
);
updateOriginalData
(
experiment
);
...
@@ -160,7 +163,7 @@ public class GenericExperimentViewer extends AbstractViewer<Experiment> implemen
...
@@ -160,7 +163,7 @@ public class GenericExperimentViewer extends AbstractViewer<Experiment> implemen
remove
(
loadingLabel
);
remove
(
loadingLabel
);
String
displayIdPrefix
=
getDisplayIdSuffix
(
experimentType
.
getCode
());
String
displayIdPrefix
=
getDisplayIdSuffix
(
experimentType
.
getCode
());
GenericExperimentViewer
.
this
.
rightPanelSectionsOrNull
=
GenericExperimentViewer
.
this
.
rightPanelSectionsOrNull
=
createRightPanel
(
experiment
,
displayIdPrefix
);
createRightPanel
(
displayIdPrefix
);
SectionsPanel
rightPanel
=
layoutSections
(
rightPanelSectionsOrNull
);
SectionsPanel
rightPanel
=
layoutSections
(
rightPanelSectionsOrNull
);
moduleSectionManager
.
initialize
(
rightPanel
,
displayIdPrefix
,
experiment
);
moduleSectionManager
.
initialize
(
rightPanel
,
displayIdPrefix
,
experiment
);
add
(
rightPanel
,
createRightBorderLayoutData
());
add
(
rightPanel
,
createRightBorderLayoutData
());
...
@@ -232,8 +235,7 @@ public class GenericExperimentViewer extends AbstractViewer<Experiment> implemen
...
@@ -232,8 +235,7 @@ public class GenericExperimentViewer extends AbstractViewer<Experiment> implemen
return
GENERIC_EXPERIMENT_VIEWER
+
"-"
+
suffix
;
return
GENERIC_EXPERIMENT_VIEWER
+
"-"
+
suffix
;
}
}
private
List
<
DisposableSectionPanel
>
createRightPanel
(
private
List
<
DisposableSectionPanel
>
createRightPanel
(
final
String
displayIdSuffix
)
IEntityInformationHolderWithIdentifier
experiment
,
final
String
displayIdSuffix
)
{
{
List
<
DisposableSectionPanel
>
allPanels
=
new
ArrayList
<
DisposableSectionPanel
>();
List
<
DisposableSectionPanel
>
allPanels
=
new
ArrayList
<
DisposableSectionPanel
>();
...
...
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