Java 类org.openide.util.NotImplementedException 实例源码

项目:cuttlefish    文件:LayoutLoader.java   
public Layout getLayout(String name) {
    LayoutBuilder builder = null;
    Layout layout = null;
    String layoutName = name;

    if (abbreviations.containsKey(name))
        layoutName = abbreviations.get(name);

    if (unsupported.containsKey(layoutName))
        throw new NotImplementedException(
                "This layout is not implemented yet!");

    if (!builders.containsKey(layoutName))
        return null;

    try {
        builder = builders.get(layoutName).newInstance();
        layout = layoutModel.getLayout(builder);
    } catch (Exception e) {
        e.printStackTrace();
    }

    return layout;
}
项目:goworks    文件:GoIndentTask.java   
private TerminalNode findFirstNodeAfterOffset(ParseTree tree, int offset) {
    TerminalNode lastNode = ParseTrees.getStopNode(tree);
    if (lastNode == null) {
        return null;
    }

    if (lastNode.getSymbol() instanceof CaretToken) {
        throw new NotImplementedException();
    } else if (lastNode.getSymbol().getStartIndex() < offset) {
        return null;
    }

    if (tree instanceof TerminalNode) {
        return (TerminalNode)tree;
    }

    for (int i = 0; i < tree.getChildCount(); i++) {
        TerminalNode node = findFirstNodeAfterOffset(tree.getChild(i), offset);
        if (node != null) {
            return node;
        }
    }

    return null;
}
项目:goworks    文件:AbstractIndentTask.java   
protected TerminalNode findFirstNodeAfterOffset(ParseTree tree, int offset) {
    TerminalNode lastNode = ParseTrees.getStopNode(tree);
    if (lastNode == null) {
        return null;
    }

    if (lastNode.getSymbol() instanceof CaretToken) {
        throw new NotImplementedException();
    } else if (lastNode.getSymbol().getStartIndex() < offset) {
        return null;
    }

    if (tree instanceof TerminalNode) {
        return (TerminalNode)tree;
    }

    for (int i = 0; i < tree.getChildCount(); i++) {
        TerminalNode node = findFirstNodeAfterOffset(tree.getChild(i), offset);
        if (node != null) {
            return node;
        }
    }

    return null;
}
项目:antlrworks2    文件:AbstractIndentTask.java   
protected TerminalNode findFirstNodeAfterOffset(ParseTree tree, int offset) {
    TerminalNode lastNode = ParseTrees.getStopNode(tree);
    if (lastNode == null) {
        return null;
    }

    if (lastNode.getSymbol() instanceof CaretToken) {
        throw new NotImplementedException();
    } else if (lastNode.getSymbol().getStartIndex() < offset) {
        return null;
    }

    if (tree instanceof TerminalNode) {
        return (TerminalNode)tree;
    }

    for (int i = 0; i < tree.getChildCount(); i++) {
        TerminalNode node = findFirstNodeAfterOffset(tree.getChild(i), offset);
        if (node != null) {
            return node;
        }
    }

    return null;
}
项目:incubator-netbeans    文件:SerParser.java   
private String readUTF() throws IOException {
    short len = readShort();
    if (len < 0) throw new NotImplementedException();//XXX
    byte[] buf = new byte[len];
    for (int i = 0; i < len; i++) {
        buf[i] = readByte();
    }
    String s = new String(buf, "UTF-8"); // NOI18N
    if (DEBUG) System.err.println("readUTF: " + s); // NOI18N
    return s;
}
项目:incubator-netbeans    文件:SerParser.java   
private Object readContent() throws IOException {
    byte tc = readByte();
    switch (tc) {
    case TC_OBJECT:
        return readNewObject();
    case TC_CLASS:
        return readNewClass();
    case TC_ARRAY:
        return readNewArray();
    case TC_CLASSDESC:
        return readNewClassDesc();
    case TC_PROXYCLASSDESC:
        // XXX too complicated:
        throw new NotImplementedException("TC_PROXYCLASSDESC"); // NOI18N
        //return readNewProxyClassDesc();
    case TC_STRING:
        return readNewString();
    case TC_LONGSTRING:
        // XXX later
        throw new NotImplementedException("TC_LONGSTRING"); // NOI18N
        //return readNewLongString();
    case TC_REFERENCE:
        return readReference();
    case TC_NULL:
        return NULL;
    case TC_EXCEPTION:
        // XXX what is this??
        throw new NotImplementedException("TC_EXCEPTION"); // NOI18N
    case TC_RESET:
        // XXX what is this??
        throw new NotImplementedException("TC_RESET"); // NOI18N
    case TC_BLOCKDATA:
        return readBlockData();
    case TC_BLOCKDATALONG:
        return readBlockDataLong();
    default:
        throw new CorruptException("Unknown typecode: " + hexify(tc)); // NOI18N
    }
}
项目:incubator-netbeans    文件:SerParser.java   
private ArrayWrapper readNewArray() throws IOException {
    ArrayWrapper aw = new ArrayWrapper();
    aw.classdesc = readClassDesc();
    makeRef(aw);
    int size = readInt();
    if (size < 0) throw new NotImplementedException();
    aw.values = new ArrayList<Object>(size);
    for (int i = 0; i < size; i++) {
        if (aw.classdesc.name.equals("[B")) { // NOI18N
            aw.values.add(new Byte(readByte()));
        } else if (aw.classdesc.name.equals("[S")) { // NOI18N
            aw.values.add(new Short(readShort()));
        } else if (aw.classdesc.name.equals("[I")) { // NOI18N
            aw.values.add(new Integer(readInt()));
        } else if (aw.classdesc.name.equals("[J")) { // NOI18N
            aw.values.add(new Long(readLong()));
        } else if (aw.classdesc.name.equals("[F")) { // NOI18N
            aw.values.add(new Float(Float.intBitsToFloat(readInt())));
        } else if (aw.classdesc.name.equals("[D")) { // NOI18N
            aw.values.add(new Double(Double.longBitsToDouble(readLong())));
        } else if (aw.classdesc.name.equals("[C")) { // NOI18N
            aw.values.add(new Character((char)readShort()));
        } else if (aw.classdesc.name.equals("[Z")) { // NOI18N
            aw.values.add(readByte() == 1 ? Boolean.TRUE : Boolean.FALSE);
        } else {
            aw.values.add(readContent());
        }
    }
    if (DEBUG) System.err.println("readNewArray: " + aw); // NOI18N
    return aw;
}
项目:incubator-netbeans    文件:SerParser.java   
private byte[] readBlockDataLong() throws IOException {
    int size = readInt();
    if (size < 0) throw new NotImplementedException();
    byte[] b = new byte[size];
    for (int i = 0; i < size; i++) {
        b[i] = readByte();
    }
    if (DEBUG) System.err.println("readBlockDataLong: " + size + " bytes"); // NOI18N
    return b;
}
项目:cuttlefish    文件:NetworkPanel.java   
@Override
public BufferedImage getSnapshot() {
    // Dimension size = getVisualizationViewer().getSize();
    // BufferedImage img = new BufferedImage(size.width, size.height,
    // BufferedImage.TYPE_INT_RGB);
    // Graphics2D g2 = img.createGraphics();
    // getVisualizationViewer().paint(g2);
    // return img;
    throw new NotImplementedException(
            "Not implemented yet for the Gephi Toolkit!");
}
项目:incubator-netbeans    文件:SQLHistoryPanel.java   
@Override
    public void setValueAt(Object value, int row, int col) {
        throw new NotImplementedException();
}
项目:cantact-app    文件:UdsClient.java   
public void SecuredDataTransmission() {
    throw new NotImplementedException();
}
项目:cantact-app    文件:UdsClient.java   
public void ResponseOnEvent() {
    throw new NotImplementedException();
}
项目:cantact-app    文件:UdsClient.java   
public void ReadDataByPeriodicIdentifier() {
    throw new NotImplementedException();
}
项目:cantact-app    文件:UdsClient.java   
public void DynamicallyDefineDataIdentifier() {
    throw new NotImplementedException();
}
项目:cantact-app    文件:UdsClient.java   
public void WriteMemoryByAddress() {
    throw new NotImplementedException();
}
项目:cantact-app    文件:UdsClient.java   
public void ReadDtcInformation() {
    throw new NotImplementedException();
}
项目:cantact-app    文件:UdsClient.java   
public void InputOutputControlByIdentifier() {
    throw new NotImplementedException();
}
项目:cantact-app    文件:UdsClient.java   
public void RequestDownload() {
    throw new NotImplementedException();
}
项目:cantact-app    文件:UdsClient.java   
public void RequestUpload() {
    throw new NotImplementedException();
}
项目:cantact-app    文件:UdsClient.java   
public void TransferData() {
    throw new NotImplementedException();
}
项目:cantact-app    文件:UdsClient.java   
public void RequestTransferExit() {
    throw new NotImplementedException();
}
项目:goworks    文件:GrammarIndentTask.java   
@Override
public Tuple2<? extends ParseTree, Integer> visitDelegateGrammar(DelegateGrammarContext ctx) {
    throw new NotImplementedException();
}
项目:goworks    文件:GrammarIndentTask.java   
@Override
public Tuple2<? extends ParseTree, Integer> visitDelegateGrammars(DelegateGrammarsContext ctx) {
    throw new NotImplementedException();
}
项目:goworks    文件:GoActionProvider.java   
private void handleDebugAction(Lookup lookup) throws IllegalArgumentException {
    throw new NotImplementedException();
}
项目:goworks    文件:GoActionProvider.java   
private void handleProfileAction(Lookup lookup) throws IllegalArgumentException {
    throw new NotImplementedException();
}
项目:goworks    文件:ParseTrees.java   
/**
 * Gets whether or not the first symbol of {@code tree} is the first
 * non-whitespace symbol on a line.
 *
 * @param tree The parse tree to test.
 * @return {@code true} if the only characters appearing before the first
 * token of {@code tree} on the line where {@code tree} starts are
 * whitespace characters according to {@link Character#isWhitespace}.
 */
public static boolean elementStartsLine(ParseTree tree) {
    TerminalNode symbol = ParseTrees.getStartNode(tree);
    if (symbol == null) {
        throw new NotImplementedException();
    }

    return elementStartsLine(symbol.getSymbol());
}
项目:antlrworks2    文件:ParseTrees.java   
/**
 * Gets whether or not the first symbol of {@code tree} is the first
 * non-whitespace symbol on a line.
 *
 * @param tree The parse tree to test.
 * @return {@code true} if the only characters appearing before the first
 * token of {@code tree} on the line where {@code tree} starts are
 * whitespace characters according to {@link Character#isWhitespace}.
 */
public static boolean elementStartsLine(ParseTree tree) {
    TerminalNode symbol = ParseTrees.getStartNode(tree);
    if (symbol == null) {
        throw new NotImplementedException();
    }

    return elementStartsLine(symbol.getSymbol());
}