Package com.intellij.util

Examples of com.intellij.util.IncorrectOperationException


     * @throws IncorrectOperationException
     */
    private XmlDocument ensureXmlDocument() throws IncorrectOperationException {
        final XmlDocument xmlDocument = getXmlDocument();
        if (xmlDocument == null)
            throw new IncorrectOperationException(RES.get("missing.xml.document"));

        return xmlDocument;
    }
View Full Code Here


        final XmlDocument xmlDocument = ensureXmlDocument();
        XmlTag rootTag = xmlDocument.getRootTag();
        if (rootTag != null) {
            final String rootTagName = rootTag.getName();
            if (!rootTagName.equals(parseRootTagName()))
                throw new IncorrectOperationException(
                        RES.get("incorrect.root.tag", rootTagName));
            else
                return rootTag;
        }
View Full Code Here

  public Expression createExpressionFromText(@NotNull String expr) {
    final PsiElement exprFile = createDummyFile(expr).getFirstChild();
    if (exprFile != null && exprFile instanceof Expression) {
      return (Expression) exprFile;
    }
    throw new IncorrectOperationException("The supplied string is not a valid Mathematica expression.");
  }
View Full Code Here

  public Symbol createSymbol(@NotNull String symbolName) {
    final PsiElement symbol = createDummyFile(symbolName).getFirstChild();
    if (symbol != null && symbol instanceof Symbol) {
      return (Symbol) symbol;
    }
    throw new IncorrectOperationException("The supplied string is not a valid Mathematica Symbol.");
  }
View Full Code Here

        for (int i = 0; i < depth - 1; i++) {
            String fileName = fileNames[i];
            // todo: check before create
            // todo: check correct module names
            if ("".equals(fileName)) {
                throw new IncorrectOperationException("File name cannot be empty");
            }
            char oldChar = fileName.charAt(0);
            String dirName = fileName.replace(oldChar, Character.toUpperCase(oldChar));
            PsiDirectory subDir = moduleDir.findSubdirectory(dirName);
            moduleDir = subDir == null ? moduleDir.createSubdirectory(dirName) : subDir;
View Full Code Here

    public ConnectionHandler getConnectionHandler(){
        if (browserTree.getModel() instanceof TabbedBrowserTreeModel) {
            TabbedBrowserTreeModel treeModel = (TabbedBrowserTreeModel) browserTree.getModel();
            return treeModel.getConnectionHandler();
        }
        throw new IncorrectOperationException("Multiple connection tabs can not return one connection.");
    }
View Full Code Here

        ASTNode node = findNameElement();
        return node != null ? node.getText() : null;
    }

    public PsiElement setName(@NonNls @NotNull String name) throws IncorrectOperationException {
        throw new IncorrectOperationException();
    }
View Full Code Here

    public String getName() {
        return getText();
    }

    public PsiElement setName(@NonNls @NotNull String name) throws IncorrectOperationException {
        throw new IncorrectOperationException();
    }
View Full Code Here

    public JFlexStateReferenceImpl(@NotNull ASTNode node) {
        super(node);
    }

    public PsiElement bindToElement(@NotNull PsiElement element) throws IncorrectOperationException {
        throw new IncorrectOperationException();
    }
View Full Code Here

    public Object[] getVariants() {
        return new Object[0];
    }

    public PsiElement handleElementRename(String newElementName) throws IncorrectOperationException {
        throw new IncorrectOperationException();
    }
View Full Code Here

TOP

Related Classes of com.intellij.util.IncorrectOperationException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.