Examples of PartInitException


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

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

Examples of org.eclipse.ui.PartInitException

            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

Examples of org.eclipse.ui.PartInitException

            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

Examples of org.eclipse.ui.PartInitException

    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

Examples of org.eclipse.ui.PartInitException

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

  }
View Full Code Here

Examples of org.eclipse.ui.PartInitException

      project.addIdEObjectCollectionChangeObserver(modelelementChangeObserver);

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

  }
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

Examples of org.eclipse.ui.PartInitException

  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
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.