CloneSet218


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
121320.997class_body_declarations[16]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
112150
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/StatusInfo.java
212159
plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/util/JUnitStatus.java
312152
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/StatusInfo.java
Clone Instance
1
Line Count
121
Source Line
50
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/StatusInfo.java

        /**
         *  Returns if the status' severity is OK.
         */
        public boolean isOK() {
                return fSeverity == IStatus.OK;
        }

        /**
         *  Returns if the status' severity is WARNING.
         */
        public boolean isWarning() {
                return fSeverity == IStatus.WARNING;
        }

        /**
         *  Returns if the status' severity is INFO.
         */
        public boolean isInfo() {
                return fSeverity == IStatus.INFO;
        }

        /**
         *  Returns if the status' severity is ERROR.
         */
        public boolean isError() {
                return fSeverity == IStatus.ERROR;
        }

        /**
         * @see IStatus#getMessage
         */
        public String getMessage() {
                return fStatusMessage;
        }

        /**
         * Sets the status to ERROR.
         * @param The error message (can be empty, but not null)
         */
        public void setError(String errorMessage) {
                Assert.isNotNull(errorMessage);
                fStatusMessage = errorMessage;
                fSeverity = IStatus.ERROR;
        }

        /**
         * Sets the status to WARNING.
         * @param The warning message (can be empty, but not null)
         */
        public void setWarning(String warningMessage) {
                Assert.isNotNull(warningMessage);
                fStatusMessage = warningMessage;
                fSeverity = IStatus.WARNING;
        }

        /**
         * Sets the status to INFO.
         * @param The info message (can be empty, but not null)
         */
        public void setInfo(String infoMessage) {
                Assert.isNotNull(infoMessage);
                fStatusMessage = infoMessage;
                fSeverity = IStatus.INFO;
        }

        /**
         * Sets the status to OK.
         */
        public void setOK() {
                fStatusMessage = null;
                fSeverity = IStatus.OK;
        }

        /*
         * @see IStatus#matches(int)
         */
        public boolean matches(int severityMask) {
                return (fSeverity&  severityMask) != 0;
        }

        /**
         * Returns always <code>false</code>.
         * @see IStatus#isMultiStatus()
         */
        public boolean isMultiStatus() {
                return false;
        }

        /*
         * @see IStatus#getSeverity()
         */
        public int getSeverity() {
                return fSeverity;
        }

        /*
         * @see IStatus#getPlugin()
         */
        public String getPlugin() {
                return JavaUI.ID_PLUGIN;
        }

        /**
         * Returns always <code>null</code>.
         * @see IStatus#getException()
         */
        public Throwable getException() {
                return null;
        }

        /**
         * Returns always the error severity.
         * @see IStatus#getCode()
         */
        public int getCode() {
                return fSeverity;
        }

        /**
         * Returns always <code>null</code>.
         * @see IStatus#getChildren()
         */
        public IStatus[] getChildren() {
                return new IStatus[0];
        }


Clone Instance
2
Line Count
121
Source Line
59
Source File
plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/util/JUnitStatus.java

        /**
         *  Returns if the status' severity is OK.
         */
        public boolean isOK() {
                return fSeverity == IStatus.OK;
        }

        /**
         *  Returns if the status' severity is WARNING.
         */
        public boolean isWarning() {
                return fSeverity == IStatus.WARNING;
        }

        /**
         *  Returns if the status' severity is INFO.
         */
        public boolean isInfo() {
                return fSeverity == IStatus.INFO;
        }

        /**
         *  Returns if the status' severity is ERROR.
         */
        public boolean isError() {
                return fSeverity == IStatus.ERROR;
        }

        /**
         * @see IStatus#getMessage()
         */
        public String getMessage() {
                return fStatusMessage;
        }

        /**
         * Sets the status to ERROR.
         * @param errorMessage the error message (can be empty, but not null)
         */
        public void setError(String errorMessage) {
                Assert.isNotNull(errorMessage);
                fStatusMessage = errorMessage;
                fSeverity = IStatus.ERROR;
        }

        /**
         * Sets the status to WARNING.
         * @param warningMessage the warning message (can be empty, but not null)
         */
        public void setWarning(String warningMessage) {
                Assert.isNotNull(warningMessage);
                fStatusMessage = warningMessage;
                fSeverity = IStatus.WARNING;
        }

        /**
         * Sets the status to INFO.
         * @param infoMessage the info message (can be empty, but not null)
         */
        public void setInfo(String infoMessage) {
                Assert.isNotNull(infoMessage);
                fStatusMessage = infoMessage;
                fSeverity = IStatus.INFO;
        }

        /**
         * Sets the status to OK.
         */
        public void setOK() {
                fStatusMessage = null;
                fSeverity = IStatus.OK;
        }

        /*
         * @see IStatus#matches(int)
         */
        public boolean matches(int severityMask) {
                return (fSeverity&  severityMask) != 0;
        }

        /**
         * Returns always <code>false</code>.
         * @see IStatus#isMultiStatus()
         */
        public boolean isMultiStatus() {
                return false;
        }

        /*
         * @see IStatus#getSeverity()
         */
        public int getSeverity() {
                return fSeverity;
        }

        /*
         * @see IStatus#getPlugin()
         */
        public String getPlugin() {
                return JUnitPlugin.PLUGIN_ID;
        }

        /**
         * Returns always <code>null</code>.
         * @see IStatus#getException()
         */
        public Throwable getException() {
                return null;
        }

        /**
         * Returns always the error severity.
         * @see IStatus#getCode()
         */
        public int getCode() {
                return fSeverity;
        }

        /**
         * Returns always <code>null</code>.
         * @see IStatus#getChildren()
         */
        public IStatus[] getChildren() {
                return new IStatus[0];
        }


Clone Instance
3
Line Count
121
Source Line
52
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/StatusInfo.java

        /**
         *  Returns if the status' severity is OK.
         */
        public boolean isOK() {
                return fSeverity == IStatus.OK;
        }

        /**
         *  Returns if the status' severity is WARNING.
         */
        public boolean isWarning() {
                return fSeverity == IStatus.WARNING;
        }

        /**
         *  Returns if the status' severity is INFO.
         */
        public boolean isInfo() {
                return fSeverity == IStatus.INFO;
        }

        /**
         *  Returns if the status' severity is ERROR.
         */
        public boolean isError() {
                return fSeverity == IStatus.ERROR;
        }

        /**
         * @see IStatus#getMessage
         */
        public String getMessage() {
                return fStatusMessage;
        }

        /**
         * Sets the status to ERROR.
         * @param errorMessage The error message (can be empty, but not null)
         */
        public void setError(String errorMessage) {
                Assert.isNotNull(errorMessage);
                fStatusMessage = errorMessage;
                fSeverity = IStatus.ERROR;
        }

        /**
         * Sets the status to WARNING.
         * @param warningMessage The warning message (can be empty, but not null)
         */
        public void setWarning(String warningMessage) {
                Assert.isNotNull(warningMessage);
                fStatusMessage = warningMessage;
                fSeverity = IStatus.WARNING;
        }

        /**
         * Sets the status to INFO.
         * @param infoMessage The info message (can be empty, but not null)
         */
        public void setInfo(String infoMessage) {
                Assert.isNotNull(infoMessage);
                fStatusMessage = infoMessage;
                fSeverity = IStatus.INFO;
        }

        /**
         * Sets the status to OK.
         */
        public void setOK() {
                fStatusMessage = null;
                fSeverity = IStatus.OK;
        }

        /*
         * @see IStatus#matches(int)
         */
        public boolean matches(int severityMask) {
                return (fSeverity&  severityMask) != 0;
        }

        /**
         * Returns always <code>false</code>.
         * @see IStatus#isMultiStatus()
         */
        public boolean isMultiStatus() {
                return false;
        }

        /*
         * @see IStatus#getSeverity()
         */
        public int getSeverity() {
                return fSeverity;
        }

        /*
         * @see IStatus#getPlugin()
         */
        public String getPlugin() {
                return JavaUI.ID_PLUGIN;
        }

        /**
         * Returns always <code>null</code>.
         * @see IStatus#getException()
         */
        public Throwable getException() {
                return null;
        }

        /**
         * Returns always the error severity.
         * @see IStatus#getCode()
         */
        public int getCode() {
                return fSeverity;
        }

        /**
         * Returns always an empty array.
         * @see IStatus#getChildren()
         */
        public IStatus[] getChildren() {
                return new IStatus[0];
        }


Clone AbstractionParameter Count: 2Parameter Bindings

/**
         *  Returns if the status' severity is OK.
         */
public boolean isOK() {
  return fSeverity == IStatus.OK;
}

/**
         *  Returns if the status' severity is WARNING.
         */
public boolean isWarning() {
  return fSeverity == IStatus.WARNING;
}

/**
         *  Returns if the status' severity is INFO.
         */
public boolean isInfo() {
  return fSeverity == IStatus.INFO;
}

/**
         *  Returns if the status' severity is ERROR.
         */
public boolean isError() {
  return fSeverity == IStatus.ERROR;
}

/**
         * @see IStatus#getMessage
         */
/**
         * @see IStatus#getMessage()
         */
public String getMessage() {
  return fStatusMessage;
}

/**
         * Sets the status to ERROR.
         * @param The error message (can be empty, but not null)
         */
/**
         * Sets the status to ERROR.
         * @param errorMessage the error message (can be empty, but not null)
         */
/**
         * Sets the status to ERROR.
         * @param errorMessage The error message (can be empty, but not null)
         */
public void setError(String errorMessage) {
  Assert.isNotNull(errorMessage);
  fStatusMessage = errorMessage;
  fSeverity = IStatus.ERROR;
}

/**
         * Sets the status to WARNING.
         * @param The warning message (can be empty, but not null)
         */
/**
         * Sets the status to WARNING.
         * @param warningMessage the warning message (can be empty, but not null)
         */
/**
         * Sets the status to WARNING.
         * @param warningMessage The warning message (can be empty, but not null)
         */
public void setWarning(String warningMessage) {
  Assert.isNotNull(warningMessage);
  fStatusMessage = warningMessage;
  fSeverity = IStatus.WARNING;
}

/**
         * Sets the status to INFO.
         * @param The info message (can be empty, but not null)
         */
/**
         * Sets the status to INFO.
         * @param infoMessage the info message (can be empty, but not null)
         */
/**
         * Sets the status to INFO.
         * @param infoMessage The info message (can be empty, but not null)
         */
public void setInfo(String infoMessage) {
  Assert.isNotNull(infoMessage);
  fStatusMessage = infoMessage;
  fSeverity = IStatus.INFO;
}

/**
         * Sets the status to OK.
         */
public void setOK() {
  fStatusMessage = null;
  fSeverity = IStatus.OK;
}

/*
         * @see IStatus#matches(int)
         */
public boolean matches(int severityMask) {
  return (fSeverity&severityMask) != 0;
}

/**
         * Returns always <code>false</code>.
         * @see IStatus#isMultiStatus()
         */
public boolean isMultiStatus() {
  return false;
}

/*
         * @see IStatus#getSeverity()
         */
public int getSeverity() {
  return fSeverity;
}

/*
         * @see IStatus#getPlugin()
         */
public String getPlugin() {
  return [[#variable51667240]]. [[#variable516670e0]];
}

/**
         * Returns always <code>null</code>.
         * @see IStatus#getException()
         */
public Throwable getException() {
  return null;
}

/**
         * Returns always the error severity.
         * @see IStatus#getCode()
         */
public int getCode() {
  return fSeverity;
}

/**
         * Returns always <code>null</code>.
         * @see IStatus#getChildren()
         */
/**
         * Returns always an empty array.
         * @see IStatus#getChildren()
         */
public IStatus[] getChildren() {
  return new IStatus[0];
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#51667240]]
JavaUI 
12[[#51667240]]
JUnitPlugin 
13[[#51667240]]
JavaUI 
21[[#516670e0]]
ID_PLUGIN 
22[[#516670e0]]
PLUGIN_ID 
23[[#516670e0]]
ID_PLUGIN