[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[cdt-dev] how to get project path while creating a C/C++ project.
|
Hi,
I am trying to define my own project template using CDT managedbuilder.I
had used the extension point
"org.eclipse.cdt.managedbuilder.ui.newWizardPages" and defined a custom
page which extends MBSCustomPage .The page is coming.
But in my page I had to get the name of the project(path) which I had
given in the C/C++ project page. Can anyone help me?
Thanks in advance....
Regards,
Bhavana Babu
-----Original Message-----
From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx]
On Behalf Of cdt-dev-request@xxxxxxxxxxx
Sent: Wednesday, April 09, 2008 6:55 PM
To: cdt-dev@xxxxxxxxxxx
Subject: cdt-dev Digest, Vol 38, Issue 19
Send cdt-dev mailing list submissions to
cdt-dev@xxxxxxxxxxx
To subscribe or unsubscribe via the World Wide Web, visit
https://dev.eclipse.org/mailman/listinfo/cdt-dev
or, via email, send a message with subject or body 'help' to
cdt-dev-request@xxxxxxxxxxx
You can reach the person managing the list at
cdt-dev-owner@xxxxxxxxxxx
When replying, please edit your Subject line so it is more specific
than "Re: Contents of cdt-dev digest..."
Today's Topics:
1. Bug #224560 (Tracy Miranda)
2. RE: Warnings and SuppressWarnings (Schorn, Markus)
3. Re: Finding selected project name in Project Explorervia
Java
code (Beth Tibbitts)
4. "New line at end of file when saving" as project preference
(Gabriel Castro)
----------------------------------------------------------------------
Message: 1
Date: Wed, 9 Apr 2008 11:27:07 +0100
From: "Tracy Miranda" <Tracy.Miranda@xxxxxxxxxxxxxxxxxx>
Subject: [cdt-dev] Bug #224560
To: <cdt-dev@xxxxxxxxxxx>
Message-ID:
<12E954288C78C14F91B669E85B5CB56E62136A@cyanserver.cyantechnology.local>
Content-Type: text/plain; charset="us-ascii"
Hi,
Could someone please have a look at this bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=224560
<https://bugs.eclipse.org/bugs/show_bug.cgi?id=224560> .
It's an unpleasant bug with the memory view, but has a very simple fix
(index variable 'i' used instead of 'j').
Thanks,
Tracy
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
https://dev.eclipse.org/mailman/private/cdt-dev/attachments/20080409/58a
6f125/attachment.html
------------------------------
Message: 2
Date: Wed, 9 Apr 2008 13:39:37 +0200
From: "Schorn, Markus" <Markus.Schorn@xxxxxxxxxxxxx>
Subject: RE: [cdt-dev] Warnings and SuppressWarnings
To: "CDT General developers list." <cdt-dev@xxxxxxxxxxx>
Message-ID:
<460801A4097E3D4CA04CC64EE648584805374AF5@xxxxxxxxxxxxxxxxxxxxxxxxxx>
Content-Type: text/plain; charset="US-ASCII"
I have increased the warning level (including all of Mike's suggestions)
for the ui-plugin and applied the same settings to the core plugin.
There are a lot of warnings now, I have started to fix warnings (for now
in the ui-plugin) and hope to get some help from some you.
Markus.
> -----Original Message-----
> From: cdt-dev-bounces@xxxxxxxxxxx
> [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Mike Kucera
> Sent: Tuesday, April 08, 2008 4:27 PM
> To: CDT General developers list.
> Subject: RE: [cdt-dev] Warnings and SuppressWarnings
> Importance: Low
>
> I would never veto something that people clearly want.
>
> May I make a few more suggestions (based on the current
> settings in the UI
> plugin) :
>
> redundant null check -> warning
> unnecessary else statement -> warning
> redundant super interface -> warning
> usage of raw type -> warning
> missing @override annotation -> warning
> missing @deprecated annotation -> warning unused import -> error
>
>
> Mike Kucera
> Software Developer
> IBM CDT Team, Toronto
> mkucera@xxxxxxxxxx
>
>
>
>
> "Schorn, Markus"
>
> <Markus.Schorn@wi
>
> ndriver.com>
> To
> Sent by: "CDT General
> developers list."
> cdt-dev-bounces@e <cdt-dev@xxxxxxxxxxx>
>
> clipse.org
> cc
>
>
>
> Subject
> 04/08/2008 04:56 RE: [cdt-dev] Warnings
> and
> AM SuppressWarnings
>
>
>
>
>
> Please respond to
>
> "CDT General
>
> developers list."
>
> <cdt-dev@eclipse.
>
> org>
>
>
>
>
>
>
>
>
>
> Ok, I'd like to increase the warning levels:
> "Enum type constant not covered on switch": none -> warning
> "Null pointer access": warning -> error
> "Potential null pointer access": none -> warning
> "switch case fall-through":
> none -> warning
>
> Please reply, if you have an objection.
>
>
> Mike, if you don't explicitly veto this, I'll enable the
> shared warning-settings for the core-plugin, also.
>
> Markus.
>
>
> > -----Original Message-----
> > From: cdt-dev-bounces@xxxxxxxxxxx
> > [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Mike Kucera
> > Sent: Tuesday, April 08, 2008 1:59 AM
> > To: CDT General developers list.
> > Subject: Re: [cdt-dev] Warnings and SuppressWarnings
> > Importance: Low
> >
> > +1
> >
> > I like the idea of turning some warnings into errors.
> >
> > Mike Kucera
> > Software Developer
> > IBM CDT Team, Toronto
> > mkucera@xxxxxxxxxx
> >
> >
> >
> >
> > Elena Laskavaia
> >
> > <ELaskavaia@qnx.c
> >
> > om>
> > To
> > Sent by: "CDT General
> > developers list."
> > cdt-dev-bounces@e <cdt-dev@xxxxxxxxxxx>
> >
> > clipse.org
> > cc
> >
> >
> >
> > Subject
> > 04/07/2008 12:38 Re: [cdt-dev] Warnings
> > and
> > PM SuppressWarnings
> >
> >
> >
> >
> >
> > Please respond to
> >
> > "CDT General
> >
> > developers list."
> >
> > <cdt-dev@eclipse.
> >
> > org>
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > I think it is good idea. But we should enable as much as we can and
> > turn some warning into errors, such as unused import.
> >
> > Schorn, Markus wrote:
> > >
> > > Hi,
> > > I am getting a bunch of warnings in the core-plugin of
> the following
> > > kind: Unnecessary @SuppressWarnings. I assume this is because my
> > > compiler warning settings differ from the ones of others.
> > >
> > > Therefore I suggest to use a common set of warnings for all
> > of us and
> > > check it into CVS (like we are doing this in the cdt.ui plugin).
> > >
> > > Has anyone objections against this? I'd start out with the same
> > > settings as we are using for the ui-plugin.
> > >
> > > Markus.
> > > _______________________________________________
> > > cdt-dev mailing list
> > > cdt-dev@xxxxxxxxxxx
> > > https://dev.eclipse.org/mailman/listinfo/cdt-dev
> > >
> > _______________________________________________
> > cdt-dev mailing list
> > cdt-dev@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/cdt-dev
> >
> >
> > _______________________________________________
> > cdt-dev mailing list
> > cdt-dev@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/cdt-dev
> >
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-dev
>
>
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-dev
>
------------------------------
Message: 3
Date: Wed, 9 Apr 2008 07:40:06 -0400
From: Beth Tibbitts <tibbitts@xxxxxxxxxx>
Subject: Re: [cdt-dev] Finding selected project name in Project
Explorervia Java code
To: wieant@xxxxxxxxx, "CDT General developers list."
<cdt-dev@xxxxxxxxxxx>
Message-ID:
<OF779C77CD.F41A66CF-ON85257426.004004ED-85257426.004018A0@xxxxxxxxxx>
Content-Type: text/plain; charset=US-ASCII
Yes, sorry, my own plugin class sneaked in there. Thanks Wieant.
..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
wieant@xxxxxxxxx
(Wieant
Nielander)
To
Sent by: "CDT General developers list."
cdt-dev-bounces@e <cdt-dev@xxxxxxxxxxx>
clipse.org
cc
Subject
04/09/08 04:25 AM Re: [cdt-dev] Finding selected
project name in Project
Explorervia Java code
Please respond to
wieant@xxxxxxxxx;
Please respond to
"CDT General
developers list."
<cdt-dev@eclipse.
org>
>> How about this? May be a bit round-about but seems to work whether
the
>> selection is a project, a leaf node (file) or container (folder in
>> between). May not work on some of the indirect resources like
include
>> files etc., however.
>>
>> protected void sampleGetSelectedProject() {
>> ISelectionService
ss=CommonPlugin.getDefault().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();
>> System.out.println(."Project found:
"+project.getName
());
>> }
>> }}
> I can't find the package where the CommonPlugin class is. Any advice?
'CommonPlugin' probably referred to your own plugin activator, you
can also use the 'common' PlatformUI class:
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getSelectionService
();
-- Wieant
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev
------------------------------
Message: 4
Date: Wed, 9 Apr 2008 09:25:20 -0400
From: Gabriel Castro <Gabriel_Castro@xxxxxxxxxx>
Subject: [cdt-dev] "New line at end of file when saving" as project
preference
To: cdt-dev@xxxxxxxxxxx
Message-ID:
<OFA6F38591.E1DA88FF-ON85257426.004637EB-85257426.0049B985@xxxxxxxxxx>
Content-Type: text/plain; charset="us-ascii"
Hi,
Some of the developers in our team have expressed that they would like
to
see the "Ensure newline at end of file when saving" preference on by
default:
(Embedded image moved to file: pic18881.jpg)
I know this is probably not going to make it into 5.0 as it's so close
but
would it be possible to also make this a project specific preference?
Thanks,
Gabriel Castro
Software Engineer
IBM Ottawa Lab
(613) 726-5548
gabriel_castro@xxxxxxxxxx
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pic18881.jpg
Type: image/jpeg
Size: 18286 bytes
Desc: not available
Url :
https://dev.eclipse.org/mailman/private/cdt-dev/attachments/20080409/14f
b4cbe/pic18881.jpg
------------------------------
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev
End of cdt-dev Digest, Vol 38, Issue 19
***************************************