1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

bug 301373: [API] add @noextend and @noimplement tags - org.eclipse.cdt.make.ui

This commit is contained in:
Andrew Gvozdev 2010-02-08 04:20:47 +00:00
parent 857113dfb8
commit 21809f8c38
38 changed files with 210 additions and 47 deletions

View file

@ -10,10 +10,6 @@
*******************************************************************************/
package org.eclipse.cdt.make.core;
/**
* @noextend This class is not intended to be subclassed by clients.
* @noimplement This interface is not intended to be implemented by clients.
*/
public interface IMakeTargetListener {
void targetChanged(MakeTargetEvent event);

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2006 IBM Corporation and others.
* Copyright (c) 2000, 2010 IBM Corporation 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
@ -12,6 +12,10 @@ package org.eclipse.cdt.make.ui;
import org.eclipse.cdt.make.internal.ui.MakeUIPlugin;
/**
* @noextend This class is not intended to be subclassed by clients.
* @noimplement This interface is not intended to be implemented by clients.
*/
public interface IMakeHelpContextIds {
public static final String PREFIX = MakeUIPlugin.getUniqueIdentifier() + "."; //$NON-NLS-1$

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2006 IBM Corporation and others.
* Copyright (c) 2000, 2010 IBM Corporation 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
@ -32,7 +32,8 @@ import org.eclipse.cdt.make.core.makefile.IMakefile;
* This interface is not intended to be implemented by clients.
* </p>
*
*
* @noextend This class is not intended to be subclassed by clients.
* @noimplement This interface is not intended to be implemented by clients.
*/
public interface IWorkingCopyManager {

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2006 IBM Corporation and others.
* Copyright (c) 2000, 2010 IBM Corporation 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
@ -18,6 +18,9 @@ import org.eclipse.cdt.make.core.makefile.IMakefile;
/**
* Extension interface for <code>IWorkingCopyManager</code>.
* @since 2.1
*
* @noextend This class is not intended to be subclassed by clients.
* @noimplement This interface is not intended to be implemented by clients.
*/
public interface IWorkingCopyManagerExtension {

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2007 QNX Software Systems and others.
* Copyright (c) 2000, 2010 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
@ -35,6 +35,10 @@ import org.eclipse.jface.viewers.Viewer;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Display;
/**
* @noextend This class is not intended to be subclassed by clients.
* @noinstantiate This class is not intended to be instantiated by clients.
*/
public class MakeContentProvider implements ITreeContentProvider, IMakeTargetListener, IResourceChangeListener {
protected boolean bFlatten;

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2007 QNX Software Systems and others.
* Copyright (c) 2000, 2010 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
@ -21,6 +21,10 @@ import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.swt.graphics.Image;
import org.eclipse.ui.model.WorkbenchLabelProvider;
/**
* @noextend This class is not intended to be subclassed by clients.
* @noinstantiate This class is not intended to be instantiated by clients.
*/
public class MakeLabelProvider extends LabelProvider implements ITableLabelProvider {
private IPath pathPrefix;

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2006 QNX Software Systems and others.
* Copyright (c) 2000, 2010 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
@ -38,6 +38,10 @@ import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.actions.BuildAction;
import org.eclipse.ui.progress.IProgressService;
/**
* @noextend This class is not intended to be subclassed by clients.
* @noinstantiate This class is not intended to be instantiated by clients.
*/
public class TargetBuild {
/**
@ -84,6 +88,7 @@ public class TargetBuild {
static public void buildTargets(Shell shell, final IMakeTarget[] targets) {
saveAllResources(targets);
Job targetJob = new Job(MakeUIPlugin.getResourceString("TargetBuild.backgroundTask.name")) { //$NON-NLS-1$
@Override
protected IStatus run(IProgressMonitor monitor) {
monitor.beginTask(MakeUIPlugin.getResourceString("TargetBuild.monitor.beginTask"), targets.length); //$NON-NLS-1$
try {
@ -106,6 +111,7 @@ public class TargetBuild {
return Status.OK_STATUS;
}
@Override
public boolean belongsTo(Object family) {
return ResourcesPlugin.FAMILY_MANUAL_BUILD == family;
}

View file

@ -34,6 +34,10 @@ import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Table;
import org.eclipse.swt.widgets.TableColumn;
/**
* @noextend This class is not intended to be subclassed by clients.
* @noinstantiate This class is not intended to be instantiated by clients.
*/
public class TargetListViewerPart extends StructuredViewerPart {
private TableViewer tableViewer;

View file

@ -39,9 +39,7 @@ public abstract class AbstractTargetAction
private IWorkbenchPart fPart;
private IWorkbenchWindow fWindow;
private boolean isEnabled;
/**
* @since 7.0
*/
/** @since 7.0 */
protected IContainer fContainer;
protected Shell getShell() {
@ -109,6 +107,8 @@ public abstract class AbstractTargetAction
}
/**
* @return {@code} if the action is enabled or {@code false} otherwise.
*
* @since 7.0
*/
public boolean isEnabled() {

View file

@ -30,6 +30,9 @@ import org.eclipse.jface.window.Window;
* If no valid last target is found, show the build target dialog.
*
* @since 7.0
*
* @noextend This class is not intended to be subclassed by clients.
* @noinstantiate This class is not intended to be instantiated by clients.
*/
public class BuildLastTargetAction extends AbstractTargetAction {

View file

@ -21,6 +21,9 @@ import org.eclipse.ui.handlers.HandlerUtil;
* Handler for {@link org.eclipse.cdt.make.ui.actions.BuildLastTargetAction}
*
* @since 7.0
*
* @noextend This class is not intended to be subclassed by clients.
* @noinstantiate This class is not intended to be instantiated by clients.
*/
public class BuildLastTargetHandler extends AbstractHandler {

View file

@ -27,6 +27,10 @@ import org.eclipse.jface.window.Window;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.keys.IBindingService;
/**
* @noextend This class is not intended to be subclassed by clients.
* @noinstantiate This class is not intended to be instantiated by clients.
*/
public class BuildTargetAction extends AbstractTargetAction {
private static final String TARGET_BUILD_COMMAND = "org.eclipse.cdt.make.ui.targetBuildCommand"; //$NON-NLS-1$

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2006 QNX Software Systems and others.
* Copyright (c) 2000, 2010 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
@ -14,8 +14,13 @@ import org.eclipse.cdt.make.ui.dialogs.MakeTargetDialog;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.jface.action.IAction;
/**
* @noextend This class is not intended to be subclassed by clients.
* @noinstantiate This class is not intended to be instantiated by clients.
*/
public class CreateTargetAction extends AbstractTargetAction {
@Override
public void run(IAction action) {
if ( getSelectedContainer() != null ) {
MakeTargetDialog dialog;

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2007 QNX Software Systems and others.
* Copyright (c) 2000, 2010 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
@ -49,6 +49,10 @@ import org.eclipse.jface.wizard.WizardDialog;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.IWorkbenchWindowActionDelegate;
/**
* @noextend This class is not intended to be subclassed by clients.
* @noinstantiate This class is not intended to be instantiated by clients.
*/
public class UpdateMakeProjectAction implements IWorkbenchWindowActionDelegate {
private ISelection fSelection;

View file

@ -30,6 +30,10 @@ import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;
/**
* @noextend This class is not intended to be subclassed by clients.
* @noinstantiate This class is not intended to be instantiated by clients.
*/
public class BuildTargetDialog extends Dialog {
private final TargetListViewerPart targetPart;
private final IContainer fContainer;

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2004, 2007 IBM Corporation and others.
* Copyright (c) 2004, 2010 IBM Corporation 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
@ -78,6 +78,9 @@ import org.eclipse.ui.contexts.IWorkbenchContextSupport;
* A dialog page to manage discovered scanner configuration
*
* @author vhirsl
*
* @noextend This class is not intended to be subclassed by clients.
* @noinstantiate This class is not intended to be instantiated by clients.
*/
public class DiscoveredPathContainerPage extends WizardPage implements IPathEntryContainerPage {
private static final String PREFIX = "DiscoveredScannerConfigurationContainerPage"; //$NON-NLS-1$
@ -149,6 +152,7 @@ public class DiscoveredPathContainerPage extends WizardPage implements IPathEntr
/* (non-Javadoc)
* @see org.eclipse.jface.dialogs.IDialogPage#dispose()
*/
@Override
public void dispose() {
deregisterActionHandlers();
super.dispose();
@ -382,6 +386,7 @@ public class DiscoveredPathContainerPage extends WizardPage implements IPathEntr
fDiscoveredContainerList.setButtonsMinWidth(buttonBarWidth);
fDiscoveredContainerList.getTreeViewer().addFilter(new ViewerFilter() {
@Override
public boolean select(Viewer viewer, Object parentElement, Object element) {
if (element instanceof DiscoveredElement) {
DiscoveredElement elem = (DiscoveredElement) element;
@ -834,6 +839,7 @@ public class DiscoveredPathContainerPage extends WizardPage implements IPathEntr
/* (non-Javadoc)
* @see org.eclipse.jface.action.IAction#run()
*/
@Override
public void run() {
if (discoveredEntry != null) {
// copy to clipboard

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2004, 2007 IBM Corporation and others.
* Copyright (c) 2004, 2010 IBM Corporation 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
@ -52,6 +52,9 @@ import org.eclipse.swt.widgets.Label;
*
* @author vhirsl
* @since 3.0
*
* @noextend This class is not intended to be subclassed by clients.
* @noinstantiate This class is not intended to be instantiated by clients.
*/
public class DiscoveryOptionsBlock extends AbstractDiscoveryOptionsBlock {
private static final String MISSING_BUILDER_MSG = "ScannerConfigOptionsDialog.label.missingBuilderInformation"; //$NON-NLS-1$
@ -86,7 +89,8 @@ public class DiscoveryOptionsBlock extends AbstractDiscoveryOptionsBlock {
/* (non-Javadoc)
* @see org.eclipse.cdt.ui.dialogs.ICOptionPage#setContainer(org.eclipse.cdt.ui.dialogs.ICOptionContainer)
*/
public void setContainer(ICOptionContainer container) {
@Override
public void setContainer(ICOptionContainer container) {
super.setContainer(container);
if (container.getProject() == null) {
fCreatePathContainer = true;
@ -96,7 +100,8 @@ public class DiscoveryOptionsBlock extends AbstractDiscoveryOptionsBlock {
/* (non-Javadoc)
* @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite)
*/
public void createControl(Composite parent) {
@Override
public void createControl(Composite parent) {
// Create the composite control for the tab
int tabColumns = 2;
Font font = parent.getFont();
@ -174,7 +179,8 @@ public class DiscoveryOptionsBlock extends AbstractDiscoveryOptionsBlock {
: (getBuildInfo().isAutoDiscoveryEnabled()
&& !getBuildInfo().getSelectedProfileId().equals(ScannerConfigProfileManager.NULL_PROFILE_ID)));
scEnabledButton.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
@Override
public void widgetSelected(SelectionEvent e) {
enableAllControls();
}
});
@ -195,7 +201,8 @@ public class DiscoveryOptionsBlock extends AbstractDiscoveryOptionsBlock {
profileComboBox = new Combo(scGroup, SWT.DROP_DOWN | SWT.READ_ONLY);
profileComboBox.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
@Override
public void widgetSelected(SelectionEvent e) {
getBuildInfo().setSelectedProfileId(getCurrentProfileId());
handleDiscoveryProfileChanged();
}
@ -229,7 +236,8 @@ public class DiscoveryOptionsBlock extends AbstractDiscoveryOptionsBlock {
/* (non-Javadoc)
* @see org.eclipse.jface.dialogs.IDialogPage#setVisible(boolean)
*/
public void setVisible(boolean visible) {
@Override
public void setVisible(boolean visible) {
if (!visible) {
if (!checkDialogForChanges()) {
createBuildInfo();
@ -247,7 +255,8 @@ public class DiscoveryOptionsBlock extends AbstractDiscoveryOptionsBlock {
/* (non-Javadoc)
* @see org.eclipse.cdt.make.ui.dialogs.AbstractDiscoveryOptionsBlock#getCurrentProfileId()
*/
protected String getCurrentProfileId() {
@Override
protected String getCurrentProfileId() {
int pos = profileComboBox.getSelectionIndex();
if (pos >= 0) {
String selectedProfileName = profileComboBox.getItem(pos);
@ -259,7 +268,8 @@ public class DiscoveryOptionsBlock extends AbstractDiscoveryOptionsBlock {
/* (non-Javadoc)
* @see org.eclipse.cdt.ui.dialogs.ICOptionPage#performApply(org.eclipse.core.runtime.IProgressMonitor)
*/
public void performApply(IProgressMonitor monitor) throws CoreException {
@Override
public void performApply(IProgressMonitor monitor) throws CoreException {
if (monitor == null) {
monitor = new NullProgressMonitor();
}
@ -357,7 +367,8 @@ public class DiscoveryOptionsBlock extends AbstractDiscoveryOptionsBlock {
* @see org.eclipse.cdt.ui.dialogs.ICOptionPage#performDefaults()
*/
public void performDefaults() {
@Override
public void performDefaults() {
if (!isInitialized() && !needsSCNature) {
// Missing builder info on a non-legacy project
return;

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2004, 2009 IBM Corporation and others.
* Copyright (c) 2004, 2010 IBM Corporation 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
@ -42,6 +42,9 @@ import org.eclipse.swt.widgets.Text;
* SCD per project profile property/preference page
*
* @author vhirsl
*
* @noextend This class is not intended to be subclassed by clients.
* @noinstantiate This class is not intended to be instantiated by clients.
*/
public class GCCPerFileSCDProfilePage extends AbstractDiscoveryPage {

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2004, 2009 IBM Corporation and others.
* Copyright (c) 2004, 2010 IBM Corporation 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
@ -42,6 +42,9 @@ import org.eclipse.swt.widgets.Text;
* SCD per project profile property/preference page
*
* @author vhirsl
*
* @noextend This class is not intended to be subclassed by clients.
* @noinstantiate This class is not intended to be instantiated by clients.
*/
public class GCCPerProjectSCDProfilePage extends AbstractDiscoveryPage {

View file

@ -33,6 +33,9 @@ import org.eclipse.swt.widgets.Text;
* SCD per project profile property/preference page
*
* @author vhirsl
*
* @noextend This class is not intended to be subclassed by clients.
* @noinstantiate This class is not intended to be instantiated by clients.
*/
public class MBSPerProjectSCDProfilePage extends AbstractDiscoveryPage {
private static final String providerId = "specsFile"; //$NON-NLS-1$

View file

@ -43,6 +43,10 @@ import org.eclipse.swt.widgets.Listener;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Text;
/**
* @noextend This class is not intended to be subclassed by clients.
* @noinstantiate This class is not intended to be instantiated by clients.
*/
public class MakeTargetDialog extends Dialog {
private MessageLine fStatusLine;

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2007 QNX Software Systems and others.
* Copyright (c) 2000, 2010 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
@ -52,6 +52,10 @@ import org.eclipse.swt.widgets.Listener;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.dialogs.ContainerSelectionDialog;
/**
* @noextend This class is not intended to be subclassed by clients.
* @noinstantiate This class is not intended to be instantiated by clients.
*/
public class SettingsBlock extends AbstractCOptionPage {
private static final String PREFIX = "SettingsBlock"; //$NON-NLS-1$
@ -134,6 +138,7 @@ public class SettingsBlock extends AbstractCOptionPage {
defButton = ControlFactory.createCheckBox(group, MakeUIPlugin.getResourceString(MAKE_CMD_USE_DEFAULT));
defButton.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
if (defButton.getSelection() == true) {
buildCommand.setEnabled(false);
@ -186,6 +191,7 @@ public class SettingsBlock extends AbstractCOptionPage {
protected void createWorkBenchBuildControls(Composite parent) {
SelectionAdapter selectionAdapter = new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
targetAuto.setEnabled(autoButton.getSelection());
autoVariableButton.setEnabled(autoButton.getSelection());
@ -258,6 +264,7 @@ public class SettingsBlock extends AbstractCOptionPage {
*
* @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent)
*/
@Override
public void widgetSelected(SelectionEvent arg0) {
handleVariablesButtonSelected(control);
}
@ -310,6 +317,7 @@ public class SettingsBlock extends AbstractCOptionPage {
ControlAccessibleListener(String name) {
controlName = name;
}
@Override
public void getName(AccessibleEvent e) {
e.result = controlName;
}
@ -349,6 +357,7 @@ public class SettingsBlock extends AbstractCOptionPage {
browseWorkspace.setText(MakeUIPlugin.getResourceString(MAKE_BUILD_DIR_BROWSE_WORKSPACE));
browseWorkspace.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
ContainerSelectionDialog dialog = new ContainerSelectionDialog(getShell(), getContainer().getProject(), true,
MakeUIPlugin.getResourceString("SettingsBlock.title.selectLocationToBuildFrom")); //$NON-NLS-1$
@ -365,6 +374,7 @@ public class SettingsBlock extends AbstractCOptionPage {
browseFilesystem.setText(MakeUIPlugin.getResourceString(MAKE_BUILD_DIR_BROWSE_FILESYSTEM));
browseFilesystem.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
DirectoryDialog dialog = new DirectoryDialog(getShell(), SWT.NONE);
dialog.setText(MakeUIPlugin.getResourceString("SettingsBlock.title.selectLocationToBuildFrom")); //$NON-NLS-1$
@ -402,6 +412,7 @@ public class SettingsBlock extends AbstractCOptionPage {
dialog.open();
return dialog.getVariableExpression();
}
@Override
public void createControl(Composite parent) {
Composite composite = ControlFactory.createComposite(parent, 1);
setControl(composite);
@ -423,6 +434,7 @@ public class SettingsBlock extends AbstractCOptionPage {
}
}
@Override
public boolean isValid() {
if (defButton != null && defButton.getSelection() != true) {
String cmd = getBuildLine();
@ -433,6 +445,7 @@ public class SettingsBlock extends AbstractCOptionPage {
return true;
}
@Override
public void performApply(IProgressMonitor monitor) throws CoreException {
// Missing builder info
if (fBuildInfo == null) {
@ -503,6 +516,7 @@ public class SettingsBlock extends AbstractCOptionPage {
}
}
@Override
public void performDefaults() {
// Missing builder info
if (fBuildInfo == null) {
@ -572,6 +586,7 @@ public class SettingsBlock extends AbstractCOptionPage {
return null;
}
@Override
public void setContainer(ICOptionContainer container) {
super.setContainer(container);
if (getContainer().getProject() != null) {
@ -584,6 +599,7 @@ public class SettingsBlock extends AbstractCOptionPage {
}
}
@Override
public String getErrorMessage() {
if (!useDefaultBuildCmd()) {
String cmd = getBuildLine();

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2009 QNX Software Systems and others.
* Copyright (c) 2000, 2010 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
@ -23,6 +23,10 @@ import org.eclipse.swt.dnd.DND;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.actions.SelectionListenerAction;
/**
* @noextend This class is not intended to be subclassed by clients.
* @noinstantiate This class is not intended to be instantiated by clients.
*/
public class AddTargetAction extends SelectionListenerAction {
private final Shell shell;

View file

@ -25,6 +25,10 @@ import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.actions.SelectionListenerAction;
/**
* @noextend This class is not intended to be subclassed by clients.
* @noinstantiate This class is not intended to be instantiated by clients.
*/
public class BuildTargetAction extends SelectionListenerAction {
private final Shell shell;

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2008, 2009 Andrew Gvozdev.
* Copyright (c) 2008, 2010 Andrew Gvozdev 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
@ -35,6 +35,8 @@ import org.eclipse.ui.actions.SelectionListenerAction;
* {@link CopyTargetAction} and {@link PasteTargetAction} are able to transfer
* targets inside Make Target View or between eclipse sessions.
*
* @noextend This class is not intended to be subclassed by clients.
* @noinstantiate This class is not intended to be instantiated by clients.
*/
public class CopyTargetAction extends SelectionListenerAction {

View file

@ -29,6 +29,10 @@ import org.eclipse.ui.actions.SelectionListenerAction;
import com.ibm.icu.text.MessageFormat;
/**
* @noextend This class is not intended to be subclassed by clients.
* @noinstantiate This class is not intended to be instantiated by clients.
*/
public class DeleteTargetAction extends SelectionListenerAction {
private final Shell shell;

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2009 QNX Software Systems and others.
* Copyright (c) 2000, 2010 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
@ -22,6 +22,10 @@ import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.actions.SelectionListenerAction;
/**
* @noextend This class is not intended to be subclassed by clients.
* @noinstantiate This class is not intended to be instantiated by clients.
*/
public class EditTargetAction extends SelectionListenerAction {
private final Shell shell;

View file

@ -75,6 +75,10 @@ import org.eclipse.ui.keys.IBindingService;
import org.eclipse.ui.part.DrillDownAdapter;
import org.eclipse.ui.part.ViewPart;
/**
* @noextend This class is not intended to be subclassed by clients.
* @noinstantiate This class is not intended to be instantiated by clients.
*/
public class MakeView extends ViewPart {
private static final String TARGET_BUILD_LAST_COMMAND = "org.eclipse.cdt.make.ui.targetBuildLastCommand"; //$NON-NLS-1$

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2008, 2009 Andrew Gvozdev.
* Copyright (c) 2008, 2010 Andrew Gvozdev 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
@ -37,6 +37,8 @@ import org.eclipse.ui.actions.SelectionListenerAction;
* {@link CopyTargetAction} and {@link PasteTargetAction} are able to transfer
* targets inside Make Target View or between eclipse sessions.
*
* @noextend This class is not intended to be subclassed by clients.
* @noinstantiate This class is not intended to be instantiated by clients.
*/
public class PasteTargetAction extends SelectionListenerAction {

View file

@ -20,6 +20,9 @@ import org.eclipse.ui.actions.SelectionListenerAction;
* Rebuild last target of selected resource or project.
*
* @since 7.0
*
* @noextend This class is not intended to be subclassed by clients.
* @noinstantiate This class is not intended to be instantiated by clients.
*/
public class RebuildLastTargetAction extends SelectionListenerAction {

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2006 QNX Software Systems and others.
* Copyright (c) 2000, 2010 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
@ -17,10 +17,14 @@ import org.eclipse.cdt.ui.wizards.conversion.ConversionWizard;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.SubProgressMonitor;
import org.eclipse.jface.wizard.Wizard;
/**
* This wizard provides a method by which the user can
* add a C nature to a project that previously had no nature associated with it.
*
* @noextend This class is not intended to be subclassed by clients.
* @noinstantiate This class is not intended to be instantiated by clients.
*/
public class ConvertToMakeProjectWizard extends ConversionWizard {
@ -87,16 +91,19 @@ public class ConvertToMakeProjectWizard extends ConversionWizard {
/**
* Method addPages adds our Simple to C conversion Wizard page.
*
* @see Wizard#createPages
* @see Wizard#addPages
*/
@Override
public void addPages() {
addPage(mainPage = new ConvertToMakeProjectWizardPage(getPrefix()));
}
@Override
public String getProjectID() {
return MakeCorePlugin.MAKE_PROJECT_ID;
}
@Override
protected void doRun(IProgressMonitor monitor) throws CoreException {
monitor.beginTask(MakeUIPlugin.getResourceString("WizardMakeProjectConversion.monitor.convertingToMakeProject"), 2); //$NON-NLS-1$
try {

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2007 QNX Software Systems and others.
* Copyright (c) 2000, 2010 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
@ -40,6 +40,9 @@ import org.eclipse.ui.wizards.newresource.BasicNewResourceWizard;
* mainPage.setDescription("Add C or C++ a Nature to a project.");
* </pre>
* </p>
*
* @noextend This class is not intended to be subclassed by clients.
* @noinstantiate This class is not intended to be instantiated by clients.
*/
public class ConvertToMakeProjectWizardPage extends ConvertProjectWizardPage {
@ -58,7 +61,8 @@ public class ConvertToMakeProjectWizardPage extends ConvertProjectWizardPage {
* Method getWzTitleResource returns the correct Title Label for this class
* overriding the default in the superclass.
*/
protected String getWzTitleResource(){
@Override
protected String getWzTitleResource(){
return MakeUIPlugin.getResourceString(WZ_TITLE);
}
@ -66,7 +70,8 @@ public class ConvertToMakeProjectWizardPage extends ConvertProjectWizardPage {
* Method getWzDescriptionResource returns the correct description
* Label for this class overriding the default in the superclass.
*/
protected String getWzDescriptionResource(){
@Override
protected String getWzDescriptionResource(){
return MakeUIPlugin.getResourceString(WZ_DESC);
}
@ -76,10 +81,12 @@ public class ConvertToMakeProjectWizardPage extends ConvertProjectWizardPage {
* @param project
* @return boolean
*/
public boolean isCandidate(IProject project) {
@Override
public boolean isCandidate(IProject project) {
return true; // all
}
@Override
public void convertProject(IProject project, IProgressMonitor monitor, String projectID) throws CoreException {
monitor.beginTask(MakeUIPlugin.getResourceString("WizardMakeProjectConversion.monitor.convertingToMakeProject"), 3); //$NON-NLS-1$
try {
@ -93,6 +100,7 @@ public class ConvertToMakeProjectWizardPage extends ConvertProjectWizardPage {
}
}
@Override
public void createControl(Composite parent) {
super.createControl(parent);
IStructuredSelection sel = ((BasicNewResourceWizard)getWizard()).getSelection();

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2005, 2007 IBM Corporation and others.
* Copyright (c) 2005, 2010 IBM Corporation 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
@ -42,6 +42,9 @@ import org.eclipse.core.runtime.Preferences;
* mainPage.setDescription("Create a new project resource.");
* </pre>
* </p>
*
* @noextend This class is not intended to be subclassed by clients.
* @noinstantiate This class is not intended to be instantiated by clients.
*/
public class MakeProjectWizardOptionPage extends NewCProjectWizardOptionPage {
MakeWizardOptionBlock makeWizardBlock;
@ -53,6 +56,7 @@ public class MakeProjectWizardOptionPage extends NewCProjectWizardOptionPage {
super(parent);
}
@Override
protected void addTabs() {
addTab(new ReferenceBlock());
super.addTabs();
@ -86,10 +90,12 @@ public class MakeProjectWizardOptionPage extends NewCProjectWizardOptionPage {
setDescription(description);
}
@Override
protected TabFolderOptionBlock createOptionBlock() {
return (makeWizardBlock = new MakeWizardOptionBlock(this));
}
@Override
public IProject getProject() {
return ((NewCProjectWizard)getWizard()).getNewProject();
}
@ -97,6 +103,7 @@ public class MakeProjectWizardOptionPage extends NewCProjectWizardOptionPage {
/* (non-Javadoc)
* @see org.eclipse.cdt.ui.dialogs.ICOptionContainer#getPreference()
*/
@Override
public Preferences getPreferences() {
return MakeCorePlugin.getDefault().getPluginPreferences();
}

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2006 QNX Software Systems and others.
* Copyright (c) 2000, 2010 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
@ -19,6 +19,8 @@ import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.SubProgressMonitor;
/**
* @noextend This class is not intended to be subclassed by clients.
* @noinstantiate This class is not intended to be instantiated by clients.
*/
public class NewMakeCCProjectWizard extends NewMakeProjectWizard {
@ -32,6 +34,7 @@ public class NewMakeCCProjectWizard extends NewMakeProjectWizard {
super(MakeUIPlugin.getResourceString(WZ_TITLE), MakeUIPlugin.getResourceString(WZ_DESC));
}
@Override
public void addPages() {
super.addPages();
addPage(
@ -41,6 +44,7 @@ public class NewMakeCCProjectWizard extends NewMakeProjectWizard {
MakeUIPlugin.getResourceString(WZ_SETTINGS_DESC)));
}
@Override
protected void doRun(IProgressMonitor monitor) throws CoreException {
if (monitor == null) {
monitor = new NullProgressMonitor();

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2006 QNX Software Systems and others.
* Copyright (c) 2000, 2010 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
@ -14,6 +14,8 @@ package org.eclipse.cdt.make.ui.wizards;
import org.eclipse.cdt.make.internal.ui.MakeUIPlugin;
/**
* @noextend This class is not intended to be subclassed by clients.
* @noinstantiate This class is not intended to be instantiated by clients.
*/
public class NewMakeCProjectWizard extends NewMakeProjectWizard {
@ -31,6 +33,7 @@ public class NewMakeCProjectWizard extends NewMakeProjectWizard {
super(title, desc);
}
@Override
public void addPages() {
super.addPages();
addPage(

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2005 QNX Software Systems and others.
* Copyright (c) 2000, 2010 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
@ -24,8 +24,6 @@ import org.eclipse.core.runtime.SubProgressMonitor;
import org.eclipse.jface.wizard.IWizardPage;
import org.eclipse.swt.widgets.Composite;
/**
*/
public abstract class NewMakeProjectWizard extends NewCProjectWizard {
protected MakeProjectWizardOptionPage fOptionPage;
@ -34,12 +32,15 @@ public abstract class NewMakeProjectWizard extends NewCProjectWizard {
super(title, desc);
}
@Override
protected void doRunPrologue(IProgressMonitor monitor) {
}
@Override
protected void doRunEpilogue(IProgressMonitor monitor) {
}
@Override
protected void doRun(IProgressMonitor monitor) throws CoreException {
if (monitor == null) {
monitor = new NullProgressMonitor();
@ -59,10 +60,12 @@ public abstract class NewMakeProjectWizard extends NewCProjectWizard {
}
}
@Override
public String getProjectID() {
return MakeCorePlugin.MAKE_PROJECT_ID;
}
@Override
public void createPageControls(Composite pageContainer) {
super.createPageControls( pageContainer );

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2006 QNX Software Systems and others.
* Copyright (c) 2000, 2010 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
@ -15,6 +15,10 @@ import org.eclipse.cdt.make.ui.actions.*;
import org.eclipse.core.resources.IProject;
import org.eclipse.jface.wizard.Wizard;
/**
* @noextend This class is not intended to be subclassed by clients.
* @noinstantiate This class is not intended to be instantiated by clients.
*/
public class UpdateMakeProjectWizard extends Wizard {
private static final String MAKE_UPDATE_WINDOW_TITLE = "MakeWizardUpdate.window_title"; //$NON-NLS-1$
@ -28,6 +32,7 @@ public class UpdateMakeProjectWizard extends Wizard {
this.selected = selected;
}
@Override
public boolean performFinish() {
Object[] finalSelected = page1.getSelected();
@ -37,6 +42,7 @@ public class UpdateMakeProjectWizard extends Wizard {
return true;
}
@Override
public void addPages() {
page1 = new UpdateMakeProjectWizardPage(selected);
addPage(page1);

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2006 QNX Software Systems and others.
* Copyright (c) 2000, 2010 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
@ -27,6 +27,10 @@ import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.model.WorkbenchLabelProvider;
/**
* @noextend This class is not intended to be subclassed by clients.
* @noinstantiate This class is not intended to be instantiated by clients.
*/
public class UpdateMakeProjectWizardPage extends StatusWizardPage {
private static final String MAKE_UPDATE_TITLE = "MakeWizardUpdatePage.title"; //$NON-NLS-1$
@ -52,10 +56,12 @@ public class UpdateMakeProjectWizardPage extends StatusWizardPage {
public TablePart(String mainLabel) {
super(mainLabel);
}
@Override
public void updateCounter(int count) {
super.updateCounter(count);
dialogChanged();
}
@Override
protected StructuredViewer createStructuredViewer(Composite parent, int style) {
StructuredViewer viewer = super.createStructuredViewer(parent, style);
return viewer;
@ -70,6 +76,7 @@ public class UpdateMakeProjectWizardPage extends StatusWizardPage {
tablePart = new TablePart(MakeUIPlugin.getResourceString("MakeWizardUpdatePage.projectList")); //$NON-NLS-1$
}
@Override
public void dispose() {
super.dispose();
}