Skip to content

Commit

Permalink
Retain deprecate refresh method.
Browse files Browse the repository at this point in the history
  • Loading branch information
riverwanderer committed Nov 10, 2023
1 parent d54d63b commit 7aa36cd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,12 @@ public static String getConfigureTypeName() {
return Resources.getString("Editor.PredefinedSetup.component_type"); //$NON-NLS-1$
}

public int refresh(Set<String> options) throws IOException, IllegalBuildException {
@Deprecated(since = "2023-11-10", forRemoval = true)
public void refresh(Set<String> options) throws IOException, IllegalBuildException {
refreshWithStatus(options);
}

public int refreshWithStatus(Set<String> options) throws IOException, IllegalBuildException {
if (!options.isEmpty()) {
this.refresherOptions.addAll(options);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ private void refreshPredefinedSetups() {
}
else {
try {
if (pds.refresh(options) > 0) flaggedFiles++;
if (pds.refreshWithStatus(options) > 0) flaggedFiles++;
refreshCount++;
}
catch (final IOException e) {
Expand Down

0 comments on commit 7aa36cd

Please sign in to comment.