Examples of IPathEditorInput


Examples of org.eclipse.ui.IPathEditorInput

        }

        if (o instanceof IPathEditorInput) {

            IPathEditorInput input = (IPathEditorInput) o;

            return getPath().equals(input.getPath());

        }

        return false;
View Full Code Here

Examples of org.eclipse.ui.IPathEditorInput

      ExternalFileEditorInput input = (ExternalFileEditorInput) o;
      return fFile.equals(input.fFile);
    }
   
        if (o instanceof IPathEditorInput) {
            IPathEditorInput input= (IPathEditorInput)o;
            return getPath().equals(input.getPath());
        }

    return false;
  }
View Full Code Here

Examples of org.eclipse.ui.IPathEditorInput

        }

        // create IEdiorInput
        IPath location = new Path( file.getAbsolutePath() );
        ImageDescriptor imageDescriptor = descriptor.getImageDescriptor();
        IPathEditorInput input = new PathEditorInput( location, imageDescriptor );

        // activate editor
        IWorkbenchPage page = workbenchWindow.getActivePage();
        String editorId = descriptor.getId();
        try
View Full Code Here

Examples of org.eclipse.ui.IPathEditorInput

        throws CoreException
    {

        if ( element instanceof IPathEditorInput )
        {
            IPathEditorInput pei = ( IPathEditorInput ) element;
            IPath path = pei.getPath();
            File file = path.toFile();

            try
            {
                file.createNewFile();
View Full Code Here

Examples of org.eclipse.ui.IPathEditorInput

     */
    public boolean isModifiable( Object element )
    {
        if ( element instanceof IPathEditorInput )
        {
            IPathEditorInput pei = ( IPathEditorInput ) element;
            File file = pei.getPath().toFile();
            return file.canWrite() || !file.exists(); // Allow to edit new files
        }
        return false;
    }
View Full Code Here

Examples of org.eclipse.ui.IPathEditorInput

     */
    public void init( IEditorSite site, IEditorInput input ) throws PartInitException
    {
        if ( input instanceof IPathEditorInput )
        {
            IPathEditorInput pei = ( IPathEditorInput ) input;
            IPath path = pei.getPath();
            File javaIoFile = path.toFile();
            long fileLength = javaIoFile.length();
            if ( fileLength > ( 1 * 1024 * 1024 ) )
            {
                MessageDialog.openError( site.getShell(), "LDIF file is too big",
View Full Code Here

Examples of org.eclipse.ui.IPathEditorInput

     */
    public void init( IEditorSite site, IEditorInput input ) throws PartInitException
    {
        if ( input instanceof IPathEditorInput )
        {
            IPathEditorInput pei = ( IPathEditorInput ) input;
            IPath path = pei.getPath();
            File javaIoFile = path.toFile();
            long fileLength = javaIoFile.length();
            if ( fileLength > ( 1 * 1024 * 1024 ) )
            {
                MessageDialog.openError( site.getShell(), "LDIF file is too big",
View Full Code Here

Examples of org.eclipse.ui.IPathEditorInput

        throws CoreException
    {

        if ( element instanceof IPathEditorInput )
        {
            IPathEditorInput pei = ( IPathEditorInput ) element;
            IPath path = pei.getPath();
            File file = path.toFile();

            try
            {
                file.createNewFile();
View Full Code Here

Examples of org.eclipse.ui.IPathEditorInput

     */
    public boolean isModifiable( Object element )
    {
        if ( element instanceof IPathEditorInput )
        {
            IPathEditorInput pei = ( IPathEditorInput ) element;
            File file = pei.getPath().toFile();
            return file.canWrite() || !file.exists(); // Allow to edit new files
        }
        return false;
    }
View Full Code Here

Examples of org.eclipse.ui.IPathEditorInput

     */
    public void init( IEditorSite site, IEditorInput input ) throws PartInitException
    {
        if ( input instanceof IPathEditorInput )
        {
            IPathEditorInput pei = ( IPathEditorInput ) input;
            IPath path = pei.getPath();
            File javaIoFile = path.toFile();
            long fileLength = javaIoFile.length();
            if ( fileLength > ( 1 * 1024 * 1024 ) )
            {
                MessageDialog.openError( site.getShell(), "LDIF file is too big",
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.