use of org.netbeans.modules.php.api.editor.PhpBaseElement in project cakephp-netbeans by cakephp.
the class CakePhpGoToViewAction method goToView.
@Override
public boolean goToView() {
EditorSupport editorSupport = Lookup.getDefault().lookup(EditorSupport.class);
PhpBaseElement phpElement = editorSupport.getElement(controller, offset);
if (phpElement == null) {
return false;
}
FileObject view = CakePhpUtils.getView(controller, phpElement);
if (view != null) {
UiUtils.open(view, DEFAULT_OFFSET);
return true;
}
return false;
}
Aggregations