mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 17:56:01 +02:00
bug 301373: [API] add @noextend and @noimplement tags - org.eclipse.cdt.make.ui
This commit is contained in:
parent
857113dfb8
commit
21809f8c38
38 changed files with 210 additions and 47 deletions
|
@ -10,10 +10,6 @@
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
package org.eclipse.cdt.make.core;
|
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 {
|
public interface IMakeTargetListener {
|
||||||
|
|
||||||
void targetChanged(MakeTargetEvent event);
|
void targetChanged(MakeTargetEvent event);
|
||||||
|
|
|
@ -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
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* 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;
|
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 interface IMakeHelpContextIds {
|
||||||
public static final String PREFIX = MakeUIPlugin.getUniqueIdentifier() + "."; //$NON-NLS-1$
|
public static final String PREFIX = MakeUIPlugin.getUniqueIdentifier() + "."; //$NON-NLS-1$
|
||||||
|
|
||||||
|
|
|
@ -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
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* 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.
|
* This interface is not intended to be implemented by clients.
|
||||||
* </p>
|
* </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 {
|
public interface IWorkingCopyManager {
|
||||||
|
|
||||||
|
|
|
@ -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
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* 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>.
|
* Extension interface for <code>IWorkingCopyManager</code>.
|
||||||
* @since 2.1
|
* @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 {
|
public interface IWorkingCopyManagerExtension {
|
||||||
|
|
||||||
|
|
|
@ -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
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* 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.Control;
|
||||||
import org.eclipse.swt.widgets.Display;
|
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 {
|
public class MakeContentProvider implements ITreeContentProvider, IMakeTargetListener, IResourceChangeListener {
|
||||||
protected boolean bFlatten;
|
protected boolean bFlatten;
|
||||||
|
|
||||||
|
|
|
@ -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
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* 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.swt.graphics.Image;
|
||||||
import org.eclipse.ui.model.WorkbenchLabelProvider;
|
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 {
|
public class MakeLabelProvider extends LabelProvider implements ITableLabelProvider {
|
||||||
private IPath pathPrefix;
|
private IPath pathPrefix;
|
||||||
|
|
||||||
|
|
|
@ -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
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* 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.actions.BuildAction;
|
||||||
import org.eclipse.ui.progress.IProgressService;
|
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 {
|
public class TargetBuild {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -84,6 +88,7 @@ public class TargetBuild {
|
||||||
static public void buildTargets(Shell shell, final IMakeTarget[] targets) {
|
static public void buildTargets(Shell shell, final IMakeTarget[] targets) {
|
||||||
saveAllResources(targets);
|
saveAllResources(targets);
|
||||||
Job targetJob = new Job(MakeUIPlugin.getResourceString("TargetBuild.backgroundTask.name")) { //$NON-NLS-1$
|
Job targetJob = new Job(MakeUIPlugin.getResourceString("TargetBuild.backgroundTask.name")) { //$NON-NLS-1$
|
||||||
|
@Override
|
||||||
protected IStatus run(IProgressMonitor monitor) {
|
protected IStatus run(IProgressMonitor monitor) {
|
||||||
monitor.beginTask(MakeUIPlugin.getResourceString("TargetBuild.monitor.beginTask"), targets.length); //$NON-NLS-1$
|
monitor.beginTask(MakeUIPlugin.getResourceString("TargetBuild.monitor.beginTask"), targets.length); //$NON-NLS-1$
|
||||||
try {
|
try {
|
||||||
|
@ -106,6 +111,7 @@ public class TargetBuild {
|
||||||
return Status.OK_STATUS;
|
return Status.OK_STATUS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean belongsTo(Object family) {
|
public boolean belongsTo(Object family) {
|
||||||
return ResourcesPlugin.FAMILY_MANUAL_BUILD == family;
|
return ResourcesPlugin.FAMILY_MANUAL_BUILD == family;
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,6 +34,10 @@ import org.eclipse.swt.widgets.Composite;
|
||||||
import org.eclipse.swt.widgets.Table;
|
import org.eclipse.swt.widgets.Table;
|
||||||
import org.eclipse.swt.widgets.TableColumn;
|
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 {
|
public class TargetListViewerPart extends StructuredViewerPart {
|
||||||
|
|
||||||
private TableViewer tableViewer;
|
private TableViewer tableViewer;
|
||||||
|
|
|
@ -39,9 +39,7 @@ public abstract class AbstractTargetAction
|
||||||
private IWorkbenchPart fPart;
|
private IWorkbenchPart fPart;
|
||||||
private IWorkbenchWindow fWindow;
|
private IWorkbenchWindow fWindow;
|
||||||
private boolean isEnabled;
|
private boolean isEnabled;
|
||||||
/**
|
/** @since 7.0 */
|
||||||
* @since 7.0
|
|
||||||
*/
|
|
||||||
protected IContainer fContainer;
|
protected IContainer fContainer;
|
||||||
|
|
||||||
protected Shell getShell() {
|
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
|
* @since 7.0
|
||||||
*/
|
*/
|
||||||
public boolean isEnabled() {
|
public boolean isEnabled() {
|
||||||
|
|
|
@ -30,6 +30,9 @@ import org.eclipse.jface.window.Window;
|
||||||
* If no valid last target is found, show the build target dialog.
|
* If no valid last target is found, show the build target dialog.
|
||||||
*
|
*
|
||||||
* @since 7.0
|
* @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 {
|
public class BuildLastTargetAction extends AbstractTargetAction {
|
||||||
|
|
||||||
|
|
|
@ -21,6 +21,9 @@ import org.eclipse.ui.handlers.HandlerUtil;
|
||||||
* Handler for {@link org.eclipse.cdt.make.ui.actions.BuildLastTargetAction}
|
* Handler for {@link org.eclipse.cdt.make.ui.actions.BuildLastTargetAction}
|
||||||
*
|
*
|
||||||
* @since 7.0
|
* @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 {
|
public class BuildLastTargetHandler extends AbstractHandler {
|
||||||
|
|
||||||
|
|
|
@ -27,6 +27,10 @@ import org.eclipse.jface.window.Window;
|
||||||
import org.eclipse.ui.PlatformUI;
|
import org.eclipse.ui.PlatformUI;
|
||||||
import org.eclipse.ui.keys.IBindingService;
|
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 {
|
public class BuildTargetAction extends AbstractTargetAction {
|
||||||
|
|
||||||
private static final String TARGET_BUILD_COMMAND = "org.eclipse.cdt.make.ui.targetBuildCommand"; //$NON-NLS-1$
|
private static final String TARGET_BUILD_COMMAND = "org.eclipse.cdt.make.ui.targetBuildCommand"; //$NON-NLS-1$
|
||||||
|
|
|
@ -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
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* 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.core.runtime.CoreException;
|
||||||
import org.eclipse.jface.action.IAction;
|
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 {
|
public class CreateTargetAction extends AbstractTargetAction {
|
||||||
|
|
||||||
|
@Override
|
||||||
public void run(IAction action) {
|
public void run(IAction action) {
|
||||||
if ( getSelectedContainer() != null ) {
|
if ( getSelectedContainer() != null ) {
|
||||||
MakeTargetDialog dialog;
|
MakeTargetDialog dialog;
|
||||||
|
|
|
@ -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
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* 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.IWorkbenchWindow;
|
||||||
import org.eclipse.ui.IWorkbenchWindowActionDelegate;
|
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 {
|
public class UpdateMakeProjectAction implements IWorkbenchWindowActionDelegate {
|
||||||
|
|
||||||
private ISelection fSelection;
|
private ISelection fSelection;
|
||||||
|
|
|
@ -30,6 +30,10 @@ import org.eclipse.swt.widgets.Control;
|
||||||
import org.eclipse.swt.widgets.Label;
|
import org.eclipse.swt.widgets.Label;
|
||||||
import org.eclipse.swt.widgets.Shell;
|
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 {
|
public class BuildTargetDialog extends Dialog {
|
||||||
private final TargetListViewerPart targetPart;
|
private final TargetListViewerPart targetPart;
|
||||||
private final IContainer fContainer;
|
private final IContainer fContainer;
|
||||||
|
|
|
@ -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
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* 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
|
* A dialog page to manage discovered scanner configuration
|
||||||
*
|
*
|
||||||
* @author vhirsl
|
* @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 {
|
public class DiscoveredPathContainerPage extends WizardPage implements IPathEntryContainerPage {
|
||||||
private static final String PREFIX = "DiscoveredScannerConfigurationContainerPage"; //$NON-NLS-1$
|
private static final String PREFIX = "DiscoveredScannerConfigurationContainerPage"; //$NON-NLS-1$
|
||||||
|
@ -149,6 +152,7 @@ public class DiscoveredPathContainerPage extends WizardPage implements IPathEntr
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.jface.dialogs.IDialogPage#dispose()
|
* @see org.eclipse.jface.dialogs.IDialogPage#dispose()
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void dispose() {
|
public void dispose() {
|
||||||
deregisterActionHandlers();
|
deregisterActionHandlers();
|
||||||
super.dispose();
|
super.dispose();
|
||||||
|
@ -382,6 +386,7 @@ public class DiscoveredPathContainerPage extends WizardPage implements IPathEntr
|
||||||
fDiscoveredContainerList.setButtonsMinWidth(buttonBarWidth);
|
fDiscoveredContainerList.setButtonsMinWidth(buttonBarWidth);
|
||||||
|
|
||||||
fDiscoveredContainerList.getTreeViewer().addFilter(new ViewerFilter() {
|
fDiscoveredContainerList.getTreeViewer().addFilter(new ViewerFilter() {
|
||||||
|
@Override
|
||||||
public boolean select(Viewer viewer, Object parentElement, Object element) {
|
public boolean select(Viewer viewer, Object parentElement, Object element) {
|
||||||
if (element instanceof DiscoveredElement) {
|
if (element instanceof DiscoveredElement) {
|
||||||
DiscoveredElement elem = (DiscoveredElement) element;
|
DiscoveredElement elem = (DiscoveredElement) element;
|
||||||
|
@ -834,6 +839,7 @@ public class DiscoveredPathContainerPage extends WizardPage implements IPathEntr
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.jface.action.IAction#run()
|
* @see org.eclipse.jface.action.IAction#run()
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
if (discoveredEntry != null) {
|
if (discoveredEntry != null) {
|
||||||
// copy to clipboard
|
// copy to clipboard
|
||||||
|
|
|
@ -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
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* which accompanies this distribution, and is available at
|
||||||
|
@ -52,6 +52,9 @@ import org.eclipse.swt.widgets.Label;
|
||||||
*
|
*
|
||||||
* @author vhirsl
|
* @author vhirsl
|
||||||
* @since 3.0
|
* @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 {
|
public class DiscoveryOptionsBlock extends AbstractDiscoveryOptionsBlock {
|
||||||
private static final String MISSING_BUILDER_MSG = "ScannerConfigOptionsDialog.label.missingBuilderInformation"; //$NON-NLS-1$
|
private static final String MISSING_BUILDER_MSG = "ScannerConfigOptionsDialog.label.missingBuilderInformation"; //$NON-NLS-1$
|
||||||
|
@ -86,7 +89,8 @@ public class DiscoveryOptionsBlock extends AbstractDiscoveryOptionsBlock {
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.cdt.ui.dialogs.ICOptionPage#setContainer(org.eclipse.cdt.ui.dialogs.ICOptionContainer)
|
* @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);
|
super.setContainer(container);
|
||||||
if (container.getProject() == null) {
|
if (container.getProject() == null) {
|
||||||
fCreatePathContainer = true;
|
fCreatePathContainer = true;
|
||||||
|
@ -96,7 +100,8 @@ public class DiscoveryOptionsBlock extends AbstractDiscoveryOptionsBlock {
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite)
|
* @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
|
// Create the composite control for the tab
|
||||||
int tabColumns = 2;
|
int tabColumns = 2;
|
||||||
Font font = parent.getFont();
|
Font font = parent.getFont();
|
||||||
|
@ -174,7 +179,8 @@ public class DiscoveryOptionsBlock extends AbstractDiscoveryOptionsBlock {
|
||||||
: (getBuildInfo().isAutoDiscoveryEnabled()
|
: (getBuildInfo().isAutoDiscoveryEnabled()
|
||||||
&& !getBuildInfo().getSelectedProfileId().equals(ScannerConfigProfileManager.NULL_PROFILE_ID)));
|
&& !getBuildInfo().getSelectedProfileId().equals(ScannerConfigProfileManager.NULL_PROFILE_ID)));
|
||||||
scEnabledButton.addSelectionListener(new SelectionAdapter() {
|
scEnabledButton.addSelectionListener(new SelectionAdapter() {
|
||||||
public void widgetSelected(SelectionEvent e) {
|
@Override
|
||||||
|
public void widgetSelected(SelectionEvent e) {
|
||||||
enableAllControls();
|
enableAllControls();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -195,7 +201,8 @@ public class DiscoveryOptionsBlock extends AbstractDiscoveryOptionsBlock {
|
||||||
|
|
||||||
profileComboBox = new Combo(scGroup, SWT.DROP_DOWN | SWT.READ_ONLY);
|
profileComboBox = new Combo(scGroup, SWT.DROP_DOWN | SWT.READ_ONLY);
|
||||||
profileComboBox.addSelectionListener(new SelectionAdapter() {
|
profileComboBox.addSelectionListener(new SelectionAdapter() {
|
||||||
public void widgetSelected(SelectionEvent e) {
|
@Override
|
||||||
|
public void widgetSelected(SelectionEvent e) {
|
||||||
getBuildInfo().setSelectedProfileId(getCurrentProfileId());
|
getBuildInfo().setSelectedProfileId(getCurrentProfileId());
|
||||||
handleDiscoveryProfileChanged();
|
handleDiscoveryProfileChanged();
|
||||||
}
|
}
|
||||||
|
@ -229,7 +236,8 @@ public class DiscoveryOptionsBlock extends AbstractDiscoveryOptionsBlock {
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.jface.dialogs.IDialogPage#setVisible(boolean)
|
* @see org.eclipse.jface.dialogs.IDialogPage#setVisible(boolean)
|
||||||
*/
|
*/
|
||||||
public void setVisible(boolean visible) {
|
@Override
|
||||||
|
public void setVisible(boolean visible) {
|
||||||
if (!visible) {
|
if (!visible) {
|
||||||
if (!checkDialogForChanges()) {
|
if (!checkDialogForChanges()) {
|
||||||
createBuildInfo();
|
createBuildInfo();
|
||||||
|
@ -247,7 +255,8 @@ public class DiscoveryOptionsBlock extends AbstractDiscoveryOptionsBlock {
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.cdt.make.ui.dialogs.AbstractDiscoveryOptionsBlock#getCurrentProfileId()
|
* @see org.eclipse.cdt.make.ui.dialogs.AbstractDiscoveryOptionsBlock#getCurrentProfileId()
|
||||||
*/
|
*/
|
||||||
protected String getCurrentProfileId() {
|
@Override
|
||||||
|
protected String getCurrentProfileId() {
|
||||||
int pos = profileComboBox.getSelectionIndex();
|
int pos = profileComboBox.getSelectionIndex();
|
||||||
if (pos >= 0) {
|
if (pos >= 0) {
|
||||||
String selectedProfileName = profileComboBox.getItem(pos);
|
String selectedProfileName = profileComboBox.getItem(pos);
|
||||||
|
@ -259,7 +268,8 @@ public class DiscoveryOptionsBlock extends AbstractDiscoveryOptionsBlock {
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.cdt.ui.dialogs.ICOptionPage#performApply(org.eclipse.core.runtime.IProgressMonitor)
|
* @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) {
|
if (monitor == null) {
|
||||||
monitor = new NullProgressMonitor();
|
monitor = new NullProgressMonitor();
|
||||||
}
|
}
|
||||||
|
@ -357,7 +367,8 @@ public class DiscoveryOptionsBlock extends AbstractDiscoveryOptionsBlock {
|
||||||
* @see org.eclipse.cdt.ui.dialogs.ICOptionPage#performDefaults()
|
* @see org.eclipse.cdt.ui.dialogs.ICOptionPage#performDefaults()
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public void performDefaults() {
|
@Override
|
||||||
|
public void performDefaults() {
|
||||||
if (!isInitialized() && !needsSCNature) {
|
if (!isInitialized() && !needsSCNature) {
|
||||||
// Missing builder info on a non-legacy project
|
// Missing builder info on a non-legacy project
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -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
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* 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
|
* SCD per project profile property/preference page
|
||||||
*
|
*
|
||||||
* @author vhirsl
|
* @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 {
|
public class GCCPerFileSCDProfilePage extends AbstractDiscoveryPage {
|
||||||
|
|
||||||
|
|
|
@ -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
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* 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
|
* SCD per project profile property/preference page
|
||||||
*
|
*
|
||||||
* @author vhirsl
|
* @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 {
|
public class GCCPerProjectSCDProfilePage extends AbstractDiscoveryPage {
|
||||||
|
|
||||||
|
|
|
@ -33,6 +33,9 @@ import org.eclipse.swt.widgets.Text;
|
||||||
* SCD per project profile property/preference page
|
* SCD per project profile property/preference page
|
||||||
*
|
*
|
||||||
* @author vhirsl
|
* @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 {
|
public class MBSPerProjectSCDProfilePage extends AbstractDiscoveryPage {
|
||||||
private static final String providerId = "specsFile"; //$NON-NLS-1$
|
private static final String providerId = "specsFile"; //$NON-NLS-1$
|
||||||
|
|
|
@ -43,6 +43,10 @@ import org.eclipse.swt.widgets.Listener;
|
||||||
import org.eclipse.swt.widgets.Shell;
|
import org.eclipse.swt.widgets.Shell;
|
||||||
import org.eclipse.swt.widgets.Text;
|
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 {
|
public class MakeTargetDialog extends Dialog {
|
||||||
|
|
||||||
private MessageLine fStatusLine;
|
private MessageLine fStatusLine;
|
||||||
|
|
|
@ -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
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* 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.swt.widgets.Text;
|
||||||
import org.eclipse.ui.dialogs.ContainerSelectionDialog;
|
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 {
|
public class SettingsBlock extends AbstractCOptionPage {
|
||||||
|
|
||||||
private static final String PREFIX = "SettingsBlock"; //$NON-NLS-1$
|
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 = ControlFactory.createCheckBox(group, MakeUIPlugin.getResourceString(MAKE_CMD_USE_DEFAULT));
|
||||||
defButton.addSelectionListener(new SelectionAdapter() {
|
defButton.addSelectionListener(new SelectionAdapter() {
|
||||||
|
|
||||||
|
@Override
|
||||||
public void widgetSelected(SelectionEvent e) {
|
public void widgetSelected(SelectionEvent e) {
|
||||||
if (defButton.getSelection() == true) {
|
if (defButton.getSelection() == true) {
|
||||||
buildCommand.setEnabled(false);
|
buildCommand.setEnabled(false);
|
||||||
|
@ -186,6 +191,7 @@ public class SettingsBlock extends AbstractCOptionPage {
|
||||||
protected void createWorkBenchBuildControls(Composite parent) {
|
protected void createWorkBenchBuildControls(Composite parent) {
|
||||||
SelectionAdapter selectionAdapter = new SelectionAdapter() {
|
SelectionAdapter selectionAdapter = new SelectionAdapter() {
|
||||||
|
|
||||||
|
@Override
|
||||||
public void widgetSelected(SelectionEvent e) {
|
public void widgetSelected(SelectionEvent e) {
|
||||||
targetAuto.setEnabled(autoButton.getSelection());
|
targetAuto.setEnabled(autoButton.getSelection());
|
||||||
autoVariableButton.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)
|
* @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent)
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void widgetSelected(SelectionEvent arg0) {
|
public void widgetSelected(SelectionEvent arg0) {
|
||||||
handleVariablesButtonSelected(control);
|
handleVariablesButtonSelected(control);
|
||||||
}
|
}
|
||||||
|
@ -310,6 +317,7 @@ public class SettingsBlock extends AbstractCOptionPage {
|
||||||
ControlAccessibleListener(String name) {
|
ControlAccessibleListener(String name) {
|
||||||
controlName = name;
|
controlName = name;
|
||||||
}
|
}
|
||||||
|
@Override
|
||||||
public void getName(AccessibleEvent e) {
|
public void getName(AccessibleEvent e) {
|
||||||
e.result = controlName;
|
e.result = controlName;
|
||||||
}
|
}
|
||||||
|
@ -349,6 +357,7 @@ public class SettingsBlock extends AbstractCOptionPage {
|
||||||
browseWorkspace.setText(MakeUIPlugin.getResourceString(MAKE_BUILD_DIR_BROWSE_WORKSPACE));
|
browseWorkspace.setText(MakeUIPlugin.getResourceString(MAKE_BUILD_DIR_BROWSE_WORKSPACE));
|
||||||
browseWorkspace.addSelectionListener(new SelectionAdapter() {
|
browseWorkspace.addSelectionListener(new SelectionAdapter() {
|
||||||
|
|
||||||
|
@Override
|
||||||
public void widgetSelected(SelectionEvent e) {
|
public void widgetSelected(SelectionEvent e) {
|
||||||
ContainerSelectionDialog dialog = new ContainerSelectionDialog(getShell(), getContainer().getProject(), true,
|
ContainerSelectionDialog dialog = new ContainerSelectionDialog(getShell(), getContainer().getProject(), true,
|
||||||
MakeUIPlugin.getResourceString("SettingsBlock.title.selectLocationToBuildFrom")); //$NON-NLS-1$
|
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.setText(MakeUIPlugin.getResourceString(MAKE_BUILD_DIR_BROWSE_FILESYSTEM));
|
||||||
browseFilesystem.addSelectionListener(new SelectionAdapter() {
|
browseFilesystem.addSelectionListener(new SelectionAdapter() {
|
||||||
|
|
||||||
|
@Override
|
||||||
public void widgetSelected(SelectionEvent e) {
|
public void widgetSelected(SelectionEvent e) {
|
||||||
DirectoryDialog dialog = new DirectoryDialog(getShell(), SWT.NONE);
|
DirectoryDialog dialog = new DirectoryDialog(getShell(), SWT.NONE);
|
||||||
dialog.setText(MakeUIPlugin.getResourceString("SettingsBlock.title.selectLocationToBuildFrom")); //$NON-NLS-1$
|
dialog.setText(MakeUIPlugin.getResourceString("SettingsBlock.title.selectLocationToBuildFrom")); //$NON-NLS-1$
|
||||||
|
@ -402,6 +412,7 @@ public class SettingsBlock extends AbstractCOptionPage {
|
||||||
dialog.open();
|
dialog.open();
|
||||||
return dialog.getVariableExpression();
|
return dialog.getVariableExpression();
|
||||||
}
|
}
|
||||||
|
@Override
|
||||||
public void createControl(Composite parent) {
|
public void createControl(Composite parent) {
|
||||||
Composite composite = ControlFactory.createComposite(parent, 1);
|
Composite composite = ControlFactory.createComposite(parent, 1);
|
||||||
setControl(composite);
|
setControl(composite);
|
||||||
|
@ -423,6 +434,7 @@ public class SettingsBlock extends AbstractCOptionPage {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean isValid() {
|
public boolean isValid() {
|
||||||
if (defButton != null && defButton.getSelection() != true) {
|
if (defButton != null && defButton.getSelection() != true) {
|
||||||
String cmd = getBuildLine();
|
String cmd = getBuildLine();
|
||||||
|
@ -433,6 +445,7 @@ public class SettingsBlock extends AbstractCOptionPage {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void performApply(IProgressMonitor monitor) throws CoreException {
|
public void performApply(IProgressMonitor monitor) throws CoreException {
|
||||||
// Missing builder info
|
// Missing builder info
|
||||||
if (fBuildInfo == null) {
|
if (fBuildInfo == null) {
|
||||||
|
@ -503,6 +516,7 @@ public class SettingsBlock extends AbstractCOptionPage {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void performDefaults() {
|
public void performDefaults() {
|
||||||
// Missing builder info
|
// Missing builder info
|
||||||
if (fBuildInfo == null) {
|
if (fBuildInfo == null) {
|
||||||
|
@ -572,6 +586,7 @@ public class SettingsBlock extends AbstractCOptionPage {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void setContainer(ICOptionContainer container) {
|
public void setContainer(ICOptionContainer container) {
|
||||||
super.setContainer(container);
|
super.setContainer(container);
|
||||||
if (getContainer().getProject() != null) {
|
if (getContainer().getProject() != null) {
|
||||||
|
@ -584,6 +599,7 @@ public class SettingsBlock extends AbstractCOptionPage {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getErrorMessage() {
|
public String getErrorMessage() {
|
||||||
if (!useDefaultBuildCmd()) {
|
if (!useDefaultBuildCmd()) {
|
||||||
String cmd = getBuildLine();
|
String cmd = getBuildLine();
|
||||||
|
|
|
@ -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
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* 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.swt.widgets.Shell;
|
||||||
import org.eclipse.ui.actions.SelectionListenerAction;
|
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 {
|
public class AddTargetAction extends SelectionListenerAction {
|
||||||
private final Shell shell;
|
private final Shell shell;
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,10 @@ import org.eclipse.jface.viewers.IStructuredSelection;
|
||||||
import org.eclipse.swt.widgets.Shell;
|
import org.eclipse.swt.widgets.Shell;
|
||||||
import org.eclipse.ui.actions.SelectionListenerAction;
|
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 {
|
public class BuildTargetAction extends SelectionListenerAction {
|
||||||
private final Shell shell;
|
private final Shell shell;
|
||||||
|
|
||||||
|
|
|
@ -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
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* 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
|
* {@link CopyTargetAction} and {@link PasteTargetAction} are able to transfer
|
||||||
* targets inside Make Target View or between eclipse sessions.
|
* 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 {
|
public class CopyTargetAction extends SelectionListenerAction {
|
||||||
|
|
||||||
|
|
|
@ -29,6 +29,10 @@ import org.eclipse.ui.actions.SelectionListenerAction;
|
||||||
|
|
||||||
import com.ibm.icu.text.MessageFormat;
|
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 {
|
public class DeleteTargetAction extends SelectionListenerAction {
|
||||||
private final Shell shell;
|
private final Shell shell;
|
||||||
|
|
||||||
|
|
|
@ -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
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* 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.swt.widgets.Shell;
|
||||||
import org.eclipse.ui.actions.SelectionListenerAction;
|
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 {
|
public class EditTargetAction extends SelectionListenerAction {
|
||||||
private final Shell shell;
|
private final Shell shell;
|
||||||
|
|
||||||
|
|
|
@ -75,6 +75,10 @@ import org.eclipse.ui.keys.IBindingService;
|
||||||
import org.eclipse.ui.part.DrillDownAdapter;
|
import org.eclipse.ui.part.DrillDownAdapter;
|
||||||
import org.eclipse.ui.part.ViewPart;
|
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 {
|
public class MakeView extends ViewPart {
|
||||||
|
|
||||||
private static final String TARGET_BUILD_LAST_COMMAND = "org.eclipse.cdt.make.ui.targetBuildLastCommand"; //$NON-NLS-1$
|
private static final String TARGET_BUILD_LAST_COMMAND = "org.eclipse.cdt.make.ui.targetBuildLastCommand"; //$NON-NLS-1$
|
||||||
|
|
|
@ -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
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* 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
|
* {@link CopyTargetAction} and {@link PasteTargetAction} are able to transfer
|
||||||
* targets inside Make Target View or between eclipse sessions.
|
* 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 {
|
public class PasteTargetAction extends SelectionListenerAction {
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,9 @@ import org.eclipse.ui.actions.SelectionListenerAction;
|
||||||
* Rebuild last target of selected resource or project.
|
* Rebuild last target of selected resource or project.
|
||||||
*
|
*
|
||||||
* @since 7.0
|
* @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 {
|
public class RebuildLastTargetAction extends SelectionListenerAction {
|
||||||
|
|
||||||
|
|
|
@ -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
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* 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.CoreException;
|
||||||
import org.eclipse.core.runtime.IProgressMonitor;
|
import org.eclipse.core.runtime.IProgressMonitor;
|
||||||
import org.eclipse.core.runtime.SubProgressMonitor;
|
import org.eclipse.core.runtime.SubProgressMonitor;
|
||||||
|
import org.eclipse.jface.wizard.Wizard;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This wizard provides a method by which the user can
|
* 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.
|
* 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 {
|
public class ConvertToMakeProjectWizard extends ConversionWizard {
|
||||||
|
|
||||||
|
@ -87,16 +91,19 @@ public class ConvertToMakeProjectWizard extends ConversionWizard {
|
||||||
/**
|
/**
|
||||||
* Method addPages adds our Simple to C conversion Wizard page.
|
* Method addPages adds our Simple to C conversion Wizard page.
|
||||||
*
|
*
|
||||||
* @see Wizard#createPages
|
* @see Wizard#addPages
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void addPages() {
|
public void addPages() {
|
||||||
addPage(mainPage = new ConvertToMakeProjectWizardPage(getPrefix()));
|
addPage(mainPage = new ConvertToMakeProjectWizardPage(getPrefix()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getProjectID() {
|
public String getProjectID() {
|
||||||
return MakeCorePlugin.MAKE_PROJECT_ID;
|
return MakeCorePlugin.MAKE_PROJECT_ID;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected void doRun(IProgressMonitor monitor) throws CoreException {
|
protected void doRun(IProgressMonitor monitor) throws CoreException {
|
||||||
monitor.beginTask(MakeUIPlugin.getResourceString("WizardMakeProjectConversion.monitor.convertingToMakeProject"), 2); //$NON-NLS-1$
|
monitor.beginTask(MakeUIPlugin.getResourceString("WizardMakeProjectConversion.monitor.convertingToMakeProject"), 2); //$NON-NLS-1$
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -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
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* 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.");
|
* mainPage.setDescription("Add C or C++ a Nature to a project.");
|
||||||
* </pre>
|
* </pre>
|
||||||
* </p>
|
* </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 {
|
public class ConvertToMakeProjectWizardPage extends ConvertProjectWizardPage {
|
||||||
|
|
||||||
|
@ -58,7 +61,8 @@ public class ConvertToMakeProjectWizardPage extends ConvertProjectWizardPage {
|
||||||
* Method getWzTitleResource returns the correct Title Label for this class
|
* Method getWzTitleResource returns the correct Title Label for this class
|
||||||
* overriding the default in the superclass.
|
* overriding the default in the superclass.
|
||||||
*/
|
*/
|
||||||
protected String getWzTitleResource(){
|
@Override
|
||||||
|
protected String getWzTitleResource(){
|
||||||
return MakeUIPlugin.getResourceString(WZ_TITLE);
|
return MakeUIPlugin.getResourceString(WZ_TITLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -66,7 +70,8 @@ public class ConvertToMakeProjectWizardPage extends ConvertProjectWizardPage {
|
||||||
* Method getWzDescriptionResource returns the correct description
|
* Method getWzDescriptionResource returns the correct description
|
||||||
* Label for this class overriding the default in the superclass.
|
* Label for this class overriding the default in the superclass.
|
||||||
*/
|
*/
|
||||||
protected String getWzDescriptionResource(){
|
@Override
|
||||||
|
protected String getWzDescriptionResource(){
|
||||||
return MakeUIPlugin.getResourceString(WZ_DESC);
|
return MakeUIPlugin.getResourceString(WZ_DESC);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -76,10 +81,12 @@ public class ConvertToMakeProjectWizardPage extends ConvertProjectWizardPage {
|
||||||
* @param project
|
* @param project
|
||||||
* @return boolean
|
* @return boolean
|
||||||
*/
|
*/
|
||||||
public boolean isCandidate(IProject project) {
|
@Override
|
||||||
|
public boolean isCandidate(IProject project) {
|
||||||
return true; // all
|
return true; // all
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void convertProject(IProject project, IProgressMonitor monitor, String projectID) throws CoreException {
|
public void convertProject(IProject project, IProgressMonitor monitor, String projectID) throws CoreException {
|
||||||
monitor.beginTask(MakeUIPlugin.getResourceString("WizardMakeProjectConversion.monitor.convertingToMakeProject"), 3); //$NON-NLS-1$
|
monitor.beginTask(MakeUIPlugin.getResourceString("WizardMakeProjectConversion.monitor.convertingToMakeProject"), 3); //$NON-NLS-1$
|
||||||
try {
|
try {
|
||||||
|
@ -93,6 +100,7 @@ public class ConvertToMakeProjectWizardPage extends ConvertProjectWizardPage {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void createControl(Composite parent) {
|
public void createControl(Composite parent) {
|
||||||
super.createControl(parent);
|
super.createControl(parent);
|
||||||
IStructuredSelection sel = ((BasicNewResourceWizard)getWizard()).getSelection();
|
IStructuredSelection sel = ((BasicNewResourceWizard)getWizard()).getSelection();
|
||||||
|
|
|
@ -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
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* 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.");
|
* mainPage.setDescription("Create a new project resource.");
|
||||||
* </pre>
|
* </pre>
|
||||||
* </p>
|
* </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 {
|
public class MakeProjectWizardOptionPage extends NewCProjectWizardOptionPage {
|
||||||
MakeWizardOptionBlock makeWizardBlock;
|
MakeWizardOptionBlock makeWizardBlock;
|
||||||
|
@ -53,6 +56,7 @@ public class MakeProjectWizardOptionPage extends NewCProjectWizardOptionPage {
|
||||||
super(parent);
|
super(parent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected void addTabs() {
|
protected void addTabs() {
|
||||||
addTab(new ReferenceBlock());
|
addTab(new ReferenceBlock());
|
||||||
super.addTabs();
|
super.addTabs();
|
||||||
|
@ -86,10 +90,12 @@ public class MakeProjectWizardOptionPage extends NewCProjectWizardOptionPage {
|
||||||
setDescription(description);
|
setDescription(description);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected TabFolderOptionBlock createOptionBlock() {
|
protected TabFolderOptionBlock createOptionBlock() {
|
||||||
return (makeWizardBlock = new MakeWizardOptionBlock(this));
|
return (makeWizardBlock = new MakeWizardOptionBlock(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public IProject getProject() {
|
public IProject getProject() {
|
||||||
return ((NewCProjectWizard)getWizard()).getNewProject();
|
return ((NewCProjectWizard)getWizard()).getNewProject();
|
||||||
}
|
}
|
||||||
|
@ -97,6 +103,7 @@ public class MakeProjectWizardOptionPage extends NewCProjectWizardOptionPage {
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.cdt.ui.dialogs.ICOptionContainer#getPreference()
|
* @see org.eclipse.cdt.ui.dialogs.ICOptionContainer#getPreference()
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public Preferences getPreferences() {
|
public Preferences getPreferences() {
|
||||||
return MakeCorePlugin.getDefault().getPluginPreferences();
|
return MakeCorePlugin.getDefault().getPluginPreferences();
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* which accompanies this distribution, and is available at
|
||||||
|
@ -19,6 +19,8 @@ import org.eclipse.core.runtime.NullProgressMonitor;
|
||||||
import org.eclipse.core.runtime.SubProgressMonitor;
|
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 {
|
public class NewMakeCCProjectWizard extends NewMakeProjectWizard {
|
||||||
|
|
||||||
|
@ -32,6 +34,7 @@ public class NewMakeCCProjectWizard extends NewMakeProjectWizard {
|
||||||
super(MakeUIPlugin.getResourceString(WZ_TITLE), MakeUIPlugin.getResourceString(WZ_DESC));
|
super(MakeUIPlugin.getResourceString(WZ_TITLE), MakeUIPlugin.getResourceString(WZ_DESC));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void addPages() {
|
public void addPages() {
|
||||||
super.addPages();
|
super.addPages();
|
||||||
addPage(
|
addPage(
|
||||||
|
@ -41,6 +44,7 @@ public class NewMakeCCProjectWizard extends NewMakeProjectWizard {
|
||||||
MakeUIPlugin.getResourceString(WZ_SETTINGS_DESC)));
|
MakeUIPlugin.getResourceString(WZ_SETTINGS_DESC)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected void doRun(IProgressMonitor monitor) throws CoreException {
|
protected void doRun(IProgressMonitor monitor) throws CoreException {
|
||||||
if (monitor == null) {
|
if (monitor == null) {
|
||||||
monitor = new NullProgressMonitor();
|
monitor = new NullProgressMonitor();
|
||||||
|
|
|
@ -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
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* 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;
|
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 {
|
public class NewMakeCProjectWizard extends NewMakeProjectWizard {
|
||||||
|
|
||||||
|
@ -31,6 +33,7 @@ public class NewMakeCProjectWizard extends NewMakeProjectWizard {
|
||||||
super(title, desc);
|
super(title, desc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void addPages() {
|
public void addPages() {
|
||||||
super.addPages();
|
super.addPages();
|
||||||
addPage(
|
addPage(
|
||||||
|
|
|
@ -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
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* 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.jface.wizard.IWizardPage;
|
||||||
import org.eclipse.swt.widgets.Composite;
|
import org.eclipse.swt.widgets.Composite;
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
public abstract class NewMakeProjectWizard extends NewCProjectWizard {
|
public abstract class NewMakeProjectWizard extends NewCProjectWizard {
|
||||||
|
|
||||||
protected MakeProjectWizardOptionPage fOptionPage;
|
protected MakeProjectWizardOptionPage fOptionPage;
|
||||||
|
@ -34,12 +32,15 @@ public abstract class NewMakeProjectWizard extends NewCProjectWizard {
|
||||||
super(title, desc);
|
super(title, desc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected void doRunPrologue(IProgressMonitor monitor) {
|
protected void doRunPrologue(IProgressMonitor monitor) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected void doRunEpilogue(IProgressMonitor monitor) {
|
protected void doRunEpilogue(IProgressMonitor monitor) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected void doRun(IProgressMonitor monitor) throws CoreException {
|
protected void doRun(IProgressMonitor monitor) throws CoreException {
|
||||||
if (monitor == null) {
|
if (monitor == null) {
|
||||||
monitor = new NullProgressMonitor();
|
monitor = new NullProgressMonitor();
|
||||||
|
@ -59,10 +60,12 @@ public abstract class NewMakeProjectWizard extends NewCProjectWizard {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getProjectID() {
|
public String getProjectID() {
|
||||||
return MakeCorePlugin.MAKE_PROJECT_ID;
|
return MakeCorePlugin.MAKE_PROJECT_ID;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void createPageControls(Composite pageContainer) {
|
public void createPageControls(Composite pageContainer) {
|
||||||
super.createPageControls( pageContainer );
|
super.createPageControls( pageContainer );
|
||||||
|
|
||||||
|
|
|
@ -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
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* 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.core.resources.IProject;
|
||||||
import org.eclipse.jface.wizard.Wizard;
|
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 {
|
public class UpdateMakeProjectWizard extends Wizard {
|
||||||
private static final String MAKE_UPDATE_WINDOW_TITLE = "MakeWizardUpdate.window_title"; //$NON-NLS-1$
|
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;
|
this.selected = selected;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean performFinish() {
|
public boolean performFinish() {
|
||||||
Object[] finalSelected = page1.getSelected();
|
Object[] finalSelected = page1.getSelected();
|
||||||
|
|
||||||
|
@ -37,6 +42,7 @@ public class UpdateMakeProjectWizard extends Wizard {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void addPages() {
|
public void addPages() {
|
||||||
page1 = new UpdateMakeProjectWizardPage(selected);
|
page1 = new UpdateMakeProjectWizardPage(selected);
|
||||||
addPage(page1);
|
addPage(page1);
|
||||||
|
|
|
@ -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
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* 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.swt.widgets.Composite;
|
||||||
import org.eclipse.ui.model.WorkbenchLabelProvider;
|
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 {
|
public class UpdateMakeProjectWizardPage extends StatusWizardPage {
|
||||||
|
|
||||||
private static final String MAKE_UPDATE_TITLE = "MakeWizardUpdatePage.title"; //$NON-NLS-1$
|
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) {
|
public TablePart(String mainLabel) {
|
||||||
super(mainLabel);
|
super(mainLabel);
|
||||||
}
|
}
|
||||||
|
@Override
|
||||||
public void updateCounter(int count) {
|
public void updateCounter(int count) {
|
||||||
super.updateCounter(count);
|
super.updateCounter(count);
|
||||||
dialogChanged();
|
dialogChanged();
|
||||||
}
|
}
|
||||||
|
@Override
|
||||||
protected StructuredViewer createStructuredViewer(Composite parent, int style) {
|
protected StructuredViewer createStructuredViewer(Composite parent, int style) {
|
||||||
StructuredViewer viewer = super.createStructuredViewer(parent, style);
|
StructuredViewer viewer = super.createStructuredViewer(parent, style);
|
||||||
return viewer;
|
return viewer;
|
||||||
|
@ -70,6 +76,7 @@ public class UpdateMakeProjectWizardPage extends StatusWizardPage {
|
||||||
tablePart = new TablePart(MakeUIPlugin.getResourceString("MakeWizardUpdatePage.projectList")); //$NON-NLS-1$
|
tablePart = new TablePart(MakeUIPlugin.getResourceString("MakeWizardUpdatePage.projectList")); //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void dispose() {
|
public void dispose() {
|
||||||
super.dispose();
|
super.dispose();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue