How to add files

2011-06-20
2013-03-15
  • mitch rosefelt
    mitch rosefelt
    2011-06-20

    Can someone tell me how to get files that I've copied into my project dir to show up in the Navigator?
    Thanks.

     
  • Fabio Zadrozny
    Fabio Zadrozny
    2011-06-20

    You have to F5 to refresh (although in your preferences you can set the auto-refresh - I believe this was improved on Eclipse 3.7 which should be released shortly).

    Cheers,

    Fabio

     
  • mitch rosefelt
    mitch rosefelt
    2011-06-22

    Thanks, but that is not working.
    Even when I restart eclipse, not all of the '.py' files in my PROJECT_LOC directory show up in the navigator.

     
  • Fabio Zadrozny
    Fabio Zadrozny
    2011-06-22

    Are you using the PyDev package explorer or the navigator? Maybe you have a filter enabled which is hiding those files?

    Cheers,

    Fabio

     
  • mitch rosefelt
    mitch rosefelt
    2011-06-22

    I'm just using the navigator.  I don't see where the filter is located, but the files that I add to the dir are .py.  I'm just adding via windows file system.  Do I need to import them into the project.  Can I tell eclipse to rescan the PROJECT_LOC directory?
    Thanks.

     
  • Fabio Zadrozny
    Fabio Zadrozny
    2011-06-23

    Can you check if the pydev package explorer or project explorer show those files? (i.e.: may be an issue in the navigator)

    Cheers,

    Fabio

     
  • mitch rosefelt
    mitch rosefelt
    2011-06-24

    It doesn't show in those either.
    Here's an example - you can see that the file 'advancetonextdrivenkey.py' is in the dir, but it doesn't show up in any of the navigators.
    http://thepixelfarm.com/tmp/EclipseImportProb01.png
    Thanks for your help.

     
  • Fabio Zadrozny
    Fabio Zadrozny
    2011-06-24

    Is it possible that you're seeing a different folder with similar contents in eclipse? (i.e.: right click project > properties and see resource location).

    Do you have some error in your error log?

    Cheers,

    Fabio

     
  • mitch rosefelt
    mitch rosefelt
    2011-06-24

    In Properties/Resource/Linked Resources, the PROJECT_LOC directory is the same as the dir in which my scripts reside.
    I get 3 errors when I launch eclipse.
    I'll post them separately.  It's a bit long, if its a hassle to figure, don't worry about it, this problem isn't a big deal - I can still drag and drop into eclipse.

     
  • mitch rosefelt
    mitch rosefelt
    2011-06-24

    !SESSION 2011-06-24 09:08:19.093 -------------------------------
    eclipse.buildId=M20110210-1200
    java.version=1.6.0_20
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
    Command-line arguments:  -os win32 -ws win32 -arch x86_64

    !ENTRY org.python.pydev.core 1 1 2011-06-24 09:08:22.875
    !MESSAGE Expected IO issue (version changed or validation not ok): properly handled.
    !STACK 0
    java.io.IOException: No loaded contents from: C:\tmp\EclipseWorkspace\.metadata\.plugins\org.eclipse.core.resources\.projects\pixLScripts\org.python.pydev\v1_astmanager\pythonpath
    at org.python.pydev.editor.codecompletion.revisited.PythonPathHelper.loadFromFile(PythonPathHelper.java:537)
    at org.python.pydev.editor.codecompletion.revisited.ModulesManager.loadFromFile(ModulesManager.java:267)
    at org.python.pydev.editor.codecompletion.revisited.ASTManager.loadFromFile(ASTManager.java:106)
    at org.python.pydev.plugin.nature.PythonNature.init(PythonNature.java:548)
    at org.python.pydev.plugin.nature.PythonNature.setProject(PythonNature.java:309)
    at org.eclipse.core.internal.resources.NatureManager.createNature(NatureManager.java:232)
    at org.eclipse.core.internal.resources.Project.getNature(Project.java:399)
    at org.python.pydev.plugin.nature.PythonNature.getPythonNature(PythonNature.java:701)
    at org.python.pydev.editor.PyEdit.getPythonNature(PyEdit.java:1565)
    at org.python.pydev.editor.PyEdit.getGrammarVersionProvider(PyEdit.java:1545)
    at org.python.pydev.parser.PyParser.getGrammarProviderFromEdit(PyParser.java:230)
    at org.python.pydev.parser.PyParser.<init>(PyParser.java:221)
    at org.python.pydev.parser.PyParserManager.attachParserTo(PyParserManager.java:167)
    at org.python.pydev.editor.PyEdit.doSetInput(PyEdit.java:824)
    at org.eclipse.ui.texteditor.AbstractTextEditor$19.run(AbstractTextEditor.java:3043)
    at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
    at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
    at org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:759)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
    at org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:756)
    at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2606)
    at org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(AbstractTextEditor.java:3061)
    at org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTextEditor.java:3088)
    at org.python.pydev.editor.PyEdit.init(PyEdit.java:633)
    at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:798)
    at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:647)
    at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
    at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
    at org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(EditorAreaHelper.java:271)
    at org.eclipse.ui.internal.EditorManager.setVisibleEditor(EditorManager.java:1429)
    at org.eclipse.ui.internal.EditorManager$5.runWithException(EditorManager.java:942)
    at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
    at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4041)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3660)
    at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:803)
    at org.eclipse.ui.internal.Workbench$31.runWithException(Workbench.java:1567)
    at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
    at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4041)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3660)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2548)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
    at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1384)

    !ENTRY org.eclipse.jface 2 0 2011-06-24 09:08:24.437
    !MESSAGE Keybinding conflicts occurred.  They may interfere with normal accelerator operation.
    !SUBENTRY 1 org.eclipse.jface 2 0 2011-06-24 09:08:24.437
    !MESSAGE A conflict occurred for CTRL+SHIFT+T:
    Binding(CTRL+SHIFT+T,
    ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type,
    Open a type in a Java editor,
    Category(org.eclipse.ui.category.navigate,Navigate,null,true),
    ,
    ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    org.eclipse.ui.contexts.window,,,system)
    Binding(CTRL+SHIFT+T,
    ParameterizedCommand(Command(com.python.pydev.analysis.actions.pyGlobalsBrowserWorkbench,Python Show Class Browser,
    Show Class Browser,
    Category(org.python.pydev.ui.category.source,PyDev - Editor,PyDev editor category,true),
    ,
    ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    org.eclipse.ui.contexts.window,,,system)

    !ENTRY org.eclipse.equinox.p2.metadata.repository 4 1000 2011-06-24 09:08:28.500
    !MESSAGE No repository found at jar:file:/D:/_TempApps/Eclipse/to.etc.eclipse.editor.bookmarks.feature_1.1.1.200907131955.jar!/.

    !ENTRY org.eclipse.equinox.p2.metadata.repository 4 1000 2011-06-24 09:08:40.968
    !MESSAGE No repository found at http://etc.to/eclipse_bookmarks_plugin.