Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ public class ContentAssistHandler {
* @param contentAssistant a configured content assistant
* @return a new {@link ContentAssistHandler}
*/
@Deprecated
public static ContentAssistHandler createHandlerForCombo(Combo combo, SubjectControlContentAssistant contentAssistant) {
return new ContentAssistHandler(combo, new ComboContentAssistSubjectAdapter(combo), contentAssistant);
}
Expand All @@ -95,6 +96,7 @@ public static ContentAssistHandler createHandlerForCombo(Combo combo, SubjectCon
* @param contentAssistant a configured content assistant
* @return a new {@link ContentAssistHandler}
*/
@Deprecated
public static ContentAssistHandler createHandlerForText(Text text, SubjectControlContentAssistant contentAssistant) {
return new ContentAssistHandler(text, new TextContentAssistSubjectAdapter(text), contentAssistant);
}
Expand All @@ -120,6 +122,7 @@ private ContentAssistHandler(
/**
* @return <code>true</code> iff content assist is enabled
*/
@Deprecated
public boolean isEnabled() {
return fFocusListener != null;
}
Expand All @@ -131,6 +134,7 @@ public boolean isEnabled() {
*
* @param enable enable content assist iff true
*/
@Deprecated
public void setEnabled(boolean enable) {
if (enable == isEnabled()) {
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public class ConvertLineDelimitersAction extends TextEditorAction {
* @param editor the editor
* @param lineDelimiter the target line delimiter to convert the editor's document to
*/
@Deprecated
public ConvertLineDelimitersAction(ITextEditor editor, String lineDelimiter) {
this(EditorMessages.getBundleForConstructedKeys(), "dummy", editor, lineDelimiter); //$NON-NLS-1$
}
Expand All @@ -69,6 +70,7 @@ public ConvertLineDelimitersAction(ITextEditor editor, String lineDelimiter) {
* @param editor the editor
* @param lineDelimiter the target line delimiter to convert the editor's document to
*/
@Deprecated
public ConvertLineDelimitersAction(ResourceBundle bundle, String prefix, ITextEditor editor, String lineDelimiter) {
super(bundle, prefix, editor);
fLineDelimiter= lineDelimiter;
Expand All @@ -79,6 +81,7 @@ public ConvertLineDelimitersAction(ResourceBundle bundle, String prefix, ITextEd
update();
}

@Deprecated
@Override
public void run() {

Expand Down Expand Up @@ -276,6 +279,7 @@ private static String getString(String key) {
}
}

@Deprecated
@Override
public void update() {
super.update();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public class InfoForm {
* Creates a new info form.
* @param parent the parent composite
*/
@Deprecated
public InfoForm(Composite parent) {

Display display= parent.getDisplay();
Expand Down Expand Up @@ -113,13 +114,15 @@ public InfoForm(Composite parent) {
* Hook method for creating an appropriate action control.
* @param parent the action control's parent control
*/
@Deprecated
protected void createActionControls(Composite parent) {
}

/**
* Returns the control of this form.
* @return the root control of this form
*/
@Deprecated
public Control getControl() {
return fScrolledComposite;
}
Expand All @@ -128,6 +131,7 @@ public Control getControl() {
* Sets the header text of this info form.
* @param header the header text
*/
@Deprecated
public void setHeaderText(String header) {
fHeader.setText(header);
}
Expand All @@ -136,6 +140,7 @@ public void setHeaderText(String header) {
* Sets the banner text of this info form.
* @param banner the banner text
*/
@Deprecated
public void setBannerText(String banner) {
fBanner.setText(banner);
}
Expand All @@ -144,6 +149,7 @@ public void setBannerText(String banner) {
* Sets the info of this info form
* @param info the info text
*/
@Deprecated
public void setInfo(String info) {
fText.setText(info);
}
Expand All @@ -153,6 +159,7 @@ public void setInfo(String info) {
*
* @param event the property change event object describing which property changed and how
*/
@Deprecated
protected void handlePropertyChange(PropertyChangeEvent event) {

if (fHeader != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,18 @@ public class SaveAction extends TextEditorAction {
* @param editor the text editor
* @see TextEditorAction#TextEditorAction(ResourceBundle, String, ITextEditor)
*/
@Deprecated
public SaveAction(ResourceBundle bundle, String prefix, ITextEditor editor) {
super(bundle, prefix, editor);
}

@Deprecated
@Override
public void run() {
getTextEditor().getSite().getPage().saveEditor(getTextEditor(), false);
}

@Deprecated
@Override
public void update() {
setEnabled(getTextEditor().isDirty());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ public class ValidateStateException extends CoreException {
/*
* @see CoreException#CoreException(org.eclipse.core.runtime.IStatus)
*/
public ValidateStateException(IStatus status) {
@Deprecated
public ValidateStateException(IStatus status) {
super(status);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public class WorkbenchChainedTextFontFieldEditor extends PropagatingFontFieldEdi
* @param labelText the text shown as editor description
* @param parent the editor's parent widget
*/
@Deprecated
public WorkbenchChainedTextFontFieldEditor(String name, String labelText, Composite parent) {
super(name, labelText, parent, EditorMessages.WorkbenchChainedTextFontFieldEditor_defaultWorkbenchTextFont);
}
Expand All @@ -63,6 +64,7 @@ public WorkbenchChainedTextFontFieldEditor(String name, String labelText, Compos
* @param target the target preference store
* @param targetKey the key to be used in the target preference store
*/
@Deprecated
public static void startPropagate(IPreferenceStore target, String targetKey) {
IPreferenceStore store= new ScopedPreferenceStore(InstanceScope.INSTANCE, "org.eclipse.ui.workbench"); //$NON-NLS-1$
PropagatingFontFieldEditor.startPropagate(store, JFaceResources.TEXT_FONT, target, targetKey);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -998,8 +998,9 @@ public void setSearchText(String s) {
}
@Override
public boolean select(Viewer viewer, Object parentElement, Object element) {
if (searchString.isEmpty())
if (searchString.isEmpty()) {
return true;
}
Template template = ((TemplatePersistenceData) element).getTemplate();
return template.getName().toLowerCase().contains(searchString)
|| template.getContextTypeId().toLowerCase().contains(searchString)
Expand Down
Loading