Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
svarog2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Redmine
Redmine
Packages
Packages
Container Registry
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Brain
svarog2
Commits
fc423d04
Commit
fc423d04
authored
Mar 01, 2019
by
Piotr Różański
Committed by
Marian Dovgialo
Sep 11, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#45480 Disabled no-op saving of monitor documents
parent
0a4bc09c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
38 deletions
+1
-38
DocumentFlowIntegrator.java
...ava/org/signalml/app/document/DocumentFlowIntegrator.java
+0
-3
MonitorSignalDocument.java
...java/org/signalml/app/document/MonitorSignalDocument.java
+1
-35
No files found.
svarog/src/main/java/org/signalml/app/document/DocumentFlowIntegrator.java
View file @
fc423d04
...
@@ -485,9 +485,6 @@ public boolean saveDocument(Document document, boolean saveAsOnly) throws IOExce
...
@@ -485,9 +485,6 @@ public boolean saveDocument(Document document, boolean saveAsOnly) throws IOExce
if
(
type
.
equals
(
ManagedDocumentType
.
SIGNAL
))
{
if
(
type
.
equals
(
ManagedDocumentType
.
SIGNAL
))
{
ok
=
true
;
ok
=
true
;
// do nothing
// do nothing
}
else
if
(
type
.
equals
(
ManagedDocumentType
.
MONITOR
))
{
ok
=
true
;
// do nothing
}
else
if
(
type
.
equals
(
ManagedDocumentType
.
BOOK
))
{
}
else
if
(
type
.
equals
(
ManagedDocumentType
.
BOOK
))
{
ok
=
true
;
ok
=
true
;
// do nothing
// do nothing
...
...
svarog/src/main/java/org/signalml/app/document/MonitorSignalDocument.java
View file @
fc423d04
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
* @author Mariusz Podsiadło
* @author Mariusz Podsiadło
*
*
*/
*/
public
class
MonitorSignalDocument
extends
AbstractSignal
implements
MutableDocument
,
PsychopyStatusListener
{
public
class
MonitorSignalDocument
extends
AbstractSignal
implements
PsychopyStatusListener
{
/**
/**
* A property describing the state of the recording process.
* A property describing the state of the recording process.
...
@@ -98,11 +98,6 @@
...
@@ -98,11 +98,6 @@
*/
*/
private
PreviewVideoFrame
previewVideoFrame
;
private
PreviewVideoFrame
previewVideoFrame
;
/**
* Whether the signal was saved.
*/
private
boolean
saved
=
true
;
/**
/**
* How often (in milliseconds) should {@link SignalPlot signal plots} be
* How often (in milliseconds) should {@link SignalPlot signal plots} be
* refreshed by the {@link RefreshPlotsTimerTask}.
* refreshed by the {@link RefreshPlotsTimerTask}.
...
@@ -180,8 +175,6 @@ public void setDocumentView(DocumentView documentView) {
...
@@ -180,8 +175,6 @@ public void setDocumentView(DocumentView documentView) {
@Override
@Override
public
void
openDocument
()
throws
SignalMLException
,
IOException
{
public
void
openDocument
()
throws
SignalMLException
,
IOException
{
setSaved
(
true
);
if
(
descriptor
.
getPeer
()
==
null
)
{
if
(
descriptor
.
getPeer
()
==
null
)
{
throw
new
IOException
();
throw
new
IOException
();
}
}
...
@@ -338,33 +331,6 @@ public String getName() {
...
@@ -338,33 +331,6 @@ public String getName() {
return
name
;
return
name
;
}
}
@Override
public
boolean
isSaved
()
{
return
saved
;
}
@Override
public
void
setSaved
(
boolean
saved
)
{
if
(
this
.
saved
!=
saved
)
{
this
.
saved
=
saved
;
pcSupport
.
firePropertyChange
(
AbstractMutableFileDocument
.
SAVED_PROPERTY
,
!
saved
,
saved
);
}
}
public
void
invalidate
()
{
setSaved
(
false
);
}
@Override
public
final
void
saveDocument
()
throws
SignalMLException
,
IOException
{
throw
new
UnsupportedOperationException
(
_
(
"Saving monitor document is not supported—use online recording instead."
));
}
@Override
public
void
newDocument
()
throws
SignalMLException
{
}
/**
/**
* Starts to record this monitor document samples and tags according to
* Starts to record this monitor document samples and tags according to
* the configuration (file names etc.) maintained in the
* the configuration (file names etc.) maintained in the
...
...
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