Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Dr. Michael Petter
CUP Eclipse Plugin
Commits
7e04d127
Commit
7e04d127
authored
Dec 13, 2015
by
Michael Schwarz
🤔
Browse files
Replaced (*) with UTF-8 bullet character
parent
b6ddbaef
Changes
2
Hide whitespace changes
Inline
Side-by-side
CupPlugin/src/de/tum/in/www2/cupplugin/editors/CupEditorErrorReporter.java
View file @
7e04d127
...
...
@@ -139,7 +139,7 @@ public class CupEditorErrorReporter implements IErrorReporter {
msg
.
errorType
=
errorType
;
msg
.
source
=
source
;
msg
.
errorCode
=
errorCode
;
msg
.
message
=
message
;
msg
.
message
=
message
.
replace
(
"(*)"
,
"\u2022"
)
;
msg
.
start
=
start
;
msg
.
end
=
end
;
lst
.
add
(
msg
);
...
...
CupPlugin/src/de/tum/in/www2/cupplugin/views/CupConflictsView.java
View file @
7e04d127
...
...
@@ -230,7 +230,7 @@ public class CupConflictsView extends FailableView implements ICupEditorPageVisi
links
.
add
(
conflict1Ast
.
getRange
());
}
try
{
builder
.
append
(
rrc
.
getConflictItem1
()
.
to_simple_string
(
));
builder
.
append
(
prettyString
(
rrc
.
getConflictItem1
()));
}
catch
(
internal_error
e1
)
{
e1
.
printStackTrace
();
}
...
...
@@ -247,7 +247,7 @@ public class CupConflictsView extends FailableView implements ICupEditorPageVisi
links
.
add
(
conflict2Ast
.
getRange
());
}
try
{
builder
.
append
(
rrc
.
getConflictItem2
()
.
to_simple_string
(
));
builder
.
append
(
prettyString
(
rrc
.
getConflictItem2
()));
}
catch
(
internal_error
e1
)
{
e1
.
printStackTrace
();
}
...
...
@@ -286,7 +286,7 @@ public class CupConflictsView extends FailableView implements ICupEditorPageVisi
links
.
add
(
conflict1Ast
.
getRange
());
}
try
{
builder
.
append
(
src
.
getConflictItem1
()
.
to_simple_string
(
));
builder
.
append
(
prettyString
(
src
.
getConflictItem1
()));
}
catch
(
internal_error
e1
)
{
e1
.
printStackTrace
();
}
...
...
@@ -304,7 +304,7 @@ public class CupConflictsView extends FailableView implements ICupEditorPageVisi
links
.
add
(
conflict2ItemAst
.
getRange
());
}
try
{
builder
.
append
(
item
.
to_simple_s
tring
());
builder
.
append
(
prettyS
tring
(
item
));
}
catch
(
internal_error
e1
)
{
e1
.
printStackTrace
();
}
...
...
@@ -325,7 +325,11 @@ public class CupConflictsView extends FailableView implements ICupEditorPageVisi
}
}
// replace (*) generated by CUP with BULLET U+2022 •
private
String
prettyString
(
lalr_item
item
)
throws
internal_error
{
return
item
.
to_simple_string
().
replace
(
"(*)"
,
"\u2022"
);
}
}
public
CupConflictsView
(
Composite
realParent
,
Jumper
jumper
,
...
...
Write
Preview
Supports
Markdown
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