Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [dsdp-mtj-dev] How retrieve saved MTJ project configuration

This is more about JDT. org.eclipse.jdt.core.JavaCore.create(IProject) should the trick for you.

You may also want to add yourself to this bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=273427. I believe it is opened to provide APIĀ  that would help your use case.
--
Gorkem

On Wed, Apr 22, 2009 at 7:01 PM, Roger Silva <rogersilvaneto@xxxxxxxxx> wrote:
Hi all,
thanks a lot for helping :)

> You are probably looking for org.eclipse.mtj.core.MTJCore.getMetaData()
It seems that I can retrieve some important information using
org.eclipse.mtj.core.MTJCore static methods.

However, I also need to retrieve some java configuration from MTJ
project created by the user as well.
I've found out that a MJT project have two natures:
org.eclipse.jdt.core.javanature , and org.eclipse.mtj.core.nature.
Is it feaseble/possible to somehow get IJavaPorject refrence from
IProject one?How can I do that?

By the way, suppose that a new plug in declares a nature called X, and
this nature also implements an class that holds specific data
regarding this new type of project called ProjectX. Is there a
standard way to get ProjectX reference from IProject interface?

> Is there an easy way to get an IMTJProject from an IProject?
I couldn't find it either, any suggestions?

thanks in advance,
Roger

On Wed, Apr 22, 2009 at 10:45 AM, Gorkem Ercan <gercan@xxxxxxx> wrote:
> Is there an easy way to get an IMTJProject from an IProject? The only way I
> could find was through the MidletSuiteFactory but MidletSuiteFactory is
> internal and also it sounds like it is for Midlet projects only.
> --
> Gorkem
>
> On Wed, Apr 22, 2009 at 4:30 PM, Craig Setera <craigjunk@xxxxxxxxxx> wrote:
>>
>> Or possibly using the IMTJProject interface.
>> On Apr 22, 2009, at 8:27 AM, Gorkem Ercan wrote:
>>
>> You are probably looking for org.eclipse.mtj.core.MTJCore.getMetaData()
>> --
>> Gorkem
>>
>> On Wed, Apr 22, 2009 at 4:11 PM, Roger Silva <rogersilvaneto@xxxxxxxxx>
>> wrote:
>>>
>>> Dear all, How are you?
>>>
>>> I'm developing an Eclipse Plug that extends Mobile Tools for Java plug
>>> in features.
>>> I need to retrieve all specific information regarding a MTJ project
>>> saved on users' workspace.
>>> For instance, If the user has a MTJ project on his/her workspace, then
>>> I need to retrieve its MTJ specific configuration like device, and so
>>> on.
>>>
>>> I'm able to get all workspace project using the source code bellow,
>>> but I couldn't figure out how to retrieve all particular MTJ
>>> configuration through IProject interface.
>>>
>>> IProject[] projects =
>>> ResourcesPlugin.getWorkspace().getRoot().getProjects();
>>>
>>> Please, May someone help me with this issue?
>>>
>>> I appreciate any help you can give me,
>>> thanks,
>>> Roger
>>> _______________________________________________
>>> dsdp-mtj-dev mailing list
>>> dsdp-mtj-dev@xxxxxxxxxxx
>>> https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev
>>
>> _______________________________________________
>> dsdp-mtj-dev mailing list
>> dsdp-mtj-dev@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev
>>
>>
>> _______________________________________________
>> dsdp-mtj-dev mailing list
>> dsdp-mtj-dev@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev
>>
>
>
> _______________________________________________
> dsdp-mtj-dev mailing list
> dsdp-mtj-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev
>
>
_______________________________________________
dsdp-mtj-dev mailing list
dsdp-mtj-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dsdp-mtj-dev


Back to the top