Skip to content

Commit

Permalink
Merge pull request #3328 from LorenzoBettini/lb_cleanup
Browse files Browse the repository at this point in the history
isAutobuild without parameters, deprecated the old one
  • Loading branch information
LorenzoBettini authored Jan 30, 2025
2 parents 2845a0d + a6d7930 commit 09af658
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 09af658

Please sign in to comment.