Package org.eclipse.ui

Examples of org.eclipse.ui.PartInitException


                dialog.create();
                int action = dialog.open();
                if (action == WizardDialog.CANCEL) {
                    String errorMessage = EditorMessages.getString(RESOURCE_PREFIX +
                            "projectAssignmentWizardCancelled.reason");
                    throw new PartInitException(errorMessage);
                }
            }
        }
    }
View Full Code Here


                dialog.create();
                int action = dialog.open();
                if (action == WizardDialog.CANCEL) {
                    String errorMessage = EditorMessages.getString(RESOURCE_PREFIX +
                            "projectAssignmentWizardCancelled.reason");
                    throw new PartInitException(errorMessage);
                }
            }
        }
    }
View Full Code Here

            resourceCloseListener.startListener();
        } catch (PolicyFileAccessException ce) {
            String errorMessage =
                file != null && file.exists() ? LOAD_ERROR_MESSAGE :
                    MISSING_FILE_MESSAGE;
            throw new PartInitException(errorMessage);
        }
    }
View Full Code Here

            Proxy proxy = context.getInteractionModel();
            proxy.addListener(listener, true);
        } catch (PolicyFileAccessException pfae) {
            String errorMessage = file.exists() ? LOAD_ERROR_MESSAGE :
                    MISSING_FILE_MESSAGE;
            throw new PartInitException(errorMessage);
        } catch (NullPointerException npe) {
            String errorMessage = file.exists() ? LOAD_ERROR_MESSAGE :
                    MISSING_FILE_MESSAGE;
            throw new PartInitException(errorMessage);
        }
    }
View Full Code Here

    return true;
  }

  public void init(IEditorSite site, IEditorInput editorInput) throws PartInitException {
    if (!(editorInput instanceof IFileEditorInput)){
      throw new PartInitException("Unsupported editor input.");
    }
    super.init(site, editorInput);
    setPartName(editorInput.getName());
  }
View Full Code Here

      project = ECPUtil.getECPProjectManager().getProject(modelElement);
      initializeEditingDomain();
    }
    else
    {
      throw new PartInitException("ModelElementEditor is only appliable for MEEditorInputs");
    }

  }
View Full Code Here

      project.addIdEObjectCollectionChangeObserver(modelelementChangeObserver);

    }
    else
    {
      throw new PartInitException("ModelElementEditor is only appliable for MEEditorInputs");
    }

  }
View Full Code Here

     * 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

     * 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

  public void init(IEditorSite site, IEditorInput input) throws PartInitException {
    if(input instanceof IFileEditorInput || input instanceof URLEditorInput){
      setSite(site);
      setInput(input);
    } else {
      throw new PartInitException(
        "Web browser allows only IFileEditorInput or URLEditorInput.");
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.PartInitException

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.