Skip to content

Commit

Permalink
isAutobuild without parameters, deprecated the old one
Browse files Browse the repository at this point in the history
The boolean enable parameter was not used anyway: it must have been a
copy and paste error
  • Loading branch information
LorenzoBettini committed Jan 30, 2025
1 parent 2845a0d commit a6d7930
Showing 1 changed file with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -390,11 +390,22 @@ public static void reallyWaitForAutoBuild() {
public static void waitForBuild() {
waitForBuild(null);
}

public static boolean isAutobuild(boolean enable) {

/**
* @since 2.38
*/
public static boolean isAutobuild() {
return ResourcesPlugin.getWorkspace().getDescription().isAutoBuilding();
}

/**
* @deprecated use {@link #isAutobuild()} instead (the boolean parameter is unused).
*/
@Deprecated(forRemoval = true)
public static boolean isAutobuild(boolean enable) {
return isAutobuild();
}

public static boolean setAutobuild(boolean enable) {
IWorkspaceDescription description = ResourcesPlugin.getWorkspace().getDescription();
boolean oldValue = description.isAutoBuilding();
Expand Down

0 comments on commit a6d7930

Please sign in to comment.