org.eclipse.ui.forms.editor.FormPage Java Examples

The following examples show how to use org.eclipse.ui.forms.editor.FormPage. 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: ModelEditor.java    From tlaplus with MIT License 5 votes vote down vote up
/**
* @param index the tab index
* @return null if the index is greater than or equal to the number of tabs,
*         else the id of the {@link FormPage} which is at that index
*/
  public String getIdForEditorAtIndex(final int index) {
  	final FormPage editor = (FormPage)getEditor(index);
  	
  	if (editor != null) {
  		return editor.getId();
  	}
  	
  	return null;
  }
 
Example #2
Source File: ModelEditor.java    From tlaplus with MIT License 5 votes vote down vote up
private Pair<Integer, FormPage> getLastFormPage() {
	int index = getPageCount() - 1;
	
	while (index >= 0) {
		final IEditorPart iep = getEditor(index);
		
		if (iep instanceof FormPage) {
			return Pair.of(new Integer(index), (FormPage)iep);
		}
		
		index--;
	}
	
	return null;
}
 
Example #3
Source File: CommentsEditor.java    From olca-app with Mozilla Public License 2.0 5 votes vote down vote up
@Override
protected FormPage getPage() {
	RepositoryClient client = Database.getRepositoryClient();
	List<Comment> comments = new ArrayList<>();
	try {
		comments = client.getAllComments();
	} catch (WebRequestException e) {
		log.error("Error loading comments" , e);
	}
	return new CommentsPage(this, comments);
}
 
Example #4
Source File: PythonEditor.java    From olca-app with Mozilla Public License 2.0 4 votes vote down vote up
@Override
protected FormPage getPage() {
	return page = new Page();
}
 
Example #5
Source File: SqlEditor.java    From olca-app with Mozilla Public License 2.0 4 votes vote down vote up
@Override
protected FormPage getPage() {
	return page = new Page();
}
 
Example #6
Source File: ParameterUsagePage.java    From olca-app with Mozilla Public License 2.0 4 votes vote down vote up
@Override
protected FormPage getPage() {
	return new Page(tree);
}
 
Example #7
Source File: SearchPage.java    From olca-app with Mozilla Public License 2.0 4 votes vote down vote up
@Override
protected FormPage getPage() {
	String title = input.getName() +
			" (" + results.size() + " " + M.Results + ")";
	return new ResultPage(this, title, results);
}
 
Example #8
Source File: LinkingPropertiesPage.java    From olca-app with Mozilla Public License 2.0 4 votes vote down vote up
@Override
protected FormPage getPage() {
	return new Page();
}
 
Example #9
Source File: MappingTool.java    From olca-app with Mozilla Public License 2.0 4 votes vote down vote up
@Override
protected FormPage getPage() {
	page = new MappingPage(this);
	return page;
}
 
Example #10
Source File: LibraryInfoPage.java    From olca-app with Mozilla Public License 2.0 4 votes vote down vote up
@Override
protected FormPage getPage() {
	return new Page();
}
 
Example #11
Source File: BigParameterTable.java    From olca-app with Mozilla Public License 2.0 4 votes vote down vote up
@Override
protected FormPage getPage() {
	return new Page();
}
 
Example #12
Source File: StartPage.java    From olca-app with Mozilla Public License 2.0 4 votes vote down vote up
@Override
protected FormPage getPage() {
	return new Page();
}
 
Example #13
Source File: ReportViewer.java    From olca-app with Mozilla Public License 2.0 4 votes vote down vote up
@Override
protected FormPage getPage() {
	return new Page();
}
 
Example #14
Source File: SimulationEditor.java    From olca-app with Mozilla Public License 2.0 4 votes vote down vote up
@Override
protected FormPage getPage() {
	return new SimulationPage(this);
}
 
Example #15
Source File: SimpleFormEditor.java    From olca-app with Mozilla Public License 2.0 votes vote down vote up
protected abstract FormPage getPage();