* for debugging during development.
*/
public void analyzeLayouts() {
- String params = getRepaintAllParameters() + "&analyzeLayouts=1";
+ String params = getRepaintAllParameters() + "&"
+ + ApplicationConstants.PARAM_ANALYZE_LAYOUTS + "=1";
makeUidlRequest("", params, false);
}
* @param serverConnector
*/
void highlightConnector(ServerConnector serverConnector) {
- String params = getRepaintAllParameters() + "&highlightConnector="
+ String params = getRepaintAllParameters() + "&"
+ + ApplicationConstants.PARAM_HIGHLIGHT_CONNECTOR + "="
+ serverConnector.getConnectorId();
makeUidlRequest("", params, false);
}
/* Same as in apache commons file upload library that was previously used. */
private static final int MAX_UPLOAD_BUFFER_SIZE = 4 * 1024;
- private static final String GET_PARAM_ANALYZE_LAYOUTS = "analyzeLayouts";
-
/**
* The session this communication manager is used for
*/
private static final String UTF8 = "UTF8";
- private static final String GET_PARAM_HIGHLIGHT_CONNECTOR = "highlightConnector";
-
private static String readLine(InputStream stream) throws IOException {
ByteArrayOutputStream bout = new ByteArrayOutputStream();
int readByte = stream.read();
boolean analyzeLayouts = false;
if (repaintAll) {
// analyzing can be done only with repaintAll
- analyzeLayouts = (request.getParameter(GET_PARAM_ANALYZE_LAYOUTS) != null);
+ analyzeLayouts = (request
+ .getParameter(ApplicationConstants.PARAM_ANALYZE_LAYOUTS) != null);
- if (request.getParameter(GET_PARAM_HIGHLIGHT_CONNECTOR) != null) {
- String pid = request
- .getParameter(GET_PARAM_HIGHLIGHT_CONNECTOR);
+ String pid = request
+ .getParameter(ApplicationConstants.PARAM_HIGHLIGHT_CONNECTOR);
+ if (pid != null) {
highlightedConnector = uI.getConnectorTracker().getConnector(
pid);
highlightConnector(highlightedConnector);
sb.append(".java");
sb.append(":1)");
int l = 1;
- for (ClientConnector conector2 : h) {
+ for (ClientConnector connector2 : h) {
sb.append("\n");
for (int i = 0; i < l; i++) {
sb.append(" ");
}
l++;
- Class<? extends ClientConnector> componentClass = conector2
+ Class<? extends ClientConnector> connectorClass = connector2
.getClass();
- Class<?> topClass = componentClass;
+ Class<?> topClass = connectorClass;
while (topClass.getEnclosingClass() != null) {
topClass = topClass.getEnclosingClass();
}
- sb.append(componentClass.getName());
+ sb.append(connectorClass.getName());
sb.append("(");
sb.append(topClass.getSimpleName());
sb.append(".java:1)");