Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2014-01-22 14:46:21 -0500
committerSergey Prigogin2014-01-22 14:46:21 -0500
commitad526b4fb08feac6deeb3643c4bed312065d7640 (patch)
treeb79c2204c7b1f95635f045648286b33ae3532adc
parent18893e0ffc1a9d44a5df676baf2d94802a765d09 (diff)
downloadorg.eclipse.cdt-ad526b4fb08feac6deeb3643c4bed312065d7640.tar.gz
org.eclipse.cdt-ad526b4fb08feac6deeb3643c4bed312065d7640.tar.xz
org.eclipse.cdt-ad526b4fb08feac6deeb3643c4bed312065d7640.zip
Cosmetics.
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/wizards/NewClassCreationWizard.java26
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/wizards/classwizard/NewClassCodeGenerator.java7
2 files changed, 10 insertions, 23 deletions
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/wizards/NewClassCreationWizard.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/wizards/NewClassCreationWizard.java
index 0c23903977..f9aa1b6c21 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/wizards/NewClassCreationWizard.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/wizards/NewClassCreationWizard.java
@@ -10,16 +10,17 @@
*******************************************************************************/
package org.eclipse.cdt.internal.ui.wizards;
-import org.eclipse.cdt.internal.ui.CPluginImages;
-import org.eclipse.cdt.internal.ui.wizards.classwizard.NewClassWizardMessages;
-import org.eclipse.cdt.ui.CUIPlugin;
-import org.eclipse.cdt.ui.wizards.NewClassCreationWizardPage;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.cdt.ui.CUIPlugin;
+import org.eclipse.cdt.ui.wizards.NewClassCreationWizardPage;
+
+import org.eclipse.cdt.internal.ui.CPluginImages;
+import org.eclipse.cdt.internal.ui.wizards.classwizard.NewClassWizardMessages;
+
public class NewClassCreationWizard extends NewElementWizard {
-
private NewClassCreationWizardPage fPage;
public NewClassCreationWizard() {
@@ -40,31 +41,16 @@ public class NewClassCreationWizard extends NewElementWizard {
fPage.init(getSelection());
}
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.cdt.internal.ui.wizards.NewElementWizard#canRunForked()
- */
@Override
protected boolean canRunForked() {
return !fPage.isNamespaceSelected();
}
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.cdt.internal.ui.wizards.NewElementWizard#finishPage(org.eclipse.core.runtime.IProgressMonitor)
- */
@Override
protected void finishPage(IProgressMonitor monitor) throws InterruptedException, CoreException {
fPage.createClass(monitor); // use the full progress monitor
}
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.jface.wizard.IWizard#performFinish()
- */
@Override
public boolean performFinish() {
boolean finished = super.performFinish();
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/wizards/classwizard/NewClassCodeGenerator.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/wizards/classwizard/NewClassCodeGenerator.java
index 982f07ca19..b3a654766f 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/wizards/classwizard/NewClassCodeGenerator.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/wizards/classwizard/NewClassCodeGenerator.java
@@ -691,12 +691,13 @@ public class NewClassCodeGenerator {
if (i > 0)
text.append(", "); //$NON-NLS-1$
- if (baseClass.getAccess() == ASTAccessVisibility.PRIVATE)
+ if (baseClass.getAccess() == ASTAccessVisibility.PRIVATE) {
text.append("private"); //$NON-NLS-1$
- else if (baseClass.getAccess() == ASTAccessVisibility.PROTECTED)
+ } else if (baseClass.getAccess() == ASTAccessVisibility.PROTECTED) {
text.append("private"); //$NON-NLS-1$
- else
+ } else {
text.append("public"); //$NON-NLS-1$
+ }
text.append(' ');
if (baseClass.isVirtual())

Back to the top