org.eclipse.ui.internal.part.NullEditorInput Java Examples

The following examples show how to use org.eclipse.ui.internal.part.NullEditorInput. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: WebHelper.java    From gama with GNU General Public License v3.0 5 votes vote down vote up
public static void openPage(final String string) {
	try {
		final IGamaView.Html view =
				(Html) WorkbenchHelper.getPage().openEditor(new NullEditorInput(), "msi.gama.application.browser");
		view.setUrl(string);
	} catch (final PartInitException e) {
		e.printStackTrace();
	}
}
 
Example #2
Source File: ReportEditorProxy.java    From birt with Eclipse Public License 1.0 5 votes vote down vote up
@SuppressWarnings("restriction")
public IEditorInput getEditorInput( )
{
	if ( instance != null )
	{
		return instance.getEditorInput( );
	}
	return new NullEditorInput( );
}
 
Example #3
Source File: BusinessDataModelEditorContribution.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
@Override
protected IEditorInput initEditorInput() {
    AbstractBDMFileStore bdmFileStore = retrieveBdmFileStore();
    return bdmFileStore != null
            ? new FileEditorInput(bdmFileStore.getResource())
            : new NullEditorInput();
}