Skip to content

Commit

Permalink
Fix for issue #357: GGTS compatibility re-introduced
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-milles committed Nov 1, 2017
1 parent 366827e commit 7689870
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,11 @@ public JavaModelException newJavaModelException(IStatus status) {
else
return new JavaModelException(new JavaModelStatus(status.getSeverity(), status.getCode(), status.getMessage()));
}
@Deprecated // GROOVY add -- Eclipse 3.5 backwards compatibility for GGTS
protected Object openWhenClosed(Object info, IProgressMonitor monitor) throws JavaModelException {
return openWhenClosed(info, true, monitor);
}
// GROOVY end
/*
* Opens an <code>Openable</code> that is known to be closed (no check for <code>isOpen()</code>).
* Returns the created element info.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,11 @@ public JavaModelException newJavaModelException(IStatus status) {
else
return new JavaModelException(new JavaModelStatus(status.getSeverity(), status.getCode(), status.getMessage()));
}
@Deprecated // GROOVY add -- Eclipse 3.5 backwards compatibility for GGTS
protected Object openWhenClosed(Object info, IProgressMonitor monitor) throws JavaModelException {
return openWhenClosed(info, true, monitor);
}
// GROOVY end
/*
* Opens an <code>Openable</code> that is known to be closed (no check for <code>isOpen()</code>).
* Returns the created element info.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,11 @@ public JavaModelException newJavaModelException(IStatus status) {
else
return new JavaModelException(new JavaModelStatus(status.getSeverity(), status.getCode(), status.getMessage()));
}
@Deprecated // GROOVY add -- Eclipse 3.5 backwards compatibility for GGTS
protected Object openWhenClosed(Object info, IProgressMonitor monitor) throws JavaModelException {
return openWhenClosed(info, true, monitor);
}
// GROOVY end
/*
* Opens an <code>Openable</code> that is known to be closed (no check for <code>isOpen()</code>).
* Returns the created element info.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,11 @@ public JavaModelException newJavaModelException(IStatus status) {
else
return new JavaModelException(new JavaModelStatus(status.getSeverity(), status.getCode(), status.getMessage()));
}
@Deprecated // GROOVY add -- Eclipse 3.5 backwards compatibility for GGTS
protected Object openWhenClosed(Object info, IProgressMonitor monitor) throws JavaModelException {
return openWhenClosed(info, true, monitor);
}
// GROOVY end
/*
* Opens an <code>Openable</code> that is known to be closed (no check for <code>isOpen()</code>).
* Returns the created element info.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,11 @@ public JavaModelException newJavaModelException(IStatus status) {
else
return new JavaModelException(new JavaModelStatus(status.getSeverity(), status.getCode(), status.getMessage()));
}
@Deprecated // GROOVY add -- Eclipse 3.5 backwards compatibility for GGTS
protected Object openWhenClosed(Object info, IProgressMonitor monitor) throws JavaModelException {
return openWhenClosed(info, true, monitor);
}
// GROOVY end
/*
* Opens an <code>Openable</code> that is known to be closed (no check for <code>isOpen()</code>).
* Returns the created element info.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,11 @@ public JavaModelException newJavaModelException(IStatus status) {
else
return new JavaModelException(new JavaModelStatus(status.getSeverity(), status.getCode(), status.getMessage()));
}
@Deprecated // GROOVY add -- Eclipse 3.5 backwards compatibility for GGTS
protected Object openWhenClosed(Object info, IProgressMonitor monitor) throws JavaModelException {
return openWhenClosed(info, true, monitor);
}
// GROOVY end
/*
* Opens an <code>Openable</code> that is known to be closed (no check for <code>isOpen()</code>).
* Returns the created element info.
Expand Down

0 comments on commit 7689870

Please sign in to comment.