X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/actions/PHPOpenAllIncludesEditorAction.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/actions/PHPOpenAllIncludesEditorAction.java index 5396755..aec734b 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/actions/PHPOpenAllIncludesEditorAction.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/actions/PHPOpenAllIncludesEditorAction.java @@ -41,7 +41,7 @@ public class PHPOpenAllIncludesEditorAction extends ActionDelegate implements IE private IWorkbenchWindow fWindow; private PHPEditor fEditor; private IProject fProject; - private IncludesScanner fLineCreator; + private IncludesScanner fIncludesScanner; public void dispose() { } @@ -109,22 +109,22 @@ public class PHPOpenAllIncludesEditorAction extends ActionDelegate implements IE ITextSelection selection = (ITextSelection) fEditor.getSelectionProvider().getSelection(); IDocument doc = fEditor.getDocumentProvider().getDocument(fEditor.getEditorInput()); - fLineCreator = new IncludesScanner(this, fProject, (IFileEditorInput) fEditor.getEditorInput()); + fIncludesScanner = new IncludesScanner(fProject, (IFileEditorInput) fEditor.getEditorInput()); int pos = selection.getOffset(); // System.out.println(selection.getText()); String filename = getPHPIncludeText(doc, pos); if (filename != null && !filename.equals("")) { try { - IFile file = fLineCreator.getIncludeFile(filename); - fLineCreator.addFile(file); + IFile file = fIncludesScanner.getIncludeFile(filename); + fIncludesScanner.addFile(file); } catch (Exception e) { // ignore } try { - List list = fLineCreator.getList(); + List list = fIncludesScanner.getList(); if (list != null && list.size() > 0) { String workspaceLocation = PHPeclipsePlugin.getWorkspace().getRoot().getLocation().toString();