Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] TestXXX class and their corresponding class if any

That is great. Well done.

I hope you will have the opportunity to put your working example on github or something like that - or you may be able to contribute it back to the CDT repo for future reference.

Thanks
Jonah

~~~
Jonah Graham
Kichwa Coders
www.kichwacoders.com


On Thu, 28 Nov 2019 at 04:52, Ming Cheng <chengm349@xxxxxxxxxxx> wrote:

Hi Jonah and All,

 

Thanks for the guide and now I can generate simple CPP file.

 

Cheers!

 

Sent from Mail for Windows 10

 

From: Jonah Graham
Sent: Thursday, November 28, 2019 10:12 AM
To: CDT General developers list.
Subject: Re: [cdt-dev] TestXXX class and their corresponding class if any

 

Easiest thing to do is Open Type in eclipse and that will normally show you which jar the file is in. 

 

Jonah 

On Wed., Nov. 27, 2019, 20:19 Ming Cheng, <chengm349@xxxxxxxxxxx> wrote:

If someone can guide on the below issue, I think I could come to a stable stage soon.

 

 

Basically I don’t see CoreException/FileLocator etc inside org.eclipse.core.runtime_3.15.300.v20190508-0543.jar

Thanks.

 

Sent from Mail for Windows 10

 

From: Ming Cheng
Sent: Wednesday, November 27, 2019 5:23 PM
To: CDT General developers list.
Subject: Re: [cdt-dev] TestXXX class and their corresponding class if any

 

Hi Marc-André and CDT experts,

 

I spent a couple of hours to read https://wiki.eclipse.org/Getting_started_with_CDT_development (including sub-links inside) and have not figured out how to pick up faster. So I use my current hard way.

May I assume I am supposed to find these classes

 

import org.eclipse.core.runtime.CoreException;

import org.eclipse.core.runtime.FileLocator;

import org.eclipse.core.runtime.IPath;

import org.eclipse.core.runtime.IProgressMonitor;

import org.eclipse.core.runtime.IStatus;

import org.eclipse.core.runtime.NullProgressMonitor;

import org.eclipse.core.runtime.Path;

import org.eclipse.core.runtime.Status;

 

inside org.eclipse.core.runtime_3.15.300.v20190508-0543.jar? But I couldn’t.

 

[mcheng@pioneer temp]$ jar tvf org.eclipse.core.runtime_3.15.300.v20190508-0543.jar

  5427 Wed May 08 05:24:54 SGT 2019 META-INF/MANIFEST.MF

  4013 Wed May 08 05:24:54 SGT 2019 META-INF/ECLIPSE_.SF

  7793 Wed May 08 05:24:54 SGT 2019 META-INF/ECLIPSE_.RSA

     0 Wed May 08 05:25:04 SGT 2019 META-INF/

   279 Tue May 15 10:07:52 SGT 2018 plugin.xml

   799 Wed May 08 05:25:04 SGT 2019 .api_description

     0 Wed May 08 05:25:04 SGT 2019 org/

     0 Wed May 08 05:25:04 SGT 2019 org/eclipse/

     0 Wed May 08 05:25:04 SGT 2019 org/eclipse/core/

     0 Wed May 08 05:25:04 SGT 2019 org/eclipse/core/runtime/

   537 Wed May 08 05:25:00 SGT 2019 org/eclipse/core/runtime/Preferences$IPropertyChangeListener.class

   858 Wed May 08 05:25:00 SGT 2019 org/eclipse/core/runtime/PerformanceStats$PerformanceListener.class

  1271 Wed May 08 05:25:00 SGT 2019 org/eclipse/core/runtime/Preferences$PropertyChangeEvent.class

   352 Wed May 08 05:25:00 SGT 2019 org/eclipse/core/runtime/IProduct.class

  1535 Wed May 08 05:25:00 SGT 2019 org/eclipse/core/runtime/Preferences$1.class

  9075 Wed May 08 05:25:00 SGT 2019 org/eclipse/core/runtime/Plugin.class

   790 Wed May 08 05:25:00 SGT 2019 org/eclipse/core/runtime/IPluginPrerequisite.class

   242 Wed May 08 05:25:00 SGT 2019 org/eclipse/core/runtime/IProductProvider.class

12369 Wed May 08 05:25:00 SGT 2019 org/eclipse/core/runtime/Platform.class

  1154 Wed May 08 05:25:00 SGT 2019 org/eclipse/core/runtime/IPluginRegistry.class

14263 Wed May 08 05:25:00 SGT 2019 org/eclipse/core/runtime/Preferences.class

  8241 Wed May 08 05:25:00 SGT 2019 org/eclipse/core/runtime/PerformanceStats.class

   725 Wed May 08 05:25:00 SGT 2019 org/eclipse/core/runtime/IPlatformRunnable.class

   318 Wed May 08 05:25:00 SGT 2019 org/eclipse/core/runtime/ILog.class

   691 Wed May 08 05:24:58 SGT 2019 org/eclipse/core/runtime/ILibrary.class

     0 Wed May 08 05:25:04 SGT 2019 org/eclipse/core/internal/

     0 Wed May 08 05:25:04 SGT 2019 org/eclipse/core/internal/runtime/

  4925 Wed May 08 05:25:00 SGT 2019 org/eclipse/core/internal/runtime/messages.properties

  1326 Wed May 08 05:25:00 SGT 2019 org/eclipse/core/internal/runtime/PlatformActivator.class

  1228 Wed May 08 05:25:00 SGT 2019 org/eclipse/core/internal/runtime/Product.class

  1393 Wed May 08 05:25:00 SGT 2019 org/eclipse/core/internal/runtime/Log$1.class

  3868 Wed May 08 05:25:00 SGT 2019 org/eclipse/core/internal/runtime/Log.class

  8809 Wed May 08 05:25:00 SGT 2019 org/eclipse/core/internal/runtime/PerformanceStatsProcessor.class

  2314 Wed May 08 05:25:00 SGT 2019 org/eclipse/core/internal/runtime/Messages.class

31642 Wed May 08 05:25:00 SGT 2019 org/eclipse/core/internal/runtime/InternalPlatform.class

  7740 Wed May 08 05:25:00 SGT 2019 org/eclipse/core/internal/runtime/AuthorizationHandler.class

     0 Wed May 08 05:25:04 SGT 2019 org/eclipse/core/internal/preferences/

     0 Wed May 08 05:25:04 SGT 2019 org/eclipse/core/internal/preferences/legacy/

14427 Wed May 08 05:25:00 SGT 2019 org/eclipse/core/internal/preferences/legacy/PreferenceForwarder.class

  3478 Wed May 08 05:25:00 SGT 2019 org/eclipse/core/internal/preferences/legacy/InitLegacyPreferences.class

  4610 Wed May 08 05:25:00 SGT 2019 org/eclipse/core/internal/preferences/legacy/ProductPreferencesService.class

   695 Fri Aug 17 20:03:40 SGT 2018 plugin.properties

  1460 Wed Jun 13 03:08:26 SGT 2018 about.html

   980 Tue May 15 10:07:52 SGT 2018 .options

 

 

Thanks.

Sent from Mail for Windows 10

 

From: Marc-Andre Laperle
Sent: Wednesday, November 27, 2019 10:56 AM
To: CDT General developers list.
Subject: Re: [cdt-dev] TestXXX class and their corresponding class if any

 

Hi,

The best way to navigate and learn CDT code is to set up an Eclipse installation for CDT development, see

 

Then you can use the search functions of Eclipse to know which project (i.e. jar) provide the classes. You can also run tests and see how they behave in the debugger, etc.

 

Marc-André

 

On Nov 26, 2019, at 4:56 AM, Ming Cheng <chengm349@xxxxxxxxxxx> wrote:

 

Hi,

 

I am learning CDT testing classes to see how to use CDT. Most time inside a test class, it will use other test classes like CTestPlugin,  TestCfgDataProvider. Do there have corresponding classes like CPlugin, CfgDataProvider?

 

Which jar(s) for example implements CTestPlugin,  TestCfgDataProvider? Which jar implements waitForIndexer(org.eclipse.cdt.core.model.ICProject)?

 

Thanks.

------------------------------------------------------------------------

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project umlet-swing: Compilation failure: Compilation failure:

com/baselet/cdt/core/helper/ResourceHelper.java:[147,17] cannot find symbol

symbol:   variable Assert

location: class com.baselet.cdt.core.helper.ResourceHelper

com/baselet/cdt/core/helper/ResourceHelper.java:[352,25] cannot find symbol

symbol:   variable Assert

location: class com.baselet.cdt.core.helper.ResourceHelper

com/baselet/cdt/core/helper/IntegratedCModel.java:[45,78] cannot find symbol

symbol:   variable CTestPlugin

location: class com.baselet.cdt.core.helper.IntegratedCModel

com/baselet/cdt/core/helper/IntegratedCModel.java:[54,17] cannot find symbol

symbol:   method waitForIndexer(org.eclipse.cdt.core.model.ICProject)

location: class com.baselet.cdt.core.helper.IntegratedCModel

com/baselet/cdt/core/helper/CProjectHelper.java:[78,24] cannot access org.eclipse.core.runtime.ICoreRunnable

class file for org.eclipse.core.runtime.ICoreRunnable not found

com/baselet/cdt/core/helper/CProjectHelper.java:[162,41] cannot find symbol

symbol:   variable TestCfgDataProvider

location: class com.baselet.cdt.core.helper.CProjectHelper

com/baselet/cdt/core/helper/CProjectHelper.java:[439,75] cannot find symbol

symbol:   variable CTestPlugin

location: class com.baselet.cdt.core.helper.CProjectHelper

-> [Help 1]

 

To see the full stack trace of the errors, re-run Maven with the -e switch.

Re-run Maven using the -X switch to enable full debug logging.

 

For more information about the errors and possible solutions, please read the following articles:

 

Sent from Mail for Windows 10

 

_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/cdt-dev

 

 

 

_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/cdt-dev

 

_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/cdt-dev

Back to the top