Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » problems with the workspace handling in RCP/Eclipse(does not ask for a workspace and does not switch the workspace)
problems with the workspace handling in RCP/Eclipse [message #639916] Thu, 18 November 2010 12:16 Go to next message
Nico Stieler is currently offline Nico StielerFriend
Messages: 13
Registered: November 2010
Junior Member
Dear Eclipse RCP people,

we are developing a product based on RCP and eclipse. We have some problems with the workspace handling:
• When starting the product the first time: it doesn't ask the user to choose the workspace. Instead it takes a default workspace : ./workspace.
• When use the function "switch workspace", it does restart
eclipse and add the entered workspace to the workspaces I can select
on "switch workspace", but it does not switch the workspace Sad

I tried a lot of things to solve this:
• -data @noDefault, to force the product to ask the user for a workspace, but it does not work (errorlog1)
( Dani (daniel_mergert@ch.ibm.com) said that, you should simply remove "-data", but that's no solution: in this case it is just creating a default workspace)
• Set the workspace when the product is starting (code2) this
is working, but it's not a nice solution
• Many other things without any positive result.

What to do?
• Maybe using a different application super class or
interface.
• ...

Thanks a lot,

Best regards,
Nico Stieler

Re: problems with the workspace handling in RCP/Eclipse [message #639917 is a reply to message #639916] Thu, 18 November 2010 12:19 Go to previous messageGo to next message
Nico Stieler is currently offline Nico StielerFriend
Messages: 13
Registered: November 2010
Junior Member
code2:
public class Application implements IApplication {

/* (non-Javadoc)
* @see org.eclipse.equinox.app.IApplication#start(org.eclipse.equin ox.app.IApplicationContext)
*/
public Object start(IApplicationContext context) {
setupLog4j();

Display display = PlatformUI.createDisplay();

//this solution does not work Sad

String fileName = "C:\\Users\\xxx\\out.txt";
BufferedWriter out = null;
Location instanceLoc = Platform.getInstanceLocation();

URL url = promptForInstanceLoc(display);

if (url != null) {
try {
instanceLoc.set(url, true);
} catch (Exception e) {
e.printStackTrace();
}
}
try {
int returnCode = PlatformUI.createAndRunWorkbench(display, new ApplicationWorkbenchAdvisor());
if (returnCode == PlatformUI.RETURN_RESTART) {
return IApplication.EXIT_RESTART;
}
return IApplication.EXIT_OK;
} finally {
display.dispose();
}
}



private URL promptForInstanceLoc(Display display) {
Shell shell = new Shell(display);
DirectoryDialog dialog = new DirectoryDialog(shell);
dialog.setText("Select Workspace Directory");
dialog.setMessage("Select the workspace directory to use.");
String dir = dialog.open();
shell.dispose();
try {
return dir == null ? null : new File(dir).toURL();
} catch (MalformedURLException e) {
return null;
}
}
...
Re: problems with the workspace handling in RCP/Eclipse [message #639919 is a reply to message #639917] Thu, 18 November 2010 12:22 Go to previous messageGo to next message
Nico Stieler is currently offline Nico StielerFriend
Messages: 13
Registered: November 2010
Junior Member
errorlog2
!SESSION 2010-11-17 15:43:57.080 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_16
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
Command-line arguments: -os win32 -ws win32 -arch x86 -clean -data @noDefault

!ENTRY org.eclipse.equinox.ds 4 0 2010-11-17 15:43:59.561
!MESSAGE
!STACK 0
org.osgi.framework.BundleException: The bundle could not be resolved. Reason: Missing Constraint: Import-Package: org.eclipse.equinox.internal.util.event; version="1.0.0"
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getR esolverError(AbstractBundle.java:1313)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getR esolutionFailureException(AbstractBundle.java:1297)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:309)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resu me(AbstractBundle.java:370)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBun dle(Framework.java:1068)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.r esumeBundles(StartLevelManager.java:557)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.i ncFWSL(StartLevelManager.java:464)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.d oSetStartLevel(StartLevelManager.java:248)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.d ispatchEvent(StartLevelManager.java:445)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:227)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread .run(EventManager.java:337)

!ENTRY org.eclipse.osgi 4 0 2010-11-17 15:44:04.725
!MESSAGE An error occurred while automatically activating bundle org.eclipse.core.resources (41).
!STACK 0
org.osgi.framework.BundleException: Exception in org.eclipse.core.resources.ResourcesPlugin.start() of bundle org.eclipse.core.resources.
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:806)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:755)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:352)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:280)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAct ion.java:408)
at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:111)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:449)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:211)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass (BundleLoader.java:381)
at org.eclipse.osgi.internal.loader.SingleSourcePackage.loadCla ss(SingleSourcePackage.java:33)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInter nal(BundleLoader.java:454)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:410)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:398)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:105)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at org.xxx.application.intro.ApplicationWorkbenchWindowAdvisor. createActionBarAdvisor(ApplicationWorkbenchWindowAdvisor.jav a:43)
at org.eclipse.ui.internal.WorkbenchWindow.getActionBarAdvisor( WorkbenchWindow.java:3458)
at org.eclipse.ui.internal.WorkbenchWindow.fillActionBars(Workb enchWindow.java:3482)
at org.eclipse.ui.internal.WorkbenchWindow.<init>(WorkbenchWindow.java:404)
at org.eclipse.ui.internal.tweaklets.Workbench3xImplementation. createWorkbenchWindow(Workbench3xImplementation.java:31)
at org.eclipse.ui.internal.Workbench.newWorkbenchWindow(Workben ch.java:1731)
at org.eclipse.ui.internal.Workbench.access$14(Workbench.java:1 729)
at org.eclipse.ui.internal.Workbench$19.runWithException(Workbe nch.java:1023)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3885)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3506)
at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:803)
at org.eclipse.ui.internal.Workbench$28.runWithException(Workbe nch.java:1384)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3885)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3506)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2316)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.xxx.application.intro.Application.start(Application.java :97)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
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(EclipseS tarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.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: 559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
Caused by: java.lang.IllegalStateException: The instance data location has not been specified yet.
at org.eclipse.core.internal.runtime.DataArea.assertLocationIni tialized(DataArea.java:54)
at org.eclipse.core.internal.runtime.DataArea.getStateLocation( DataArea.java:120)
at org.eclipse.core.internal.runtime.InternalPlatform.getStateL ocation(InternalPlatform.java:606)
at org.eclipse.core.runtime.Plugin.getStateLocation(Plugin.java :312)
at org.eclipse.core.internal.resources.LocalMetaArea.<init>(LocalMetaArea.java:53)
at org.eclipse.core.resources.ResourcesPlugin.start(ResourcesPl ugin.java:371)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1 .run(BundleContextImpl.java:783)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:774)
... 54 more
Root exception:
java.lang.IllegalStateException: The instance data location has not been specified yet.
at org.eclipse.core.internal.runtime.DataArea.assertLocationIni tialized(DataArea.java:54)
at org.eclipse.core.internal.runtime.DataArea.getStateLocation( DataArea.java:120)
at org.eclipse.core.internal.runtime.InternalPlatform.getStateL ocation(InternalPlatform.java:606)
at org.eclipse.core.runtime.Plugin.getStateLocation(Plugin.java :312)
at org.eclipse.core.internal.resources.LocalMetaArea.<init>(LocalMetaArea.java:53)
at org.eclipse.core.resources.ResourcesPlugin.start(ResourcesPl ugin.java:371)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1 .run(BundleContextImpl.java:783)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:774)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:755)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:352)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:280)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAct ion.java:408)
at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:111)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:449)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:211)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass (BundleLoader.java:381)
at org.eclipse.osgi.internal.loader.SingleSourcePackage.loadCla ss(SingleSourcePackage.java:33)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInter nal(BundleLoader.java:454)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:410)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:398)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:105)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at org.xxx.application.intro.ApplicationWorkbenchWindowAdvisor. createActionBarAdvisor(ApplicationWorkbenchWindowAdvisor.jav a:43)
at org.eclipse.ui.internal.WorkbenchWindow.getActionBarAdvisor( WorkbenchWindow.java:3458)
at org.eclipse.ui.internal.WorkbenchWindow.fillActionBars(Workb enchWindow.java:3482)
at org.eclipse.ui.internal.WorkbenchWindow.<init>(WorkbenchWindow.java:404)
at org.eclipse.ui.internal.tweaklets.Workbench3xImplementation. createWorkbenchWindow(Workbench3xImplementation.java:31)
at org.eclipse.ui.internal.Workbench.newWorkbenchWindow(Workben ch.java:1731)
at org.eclipse.ui.internal.Workbench.access$14(Workbench.java:1 729)
at org.eclipse.ui.internal.Workbench$19.runWithException(Workbe nch.java:1023)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3885)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3506)
at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:803)
at org.eclipse.ui.internal.Workbench$28.runWithException(Workbe nch.java:1384)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3885)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3506)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2316)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.xxx.application.intro.Application.start(Application.java :97)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
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(EclipseS tarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.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: 559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)

!ENTRY org.eclipse.osgi 4 0 2010-11-17 15:44:04.771
!MESSAGE Application error
!STACK 1
java.lang.NoClassDefFoundError: org/eclipse/core/resources/IResourceChangeListener
at org.xxx.application.intro.ApplicationWorkbenchWindowAdvisor. createActionBarAdvisor(ApplicationWorkbenchWindowAdvisor.jav a:43)
at org.eclipse.ui.internal.WorkbenchWindow.getActionBarAdvisor( WorkbenchWindow.java:3458)
at org.eclipse.ui.internal.WorkbenchWindow.fillActionBars(Workb enchWindow.java:3482)
at org.eclipse.ui.internal.WorkbenchWindow.<init>(WorkbenchWindow.java:404)
at org.eclipse.ui.internal.tweaklets.Workbench3xImplementation. createWorkbenchWindow(Workbench3xImplementation.java:31)
at org.eclipse.ui.internal.Workbench.newWorkbenchWindow(Workben ch.java:1731)
at org.eclipse.ui.internal.Workbench.access$14(Workbench.java:1 729)
at org.eclipse.ui.internal.Workbench$19.runWithException(Workbe nch.java:1023)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3885)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3506)
at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:803)
at org.eclipse.ui.internal.Workbench$28.runWithException(Workbe nch.java:1384)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3885)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3506)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2316)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.xxx.application.intro.Application.start(Application.java :97)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
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(EclipseS tarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.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: 559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
Caused by: org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter $TerminatingClassNotFoundException: An error occurred while automatically activating bundle org.eclipse.core.resources (41).
at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:125)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:449)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:211)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass (BundleLoader.java:381)
at org.eclipse.osgi.internal.loader.SingleSourcePackage.loadCla ss(SingleSourcePackage.java:33)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInter nal(BundleLoader.java:454)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:410)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:398)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:105)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 39 more
Caused by: org.osgi.framework.BundleException: Exception in org.eclipse.core.resources.ResourcesPlugin.start() of bundle org.eclipse.core.resources.
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:806)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:755)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:352)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:280)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAct ion.java:408)
at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:111)
... 49 more
Caused by: java.lang.IllegalStateException: The instance data location has not been specified yet.
at org.eclipse.core.internal.runtime.DataArea.assertLocationIni tialized(DataArea.java:54)
at org.eclipse.core.internal.runtime.DataArea.getStateLocation( DataArea.java:120)
at org.eclipse.core.internal.runtime.InternalPlatform.getStateL ocation(InternalPlatform.java:606)
at org.eclipse.core.runtime.Plugin.getStateLocation(Plugin.java :312)
at org.eclipse.core.internal.resources.LocalMetaArea.<init>(LocalMetaArea.java:53)
at org.eclipse.core.resources.ResourcesPlugin.start(ResourcesPl ugin.java:371)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1 .run(BundleContextImpl.java:783)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:774)
... 54 more
Re: problems with the workspace handling in RCP/Eclipse [message #639939 is a reply to message #639916] Thu, 18 November 2010 13:25 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
Nico Stieler wrote:
> Dear Eclipse RCP people,
>
> we are developing a product based on RCP and eclipse. We have some
> problems with the workspace handling:
> • When starting the product the first time: it doesn't
> ask the user to choose the workspace. Instead it takes a default
> workspace : ./workspace.
> • When use the function "switch workspace", it does restart
> eclipse and add the entered workspace to the workspaces I can select
> on "switch workspace", but it does not switch the workspace :(
>
> I tried a lot of things to solve this:
> • -data @noDefault, to force the product to ask the user
> for a workspace, but it does not work (errorlog1)
> ( Dani (mailto:daniel_mergert@ch.ibm.com) said that, you should simply
> remove "-data", but that's no solution: in this case it is just
> creating a default workspace)
At least the default eclipse.exe asks for the workspace.

Dani
> • Set the workspace when the product is starting
> (code2) this
> is working, but it's not a nice solution
> • Many other things without any positive result.
>
> What to do?
> • Maybe using a different application super class or
> interface.
> • ...
>
> Thanks a lot,
>
> Best regards,
> Nico Stieler
>
>
Re: problems with the workspace handling in RCP/Eclipse [message #640123 is a reply to message #639939] Fri, 19 November 2010 08:47 Go to previous messageGo to next message
Nico Stieler is currently offline Nico StielerFriend
Messages: 13
Registered: November 2010
Junior Member
Hi Dani,
How can this help me?
We are trying to create a product based on RCP using some eclipse packages.

everything works fine, except of the workspace.

what kind of information do you need to help me?

best regards,
Nico
Re: problems with the workspace handling in RCP/Eclipse [message #640499 is a reply to message #639939] Mon, 22 November 2010 11:03 Go to previous message
Nico Stieler is currently offline Nico StielerFriend
Messages: 13
Registered: November 2010
Junior Member
Hello everybody,

I just found something on http://wiki.eclipse.org/FAQ_How_do_I_run_Eclipse%3F:

Quote:
The first time the eclipse command is executed, the platform creates a workspace directory, such as eclipse/workspace. The workspace will contain all your projects, along with private metadata computed by various plug-ins.

In Eclipse 3.0, you are prompted to choose a workspace location on start-up. Previously, the platform stored the workspace in the Eclipse install directory by default.


I am using 3.5.2 as target plattform. What could be wrong that I doesn't get promted to choose a workspace?

  • wrong settings
  • missing configuration file
  • others

Best Regards,
Nico
Previous Topic:Shell for LaunchConfigurationDelegate subclass
Next Topic:Cannot login or create new topics via website
Goto Forum:
  


Current Time: Fri Apr 19 16:03:55 GMT 2024

Powered by FUDForum. Page generated in 0.03082 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top