mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 17:05:26 +02:00
Hook up the old Include Paths and Symbols page to Makefile projs.
Makefile projects depend on build output parsing to pick up compiler options to use while indexing. Sometimes, that just doesn't work. As a back up we've always allowed users to manually add them to the project. Long ago when we had pure make projects we had UI for this. This change hooks that old UI up. It was a time before build configs so they get applied to them all but it serves it's role as a backup when users run into problems. Unmarked everything I use here from deprecated until we decide how to replace these with Core build config aware settings. Change-Id: I6fc4d48e5315df3c60c7591b026ae0a53a1f505e
This commit is contained in:
parent
a20271a780
commit
d9b8eb3fd0
29 changed files with 160 additions and 157 deletions
|
@ -4,6 +4,10 @@ OBJS = ${projectName}.o
|
||||||
|
|
||||||
ifeq ($(BUILD_MODE),debug)
|
ifeq ($(BUILD_MODE),debug)
|
||||||
CFLAGS += -g
|
CFLAGS += -g
|
||||||
|
else ifeq ($(BUILD_MODE),run)
|
||||||
|
CFLAGS += -O2
|
||||||
|
else
|
||||||
|
$(error Build mode $(BUILD_MODE) not supported by this Makefile)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
all: ${projectName}
|
all: ${projectName}
|
||||||
|
|
|
@ -197,7 +197,7 @@
|
||||||
</extension>
|
</extension>
|
||||||
<extension
|
<extension
|
||||||
point="org.eclipse.ui.propertyPages">
|
point="org.eclipse.ui.propertyPages">
|
||||||
<page
|
<!--page
|
||||||
objectClass="org.eclipse.core.resources.IProject"
|
objectClass="org.eclipse.core.resources.IProject"
|
||||||
adaptable="true"
|
adaptable="true"
|
||||||
name="%PropertyMakeProject.name"
|
name="%PropertyMakeProject.name"
|
||||||
|
@ -220,7 +220,7 @@
|
||||||
value="org.eclipse.cdt.make.core.makeNature">
|
value="org.eclipse.cdt.make.core.makeNature">
|
||||||
</filter>
|
</filter>
|
||||||
</page>
|
</page>
|
||||||
<!--page
|
<page
|
||||||
objectClass="org.eclipse.cdt.core.model.ICContainer"
|
objectClass="org.eclipse.cdt.core.model.ICContainer"
|
||||||
name="%IncludeSymbolProperties.name"
|
name="%IncludeSymbolProperties.name"
|
||||||
class="org.eclipse.cdt.internal.ui.dialogs.cpaths.IncludesSymbolsPropertyPage"
|
class="org.eclipse.cdt.internal.ui.dialogs.cpaths.IncludesSymbolsPropertyPage"
|
||||||
|
|
|
@ -37,11 +37,18 @@ import org.eclipse.cdt.core.IMarkerGenerator;
|
||||||
import org.eclipse.cdt.core.ProblemMarkerInfo;
|
import org.eclipse.cdt.core.ProblemMarkerInfo;
|
||||||
import org.eclipse.cdt.core.envvar.IEnvironmentVariable;
|
import org.eclipse.cdt.core.envvar.IEnvironmentVariable;
|
||||||
import org.eclipse.cdt.core.model.CoreModel;
|
import org.eclipse.cdt.core.model.CoreModel;
|
||||||
|
import org.eclipse.cdt.core.model.ElementChangedEvent;
|
||||||
import org.eclipse.cdt.core.model.IBinary;
|
import org.eclipse.cdt.core.model.IBinary;
|
||||||
import org.eclipse.cdt.core.model.IBinaryContainer;
|
import org.eclipse.cdt.core.model.IBinaryContainer;
|
||||||
import org.eclipse.cdt.core.model.ICElement;
|
import org.eclipse.cdt.core.model.ICElement;
|
||||||
|
import org.eclipse.cdt.core.model.ICElementDelta;
|
||||||
import org.eclipse.cdt.core.model.ICModelMarker;
|
import org.eclipse.cdt.core.model.ICModelMarker;
|
||||||
import org.eclipse.cdt.core.model.ICProject;
|
import org.eclipse.cdt.core.model.ICProject;
|
||||||
|
import org.eclipse.cdt.core.model.IElementChangedListener;
|
||||||
|
import org.eclipse.cdt.core.model.IIncludeEntry;
|
||||||
|
import org.eclipse.cdt.core.model.IIncludeFileEntry;
|
||||||
|
import org.eclipse.cdt.core.model.IMacroEntry;
|
||||||
|
import org.eclipse.cdt.core.model.IMacroFileEntry;
|
||||||
import org.eclipse.cdt.core.model.ITranslationUnit;
|
import org.eclipse.cdt.core.model.ITranslationUnit;
|
||||||
import org.eclipse.cdt.core.parser.ExtendedScannerInfo;
|
import org.eclipse.cdt.core.parser.ExtendedScannerInfo;
|
||||||
import org.eclipse.cdt.core.parser.IExtendedScannerInfo;
|
import org.eclipse.cdt.core.parser.IExtendedScannerInfo;
|
||||||
|
@ -92,7 +99,7 @@ import com.google.gson.JsonParseException;
|
||||||
* @since 6.0
|
* @since 6.0
|
||||||
*/
|
*/
|
||||||
public abstract class CBuildConfiguration extends PlatformObject
|
public abstract class CBuildConfiguration extends PlatformObject
|
||||||
implements ICBuildConfiguration, IMarkerGenerator, IConsoleParser {
|
implements ICBuildConfiguration, IMarkerGenerator, IConsoleParser, IElementChangedListener {
|
||||||
|
|
||||||
private static final String LAUNCH_MODE = "cdt.launchMode"; //$NON-NLS-1$
|
private static final String LAUNCH_MODE = "cdt.launchMode"; //$NON-NLS-1$
|
||||||
|
|
||||||
|
@ -129,6 +136,8 @@ public abstract class CBuildConfiguration extends PlatformObject
|
||||||
this.toolChain = tc;
|
this.toolChain = tc;
|
||||||
|
|
||||||
this.launchMode = settings.get(LAUNCH_MODE, "run"); //$NON-NLS-1$
|
this.launchMode = settings.get(LAUNCH_MODE, "run"); //$NON-NLS-1$
|
||||||
|
|
||||||
|
CoreModel.getDefault().addElementChangedListener(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected CBuildConfiguration(IBuildConfiguration config, String name, IToolChain toolChain) {
|
protected CBuildConfiguration(IBuildConfiguration config, String name, IToolChain toolChain) {
|
||||||
|
@ -156,6 +165,8 @@ public abstract class CBuildConfiguration extends PlatformObject
|
||||||
} catch (BackingStoreException e) {
|
} catch (BackingStoreException e) {
|
||||||
CCorePlugin.log(e);
|
CCorePlugin.log(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CoreModel.getDefault().addElementChangedListener(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected CBuildConfiguration(IBuildConfiguration config, IToolChain toolChain) {
|
protected CBuildConfiguration(IBuildConfiguration config, IToolChain toolChain) {
|
||||||
|
@ -651,6 +662,34 @@ public abstract class CBuildConfiguration extends PlatformObject
|
||||||
return scannerInfoCache;
|
return scannerInfoCache;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private IExtendedScannerInfo getBaseScannerInfo(IResource resource) throws CoreException {
|
||||||
|
IPath resPath = resource.getFullPath();
|
||||||
|
IIncludeEntry[] includeEntries = CoreModel.getIncludeEntries(resPath);
|
||||||
|
String[] includes = new String[includeEntries.length];
|
||||||
|
for (int i = 0; i < includeEntries.length; ++i) {
|
||||||
|
includes[i] = includeEntries[i].getFullIncludePath().toOSString();
|
||||||
|
}
|
||||||
|
|
||||||
|
IIncludeFileEntry[] includeFileEntries = CoreModel.getIncludeFileEntries(resPath);
|
||||||
|
String[] includeFiles = new String[includeFileEntries.length];
|
||||||
|
for (int i = 0; i < includeFiles.length; ++i) {
|
||||||
|
includeFiles[i] = includeFileEntries[i].getFullIncludeFilePath().toOSString();
|
||||||
|
}
|
||||||
|
|
||||||
|
IMacroEntry[] macros = CoreModel.getMacroEntries(resPath);
|
||||||
|
Map<String, String> symbolMap = new HashMap<String, String>();
|
||||||
|
for (int i = 0; i < macros.length; ++i) {
|
||||||
|
symbolMap.put(macros[i].getMacroName(), macros[i].getMacroValue());
|
||||||
|
}
|
||||||
|
|
||||||
|
IMacroFileEntry[] macroFileEntries = CoreModel.getMacroFileEntries(resPath);
|
||||||
|
String[] macroFiles = new String[macroFileEntries.length];
|
||||||
|
for (int i = 0; i < macroFiles.length; ++i) {
|
||||||
|
macroFiles[i] = macroFileEntries[i].getFullMacroFilePath().toOSString();
|
||||||
|
}
|
||||||
|
return new ExtendedScannerInfo(symbolMap, includes, includeFiles, macroFiles);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public IScannerInfo getScannerInformation(IResource resource) {
|
public IScannerInfo getScannerInformation(IResource resource) {
|
||||||
loadScannerInfoCache();
|
loadScannerInfoCache();
|
||||||
|
@ -658,10 +697,10 @@ public abstract class CBuildConfiguration extends PlatformObject
|
||||||
if (info == null) {
|
if (info == null) {
|
||||||
ICElement celement = CCorePlugin.getDefault().getCoreModel().create(resource);
|
ICElement celement = CCorePlugin.getDefault().getCoreModel().create(resource);
|
||||||
if (celement instanceof ITranslationUnit) {
|
if (celement instanceof ITranslationUnit) {
|
||||||
ITranslationUnit tu = (ITranslationUnit) celement;
|
|
||||||
try {
|
try {
|
||||||
info = getToolChain().getDefaultScannerInfo(getBuildConfiguration(), null,
|
ITranslationUnit tu = (ITranslationUnit) celement;
|
||||||
tu.getLanguage(), getBuildDirectoryURI());
|
info = getToolChain().getDefaultScannerInfo(getBuildConfiguration(),
|
||||||
|
getBaseScannerInfo(resource), tu.getLanguage(), getBuildDirectoryURI());
|
||||||
scannerInfoCache.addScannerInfo(DEFAULT_COMMAND, info, resource);
|
scannerInfoCache.addScannerInfo(DEFAULT_COMMAND, info, resource);
|
||||||
saveScannerInfoCache();
|
saveScannerInfoCache();
|
||||||
} catch (CoreException e) {
|
} catch (CoreException e) {
|
||||||
|
@ -672,6 +711,42 @@ public abstract class CBuildConfiguration extends PlatformObject
|
||||||
return info;
|
return info;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void elementChanged(ElementChangedEvent event) {
|
||||||
|
// check if the path entries changed in the project and clear the cache if so
|
||||||
|
processElementDelta(event.getDelta());
|
||||||
|
}
|
||||||
|
|
||||||
|
private void processElementDelta(ICElementDelta delta) {
|
||||||
|
if (delta == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
int flags = delta.getFlags();
|
||||||
|
int kind = delta.getKind();
|
||||||
|
if (kind == ICElementDelta.CHANGED) {
|
||||||
|
if ((flags & (ICElementDelta.F_CHANGED_PATHENTRY_INCLUDE
|
||||||
|
| ICElementDelta.F_CHANGED_PATHENTRY_MACRO)) != 0) {
|
||||||
|
IResource resource = delta.getElement().getResource();
|
||||||
|
if (resource.getProject().equals(getProject())) {
|
||||||
|
loadScannerInfoCache();
|
||||||
|
if (scannerInfoCache.hasResource(DEFAULT_COMMAND, resource)) {
|
||||||
|
scannerInfoCache.removeResource(resource);
|
||||||
|
} else {
|
||||||
|
// Clear the whole command and exit the delta
|
||||||
|
scannerInfoCache.removeCommand(DEFAULT_COMMAND);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ICElementDelta[] affectedChildren = delta.getAffectedChildren();
|
||||||
|
for (int i = 0; i < affectedChildren.length; i++) {
|
||||||
|
processElementDelta(affectedChildren[i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private boolean infoChanged = false;
|
private boolean infoChanged = false;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -134,4 +134,36 @@ public class ScannerInfoCache {
|
||||||
resourceMap.put(resourcePath, command);
|
resourceMap.put(resourcePath, command);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @since 6.4
|
||||||
|
*/
|
||||||
|
public void removeResource(IResource resource) {
|
||||||
|
String resourcePath = resource.getLocation().toOSString();
|
||||||
|
Command command = resourceMap.get(resourcePath);
|
||||||
|
if (command != null) {
|
||||||
|
command.resourcePaths.remove(resourcePath);
|
||||||
|
if (command.resourcePaths.isEmpty()) {
|
||||||
|
commands.remove(command);
|
||||||
|
commandMap.remove(command.command);
|
||||||
|
}
|
||||||
|
resourceMap.remove(resourcePath);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @since 6.4
|
||||||
|
*/
|
||||||
|
public void removeCommand(List<String> commandStrings) {
|
||||||
|
Command command = commandMap.remove(commandStrings);
|
||||||
|
if (command != null) {
|
||||||
|
commands.remove(command);
|
||||||
|
for (String resourcePath : command.resourcePaths) {
|
||||||
|
Command current = resourceMap.get(resourcePath);
|
||||||
|
if (current.equals(command)) {
|
||||||
|
resourceMap.remove(resourcePath);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,11 +41,7 @@ import org.eclipse.cdt.internal.ui.util.CoreUtility;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Abstract block for C/C++ Project Paths page for 3.X projects.
|
* Abstract block for C/C++ Project Paths page for 3.X projects.
|
||||||
*
|
|
||||||
* @deprecated as of CDT 4.0. This option block was used to set preferences/properties
|
|
||||||
* for 3.X style projects.
|
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
|
||||||
abstract public class AbstractPathOptionBlock extends TabFolderOptionBlock implements ICOptionContainer {
|
abstract public class AbstractPathOptionBlock extends TabFolderOptionBlock implements ICOptionContainer {
|
||||||
|
|
||||||
private StatusInfo fCPathStatus;
|
private StatusInfo fCPathStatus;
|
||||||
|
|
|
@ -37,11 +37,6 @@ import org.eclipse.cdt.core.model.IPathEntryContainerExtension;
|
||||||
import org.eclipse.cdt.core.model.ISourceEntry;
|
import org.eclipse.cdt.core.model.ISourceEntry;
|
||||||
import org.eclipse.cdt.ui.CUIPlugin;
|
import org.eclipse.cdt.ui.CUIPlugin;
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated as of CDT 4.0. This class was used for property pages
|
|
||||||
* for 3.X style projects.
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public class CPElement {
|
public class CPElement {
|
||||||
public static final String SOURCEATTACHMENT = "sourcepath"; //$NON-NLS-1$
|
public static final String SOURCEATTACHMENT = "sourcepath"; //$NON-NLS-1$
|
||||||
public static final String SOURCEATTACHMENTROOT = "rootpath"; //$NON-NLS-1$
|
public static final String SOURCEATTACHMENTROOT = "rootpath"; //$NON-NLS-1$
|
||||||
|
|
|
@ -10,11 +10,6 @@
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
package org.eclipse.cdt.internal.ui.dialogs.cpaths;
|
package org.eclipse.cdt.internal.ui.dialogs.cpaths;
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated as of CDT 4.0. This class was used for property pages
|
|
||||||
* for 3.X style projects.
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public class CPElementAttribute {
|
public class CPElementAttribute {
|
||||||
|
|
||||||
private CPElement fParent;
|
private CPElement fParent;
|
||||||
|
|
|
@ -13,18 +13,15 @@ package org.eclipse.cdt.internal.ui.dialogs.cpaths;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.eclipse.cdt.core.model.IPathEntry;
|
|
||||||
import org.eclipse.jface.viewers.Viewer;
|
import org.eclipse.jface.viewers.Viewer;
|
||||||
import org.eclipse.jface.viewers.ViewerFilter;
|
import org.eclipse.jface.viewers.ViewerFilter;
|
||||||
|
|
||||||
|
import org.eclipse.cdt.core.model.IPathEntry;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Viewer filter for archive selection dialogs. Archives are files with file extension '.so', '.dll' and '.a'. The filter is not
|
* Viewer filter for archive selection dialogs. Archives are files with file extension '.so', '.dll' and '.a'. The filter is not
|
||||||
* case sensitive.
|
* case sensitive.
|
||||||
*
|
|
||||||
* @deprecated as of CDT 4.0. This class was used for property pages
|
|
||||||
* for 3.X style projects.
|
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
|
||||||
public class CPElementFilter extends ViewerFilter {
|
public class CPElementFilter extends ViewerFilter {
|
||||||
|
|
||||||
protected List<Object> fExcludes;
|
protected List<Object> fExcludes;
|
||||||
|
|
|
@ -21,11 +21,6 @@ import java.util.Map;
|
||||||
import org.eclipse.core.resources.IResource;
|
import org.eclipse.core.resources.IResource;
|
||||||
import org.eclipse.core.runtime.IPath;
|
import org.eclipse.core.runtime.IPath;
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated as of CDT 4.0. This class was used for property pages
|
|
||||||
* for 3.X style projects.
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public class CPElementGroup {
|
public class CPElementGroup {
|
||||||
|
|
||||||
private CPElement parent;
|
private CPElement parent;
|
||||||
|
|
|
@ -35,11 +35,6 @@ import org.eclipse.cdt.ui.CUIPlugin;
|
||||||
|
|
||||||
import org.eclipse.cdt.internal.ui.util.ImageDescriptorRegistry;
|
import org.eclipse.cdt.internal.ui.util.ImageDescriptorRegistry;
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated as of CDT 4.0. This class was used for property pages
|
|
||||||
* for 3.X style projects.
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
class CPElementLabelProvider extends LabelProvider implements IColorProvider {
|
class CPElementLabelProvider extends LabelProvider implements IColorProvider {
|
||||||
|
|
||||||
private Color inDirect = new Color(Display.getDefault(), new RGB(170, 170, 170));
|
private Color inDirect = new Color(Display.getDefault(), new RGB(170, 170, 170));
|
||||||
|
|
|
@ -10,17 +10,13 @@
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
package org.eclipse.cdt.internal.ui.dialogs.cpaths;
|
package org.eclipse.cdt.internal.ui.dialogs.cpaths;
|
||||||
|
|
||||||
import org.eclipse.cdt.internal.ui.CPluginImages;
|
|
||||||
import org.eclipse.jface.resource.CompositeImageDescriptor;
|
import org.eclipse.jface.resource.CompositeImageDescriptor;
|
||||||
import org.eclipse.jface.resource.ImageDescriptor;
|
import org.eclipse.jface.resource.ImageDescriptor;
|
||||||
import org.eclipse.swt.graphics.ImageData;
|
import org.eclipse.swt.graphics.ImageData;
|
||||||
import org.eclipse.swt.graphics.Point;
|
import org.eclipse.swt.graphics.Point;
|
||||||
|
|
||||||
/**
|
import org.eclipse.cdt.internal.ui.CPluginImages;
|
||||||
* @deprecated as of CDT 4.0. This class was used for property pages
|
|
||||||
* for 3.X style projects.
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public class CPListImageDescriptor extends CompositeImageDescriptor {
|
public class CPListImageDescriptor extends CompositeImageDescriptor {
|
||||||
|
|
||||||
/** Flag to render the waring adornment */
|
/** Flag to render the waring adornment */
|
||||||
|
@ -48,7 +44,7 @@ public class CPListImageDescriptor extends CompositeImageDescriptor {
|
||||||
@Override
|
@Override
|
||||||
protected Point getSize() {
|
protected Point getSize() {
|
||||||
if (fSize == null) {
|
if (fSize == null) {
|
||||||
ImageData data = fBaseImage.getImageData();
|
ImageData data = fBaseImage.getImageData(100);
|
||||||
setSize(new Point(data.width, data.height));
|
setSize(new Point(data.width, data.height));
|
||||||
}
|
}
|
||||||
return fSize;
|
return fSize;
|
||||||
|
@ -80,7 +76,7 @@ public class CPListImageDescriptor extends CompositeImageDescriptor {
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected void drawCompositeImage(int width, int height) {
|
protected void drawCompositeImage(int width, int height) {
|
||||||
ImageData bg = fBaseImage.getImageData();
|
ImageData bg = fBaseImage.getImageData(100);
|
||||||
if (bg == null) {
|
if (bg == null) {
|
||||||
bg = DEFAULT_IMAGE_DATA;
|
bg = DEFAULT_IMAGE_DATA;
|
||||||
}
|
}
|
||||||
|
@ -96,17 +92,17 @@ public class CPListImageDescriptor extends CompositeImageDescriptor {
|
||||||
ImageData data = null;
|
ImageData data = null;
|
||||||
int x= getSize().x;
|
int x= getSize().x;
|
||||||
if ((flags & PATH_INHERIT) == PATH_INHERIT) {
|
if ((flags & PATH_INHERIT) == PATH_INHERIT) {
|
||||||
data = CPluginImages.DESC_OVR_PATH_INHERIT.getImageData();
|
data = CPluginImages.DESC_OVR_PATH_INHERIT.getImageData(100);
|
||||||
drawImage(data, x, 0);
|
drawImage(data, x, 0);
|
||||||
}
|
}
|
||||||
x= 0;
|
x= 0;
|
||||||
if ((flags & ERROR) != 0) {
|
if ((flags & ERROR) != 0) {
|
||||||
data= CPluginImages.DESC_OVR_ERROR.getImageData();
|
data = CPluginImages.DESC_OVR_ERROR.getImageData(100);
|
||||||
drawImage(data, x, size.y - data.height);
|
drawImage(data, x, size.y - data.height);
|
||||||
x+= data.width;
|
x+= data.width;
|
||||||
}
|
}
|
||||||
if ((flags & WARNING) != 0) {
|
if ((flags & WARNING) != 0) {
|
||||||
data= CPluginImages.DESC_OVR_WARNING.getImageData();
|
data = CPluginImages.DESC_OVR_WARNING.getImageData(100);
|
||||||
drawImage(data, x, size.y - data.height);
|
drawImage(data, x, size.y - data.height);
|
||||||
x+= data.width;
|
x+= data.width;
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,11 +23,7 @@ import org.eclipse.cdt.ui.dialogs.AbstractCOptionPage;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Abstract Option Page for C/C++ Project Paths page for 3.X projects.
|
* Abstract Option Page for C/C++ Project Paths page for 3.X projects.
|
||||||
*
|
|
||||||
* @deprecated as of CDT 4.0. This page was used to set preferences/properties
|
|
||||||
* for 3.X style projects.
|
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
|
||||||
public abstract class CPathBasePage extends AbstractCOptionPage {
|
public abstract class CPathBasePage extends AbstractCOptionPage {
|
||||||
|
|
||||||
public CPathBasePage(String title) {
|
public CPathBasePage(String title) {
|
||||||
|
|
|
@ -12,18 +12,6 @@ package org.eclipse.cdt.internal.ui.dialogs.cpaths;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
import org.eclipse.cdt.core.model.CoreModel;
|
|
||||||
import org.eclipse.cdt.core.model.ICProject;
|
|
||||||
import org.eclipse.cdt.core.model.IContainerEntry;
|
|
||||||
import org.eclipse.cdt.core.model.IPathEntry;
|
|
||||||
import org.eclipse.cdt.internal.ui.CPluginImages;
|
|
||||||
import org.eclipse.cdt.internal.ui.dialogs.StatusInfo;
|
|
||||||
import org.eclipse.cdt.internal.ui.wizards.NewElementWizardPage;
|
|
||||||
import org.eclipse.cdt.internal.ui.wizards.dialogfields.DialogField;
|
|
||||||
import org.eclipse.cdt.internal.ui.wizards.dialogfields.IDialogFieldListener;
|
|
||||||
import org.eclipse.cdt.internal.ui.wizards.dialogfields.LayoutUtil;
|
|
||||||
import org.eclipse.cdt.internal.ui.wizards.dialogfields.StringDialogField;
|
|
||||||
import org.eclipse.cdt.ui.wizards.IPathEntryContainerPage;
|
|
||||||
import org.eclipse.core.runtime.IPath;
|
import org.eclipse.core.runtime.IPath;
|
||||||
import org.eclipse.core.runtime.Path;
|
import org.eclipse.core.runtime.Path;
|
||||||
import org.eclipse.jface.dialogs.Dialog;
|
import org.eclipse.jface.dialogs.Dialog;
|
||||||
|
@ -31,11 +19,20 @@ import org.eclipse.swt.SWT;
|
||||||
import org.eclipse.swt.layout.GridLayout;
|
import org.eclipse.swt.layout.GridLayout;
|
||||||
import org.eclipse.swt.widgets.Composite;
|
import org.eclipse.swt.widgets.Composite;
|
||||||
|
|
||||||
/**
|
import org.eclipse.cdt.core.model.CoreModel;
|
||||||
* @deprecated as of CDT 4.0. This class was used for property pages/wizards
|
import org.eclipse.cdt.core.model.ICProject;
|
||||||
* for 3.X style projects.
|
import org.eclipse.cdt.core.model.IContainerEntry;
|
||||||
*/
|
import org.eclipse.cdt.core.model.IPathEntry;
|
||||||
@Deprecated
|
import org.eclipse.cdt.ui.wizards.IPathEntryContainerPage;
|
||||||
|
|
||||||
|
import org.eclipse.cdt.internal.ui.CPluginImages;
|
||||||
|
import org.eclipse.cdt.internal.ui.dialogs.StatusInfo;
|
||||||
|
import org.eclipse.cdt.internal.ui.wizards.NewElementWizardPage;
|
||||||
|
import org.eclipse.cdt.internal.ui.wizards.dialogfields.DialogField;
|
||||||
|
import org.eclipse.cdt.internal.ui.wizards.dialogfields.IDialogFieldListener;
|
||||||
|
import org.eclipse.cdt.internal.ui.wizards.dialogfields.LayoutUtil;
|
||||||
|
import org.eclipse.cdt.internal.ui.wizards.dialogfields.StringDialogField;
|
||||||
|
|
||||||
public class CPathContainerDefaultPage extends NewElementWizardPage implements IPathEntryContainerPage {
|
public class CPathContainerDefaultPage extends NewElementWizardPage implements IPathEntryContainerPage {
|
||||||
private StringDialogField fEntryField;
|
private StringDialogField fEntryField;
|
||||||
private ArrayList<IPath> fUsedPaths;
|
private ArrayList<IPath> fUsedPaths;
|
||||||
|
|
|
@ -38,11 +38,6 @@ import org.eclipse.cdt.ui.wizards.IPathEntryContainerPage;
|
||||||
|
|
||||||
import org.eclipse.cdt.internal.ui.util.CoreUtility;
|
import org.eclipse.cdt.internal.ui.util.CoreUtility;
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated as of CDT 4.0. This wizard was used in property pages/wizards
|
|
||||||
* for 3.X style projects.
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public class CPathContainerDescriptor implements IContainerDescriptor {
|
public class CPathContainerDescriptor implements IContainerDescriptor {
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -33,11 +33,6 @@ import org.eclipse.cdt.ui.CUIPlugin;
|
||||||
import org.eclipse.cdt.internal.ui.CPluginImages;
|
import org.eclipse.cdt.internal.ui.CPluginImages;
|
||||||
import org.eclipse.cdt.internal.ui.viewsupport.ListContentProvider;
|
import org.eclipse.cdt.internal.ui.viewsupport.ListContentProvider;
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated as of CDT 4.0. This page was used for CPathContainerWizard
|
|
||||||
* for 3.X style projects.
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public class CPathContainerSelectionPage extends WizardPage {
|
public class CPathContainerSelectionPage extends WizardPage {
|
||||||
|
|
||||||
private static final String DIALOGSTORE_SECTION= "CPathContainerSelectionPage"; //$NON-NLS-1$
|
private static final String DIALOGSTORE_SECTION= "CPathContainerSelectionPage"; //$NON-NLS-1$
|
||||||
|
|
|
@ -29,11 +29,6 @@ import org.eclipse.cdt.ui.wizards.IPathEntryContainerPage;
|
||||||
|
|
||||||
import org.eclipse.cdt.internal.ui.util.ExceptionHandler;
|
import org.eclipse.cdt.internal.ui.util.ExceptionHandler;
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated as of CDT 4.0. This wizard was used in property pages
|
|
||||||
* for 3.X style projects.
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public class CPathContainerWizard extends Wizard {
|
public class CPathContainerWizard extends Wizard {
|
||||||
|
|
||||||
private IContainerDescriptor fPageDesc;
|
private IContainerDescriptor fPageDesc;
|
||||||
|
|
|
@ -14,15 +14,6 @@ import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.eclipse.cdt.core.model.CModelException;
|
|
||||||
import org.eclipse.cdt.core.model.CoreModel;
|
|
||||||
import org.eclipse.cdt.core.model.ICElement;
|
|
||||||
import org.eclipse.cdt.core.model.ICProject;
|
|
||||||
import org.eclipse.cdt.core.model.IPathEntry;
|
|
||||||
import org.eclipse.cdt.core.model.IPathEntryContainer;
|
|
||||||
import org.eclipse.cdt.internal.ui.CPluginImages;
|
|
||||||
import org.eclipse.cdt.internal.ui.viewsupport.ListContentProvider;
|
|
||||||
import org.eclipse.cdt.ui.CUIPlugin;
|
|
||||||
import org.eclipse.core.resources.IProject;
|
import org.eclipse.core.resources.IProject;
|
||||||
import org.eclipse.jface.dialogs.Dialog;
|
import org.eclipse.jface.dialogs.Dialog;
|
||||||
import org.eclipse.jface.viewers.CheckStateChangedEvent;
|
import org.eclipse.jface.viewers.CheckStateChangedEvent;
|
||||||
|
@ -36,11 +27,17 @@ import org.eclipse.swt.layout.GridLayout;
|
||||||
import org.eclipse.swt.widgets.Composite;
|
import org.eclipse.swt.widgets.Composite;
|
||||||
import org.eclipse.swt.widgets.Label;
|
import org.eclipse.swt.widgets.Label;
|
||||||
|
|
||||||
/**
|
import org.eclipse.cdt.core.model.CModelException;
|
||||||
* @deprecated as of CDT 4.0. This page was used in Path Container Wizard
|
import org.eclipse.cdt.core.model.CoreModel;
|
||||||
* for 3.X style projects.
|
import org.eclipse.cdt.core.model.ICElement;
|
||||||
*/
|
import org.eclipse.cdt.core.model.ICProject;
|
||||||
@Deprecated
|
import org.eclipse.cdt.core.model.IPathEntry;
|
||||||
|
import org.eclipse.cdt.core.model.IPathEntryContainer;
|
||||||
|
import org.eclipse.cdt.ui.CUIPlugin;
|
||||||
|
|
||||||
|
import org.eclipse.cdt.internal.ui.CPluginImages;
|
||||||
|
import org.eclipse.cdt.internal.ui.viewsupport.ListContentProvider;
|
||||||
|
|
||||||
public class CPathFilterPage extends WizardPage {
|
public class CPathFilterPage extends WizardPage {
|
||||||
|
|
||||||
private final int[] fFilterType;
|
private final int[] fFilterType;
|
||||||
|
|
|
@ -18,11 +18,7 @@ import org.eclipse.cdt.core.model.ICElement;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Abstract DialogPage for C/C++ Project Paths page for 3.X projects.
|
* Abstract DialogPage for C/C++ Project Paths page for 3.X projects.
|
||||||
*
|
|
||||||
* @deprecated as of CDT 4.0. This page was used to set preferences/properties
|
|
||||||
* for 3.X style projects.
|
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
|
||||||
public abstract class CPathIncludeSymbolEntryBasePage extends CPathBasePage {
|
public abstract class CPathIncludeSymbolEntryBasePage extends CPathBasePage {
|
||||||
|
|
||||||
public CPathIncludeSymbolEntryBasePage(String title) {
|
public CPathIncludeSymbolEntryBasePage(String title) {
|
||||||
|
|
|
@ -70,11 +70,7 @@ import org.eclipse.cdt.internal.ui.wizards.dialogfields.TreeListDialogField;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* DialogPage for C/C++ Project Paths page for 3.X projects.
|
* DialogPage for C/C++ Project Paths page for 3.X projects.
|
||||||
*
|
|
||||||
* @deprecated as of CDT 4.0. This page was used for property pages
|
|
||||||
* for 3.X style projects.
|
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
|
||||||
public class CPathIncludeSymbolEntryPage extends CPathIncludeSymbolEntryBasePage {
|
public class CPathIncludeSymbolEntryPage extends CPathIncludeSymbolEntryBasePage {
|
||||||
private TreeListDialogField<CPElementGroup> fIncludeSymPathsList;
|
private TreeListDialogField<CPElementGroup> fIncludeSymPathsList;
|
||||||
private SelectionButtonDialogField fShowInheritedPaths;
|
private SelectionButtonDialogField fShowInheritedPaths;
|
||||||
|
|
|
@ -71,11 +71,7 @@ import org.eclipse.cdt.internal.ui.wizards.dialogfields.TreeListDialogField;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* DialogPage for C/C++ Project Paths page for 3.X projects.
|
* DialogPage for C/C++ Project Paths page for 3.X projects.
|
||||||
*
|
|
||||||
* @deprecated as of CDT 4.0. This page was used for property pages
|
|
||||||
* for 3.X style projects.
|
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
|
||||||
public class CPathIncludeSymbolEntryPerFilePage extends CPathIncludeSymbolEntryBasePage {
|
public class CPathIncludeSymbolEntryPerFilePage extends CPathIncludeSymbolEntryBasePage {
|
||||||
|
|
||||||
private TreeListDialogField<CPElementGroup> fIncludeSymPathsList;
|
private TreeListDialogField<CPElementGroup> fIncludeSymPathsList;
|
||||||
|
|
|
@ -52,12 +52,6 @@ import org.eclipse.cdt.internal.ui.wizards.dialogfields.IListAdapter;
|
||||||
import org.eclipse.cdt.internal.ui.wizards.dialogfields.LayoutUtil;
|
import org.eclipse.cdt.internal.ui.wizards.dialogfields.LayoutUtil;
|
||||||
import org.eclipse.cdt.internal.ui.wizards.dialogfields.ListDialogField;
|
import org.eclipse.cdt.internal.ui.wizards.dialogfields.ListDialogField;
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated as of CDT 4.0. This dialog was used for property pages
|
|
||||||
* for 3.X style projects.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public class ExclusionPatternDialog extends StatusDialog {
|
public class ExclusionPatternDialog extends StatusDialog {
|
||||||
|
|
||||||
private static class ExclusionPatternLabelProvider extends LabelProvider {
|
private static class ExclusionPatternLabelProvider extends LabelProvider {
|
||||||
|
|
|
@ -47,11 +47,6 @@ import org.eclipse.cdt.internal.ui.wizards.dialogfields.IStringButtonAdapter;
|
||||||
import org.eclipse.cdt.internal.ui.wizards.dialogfields.LayoutUtil;
|
import org.eclipse.cdt.internal.ui.wizards.dialogfields.LayoutUtil;
|
||||||
import org.eclipse.cdt.internal.ui.wizards.dialogfields.StringButtonDialogField;
|
import org.eclipse.cdt.internal.ui.wizards.dialogfields.StringButtonDialogField;
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated as of CDT 4.0. This class was used for property pages
|
|
||||||
* for 3.X style projects.
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public class ExclusionPatternEntryDialog extends StatusDialog {
|
public class ExclusionPatternEntryDialog extends StatusDialog {
|
||||||
|
|
||||||
private StringButtonDialogField fExclusionPatternDialog;
|
private StringButtonDialogField fExclusionPatternDialog;
|
||||||
|
|
|
@ -16,12 +16,6 @@ import org.eclipse.swt.graphics.Image;
|
||||||
import org.eclipse.cdt.core.model.IPathEntry;
|
import org.eclipse.cdt.core.model.IPathEntry;
|
||||||
import org.eclipse.cdt.ui.wizards.IPathEntryContainerPage;
|
import org.eclipse.cdt.ui.wizards.IPathEntryContainerPage;
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated as of CDT 4.0. This class was used for property pages
|
|
||||||
* for 3.X style projects.
|
|
||||||
* @noreference This interface is not intended to be referenced by clients.
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public interface IContainerDescriptor {
|
public interface IContainerDescriptor {
|
||||||
public IPathEntryContainerPage createPage() throws CoreException;
|
public IPathEntryContainerPage createPage() throws CoreException;
|
||||||
public String getName();
|
public String getName();
|
||||||
|
|
|
@ -45,10 +45,8 @@ import org.eclipse.cdt.internal.ui.dialogs.StatusUtil;
|
||||||
import org.eclipse.cdt.internal.ui.util.ExceptionHandler;
|
import org.eclipse.cdt.internal.ui.util.ExceptionHandler;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated as of CDT 4.0.
|
|
||||||
* @noreference This class is not intended to be referenced by clients.
|
* @noreference This class is not intended to be referenced by clients.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
|
||||||
public class IncludesSymbolsPropertyPage extends PropertyPage implements IStatusChangeListener, IPathEntryStoreListener {
|
public class IncludesSymbolsPropertyPage extends PropertyPage implements IStatusChangeListener, IPathEntryStoreListener {
|
||||||
private static final String PAGE_SETTINGS = "IncludeSysmbolsPropertyPage"; //$NON-NLS-1$
|
private static final String PAGE_SETTINGS = "IncludeSysmbolsPropertyPage"; //$NON-NLS-1$
|
||||||
private static final String INDEX = "pageIndex"; //$NON-NLS-1$
|
private static final String INDEX = "pageIndex"; //$NON-NLS-1$
|
||||||
|
|
|
@ -28,10 +28,7 @@ import org.eclipse.cdt.internal.ui.dialogs.IStatusChangeListener;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Block for C/C++ Include Paths and Symbols page for 3.X projects.
|
* Block for C/C++ Include Paths and Symbols page for 3.X projects.
|
||||||
*
|
|
||||||
* @deprecated as of CDT 4.0.
|
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
|
||||||
public class NewIncludesSymbolsTabBlock extends AbstractPathOptionBlock implements IStatusChangeListener {
|
public class NewIncludesSymbolsTabBlock extends AbstractPathOptionBlock implements IStatusChangeListener {
|
||||||
|
|
||||||
private CPathIncludeSymbolEntryBasePage fIncludeSymbols;
|
private CPathIncludeSymbolEntryBasePage fIncludeSymbols;
|
||||||
|
|
|
@ -10,18 +10,14 @@
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
package org.eclipse.cdt.internal.ui.dialogs.cpaths;
|
package org.eclipse.cdt.internal.ui.dialogs.cpaths;
|
||||||
|
|
||||||
import org.eclipse.cdt.core.model.IPathEntry;
|
|
||||||
import org.eclipse.cdt.ui.CUIPlugin;
|
|
||||||
import org.eclipse.cdt.ui.wizards.IPathEntryContainerPage;
|
|
||||||
import org.eclipse.core.runtime.CoreException;
|
import org.eclipse.core.runtime.CoreException;
|
||||||
import org.eclipse.swt.graphics.Image;
|
import org.eclipse.swt.graphics.Image;
|
||||||
import org.eclipse.ui.ide.IDE;
|
import org.eclipse.ui.ide.IDE;
|
||||||
|
|
||||||
/**
|
import org.eclipse.cdt.core.model.IPathEntry;
|
||||||
* @deprecated as of CDT 4.0. This class was used for Path Container Wizard
|
import org.eclipse.cdt.ui.CUIPlugin;
|
||||||
* for 3.X style projects.
|
import org.eclipse.cdt.ui.wizards.IPathEntryContainerPage;
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public class ProjectContainerDescriptor implements IContainerDescriptor {
|
public class ProjectContainerDescriptor implements IContainerDescriptor {
|
||||||
private int[] fFilterType;
|
private int[] fFilterType;
|
||||||
|
|
||||||
|
|
|
@ -41,11 +41,6 @@ import org.eclipse.cdt.ui.wizards.IPathEntryContainerPage;
|
||||||
import org.eclipse.cdt.internal.ui.CPluginImages;
|
import org.eclipse.cdt.internal.ui.CPluginImages;
|
||||||
import org.eclipse.cdt.internal.ui.viewsupport.ListContentProvider;
|
import org.eclipse.cdt.internal.ui.viewsupport.ListContentProvider;
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated as of CDT 4.0. This class was used for Path Container Wizard
|
|
||||||
* for 3.X style projects.
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public class ProjectContainerPage extends WizardPage implements IPathEntryContainerPage {
|
public class ProjectContainerPage extends WizardPage implements IPathEntryContainerPage {
|
||||||
|
|
||||||
private int[] fFilterType;
|
private int[] fFilterType;
|
||||||
|
|
|
@ -15,9 +15,6 @@ import java.util.ArrayList;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.eclipse.cdt.internal.ui.CUIMessages;
|
|
||||||
import org.eclipse.cdt.ui.CUIPlugin;
|
|
||||||
import org.eclipse.cdt.utils.ui.controls.TabFolderLayout;
|
|
||||||
import org.eclipse.core.runtime.CoreException;
|
import org.eclipse.core.runtime.CoreException;
|
||||||
import org.eclipse.core.runtime.IProgressMonitor;
|
import org.eclipse.core.runtime.IProgressMonitor;
|
||||||
import org.eclipse.core.runtime.NullProgressMonitor;
|
import org.eclipse.core.runtime.NullProgressMonitor;
|
||||||
|
@ -35,11 +32,11 @@ import org.eclipse.swt.widgets.Label;
|
||||||
import org.eclipse.swt.widgets.TabFolder;
|
import org.eclipse.swt.widgets.TabFolder;
|
||||||
import org.eclipse.swt.widgets.TabItem;
|
import org.eclipse.swt.widgets.TabItem;
|
||||||
|
|
||||||
/**
|
import org.eclipse.cdt.ui.CUIPlugin;
|
||||||
* @deprecated as of CDT 4.0. This abstract block was used for New Project Wizards
|
import org.eclipse.cdt.utils.ui.controls.TabFolderLayout;
|
||||||
* and property pages for 3.X style projects.
|
|
||||||
*/
|
import org.eclipse.cdt.internal.ui.CUIMessages;
|
||||||
@Deprecated
|
|
||||||
public abstract class TabFolderOptionBlock {
|
public abstract class TabFolderOptionBlock {
|
||||||
|
|
||||||
protected boolean initializingTabs = true;
|
protected boolean initializingTabs = true;
|
||||||
|
|
|
@ -16,12 +16,6 @@ import org.eclipse.cdt.core.model.ICProject;
|
||||||
import org.eclipse.cdt.core.model.IContainerEntry;
|
import org.eclipse.cdt.core.model.IContainerEntry;
|
||||||
import org.eclipse.cdt.core.model.IPathEntry;
|
import org.eclipse.cdt.core.model.IPathEntry;
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated as of CDT 4.0. This tab was used to set preferences/properties
|
|
||||||
* for 3.X style projects.
|
|
||||||
* @noreference This interface is not intended to be referenced by clients.
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public interface IPathEntryContainerPage extends IWizardPage {
|
public interface IPathEntryContainerPage extends IWizardPage {
|
||||||
/**
|
/**
|
||||||
* Method <code>initialize()</code> is called before <code>ICPathContainerPage.setSelection</code>
|
* Method <code>initialize()</code> is called before <code>ICPathContainerPage.setSelection</code>
|
||||||
|
|
Loading…
Add table
Reference in a new issue