Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Eidsness2013-12-12 12:40:51 +0000
committerDoug Schaefer2013-12-12 16:12:13 +0000
commitc6c1ef94fc37b4a3cab7f2ef1b66e82ceaddc03d (patch)
tree096b216af0c01e5705b4501bb851d6ef3cc47025 /qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/internal/qt/core/pdom/ASTDelegatedName.java
parent5428ad50015b500e6a67f2aa2abe24f55c00c2c3 (diff)
downloadorg.eclipse.cdt-c6c1ef94fc37b4a3cab7f2ef1b66e82ceaddc03d.tar.gz
org.eclipse.cdt-c6c1ef94fc37b4a3cab7f2ef1b66e82ceaddc03d.tar.xz
org.eclipse.cdt-c6c1ef94fc37b4a3cab7f2ef1b66e82ceaddc03d.zip
Fix Qt plugin's project structure
The Qt plugins have been naming internal packages using two different prefixes: cdt.qt.internal cdt.internal.qt This renames all packages to cdt.internal.qt, which seems to be the convention for other projects. I've increased the Qt plugin versions because alot of new API has been added, especially to the qt.core plugin. I increased the version in the MANIFEST.MF and pom.xml files. I've also fixed the MANIFEST.MF files to take CDT out of the plugin names. I've also replaced a call to CCorePlugin.log(Exception) with a call to QtUIPlugin.log (and added the logging functions to QtUIPlugin. Change-Id: I1e3e7b2a42c2eb79fe33608c14a1abcf013a9f2c Signed-off-by: Andrew Eidsness <eclipse@jfront.com> Reviewed-on: https://git.eclipse.org/r/19698 Tested-by: Hudson CI Reviewed-by: Doug Schaefer <dschaefer@qnx.com> IP-Clean: Doug Schaefer <dschaefer@qnx.com>
Diffstat (limited to 'qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/internal/qt/core/pdom/ASTDelegatedName.java')
-rw-r--r--qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/internal/qt/core/pdom/ASTDelegatedName.java230
1 files changed, 230 insertions, 0 deletions
diff --git a/qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/internal/qt/core/pdom/ASTDelegatedName.java b/qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/internal/qt/core/pdom/ASTDelegatedName.java
new file mode 100644
index 00000000000..271c3f5d3d5
--- /dev/null
+++ b/qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/internal/qt/core/pdom/ASTDelegatedName.java
@@ -0,0 +1,230 @@
+/*
+ * Copyright (c) 2013 QNX Software Systems and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ */
+package org.eclipse.cdt.internal.qt.core.pdom;
+
+import org.eclipse.cdt.core.dom.ILinkage;
+import org.eclipse.cdt.core.dom.ast.ASTNodeProperty;
+import org.eclipse.cdt.core.dom.ast.ASTVisitor;
+import org.eclipse.cdt.core.dom.ast.ExpansionOverlapsBoundaryException;
+import org.eclipse.cdt.core.dom.ast.IASTCompletionContext;
+import org.eclipse.cdt.core.dom.ast.IASTFileLocation;
+import org.eclipse.cdt.core.dom.ast.IASTImageLocation;
+import org.eclipse.cdt.core.dom.ast.IASTName;
+import org.eclipse.cdt.core.dom.ast.IASTNode;
+import org.eclipse.cdt.core.dom.ast.IASTNodeLocation;
+import org.eclipse.cdt.core.dom.ast.IASTTranslationUnit;
+import org.eclipse.cdt.core.dom.ast.IBinding;
+import org.eclipse.cdt.core.parser.IToken;
+
+/**
+ * The Qt linkage introduces several names that are based on names from the C++ linkage. This
+ * utility class is used to delegate operations to that base C++ name. Methods can be overridden
+ * by implementing in a subclass.
+ *
+ * @see QObjectName
+ */
+public abstract class ASTDelegatedName implements IASTName {
+
+ protected final IASTName delegate;
+
+ protected IBinding binding;
+
+ protected ASTDelegatedName(IASTName delegate) {
+ this.delegate = delegate;
+ }
+
+ @Override
+ public IASTTranslationUnit getTranslationUnit() {
+ return delegate.getTranslationUnit();
+ }
+
+ @Override
+ public IASTNodeLocation[] getNodeLocations() {
+ return delegate.getNodeLocations();
+ }
+
+ @Override
+ public IASTFileLocation getFileLocation() {
+ return delegate.getFileLocation();
+ }
+
+ @Override
+ public String getContainingFilename() {
+ return delegate.getContainingFilename();
+ }
+
+ @Override
+ public boolean isPartOfTranslationUnitFile() {
+ return delegate.isPartOfTranslationUnitFile();
+ }
+
+ @Override
+ public IASTNode getParent() {
+ return delegate.getParent();
+ }
+
+ @Override
+ public IASTNode[] getChildren() {
+ return delegate.getChildren();
+ }
+
+ @Override
+ public void setParent(IASTNode node) {
+ delegate.setParent(node);
+ }
+
+ @Override
+ public ASTNodeProperty getPropertyInParent() {
+ return delegate.getPropertyInParent();
+ }
+
+ @Override
+ public void setPropertyInParent(ASTNodeProperty property) {
+ delegate.setPropertyInParent(property);
+ }
+
+ @Override
+ public boolean accept(ASTVisitor visitor) {
+ return delegate.accept(visitor);
+ }
+
+ @Override
+ public String getRawSignature() {
+ return delegate.getRawSignature();
+ }
+
+ @Override
+ public boolean contains(IASTNode node) {
+ return delegate.contains(node);
+ }
+
+ @Override
+ public IToken getLeadingSyntax() throws ExpansionOverlapsBoundaryException, UnsupportedOperationException {
+ return delegate.getLeadingSyntax();
+ }
+
+ @Override
+ public IToken getTrailingSyntax() throws ExpansionOverlapsBoundaryException, UnsupportedOperationException {
+ return delegate.getTrailingSyntax();
+ }
+
+ @Override
+ public IToken getSyntax() throws ExpansionOverlapsBoundaryException {
+ return delegate.getSyntax();
+ }
+
+ @Override
+ public boolean isFrozen() {
+ return delegate.isFrozen();
+ }
+
+ @Override
+ public boolean isActive() {
+ return delegate.isActive();
+ }
+
+ @Override
+ public IASTNode getOriginalNode() {
+ return delegate.getOriginalNode();
+ }
+
+ @Override
+ public char[] getSimpleID() {
+ return delegate.getSimpleID();
+ }
+
+ @Override
+ public boolean isDeclaration() {
+ return delegate.isDeclaration();
+ }
+
+ @Override
+ public boolean isReference() {
+ return delegate.isReference();
+ }
+
+ @Override
+ public boolean isDefinition() {
+ return delegate.isDefinition();
+ }
+
+ @Override
+ public char[] toCharArray() {
+ return delegate.toCharArray();
+ }
+
+ @Override
+ public IBinding getBinding() {
+ return null;
+ }
+
+ @Override
+ public IBinding resolveBinding() {
+ return null;
+ }
+
+ @Override
+ public int getRoleOfName(boolean allowResolution) {
+ return delegate.getRoleOfName(allowResolution);
+ }
+
+ @Override
+ public IASTCompletionContext getCompletionContext() {
+ return delegate.getCompletionContext();
+ }
+
+ @Override
+ public ILinkage getLinkage() {
+ return delegate.getLinkage();
+ }
+
+ @Override
+ public IASTImageLocation getImageLocation() {
+ return delegate.getImageLocation();
+ }
+
+ @Override
+ public IASTName getLastName() {
+ return delegate.getLastName();
+ }
+
+ @Override
+ public IASTName copy() {
+ return delegate.copy();
+ }
+
+ @Override
+ public IASTName copy(CopyStyle style) {
+ return delegate.copy(style);
+ }
+
+ @Override
+ public void setBinding(IBinding binding) {
+ this.binding = binding;
+ }
+
+ @Override
+ public char[] getLookupKey() {
+ return delegate.getLookupKey();
+ }
+
+ @Override
+ public IBinding getPreBinding() {
+ return binding;
+ }
+
+ @Override
+ public IBinding resolvePreBinding() {
+ return resolveBinding();
+ }
+
+ @Override
+ public boolean isQualified() {
+ return delegate.isQualified();
+ }
+}

Back to the top