Skip to content
This repository has been archived by the owner on Apr 3, 2018. It is now read-only.

Commit

Permalink
LANG: Cleanup to Console build text headers
Browse files Browse the repository at this point in the history
  • Loading branch information
bruno-medeiros committed Jul 1, 2015
1 parent 8ed6910 commit 9ec1199
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@
import melnorme.utilbox.concurrency.OperationCancellation;
import melnorme.utilbox.core.CommonException;

public abstract class LangBuildManagerProjectBuilder extends LangProjectBuilder {
public abstract class BuildTargetsProjectBuilder extends LangProjectBuilder {

protected final BuildManager buildMgr = LangCore.getBuildManager();

public LangBuildManagerProjectBuilder() {
public BuildTargetsProjectBuilder() {
super();
}

Expand All @@ -50,7 +50,7 @@ protected void prepareForBuild() throws CoreException {
@Override
protected void handleBeginWorkspaceBuild() {
LangCore.getToolManager().notifyOperationStarted(workspaceOpInfo.createSubOperation(null, false,
TextMessageUtils.headerHASH("Starting " + LangCore_Actual.LANGUAGE_NAME +" build")));
TextMessageUtils.headerVeryBig("Starting " + LangCore_Actual.LANGUAGE_NAME +" build")));
}

@Override
Expand All @@ -72,7 +72,7 @@ public IBuildTargetOperation getCompositeBuildOperation(IProject project) {
protected ArrayList2<IBuildTargetOperation> createBuildOperations(IProject project) {
ArrayList2<IBuildTargetOperation> operations = ArrayList2.create();

String startMsg = headerBIG(" Building " + LangCore_Actual.LANGUAGE_NAME + " project: " + project.getName());
String startMsg = headerBIG("Building " + LangCore_Actual.LANGUAGE_NAME + " project: " + project.getName());
operations.add(newOperationMessageTask(project, startMsg, true));

Indexable<BuildTarget> buildTargets = buildMgr.getBuildTargets(project);
Expand Down Expand Up @@ -135,7 +135,7 @@ public CommonBuildTargetOperation(OperationInfo parentOperationInfo, BuildTarget
}

protected Path getBuildToolPath() throws CommonException {
return LangBuildManagerProjectBuilder.this.getBuildToolPath();
return BuildTargetsProjectBuilder.this.getBuildToolPath();
}

protected String getBuildTargetName() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ public static String headerSMALL(String headerString) {
return "------- " + headerString + " -------"+"\n";
}

public static String headerHASH(String headerString) {
return "########## " + headerString + " ##########"+"\n";
public static String headerVeryBig(String headerString) {
return "==================== " + headerString + " ===================="+"\n";
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

import melnorme.lang.ide.core.LangCore;
import melnorme.lang.ide.core.operations.BuildTarget;
import melnorme.lang.ide.core.operations.LangBuildManagerProjectBuilder;
import melnorme.lang.ide.core.operations.BuildTargetsProjectBuilder;
import melnorme.lang.ide.core.operations.OperationInfo;
import melnorme.lang.tooling.data.PathValidator;
import melnorme.lang.tooling.data.StatusLevel;
Expand All @@ -40,7 +40,7 @@
import melnorme.utilbox.process.ExternalProcessHelper.ExternalProcessResult;


public class GoBuilder extends LangBuildManagerProjectBuilder {
public class GoBuilder extends BuildTargetsProjectBuilder {

public GoBuilder() {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*******************************************************************************/
package melnorme.lang.ide.ui.tools.console;

import static melnorme.lang.ide.core.utils.TextMessageUtils.headerHASH;
import static melnorme.lang.ide.core.utils.TextMessageUtils.headerVeryBig;
import static melnorme.lang.ide.ui.LangUIPlugin_Actual.DAEMON_TOOL_Name;
import static melnorme.utilbox.core.Assert.AssertNamespace.assertNotNull;
import static melnorme.utilbox.core.CoreUtil.array;
Expand Down Expand Up @@ -139,7 +139,7 @@ public void handleProcessStart(ProcessStartInfo processStartInfo, OperationInfo

@Override
public void engineDaemonStart(ProcessBuilder pb, CommonException ce, ExternalProcessNotifyingHelper ph) {
String prefixText = headerHASH("Starting " + DAEMON_TOOL_Name + " server: ") + " ";
String prefixText = headerVeryBig("Starting " + DAEMON_TOOL_Name + " server: ") + " ";
ProcessStartInfo processStartInfo = new ProcessStartInfo(pb, null, prefixText, true, ph, ce);

new EngineServerProcessUIConsoleHandler(processStartInfo).handle();
Expand Down

0 comments on commit 9ec1199

Please sign in to comment.