1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

cleanup: removed some JavaDoc warnings plus other cosmetics

This commit is contained in:
Andrew Gvozdev 2010-03-16 16:55:34 +00:00
parent de881ce70d
commit c5bb4beda7

View file

@ -47,6 +47,8 @@ import org.eclipse.swt.widgets.TableItem;
import org.eclipse.ui.dialogs.PreferencesUtil;
/**
* "Select Configurations" page of C/C++ New Project Wizard
*
* @noextend This class is not intended to be subclassed by clients.
* @noinstantiate This class is not intended to be instantiated by clients.
*/
@ -54,7 +56,7 @@ public class CDTConfigWizardPage extends WizardPage {
public static final String PAGE_ID = "org.eclipse.cdt.managedbuilder.ui.wizard.CConfigWizardPage"; //$NON-NLS-1$
private static final Image IMG = ManagedBuilderUIImages.get(ManagedBuilderUIImages.IMG_BUILD_CONFIG);
private static final Image IMG_CONFIG = ManagedBuilderUIImages.get(ManagedBuilderUIImages.IMG_BUILD_CONFIG);
private static final String TITLE = UIMessages.getString("CConfigWizardPage.0"); //$NON-NLS-1$
private static final String MESSAGE = UIMessages.getString("CConfigWizardPage.1"); //$NON-NLS-1$
private static final String COMMENT = UIMessages.getString("CConfigWizardPage.12"); //$NON-NLS-1$
@ -76,11 +78,11 @@ public class CDTConfigWizardPage extends WizardPage {
IWizardPage[] customPages = null;
public CDTConfigWizardPage(MBSWizardHandler h) {
super(UIMessages.getString("CDTConfigWizardPage.0")); //$NON-NLS-1$
setPageComplete(false);
handler = h;
setWizard(h.getWizard());
}
super(UIMessages.getString("CDTConfigWizardPage.0")); //$NON-NLS-1$
setPageComplete(false);
handler = h;
setWizard(h.getWizard());
}
public CfgHolder[] getCfgItems(boolean getDefault) {
CfgHolder[] its;
@ -99,7 +101,7 @@ public class CDTConfigWizardPage extends WizardPage {
public void createControl(Composite p) {
parent = new Composite(p, SWT.NONE);
parent.setFont(parent.getFont());
parent.setFont(parent.getFont());
parent.setLayout(new GridLayout());
parent.setLayoutData(new GridData(GridData.FILL_BOTH));
@ -136,7 +138,7 @@ public class CDTConfigWizardPage extends WizardPage {
return element == null ? EMPTY_STR : ((CfgHolder)element).getName();
}
@Override
public Image getImage(Object element) { return IMG; }
public Image getImage(Object element) { return IMG_CONFIG; }
});
tv.addCheckStateListener(new ICheckStateListener() {
public void checkStateChanged(CheckStateChangedEvent event) {
@ -189,14 +191,9 @@ public class CDTConfigWizardPage extends WizardPage {
Label lb = new Label(gr, SWT.NONE);
lb.setText(COMMENT);
setControl(parent);
setControl(parent);
}
/**
*
* @param handler
* @return
*/
static public CfgHolder[] getDefaultCfgs(MBSWizardHandler handler) {
String id = handler.getPropertyId();
IProjectType pt = handler.getProjectType();
@ -236,16 +233,16 @@ public class CDTConfigWizardPage extends WizardPage {
visitedTCs);
}
/**
* Returns whether this page's controls currently all contain valid
* values.
*
* @return <code>true</code> if all controls are valid, and
* <code>false</code> if at least one is invalid
*/
public boolean isCustomPageComplete() {
if (!isVisited())
return true;
/**
* Returns whether this page's controls currently all contain valid
* values.
*
* @return <code>true</code> if all controls are valid, and
* <code>false</code> if at least one is invalid
*/
public boolean isCustomPageComplete() {
if (!isVisited())
return true;
if (table.getItemCount() == 0) {
errorMessage = UIMessages.getString("CConfigWizardPage.10"); //$NON-NLS-1$
@ -259,16 +256,13 @@ public class CDTConfigWizardPage extends WizardPage {
}
errorMessage = null;
message = MESSAGE;
return true;
}
return true;
}
/**
*
*/
@Override
@Override
public void setVisible(boolean visible) {
parent.setVisible(visible);
isVisible = visible;
isVisible = visible;
if (visible && handler != null && !isVisited()) {
tv.setInput(CfgHolder.unique(getDefaultCfgs(handler)));
tv.setAllChecked(true);
@ -289,10 +283,9 @@ public class CDTConfigWizardPage extends WizardPage {
parent.getParent().layout(true, true);
update();
}
}
}
//------------------------
private Label setupLabel(Composite c, String name, int mode) {
private Label setupLabel(Composite c, String name, int mode) {
Label l = new Label(c, SWT.WRAP);
l.setText(name);
GridData gd = new GridData(mode);