mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Remove most to the warnings.
This commit is contained in:
parent
2eb2ae36d9
commit
3e04941539
11 changed files with 21 additions and 20 deletions
|
@ -57,7 +57,7 @@ public class CPathContainerDefaultPage extends NewElementWizardPage implements I
|
||||||
validatePath();
|
validatePath();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void validatePath() {
|
protected void validatePath() {
|
||||||
StatusInfo status= new StatusInfo();
|
StatusInfo status= new StatusInfo();
|
||||||
String str= fEntryField.getText();
|
String str= fEntryField.getText();
|
||||||
if (str.length() == 0) {
|
if (str.length() == 0) {
|
||||||
|
|
|
@ -17,6 +17,7 @@ import org.eclipse.cdt.core.model.IContainerEntry;
|
||||||
import org.eclipse.cdt.core.model.IPathEntry;
|
import org.eclipse.cdt.core.model.IPathEntry;
|
||||||
import org.eclipse.cdt.internal.ui.util.CoreUtility;
|
import org.eclipse.cdt.internal.ui.util.CoreUtility;
|
||||||
import org.eclipse.cdt.ui.CUIPlugin;
|
import org.eclipse.cdt.ui.CUIPlugin;
|
||||||
|
import org.eclipse.cdt.ui.wizards.ICPathContainerPage;
|
||||||
import org.eclipse.cdt.ui.wizards.IPathEntryContainerPage;
|
import org.eclipse.cdt.ui.wizards.IPathEntryContainerPage;
|
||||||
import org.eclipse.core.runtime.CoreException;
|
import org.eclipse.core.runtime.CoreException;
|
||||||
import org.eclipse.core.runtime.IConfigurationElement;
|
import org.eclipse.core.runtime.IConfigurationElement;
|
||||||
|
@ -43,11 +44,11 @@ public class CPathContainerDescriptor implements IContainerDescriptor {
|
||||||
* @deprecated
|
* @deprecated
|
||||||
*/
|
*/
|
||||||
public class PathEntryContainerPageAdapter implements IWizardPage, IPathEntryContainerPage {
|
public class PathEntryContainerPageAdapter implements IWizardPage, IPathEntryContainerPage {
|
||||||
private final org.eclipse.cdt.ui.wizards.ICPathContainerPage fPage;
|
private final ICPathContainerPage fPage;
|
||||||
/**
|
/**
|
||||||
* @param pageName
|
* @param pageName
|
||||||
*/
|
*/
|
||||||
protected PathEntryContainerPageAdapter(org.eclipse.cdt.ui.wizards.ICPathContainerPage page) {
|
protected PathEntryContainerPageAdapter(ICPathContainerPage page) {
|
||||||
fPage = page;
|
fPage = page;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -264,8 +265,8 @@ public class CPathContainerDescriptor implements IContainerDescriptor {
|
||||||
Object elem = CoreUtility.createExtension(fConfigElement, ATT_PAGE_CLASS);
|
Object elem = CoreUtility.createExtension(fConfigElement, ATT_PAGE_CLASS);
|
||||||
if (elem instanceof IPathEntryContainerPage) {
|
if (elem instanceof IPathEntryContainerPage) {
|
||||||
return (IPathEntryContainerPage) elem;
|
return (IPathEntryContainerPage) elem;
|
||||||
} else if (elem instanceof org.eclipse.cdt.ui.wizards.ICPathContainerPage) {
|
} else if (elem instanceof ICPathContainerPage) {
|
||||||
return new PathEntryContainerPageAdapter((org.eclipse.cdt.ui.wizards.ICPathContainerPage)elem);
|
return new PathEntryContainerPageAdapter((ICPathContainerPage)elem);
|
||||||
}
|
}
|
||||||
String id = fConfigElement.getAttribute(ATT_ID);
|
String id = fConfigElement.getAttribute(ATT_ID);
|
||||||
throw new CoreException(new Status(IStatus.ERROR, CUIPlugin.PLUGIN_ID, 0,
|
throw new CoreException(new Status(IStatus.ERROR, CUIPlugin.PLUGIN_ID, 0,
|
||||||
|
|
|
@ -178,7 +178,7 @@ public class CPathContainerEntryPage extends CPathBasePage {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void containerPageCustomButtonPressed(DialogField field, int index) {
|
void containerPageCustomButtonPressed(DialogField field, int index) {
|
||||||
CPElement[] containers = null;
|
CPElement[] containers = null;
|
||||||
switch (index) {
|
switch (index) {
|
||||||
case IDX_ADD :
|
case IDX_ADD :
|
||||||
|
@ -343,7 +343,7 @@ public class CPathContainerEntryPage extends CPathBasePage {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void containerPageSelectionChanged(DialogField field) {
|
void containerPageSelectionChanged(DialogField field) {
|
||||||
List selElements = fContainersList.getSelectedElements();
|
List selElements = fContainersList.getSelectedElements();
|
||||||
fContainersList.enableButton(IDX_EDIT, canEdit(selElements));
|
fContainersList.enableButton(IDX_EDIT, canEdit(selElements));
|
||||||
fContainersList.enableButton(IDX_REMOVE, canRemove(selElements));
|
fContainersList.enableButton(IDX_REMOVE, canRemove(selElements));
|
||||||
|
@ -365,7 +365,7 @@ public class CPathContainerEntryPage extends CPathBasePage {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void containerPageDialogFieldChanged(DialogField field) {
|
void containerPageDialogFieldChanged(DialogField field) {
|
||||||
if (fCurrCProject != null) {
|
if (fCurrCProject != null) {
|
||||||
// already initialized
|
// already initialized
|
||||||
updateCPathList();
|
updateCPathList();
|
||||||
|
|
|
@ -115,7 +115,7 @@ public class CPathContainerSelectionPage extends WizardPage {
|
||||||
/**
|
/**
|
||||||
* Method validatePage.
|
* Method validatePage.
|
||||||
*/
|
*/
|
||||||
private void validatePage() {
|
void validatePage() {
|
||||||
setPageComplete(getSelected() != null);
|
setPageComplete(getSelected() != null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -126,7 +126,7 @@ public class CPathFilterPage extends WizardPage {
|
||||||
/**
|
/**
|
||||||
* Method validatePage.
|
* Method validatePage.
|
||||||
*/
|
*/
|
||||||
private void validatePage() {
|
void validatePage() {
|
||||||
setPageComplete(getSelectedEntries().length > 0);
|
setPageComplete(getSelectedEntries().length > 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -220,7 +220,7 @@ public class CPathLibraryEntryPage extends CPathBasePage {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void libraryPageCustomButtonPressed(DialogField field, int index) {
|
protected void libraryPageCustomButtonPressed(DialogField field, int index) {
|
||||||
CPElement[] libentries= null;
|
CPElement[] libentries= null;
|
||||||
switch (index) {
|
switch (index) {
|
||||||
case IDX_ADD_LIB: /* add jar */
|
case IDX_ADD_LIB: /* add jar */
|
||||||
|
@ -404,7 +404,7 @@ public class CPathLibraryEntryPage extends CPathBasePage {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void libraryPageSelectionChanged(DialogField field) {
|
protected void libraryPageSelectionChanged(DialogField field) {
|
||||||
List selElements= fLibrariesList.getSelectedElements();
|
List selElements= fLibrariesList.getSelectedElements();
|
||||||
fLibrariesList.enableButton(IDX_EDIT, canEdit(selElements));
|
fLibrariesList.enableButton(IDX_EDIT, canEdit(selElements));
|
||||||
fLibrariesList.enableButton(IDX_REMOVE, canRemove(selElements));
|
fLibrariesList.enableButton(IDX_REMOVE, canRemove(selElements));
|
||||||
|
|
|
@ -373,7 +373,7 @@ public class CPathOutputEntryPage extends CPathBasePage {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void outputPageDialogFieldChanged(DialogField field) {
|
protected void outputPageDialogFieldChanged(DialogField field) {
|
||||||
if (fCurrCProject == null) {
|
if (fCurrCProject == null) {
|
||||||
// not initialized
|
// not initialized
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -162,7 +162,7 @@ public class IncludesSymbolsPropertyPage extends PropertyPage implements IStatus
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
private ICElement getCElement() {
|
protected ICElement getCElement() {
|
||||||
IAdaptable adaptable = getElement();
|
IAdaptable adaptable = getElement();
|
||||||
if (adaptable != null) {
|
if (adaptable != null) {
|
||||||
ICElement elem = (ICElement)adaptable.getAdapter(ICElement.class);
|
ICElement elem = (ICElement)adaptable.getAdapter(ICElement.class);
|
||||||
|
|
|
@ -47,7 +47,7 @@ import org.eclipse.ui.views.navigator.ResourceSorter;
|
||||||
*/
|
*/
|
||||||
public class MultipleFolderSelectionDialog extends SelectionStatusDialog implements ISelectionChangedListener {
|
public class MultipleFolderSelectionDialog extends SelectionStatusDialog implements ISelectionChangedListener {
|
||||||
|
|
||||||
private CheckboxTreeViewer fViewer;
|
CheckboxTreeViewer fViewer;
|
||||||
|
|
||||||
private ILabelProvider fLabelProvider;
|
private ILabelProvider fLabelProvider;
|
||||||
private ITreeContentProvider fContentProvider;
|
private ITreeContentProvider fContentProvider;
|
||||||
|
@ -56,7 +56,7 @@ public class MultipleFolderSelectionDialog extends SelectionStatusDialog impleme
|
||||||
private Object fInput;
|
private Object fInput;
|
||||||
private Button fNewFolderButton;
|
private Button fNewFolderButton;
|
||||||
private IContainer fSelectedContainer;
|
private IContainer fSelectedContainer;
|
||||||
private Set fExisting;
|
Set fExisting;
|
||||||
private Object fFocusElement;
|
private Object fFocusElement;
|
||||||
|
|
||||||
public MultipleFolderSelectionDialog(Shell parent, ILabelProvider labelProvider, ITreeContentProvider contentProvider) {
|
public MultipleFolderSelectionDialog(Shell parent, ILabelProvider labelProvider, ITreeContentProvider contentProvider) {
|
||||||
|
|
|
@ -40,7 +40,7 @@ public class ProjectContainerPage extends WizardPage implements IPathEntryContai
|
||||||
|
|
||||||
private int[] fFilterType;
|
private int[] fFilterType;
|
||||||
private TableViewer viewer;
|
private TableViewer viewer;
|
||||||
private ICProject fCProject;
|
ICProject fCProject;
|
||||||
|
|
||||||
protected ProjectContainerPage(int[] filterType) {
|
protected ProjectContainerPage(int[] filterType) {
|
||||||
super("projectContainerPage"); //$NON-NLS-1$
|
super("projectContainerPage"); //$NON-NLS-1$
|
||||||
|
@ -151,7 +151,7 @@ public class ProjectContainerPage extends WizardPage implements IPathEntryContai
|
||||||
/**
|
/**
|
||||||
* Method validatePage.
|
* Method validatePage.
|
||||||
*/
|
*/
|
||||||
private void validatePage() {
|
protected void validatePage() {
|
||||||
setPageComplete(getSelected() != null);
|
setPageComplete(getSelected() != null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -230,7 +230,7 @@ public class SourceAttachmentBlock {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void attachmentChangeControlPressed(DialogField field) {
|
void attachmentChangeControlPressed(DialogField field) {
|
||||||
if (field == fFileNameField) {
|
if (field == fFileNameField) {
|
||||||
IPath jarFilePath = chooseExtJarFile();
|
IPath jarFilePath = chooseExtJarFile();
|
||||||
if (jarFilePath != null) {
|
if (jarFilePath != null) {
|
||||||
|
@ -241,7 +241,7 @@ public class SourceAttachmentBlock {
|
||||||
|
|
||||||
// ---------- IDialogFieldListener --------
|
// ---------- IDialogFieldListener --------
|
||||||
|
|
||||||
private void attachmentDialogFieldChanged(DialogField field) {
|
void attachmentDialogFieldChanged(DialogField field) {
|
||||||
if (field == fFileNameField) {
|
if (field == fFileNameField) {
|
||||||
fNameStatus = updateFileNameStatus();
|
fNameStatus = updateFileNameStatus();
|
||||||
} else if (field == fWorkspaceButton) {
|
} else if (field == fWorkspaceButton) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue