mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-04 15:45:25 +02:00
[180562] [api] Classes should not implement interfaces just to bring constants into namespace. Do not implement IHostSearchConstants.
This commit is contained in:
parent
256766d3ad
commit
4f31956e59
5 changed files with 11 additions and 8 deletions
|
@ -55,7 +55,7 @@ public abstract class AbstractSearchResultConfiguration implements IHostSearchRe
|
|||
setParentResultSet(resultSet);
|
||||
setSearchTarget(searchObject);
|
||||
setSearchString(string);
|
||||
setStatus(RUNNING);
|
||||
setStatus(IHostSearchConstants.RUNNING);
|
||||
_searchService = searchService;
|
||||
_containedResults = new HashMap();
|
||||
}
|
||||
|
@ -184,7 +184,7 @@ public abstract class AbstractSearchResultConfiguration implements IHostSearchRe
|
|||
public void cancel() {
|
||||
|
||||
// if not running, return
|
||||
if (getStatus() != RUNNING) {
|
||||
if (getStatus() != IHostSearchConstants.RUNNING) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ import org.eclipse.rse.services.clientserver.SystemSearchString;
|
|||
/**
|
||||
* An interface representing a search result configuration.
|
||||
*/
|
||||
public interface IHostSearchResultConfiguration extends IHostSearchConstants {
|
||||
public interface IHostSearchResultConfiguration {
|
||||
|
||||
/**
|
||||
* Sets the parent result set.
|
||||
|
|
|
@ -21,6 +21,7 @@ import java.util.Map;
|
|||
import java.util.Vector;
|
||||
|
||||
import org.eclipse.rse.services.clientserver.SystemSearchString;
|
||||
import org.eclipse.rse.services.search.IHostSearchConstants;
|
||||
import org.eclipse.rse.services.search.IHostSearchResult;
|
||||
import org.eclipse.rse.services.search.IHostSearchResultConfiguration;
|
||||
import org.eclipse.rse.services.search.IHostSearchResultSet;
|
||||
|
@ -48,14 +49,14 @@ public class RemoteSearchResultConfiguration implements IHostSearchResultConfigu
|
|||
* Constructor for a result set configuration. Sets status to <code>RUNNING</code>.
|
||||
* @param resultSet the parent result set.
|
||||
* @param searchObject the target of the search.
|
||||
* @param searchString the search string.
|
||||
* @param string the search string.
|
||||
*/
|
||||
public RemoteSearchResultConfiguration(IHostSearchResultSet resultSet, Object searchObject, SystemSearchString string) {
|
||||
results = new Vector();
|
||||
setParentResultSet(resultSet);
|
||||
setSearchTarget(searchObject);
|
||||
setSearchString(string);
|
||||
setStatus(RUNNING);
|
||||
setStatus(IHostSearchConstants.RUNNING);
|
||||
_containedResults = new HashMap();
|
||||
}
|
||||
|
||||
|
@ -170,7 +171,7 @@ public class RemoteSearchResultConfiguration implements IHostSearchResultConfigu
|
|||
public void cancel() {
|
||||
|
||||
// if not running, return
|
||||
if (getStatus() != RUNNING) {
|
||||
if (getStatus() != IHostSearchConstants.RUNNING) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -24,6 +24,7 @@ import org.eclipse.dstore.extra.DomainEvent;
|
|||
import org.eclipse.rse.core.subsystems.RemoteChildrenContentsType;
|
||||
import org.eclipse.rse.internal.services.dstore.search.DStoreSearchResultConfiguration;
|
||||
import org.eclipse.rse.services.clientserver.SystemSearchString;
|
||||
import org.eclipse.rse.services.search.IHostSearchConstants;
|
||||
import org.eclipse.rse.services.search.IHostSearchResult;
|
||||
import org.eclipse.rse.services.search.IHostSearchResultSet;
|
||||
import org.eclipse.rse.services.search.ISearchService;
|
||||
|
@ -131,7 +132,7 @@ public class DStoreFileSubSystemSearchResultConfiguration extends DStoreSearchRe
|
|||
{
|
||||
if (_status.getValue().equals("done")) //$NON-NLS-1$
|
||||
{
|
||||
setStatus(FINISHED);
|
||||
setStatus(IHostSearchConstants.FINISHED);
|
||||
|
||||
_status.getDataStore().getDomainNotifier().removeDomainListener(this);
|
||||
}
|
||||
|
|
|
@ -20,6 +20,7 @@ package org.eclipse.rse.internal.subsystems.files.local;
|
|||
import org.eclipse.rse.services.clientserver.SystemSearchString;
|
||||
import org.eclipse.rse.services.files.IHostFile;
|
||||
import org.eclipse.rse.services.search.AbstractSearchResultConfiguration;
|
||||
import org.eclipse.rse.services.search.IHostSearchConstants;
|
||||
import org.eclipse.rse.services.search.IHostSearchResult;
|
||||
import org.eclipse.rse.services.search.IHostSearchResultSet;
|
||||
import org.eclipse.rse.services.search.ISearchService;
|
||||
|
@ -91,7 +92,7 @@ public class LocalSearchResultConfiguration extends AbstractSearchResultConfigur
|
|||
public void cancel() {
|
||||
|
||||
// if not running, call super
|
||||
if (getStatus() != RUNNING) {
|
||||
if (getStatus() != IHostSearchConstants.RUNNING) {
|
||||
super.cancel();
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue