mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-10 17:55:39 +02:00
[cleanup] fix compiler warnings
This commit is contained in:
parent
74abb85c2b
commit
2af9a8635d
3 changed files with 23 additions and 20 deletions
|
@ -53,7 +53,7 @@ public abstract class SystemBaseSubMenuAction
|
||||||
* @param label
|
* @param label
|
||||||
* @param tooltip
|
* @param tooltip
|
||||||
* @param image The image to display for this action
|
* @param image The image to display for this action
|
||||||
* @param shell The owning shell. If you pass null now, be sure to call setShell later
|
* @param shell the parent shell. If you pass <code>null</code> now, be sure to call {@link #setShell(Shell)} later.
|
||||||
*
|
*
|
||||||
* @deprecated use fields from resource class directly now instead of via ResourceBundle
|
* @deprecated use fields from resource class directly now instead of via ResourceBundle
|
||||||
*/
|
*/
|
||||||
|
@ -67,8 +67,8 @@ public abstract class SystemBaseSubMenuAction
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor for SystemBaseSubMenuAction when there is just a string
|
* Constructor for SystemBaseSubMenuAction when there is just a string
|
||||||
* @param label The label to display
|
* @param label the label to display.
|
||||||
* @param parent The owning shell. If you pass null now, be sure to call setShell later
|
* @param shell the parent shell. If you pass <code>null</code> now, be sure to call {@link #setShell(Shell)} later.
|
||||||
*/
|
*/
|
||||||
protected SystemBaseSubMenuAction(String label, Shell shell)
|
protected SystemBaseSubMenuAction(String label, Shell shell)
|
||||||
{
|
{
|
||||||
|
@ -78,9 +78,9 @@ public abstract class SystemBaseSubMenuAction
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Constructor for SystemBaseSubMenuAction when there is just a string
|
* Constructor for SystemBaseSubMenuAction when there is just a string
|
||||||
* @param label The label to display
|
* @param label the label to display.
|
||||||
* @param tooltip The tooltip to display
|
* @param tooltip the tooltip to display.
|
||||||
* @param parent The owning shell. If you pass null now, be sure to call setShell later
|
* @param shell the parent shell. If you pass <code>null</code> now, be sure to call {@link #setShell(Shell)} later.
|
||||||
*/
|
*/
|
||||||
protected SystemBaseSubMenuAction(String label, String tooltip, Shell shell)
|
protected SystemBaseSubMenuAction(String label, String tooltip, Shell shell)
|
||||||
{
|
{
|
||||||
|
@ -90,8 +90,9 @@ public abstract class SystemBaseSubMenuAction
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Constructor for SystemBaseSubMenuAction when there is just a string and image
|
* Constructor for SystemBaseSubMenuAction when there is just a string and image
|
||||||
* @param label The label to display
|
* @param label the label to display.
|
||||||
* @param parent The owning shell. If you pass null now, be sure to call setShell later
|
* @param image the image descriptor for the action.
|
||||||
|
* @param shell the parent shell. If you pass <code>null</code> now, be sure to call {@link #setShell(Shell)} later.
|
||||||
*/
|
*/
|
||||||
protected SystemBaseSubMenuAction(String label, ImageDescriptor image, Shell shell)
|
protected SystemBaseSubMenuAction(String label, ImageDescriptor image, Shell shell)
|
||||||
{
|
{
|
||||||
|
@ -102,9 +103,10 @@ public abstract class SystemBaseSubMenuAction
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor for SystemBaseSubMenuAction when there is just a string and image
|
* Constructor for SystemBaseSubMenuAction when there is just a string and image
|
||||||
* @param label The label to display
|
* @param label the label to display.
|
||||||
* @param tooltip the tooltip to display
|
* @param tooltip the tooltip to display.
|
||||||
* @param parent The owning shell. If you pass null now, be sure to call setShell later
|
* @param image the image descriptor for the action.
|
||||||
|
* @param shell the parent shell. If you pass <code>null</code> now, be sure to call {@link #setShell(Shell)} later.
|
||||||
*/
|
*/
|
||||||
protected SystemBaseSubMenuAction(String label, String tooltip, ImageDescriptor image, Shell shell)
|
protected SystemBaseSubMenuAction(String label, String tooltip, ImageDescriptor image, Shell shell)
|
||||||
{
|
{
|
||||||
|
|
|
@ -30,6 +30,7 @@ import org.eclipse.swt.widgets.Composite;
|
||||||
import org.eclipse.swt.widgets.Control;
|
import org.eclipse.swt.widgets.Control;
|
||||||
import org.eclipse.swt.widgets.Display;
|
import org.eclipse.swt.widgets.Display;
|
||||||
import org.eclipse.swt.widgets.Label;
|
import org.eclipse.swt.widgets.Label;
|
||||||
|
import org.eclipse.swt.widgets.Listener;
|
||||||
import org.eclipse.swt.widgets.Text;
|
import org.eclipse.swt.widgets.Text;
|
||||||
import org.eclipse.ui.dialogs.PropertyPage;
|
import org.eclipse.ui.dialogs.PropertyPage;
|
||||||
|
|
||||||
|
@ -132,7 +133,7 @@ public abstract class SystemBasePropertyPage extends PropertyPage
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* For setting the default overall help for the dialog.
|
* For setting the default overall help for the dialog.
|
||||||
* This can be overridden per control by calling {@link #setHelp(Control, String)}.
|
* This can be overridden per control by calling {@link SystemWidgetHelpers#setHelp(Control, String)}
|
||||||
*/
|
*/
|
||||||
public void setHelp(String helpId)
|
public void setHelp(String helpId)
|
||||||
{
|
{
|
||||||
|
@ -241,7 +242,7 @@ public abstract class SystemBasePropertyPage extends PropertyPage
|
||||||
* <p>
|
* <p>
|
||||||
* Subclasses should override to do full error checking on all the widgets on the page. Recommendation:<br>
|
* Subclasses should override to do full error checking on all the widgets on the page. Recommendation:<br>
|
||||||
* <ul>
|
* <ul>
|
||||||
* <li>If an error is detected, issue a {@link org.eclipse.rse.ui.messages.SystemMessage} via {@link #setErrorMessage(SystemMessage)} or text message via {@link #setErrorMessage(String)}.
|
* <li>If an error is detected, issue a {@link SystemMessage} via {@link #setErrorMessage(SystemMessage)} or text message via {@link #setErrorMessage(String)}.
|
||||||
* <li>If no errors detected, clear the message line via {@link #clearErrorMessage()}
|
* <li>If no errors detected, clear the message line via {@link #clearErrorMessage()}
|
||||||
* </ul>
|
* </ul>
|
||||||
*
|
*
|
||||||
|
@ -362,7 +363,7 @@ public abstract class SystemBasePropertyPage extends PropertyPage
|
||||||
/**
|
/**
|
||||||
* Create a labeled label, where the label on the right grabs excess space and has an indent so it
|
* Create a labeled label, where the label on the right grabs excess space and has an indent so it
|
||||||
* isn't smashed up against the prompt on the left.
|
* isn't smashed up against the prompt on the left.
|
||||||
* @see SystemWidgetHelpers#createLabeledLabel(Composite, ResourceBundle, String, boolean)
|
* @see SystemWidgetHelpers#createLabeledLabel(Composite, String, String, boolean)
|
||||||
* @see #grabExcessSpace(Control)
|
* @see #grabExcessSpace(Control)
|
||||||
*/
|
*/
|
||||||
protected Label createLabeledLabel(Composite c, String label, String tooltip)
|
protected Label createLabeledLabel(Composite c, String label, String tooltip)
|
||||||
|
@ -379,7 +380,7 @@ public abstract class SystemBasePropertyPage extends PropertyPage
|
||||||
/**
|
/**
|
||||||
* Create a labeled combo, where the combo on the right grabs excess space and has an indent so it
|
* Create a labeled combo, where the combo on the right grabs excess space and has an indent so it
|
||||||
* isn't smashed up against the prompt on the left.
|
* isn't smashed up against the prompt on the left.
|
||||||
* @see SystemWidgetHelpers#createLabeledCombo(Composite, Listener, ResourceBundle, String)
|
* @see SystemWidgetHelpers#createLabeledCombo(Composite, Listener, String, String)
|
||||||
* @see #grabExcessSpace(Control)
|
* @see #grabExcessSpace(Control)
|
||||||
*/
|
*/
|
||||||
protected Combo createLabeledCombo(Composite c, String label, String tooltip)
|
protected Combo createLabeledCombo(Composite c, String label, String tooltip)
|
||||||
|
@ -396,7 +397,7 @@ public abstract class SystemBasePropertyPage extends PropertyPage
|
||||||
/**
|
/**
|
||||||
* Create a labeled entry field, where the field on the right grabs excess space and has an indent so it
|
* Create a labeled entry field, where the field on the right grabs excess space and has an indent so it
|
||||||
* isn't smashed up against the prompt on the left.
|
* isn't smashed up against the prompt on the left.
|
||||||
* @see SystemWidgetHelpers#createLabeledTextField(Composite, Listener, ResourceBundle, String)
|
* @see SystemWidgetHelpers#createLabeledTextField(Composite, Listener, String, String)
|
||||||
* @see #grabExcessSpace(Control)
|
* @see #grabExcessSpace(Control)
|
||||||
*/
|
*/
|
||||||
protected Text createLabeledText(Composite c, String label, String tooltip)
|
protected Text createLabeledText(Composite c, String label, String tooltip)
|
||||||
|
@ -413,7 +414,7 @@ public abstract class SystemBasePropertyPage extends PropertyPage
|
||||||
/**
|
/**
|
||||||
* Create a labeled verbage field, where the field on the right grabs excess space and has an indent so it
|
* Create a labeled verbage field, where the field on the right grabs excess space and has an indent so it
|
||||||
* isn't smashed up against the prompt on the left.
|
* isn't smashed up against the prompt on the left.
|
||||||
* @see SystemWidgetHelpers#createLabeledTextField(Composite, Listener, ResourceBundle, String)
|
* @see SystemWidgetHelpers#createLabeledTextField(Composite, Listener, String, String)
|
||||||
* @see #grabExcessSpace(Control)
|
* @see #grabExcessSpace(Control)
|
||||||
*/
|
*/
|
||||||
protected Label createLabeledVerbage(Composite c, String label, String tooltip)
|
protected Label createLabeledVerbage(Composite c, String label, String tooltip)
|
||||||
|
|
|
@ -26,9 +26,9 @@ public interface ISystemViewDropDestination
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ask source adapter if it supports drop of its type on this target
|
* Asks source adapter whether it supports dropping it on the given target.
|
||||||
* @param resource (type) in question
|
* @param target the target to drop to.
|
||||||
* @return true if copy/move/drop is supported
|
* @return <code>true</code> if the drop destination is supported, <code>false</code> otherwise.
|
||||||
*/
|
*/
|
||||||
public boolean supportDropDestination(Object target);
|
public boolean supportDropDestination(Object target);
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue