use of com.liferay.ide.ui.editor.InputContext in project liferay-ide by liferay.
the class IDEFormEditor method gotoMarker.
/**
* @return
*/
public void gotoMarker(IMarker marker) {
IResource resource = marker.getResource();
InputContext context = fInputContextManager.findContext(resource);
if (context == null) {
return;
}
IFormPage page = getActivePageInstance();
if (!context.getId().equals(page.getId())) {
page = setActivePage(context.getId());
}
IDE.gotoMarker(page, marker);
}
use of com.liferay.ide.ui.editor.InputContext in project liferay-ide by liferay.
the class IDEFormEditor method _validateEdit.
private void _validateEdit(IEditorInput input) {
InputContext context = fInputContextManager.getContext(input);
if (!context.validateEdit()) {
IWorkbenchPartSite site = getSite();
Shell shell = site.getShell();
shell.getDisplay().asyncExec(new Runnable() {
public void run() {
doRevert(context.getInput());
context.setValidated(false);
}
});
}
}
Aggregations