mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 17:05:26 +02:00
refactor (rename) change
This commit is contained in:
parent
cb8243d3ef
commit
368fd2c1ed
2 changed files with 5 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
|||
package org.eclipse.cdt.launch.internal.ui;
|
||||
|
||||
import org.eclipse.cdt.core.CCorePlugin;
|
||||
import org.eclipse.cdt.core.ICProjectDescriptor;
|
||||
import org.eclipse.cdt.core.ICDescriptor;
|
||||
import org.eclipse.cdt.core.model.CModelException;
|
||||
import org.eclipse.cdt.core.model.CoreModel;
|
||||
import org.eclipse.cdt.core.model.ICElement;
|
||||
|
@ -41,7 +41,7 @@ public abstract class CLaunchConfigurationTab extends AbstractLaunchConfiguratio
|
|||
if (!ss.isEmpty()) {
|
||||
Object obj = ss.getFirstElement();
|
||||
if (obj instanceof ICElement) {
|
||||
ICProjectDescriptor descriptor =
|
||||
ICDescriptor descriptor =
|
||||
CCorePlugin.getDefault().getCProjectDescription(((ICElement) obj).getCProject().getProject());
|
||||
if (descriptor.getPlatform().equals(getPlatform(config)))
|
||||
return (ICElement) obj;
|
||||
|
@ -53,7 +53,7 @@ public abstract class CLaunchConfigurationTab extends AbstractLaunchConfiguratio
|
|||
ce = CoreModel.getDefault().create(pro);
|
||||
}
|
||||
if (ce != null) {
|
||||
ICProjectDescriptor descriptor =
|
||||
ICDescriptor descriptor =
|
||||
CCorePlugin.getDefault().getCProjectDescription(ce.getCProject().getProject());
|
||||
if (descriptor.getPlatform().equals(getPlatform(config)))
|
||||
return ce;
|
||||
|
|
|
@ -8,7 +8,7 @@ package org.eclipse.cdt.launch.ui;
|
|||
import java.util.ArrayList;
|
||||
|
||||
import org.eclipse.cdt.core.CCorePlugin;
|
||||
import org.eclipse.cdt.core.ICProjectDescriptor;
|
||||
import org.eclipse.cdt.core.ICDescriptor;
|
||||
import org.eclipse.cdt.core.model.CModelException;
|
||||
import org.eclipse.cdt.core.model.CoreModel;
|
||||
import org.eclipse.cdt.core.model.IBinary;
|
||||
|
@ -272,7 +272,7 @@ public class CMainTab extends CLaunchConfigurationTab {
|
|||
ICProject cproject[] = CoreModel.getDefault().getCRoot().getCProjects();
|
||||
ArrayList list = new ArrayList(cproject.length);
|
||||
for (int i = 0; i < cproject.length; i++) {
|
||||
ICProjectDescriptor cdesciptor = null;
|
||||
ICDescriptor cdesciptor = null;
|
||||
try {
|
||||
cdesciptor = CCorePlugin.getDefault().getCProjectDescription((IProject) cproject[i].getResource());
|
||||
if (cdesciptor.getPlatform().equals("*") || filterPlatform.equalsIgnoreCase(cdesciptor.getPlatform()) == true) {
|
||||
|
|
Loading…
Add table
Reference in a new issue