Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
riseclipse-validator-scl2003
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
RiseClipseGroup
riseclipse-validator-scl2003
Commits
9260667f
Commit
9260667f
authored
5 years ago
by
Dominique Marcadet
Browse files
Options
Downloads
Patches
Plain Diff
update to variable number of arguments in methods of console
parent
75434774
No related branches found
Branches containing commit
No related tags found
1 merge request
!16
Resolve "give option to output messages in a file"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fr.centralesupelec.edf.riseclipse.iec61850.scl.validator.ui/src/fr/centralesupelec/edf/riseclipse/iec61850/scl/validator/ui/component/ResultPane.java
+19
-10
19 additions, 10 deletions
...lipse/iec61850/scl/validator/ui/component/ResultPane.java
with
19 additions
and
10 deletions
fr.centralesupelec.edf.riseclipse.iec61850.scl.validator.ui/src/fr/centralesupelec/edf/riseclipse/iec61850/scl/validator/ui/component/ResultPane.java
+
19
−
10
View file @
9260667f
...
@@ -160,34 +160,43 @@ public class ResultPane extends JPanel implements IRiseClipseConsole, ActionList
...
@@ -160,34 +160,43 @@ public class ResultPane extends JPanel implements IRiseClipseConsole, ActionList
return
IRiseClipseConsole
.
VERBOSE_LEVEL
;
return
IRiseClipseConsole
.
VERBOSE_LEVEL
;
}
}
/**
* Utility to create a String by concatenation of Object
*/
private
String
toString
(
Object
...
objects
)
{
StringBuilder
s
=
new
StringBuilder
();
for
(
int
i
=
0
;
i
<
objects
.
length
;
++
i
)
s
.
append
(
objects
[
i
].
toString
()
);
return
s
.
toString
();
}
@Override
@Override
public
void
verbose
(
Object
o
)
{
public
void
verbose
(
Object
...
o
)
{
levels
.
add
(
IRiseClipseConsole
.
VERBOSE_LEVEL
);
levels
.
add
(
IRiseClipseConsole
.
VERBOSE_LEVEL
);
messages
.
add
(
o
.
toString
(
)
);
messages
.
add
(
toString
(
o
)
);
}
}
@Override
@Override
public
void
info
(
Object
o
)
{
public
void
info
(
Object
...
o
)
{
levels
.
add
(
IRiseClipseConsole
.
INFO_LEVEL
);
levels
.
add
(
IRiseClipseConsole
.
INFO_LEVEL
);
messages
.
add
(
o
.
toString
(
)
);
messages
.
add
(
toString
(
o
)
);
}
}
@Override
@Override
public
void
warning
(
Object
o
)
{
public
void
warning
(
Object
...
o
)
{
levels
.
add
(
IRiseClipseConsole
.
WARNING_LEVEL
);
levels
.
add
(
IRiseClipseConsole
.
WARNING_LEVEL
);
messages
.
add
(
o
.
toString
(
)
);
messages
.
add
(
toString
(
o
)
);
}
}
@Override
@Override
public
void
error
(
Object
o
)
{
public
void
error
(
Object
...
o
)
{
levels
.
add
(
IRiseClipseConsole
.
ERROR_LEVEL
);
levels
.
add
(
IRiseClipseConsole
.
ERROR_LEVEL
);
messages
.
add
(
o
.
toString
(
)
);
messages
.
add
(
toString
(
o
)
);
}
}
@Override
@Override
public
void
fatal
(
Object
o
)
{
public
void
fatal
(
Object
...
o
)
{
levels
.
add
(
IRiseClipseConsole
.
FATAL_LEVEL
);
levels
.
add
(
IRiseClipseConsole
.
FATAL_LEVEL
);
messages
.
add
(
o
.
toString
(
)
);
messages
.
add
(
toString
(
o
)
);
}
}
@Override
@Override
...
...
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