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

Hi,

 

Clients can use the "public static IMTJProject geMTJProject(IProject project)" method from MTJCore facade to retrieve the active MTJ project associated with the specified IProject.

 

This method was made available in the latest nightly build (N20090427). For more info just take a look at the updated MTJCore javadoc (the DSDP infocenter takes some time to retrieve the latest documentation, probably by tomorrow it will be updated with the correct version).

 

Diego

 

-----Original Message-----
From: dsdp-mtj-dev-bounces@xxxxxxxxxxx [mailto:dsdp-mtj-dev-bounces@xxxxxxxxxxx] On Behalf Of Craig Setera
Sent: Monday, April 27, 2009 10:07 AM
To: Mobile Tools for The Java Platform mailing list
Subject: Re: [dsdp-mtj-dev] How retrieve saved MTJ project configuration

 

Ahh... OK.  Thanks.

 

On Apr 27, 2009, at 8:04 AM, Sandin Diego-WDS057 wrote:

 

> http://dsdp.eclipse.org/help/latest/index.jsp?topic=/org.eclipse.mtj.doc

> .isv/html/reference/api/org/eclipse/mtj/core/project/ProjectType.html

> 

> -----Original Message-----

> From: dsdp-mtj-dev-bounces@xxxxxxxxxxx

> [mailto:dsdp-mtj-dev-bounces@xxxxxxxxxxx] On Behalf Of Craig Setera

> Sent: Sunday, April 26, 2009 3:57 PM

> To: Mobile Tools for The Java Platform mailing list

> Subject: Re: [dsdp-mtj-dev] How retrieve saved MTJ project 

> configuration

> 

> I like the concept.  What is the "projectType" variable?

> 

> On Apr 24, 2009, at 8:56 AM, Sandin Diego-WDS057 wrote:

> 

>> Hi

>> 

>> I didn't make this class public, instead I'm creating an access 

>> method

>> to it in the same way JDT does. It will work the same as

>> org.eclipse.jdt.core.JavaCore.create(IProject)

>> 

>>   /**

>>    * Returns the active MTJ project associated with the specified

>> IProject, or

>>    * <code>null</code> if no MTJ project yet exists for the IProject.

>>    *

>>    * @param project

>>    * @param projectType

>>    * @return

>>    */

>>   public static IMTJProject geMTJProject(IProject project,

>>           ProjectType projectType);

>> 

>> It's better to keep the implementations private, so we won't have to

>> maintain compatibility as we discussed before when starting the

>> refactory.

>> 

>> I don't like the idea of making the implementations of our API

>> public, I

>> prefer to follow the same idea as JDT/PDE and create access methods 

>> to

>> our implementation.

>> 

>> Diego

>> 

>> -----Original Message-----

>> From: dsdp-mtj-dev-bounces@xxxxxxxxxxx

>> [mailto:dsdp-mtj-dev-bounces@xxxxxxxxxxx] On Behalf Of Craig Setera

>> Sent: Friday, April 24, 2009 10:01 AM

>> To: Mobile Tools for The Java Platform mailing list

>> Subject: Re: [dsdp-mtj-dev] How retrieve saved MTJ project

>> configuration

>> 

>> I'm OK with that.  I can't remember anymore... it has no other

>> function than to retrieve IMTJProject instances, correct?  If so, I

>> can't see a concern with making it public.  I would like go get

>> Gustavo or Diego's thoughts, since they likely made it internal...

>> 

>> On Apr 24, 2009, at 7:51 AM, David Marques wrote:

>> 

>>> Hi Craig,

>>> 

>>> I don't think it would be a problem, although I think we should

>>> rename it to MTJProjectFactory since it returns an IMTJProject

>>> instance. Any thoughts ?

>>> 

>>> Regards,

>>> 

>>> David Marques

>>> 

>>> Craig Setera wrote:

>>>> Gustavo, Diego and David,

>>>> 

>>>> What are your thoughts about opening up the midletsuitefactory?  I

>>>> think the IMTJProject  interface is a useful one for people to be

>>>> able to use and that is the only way to get ahold of an instance.

>>>> Thoughts on making that API?

>>>> 

>>>> Thanks,

>>>> Craig

>>>> 

>>>> On Apr 22, 2009, at 11:01 AM, Roger Silva 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

>>>> 

>>>> _______________________________________________

>>>> 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

> _______________________________________________

> 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