Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ptp-dev] Specifying initial directory for file selector dialogs


Greg
It's been quite a while since I've tried to create remote projects so I'm probably doing something wrong.

Beth sent me a URL for RDT server setup http://wiki.eclipse.org/PTP/environment_setup_40#Copy_Remote_Tools_Dstore_server_jar. I downloaded the 9/2 nightly build for PTP 4.0.3, extracted rdt.server from that and put that into the top level directory for a org.eclipse.ptp.rdt.server.dstore  project I created (as a Java project not a plugin project) and that seems to have fixed some problems I was getting with exceptions related to being unable to find a Java Spawner. I also had some out of PermGen memory exceptions I fixed by setting  -XX:PermSize=64M -XX:MaxPermSize=128M options in the run configuration for my Eclipse runtime session

Now I seem to be able to create a remote project although I get an exception the first time thru the wizard for creating a new remote project when I hit 'next' on the 'select configurations' page of the wizard and the list of service configurations on the next (Configure Services) page is blank. If I hit 'back' to get back to the first remote project wizard page and go thru the sequence of pages, then I get a list of service configurations and can create the project. The exception is at the end of this email.

Once I create the remote project, I tried the sequence described in bug 324206. I clicked 'Add' in the 'Remote Paths and Symbols' page of the remote project properties and get a 'Remote Include Directories' dialog. I hit browse there, expecting to see the file selector dialog but nothing happens. I don't get any error messages or exceptions anywhere.

This is the latest HEAD PTP code.

java.lang.NullPointerException
        at org.eclipse.ptp.services.core.ServiceModelManager.getServiceProvider(ServiceModelManager.java:417)
        at org.eclipse.ptp.rdt.ui.wizards.ServiceModelWizardPage.getNewConfiguration(ServiceModelWizardPage.java:220)
        at org.eclipse.ptp.rdt.ui.wizards.ServiceModelWizardPage.createControl(ServiceModelWizardPage.java:147)
        at org.eclipse.jface.wizard.WizardDialog.updateForPage(WizardDialog.java:1220)
        at org.eclipse.jface.wizard.WizardDialog.access$4(WizardDialog.java:1212)
        at org.eclipse.jface.wizard.WizardDialog$6.run(WizardDialog.java:1201)
        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
        at org.eclipse.jface.wizard.WizardDialog.showPage(WizardDialog.java:1199)
        at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:888)
        at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:425)
        at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1050)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4037)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3628)
        at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
        at org.eclipse.jface.window.Window.open(Window.java:801)
        at org.eclipse.ui.actions.NewProjectAction.run(NewProjectAction.java:117)
        at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
        at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
        at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
        at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1050)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4037)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3628)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2416)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2380)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2229)
        at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:504)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:497)
        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:619)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1406)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1382)

Dave


Re: [ptp-dev] Specifying initial directory for file selector dialogs

Greg Watson to: Parallel Tools Platform general developers
09/03/2010 01:34 PM

Sent by: ptp-dev-bounces@xxxxxxxxxxx

Please respond to Parallel Tools Platform general developers







Dave,

Is there anything I can do to help you get your setup working again?

Greg

On Sep 3, 2010, at 12:39 PM, Dave Wootton wrote:


Beth

Bug 324206 is a RDT problem, the bug I was looking at was the PE and LoadLeveler run configuration which has browse  buttons next to a bunch of pathnames. I was trying to fix the code so they would save the last used pathname.


I did try to look at the RDT bug, but something is wrong with my setup with both PTP 4.0 and head where I can't create working remote C projects using either RSE or remote tools connections, so don't have a way to work on this.

Dave


From: Beth Tibbitts/Watson/IBM@IBMUS
To: Parallel Tools Platform general developers <ptp-dev@xxxxxxxxxxx>
Date: 09/02/2010 04:41 AM
Subject: Re: [ptp-dev] Specifying initial directory for file selector dialogs
Sent by: ptp-dev-bounces@xxxxxxxxxxx






Dave, while you are in there, can you look at this, in case it's easy to fix?

https://bugs.eclipse.org/bugs/show_bug.cgi?id=324206
Also has to do with the browse dialog " Use wildcard in browse dir; results don't remove wildcard"


...Beth

Beth Tibbitts
Eclipse Parallel Tools Platform
http://eclipse.org/ptp
IBM STG Communications Protocols and Tools
Mailing Address: IBM Corp., Coldstream Research Campus, 745 West New Circle Road, Lexington, KY 40511

<Mail Attachment.gif>
Dave Wootton---09/01/2010 02:27:17 PM---I was looking at bug 324142 with the intent to open the file or directory selector dialogs expanded
<Mail Attachment.gif>
From:
<Mail Attachment.gif>
Dave Wootton/Poughkeepsie/IBM@IBMUS
<Mail Attachment.gif>
To:
<Mail Attachment.gif>
Parallel Tools Platform general developers <
ptp-dev@xxxxxxxxxxx>
<Mail Attachment.gif>
Date:
<Mail Attachment.gif>
09/01/2010 02:27 PM
<Mail Attachment.gif>
Subject:
<Mail Attachment.gif>
[ptp-dev] Specifying initial directory for file selector dialogs
<Mail Attachment.gif>
Sent by:
<Mail Attachment.gif>
ptp-dev-bounces@xxxxxxxxxxx







I was looking at bug 324142 with the intent to open the file or directory selector dialogs expanded at the last referenced directory (from the run configuration) or the user's home directory if the run configuration doesn't have the last referenced directory for a field. The IRemoteUIFileManager interface defines a browseFile() method that opens a file selector dialog. I'm using this method to open the file selector dialog. However, in looking at the classes LocalUIFileManager, RemoteToolsUIFileManager and RSEUIFileManager, it looks like only the LocalUIFileManager class actually does anything with the initialPath parameter, and that the only case where this will work is with local files.


I also looked at the RSEUIFileManager class. It uses the RSE SystemRemoteFileDialog class to dis[play the file selector and it looks like RSE doesn't even support opening the file selector dialog at a specified directory.


Am I correct that there is no way for me to do what I want? Am I missing something?

Dave
_______________________________________________
ptp-dev mailing list

ptp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ptp-dev

_______________________________________________
ptp-dev mailing list

ptp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ptp-dev


_______________________________________________
ptp-dev mailing list

ptp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ptp-dev

_______________________________________________
ptp-dev mailing list
ptp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ptp-dev


Back to the top