Examples of PartInitException


Examples of org.eclipse.ui.PartInitException

          MessageDialog.openWarning(getSite().getShell(), "Warning", "The configured WGA distribution seams to be incompatible. Please ensure that your are using the latest version of WGADevelopmentStudio. Some config features may not work properly.");
          WGADesignerPlugin.getDefault().logError(e.getMessage(), e);
        }       
        _model.addListener(this);
      } else {
        throw new PartInitException("This is no wga runtime project.");
      }   
    } catch (PartInitException e) {
      throw e;
    } catch (CoreException e) {
      throw new PartInitException(e.getMessage(), e);
    }
  }
View Full Code Here

Examples of org.eclipse.ui.PartInitException

        ((IFileEditorInput)input).getFile().getProject().refreshLocal(IResource.DEPTH_INFINITE, null);
      } catch (CoreException e) {
        Plugin.getDefault().logError("Unable to refresh project.", e);
      }
    } catch (IOException e) {
      throw new PartInitException(e.getMessage(), e);
    }
  }
View Full Code Here

Examples of org.eclipse.ui.PartInitException

            if (resource != null) {
                model.setBndResource(resource.getLocation().toFile());
            }
            // model.addPropertyChangeListener(modelListener);
        } catch (IOException e) {
            throw new PartInitException("Error reading editor input.", e);
        }

        // Ensure the field values are updated if the file content is replaced
        docProvider.addElementStateListener(new IElementStateListener() {
            public void elementMoved(Object originalElement, Object movedElement) {}
View Full Code Here

Examples of org.eclipse.ui.PartInitException

              shell.forceActive();
            }
          } catch (PartInitException e) {
            String msg = NLS.bind(IDEWorkbenchMessages.OpenDelayedFileAction_message_errorOnOpen,
                    fileStore.getName());
            CoreException eLog = new PartInitException(e.getMessage());
            IDEWorkbenchPlugin.log(msg, new Status(IStatus.ERROR, IDEApplication.PLUGIN_ID, msg, eLog));
            MessageDialog.open(MessageDialog.ERROR, window.getShell(),
                IDEWorkbenchMessages.OpenDelayedFileAction_title,
                msg, SWT.SHEET);
          }
View Full Code Here

Examples of org.eclipse.ui.PartInitException

            if (resource != null) {
                model.setBndResource(resource.getLocation().toFile());
            }
            // model.addPropertyChangeListener(modelListener);
        } catch (IOException e) {
            throw new PartInitException("Error reading editor input.", e);
        }

        // Ensure the field values are updated if the file content is replaced
        docProvider.addElementStateListener(new IElementStateListener() {
View Full Code Here

Examples of org.eclipse.ui.PartInitException

            this.project = SigilCore.create(getProject());
            this.tempProject = (ISigilProjectModel) project.clone();
        }
        catch (CoreException e)
        {
            throw new PartInitException("Error creating Sigil project", e);
        }

        ResourcesPlugin.getWorkspace().addResourceChangeListener(this,
            IResourceChangeEvent.POST_CHANGE | IResourceChangeEvent.PRE_REFRESH);

        if (input instanceof IFileEditorInput)
        {
            try
            {
                loadUnresolvedDependencies();
            }
            catch (CoreException e)
            {
                throw new PartInitException("Error retrieving dependency markers", e);
            }
        }
    }
View Full Code Here

Examples of org.eclipse.ui.PartInitException

        try {
            marker = MarkerUtils.createSearchResultMarker(module,
                    NewSearchUI.SEARCH_MARKER, offset, length);
            IDE.gotoMarker(editor, marker);
        } catch (final CoreException e) {
            throw new PartInitException("SearchMessages.FileSearchPage_error_marker", e);
        } finally {
            if (marker != null) {
                try {
                    marker.delete();
                } catch (final CoreException e) {
View Full Code Here

Examples of org.eclipse.ui.PartInitException

   * checks that the input is an instance of <code>IFileEditorInput</code>.
   */
  public void init(IEditorSite site, IEditorInput editorInput) throws PartInitException
  {
    if (!(editorInput instanceof IFileEditorInput))
      throw new PartInitException("Invalid Input: Must be a Wicket Java file");
    super.init(site, editorInput);
  }
View Full Code Here

Examples of org.eclipse.ui.PartInitException

     * The <code>MultiPageEditorExample</code> implementation of this method checks that the input
     * is an instance of <code>IFileEditorInput</code>.
     */
    public void init(IEditorSite site, IEditorInput editorInput) throws PartInitException {
        if (!(editorInput instanceof IFileEditorInput)) {
            throw new PartInitException("Invalid Input: Must be IFileEditorInput");
        }
        super.init(site, editorInput);
    }
View Full Code Here

Examples of org.eclipse.ui.PartInitException

     * The <code>MultiPageEditorExample</code> implementation of this method checks that the input
     * is an instance of <code>IFileEditorInput</code>.
     */
    public void init(IEditorSite site, IEditorInput editorInput) throws PartInitException {
        if (!(editorInput instanceof IFileEditorInput)) {
            throw new PartInitException("Invalid Input: Must be IFileEditorInput");
        }
        super.init(site, editorInput);
    }
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.