Example usage for org.eclipse.jdt.internal.core.util Messages operation_nullContainer

List of usage examples for org.eclipse.jdt.internal.core.util Messages operation_nullContainer

Introduction

In this page you can find the example usage for org.eclipse.jdt.internal.core.util Messages operation_nullContainer.

Prototype

String operation_nullContainer

To view the source code for org.eclipse.jdt.internal.core.util Messages operation_nullContainer.

Click Source Link

Usage

From source file:com.codenvy.ide.ext.java.server.internal.core.CompilationUnit.java

License:Open Source License

/**
 * @see org.eclipse.jdt.core.ISourceManipulation#move(org.eclipse.jdt.core.IJavaElement, org.eclipse.jdt.core.IJavaElement, String,
 * boolean, org.eclipse.core.runtime.IProgressMonitor)
 *//*w ww. ja  v  a 2  s .  c om*/
public void move(IJavaElement container, IJavaElement sibling, String rename, boolean force,
        IProgressMonitor monitor) throws JavaModelException {
    if (container == null) {
        throw new IllegalArgumentException(Messages.operation_nullContainer);
    }
    IJavaElement[] elements = new IJavaElement[] { this };
    IJavaElement[] containers = new IJavaElement[] { container };

    String[] renamings = null;
    if (rename != null) {
        renamings = new String[] { rename };
    }
    getJavaModel().move(elements, containers, null, renamings, force, monitor);
}

From source file:com.codenvy.ide.ext.java.server.internal.core.PackageFragment.java

License:Open Source License

/**
 * @see org.eclipse.jdt.core.ISourceManipulation
 *//*from  w ww . ja v a2  s  .  co m*/
public void copy(IJavaElement container, IJavaElement sibling, String rename, boolean force,
        IProgressMonitor monitor) throws JavaModelException {
    if (container == null) {
        throw new IllegalArgumentException(Messages.operation_nullContainer);
    }
    IJavaElement[] elements = new IJavaElement[] { this };
    IJavaElement[] containers = new IJavaElement[] { container };
    IJavaElement[] siblings = null;
    if (sibling != null) {
        siblings = new IJavaElement[] { sibling };
    }
    String[] renamings = null;
    if (rename != null) {
        renamings = new String[] { rename };
    }
    getJavaModel().copy(elements, containers, siblings, renamings, force, monitor);
}

From source file:com.codenvy.ide.ext.java.server.internal.core.PackageFragment.java

License:Open Source License

/**
 * @see org.eclipse.jdt.core.ISourceManipulation#move(org.eclipse.jdt.core.IJavaElement, org.eclipse.jdt.core.IJavaElement, String, boolean, org.eclipse.core.runtime.IProgressMonitor)
 *///from ww  w . ja  va2 s .  c o m
public void move(IJavaElement container, IJavaElement sibling, String rename, boolean force,
        IProgressMonitor monitor) throws JavaModelException {
    if (container == null) {
        throw new IllegalArgumentException(Messages.operation_nullContainer);
    }
    IJavaElement[] elements = new IJavaElement[] { this };
    IJavaElement[] containers = new IJavaElement[] { container };
    IJavaElement[] siblings = null;
    if (sibling != null) {
        siblings = new IJavaElement[] { sibling };
    }
    String[] renamings = null;
    if (rename != null) {
        renamings = new String[] { rename };
    }
    getJavaModel().move(elements, containers, siblings, renamings, force, monitor);
}

From source file:org.eclipse.jdt.internal.core.CompilationUnit.java

License:Open Source License

/**
 * @see ISourceManipulation#copy(IJavaElement, IJavaElement, String, boolean, IProgressMonitor)
 *///w  w  w.  j a v  a 2  s  . c o m
public void copy(IJavaElement container, IJavaElement sibling, String rename, boolean force,
        IProgressMonitor monitor) throws JavaModelException {
    if (container == null) {
        throw new IllegalArgumentException(Messages.operation_nullContainer);
    }
    IJavaElement[] elements = new IJavaElement[] { this };
    IJavaElement[] containers = new IJavaElement[] { container };
    String[] renamings = null;
    if (rename != null) {
        renamings = new String[] { rename };
    }
    getJavaModel().copy(elements, containers, null, renamings, force, monitor);
}