mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-05 07:15:39 +02:00
remove console mode, not used
This commit is contained in:
parent
445d0d51ee
commit
8213a68d1c
2 changed files with 0 additions and 25 deletions
|
@ -17,7 +17,6 @@ public class MakeUtil {
|
||||||
|
|
||||||
final static String MAKE_GOALS = "goals";
|
final static String MAKE_GOALS = "goals";
|
||||||
final static String MAKE_DIR = "buildir";
|
final static String MAKE_DIR = "buildir";
|
||||||
final static String MAKE_CONSOLE_MODE = "consoleMode";
|
|
||||||
final static String TARGET_ID = "org.eclipse.cdt.make";
|
final static String TARGET_ID = "org.eclipse.cdt.make";
|
||||||
|
|
||||||
public static String [] decodeTargets (String property) {
|
public static String [] decodeTargets (String property) {
|
||||||
|
@ -55,11 +54,6 @@ public class MakeUtil {
|
||||||
return new QualifiedName(TARGET_ID, MAKE_DIR);
|
return new QualifiedName(TARGET_ID, MAKE_DIR);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static QualifiedName getQualifiedNameConsoleMode () {
|
|
||||||
return new QualifiedName(TARGET_ID, MAKE_CONSOLE_MODE);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public static String getSessionTarget(IResource resource) {
|
public static String getSessionTarget(IResource resource) {
|
||||||
try {
|
try {
|
||||||
String property = (String)resource.getSessionProperty(getQualifiedNameTarget());
|
String property = (String)resource.getSessionProperty(getQualifiedNameTarget());
|
||||||
|
@ -123,24 +117,6 @@ public class MakeUtil {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void setSessionConsoleMode(IResource resource, boolean mode) {
|
|
||||||
try {
|
|
||||||
resource.setSessionProperty(getQualifiedNameConsoleMode(),
|
|
||||||
new Boolean(mode));
|
|
||||||
} catch (CoreException e) {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static boolean getSessionConsoleMode(IResource resource) {
|
|
||||||
try {
|
|
||||||
Boolean b = (Boolean)resource.getSessionProperty(getQualifiedNameConsoleMode());
|
|
||||||
if(null != b)
|
|
||||||
return b.booleanValue();
|
|
||||||
} catch (CoreException e) {
|
|
||||||
}
|
|
||||||
return true; // Clean console before session
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void addPersistentTarget(IResource resource, String target) {
|
public static void addPersistentTarget(IResource resource, String target) {
|
||||||
String[] targets = MakeUtil.getPersistentTargets (resource);
|
String[] targets = MakeUtil.getPersistentTargets (resource);
|
||||||
for (int i = 0; i < targets.length; i++) {
|
for (int i = 0; i < targets.length; i++) {
|
||||||
|
|
|
@ -199,7 +199,6 @@ public class CBuildConfigView extends ViewPart implements IResourceChangeListene
|
||||||
try {
|
try {
|
||||||
MakeUtil.setSessionBuildDir(m_prj, m_prj.getLocation().toOSString());
|
MakeUtil.setSessionBuildDir(m_prj, m_prj.getLocation().toOSString());
|
||||||
MakeUtil.setSessionTarget(m_prj, m_target);
|
MakeUtil.setSessionTarget(m_prj, m_target);
|
||||||
MakeUtil.setSessionConsoleMode(m_prj, true);
|
|
||||||
m_prj.build(IncrementalProjectBuilder.FULL_BUILD, monitor);
|
m_prj.build(IncrementalProjectBuilder.FULL_BUILD, monitor);
|
||||||
}
|
}
|
||||||
catch (CoreException e) { }
|
catch (CoreException e) { }
|
||||||
|
|
Loading…
Add table
Reference in a new issue