[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [cdt-dev] Different behavior in Linux and Windows
|
Daniele,
have you checked the .log file? It may give some elucidation
...Beth
Beth Tibbitts (859) 243-4981 (TL 545-4981)
High Productivity Tools / Parallel Tools http://eclipse.org/ptp
IBM T.J.Watson Research Center
Mailing Address: IBM Corp., 745 West New Circle Road, Lexington, KY 40511
"Daniele Palmas"
<Daniele.Palmas@t
elit.com> To
Sent by: <cdt-dev@xxxxxxxxxxx>
cdt-dev-bounces@e cc
clipse.org
Subject
[cdt-dev] Different behavior in
04/17/08 05:32 AM Linux and Windows
Please respond to
"CDT General
developers list."
<cdt-dev@eclipse.
org>
Greetings,
I have a different behavior in Linux and Windows for the following piece of
code:
protected void sampleGetSelectedProject() {
ISelectionService ss=PlatformUI.getWorkbench().getActiveWorkbenchWindow
().getSelectionService();
String projExpID = "org.eclipse.ui.navigator.ProjectExplorer";
ISelection sel = ss.getSelection(projExpID););
Object selectedObject=sel;
if(sel instanceof IStructuredSelection) {
selectedObject=((IStructuredSelection)sel).getFirstElement();
}
if (selectedObject instanceof IAdaptable) {
IResource res = (IResource) ((IAdaptable) selectedObject).getAdapter
(IResource.class);
IProject project = res.getProject();
MessageDialog.openInformation(
window.getShell(),
project.getName(),
project.getName());
}
}
In Windows the function correctly works, while in Linux there shows the
following message box:
“The chosen operation is not currently available”
Eclipse version and the cdt version are the same in Linux and Windows.
Any hint about this strange behavior?
Thanks in advance,
Daniele Palmas_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev