/** * Implements {@link Value#getFloatValue()}. */ public float getFloatValue() throws DOMException { throw createDOMException(); }
/** * Creates an INVALID_ACCESS_ERR exception. */ protected DOMException createDOMException() { Object[] p = new Object[] { new Integer(getCssValueType()) }; String s = Messages.formatMessage("invalid.value.access", p); return new DOMException(DOMException.INVALID_ACCESS_ERR, s); } }
String fullname = engine.computeFileName(av.getLocation()); int lineno = engine.computeLineNumber(av.getLocation(), av.getLineNumber()) + 1;
protected void warnCircularReference(URL uri, Object location) { String message = NbBundle.getMessage(XhtmlCssEngine.class, "MSG_CircularReference", uri); // NOI18N if (errorHandler != null) { // handleError(message, location, -1, -1, null); errorHandler.error(createCSSParseException(message, location, -1, -1, null)); } else { // OutputListener listener = getListener(location, -1, -1); // MarkupService.displayError(message, listener); if (location instanceof AbstractValue) { location = ((AbstractValue)location).getLocation(); } // InSyncService.getProvider().getRaveErrorHandler().displayErrorForLocation(message, location, -1, -1); UserAgent userAgent = getUserAgent(); if (userAgent == null) { // XXX What to do now, log it? } else { userAgent.displayErrorForLocation(message, location, -1, -1); } } }
/** * Creates an INVALID_ACCESS_ERR exception. */ protected DOMException createDOMException() { Object[] p = new Object[] {(int) getCssValueType()}; String s = Messages.formatMessage("invalid.value.access", p); return new DOMException(DOMException.INVALID_ACCESS_ERR, s); } }
protected void displayError(DOMException e, Object location, int lineno, final int column) { String message = e.getLocalizedMessage(); if ((message == null) || (message.length() == 0)) { return; } if (errorHandler != null) { // handleError(message, location, lineno, column, null); errorHandler.error(createCSSParseException(message, location, lineno, column, null)); } else { // OutputListener listener = getListener(location, lineno, column); // MarkupService.displayError(message, listener); // String fileName = computeFilename(location); // int line = computeLineNumber(location, lineno); if (location instanceof AbstractValue) { location = ((AbstractValue)location).getLocation(); } // InSyncService.getProvider().getRaveErrorHandler().displayErrorForLocation(message, location, lineno, column); UserAgent userAgent = getUserAgent(); if (userAgent == null) { // XXX Log it? } else { userAgent.displayErrorForLocation(message, location, lineno, column); } } }
/** * Implements {@link Value#item(int)}. */ public Value item(int index) throws DOMException { throw createDOMException(); }
/** * Creates an INVALID_ACCESS_ERR exception. */ protected DOMException createDOMException() { Object[] p = new Object[] {(int) getCssValueType()}; String s = Messages.formatMessage("invalid.value.access", p); return new DOMException(DOMException.INVALID_ACCESS_ERR, s); } }
/** * Implements {@link Value#getRight()}. */ public Value getRight() throws DOMException { throw createDOMException(); }
/** * Implements {@link Value#getLeft()}. */ public Value getLeft() throws DOMException { throw createDOMException(); }
/** * Implements {@link Value#getLeft()}. */ public Value getLeft() throws DOMException { throw createDOMException(); }
/** * Implements {@link Value#getSeparator()}. */ public String getSeparator() throws DOMException { throw createDOMException(); }
/** * Implements {@link Value#getBlue()}. */ public Value getBlue() throws DOMException { throw createDOMException(); }
/** * Implements {@link Value#getLength()}. */ public int getLength() throws DOMException { throw createDOMException(); }
/** * Implements {@link Value#getTop()}. */ public Value getTop() throws DOMException { throw createDOMException(); }
/** * Implements {@link Value#getStringValue()}. */ public String getStringValue() throws DOMException { throw createDOMException(); }
/** * Implements {@link Value#getRight()}. */ public Value getRight() throws DOMException { throw createDOMException(); }
/** * Implements {@link Value#getPrimitiveType()}. */ public short getPrimitiveType() { throw createDOMException(); }
/** * Implements {@link Value#getIdentifier()}. */ public String getIdentifier() throws DOMException { throw createDOMException(); }
/** * Implements {@link Value#getSeparator()}. */ public String getSeparator() throws DOMException { throw createDOMException(); }