Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Any comment is welcome to my topics in Eclipse Forum
  • From: Ming Cheng <chengm349@xxxxxxxxxxx>
  • Date: Thu, 13 Feb 2020 03:01:07 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=krf3hcXEPRZPg1DkwBZ7jqiXnbjUr3U3nb1C/ZuIpdo=; b=jaF3sOwjByHNzUZuTPMuhXljJ93KWmpCgNe7c78yVZwkD5DWouFgbnw5Fuuwq/BNzfQ3Swvx29oV2z7nfADxcjLNvYuX9N0ksP6NUT+9YcalTt0jIE9itbMzOLwyNeD8D9IbxjMd5HUHNc/rjue+RNVA6f6k0rNS8biKSx7bFMDguXrmMLOjW7SectK9wXADelKt32YytCNoJRPuXE5Op94pSkSXSIEKDtBT+Bj7Tk2RnqpZlzsgj/6kaV3Uf+TY5idigEHwzgsdDIuOb5ZhYlf5FSGJt7jUuXfcO3NnS76lznsFErWlJmio73wODg3jFa42ccMFOUkoteLxCQBC1w==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JfPX+lf8r88+oz9GBsqX8jEUZtl5PFyTgiYuZMuq/rau7wmV0xdHql+nDefw6Kjae7co31nJAr9p+1emIJ11KoKNbwN7pYP5KQCJc07RFT7iGN6zg8wPUuiF6UesgEnaa+rPFnFTPqUtz4akm/sLjt3Ffz8m1MF/bUs/Rz22A12jW++2m0LTj3ZUa1lSPPC2IsDwBnYAVIo+Np0mqrc77dTkCi4vqcbIqXWPYj+HjaYccJ5WfAJja7LS+4tQP5trTFsR9aZNtydijs6Pxd9P948zr0Zbs4i7UBBBjKv0oI9AuhHD2bBHiVX8XrJKta++kDTnBrJvQmuhCgbEUEhsZw==
  • Delivered-to: cdt-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/cdt-dev>
  • List-help: <mailto:cdt-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/cdt-dev>, <mailto:cdt-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/cdt-dev>, <mailto:cdt-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHVqwsPman4yV3TP06y8wYySKvP3qeqyVwAgG31Q8mAAB7qKg==
  • Thread-topic: [cdt-dev] Any comment is welcome to my topics in Eclipse Forum

I solved the issue.


From: cdt-dev-bounces@xxxxxxxxxxx <cdt-dev-bounces@xxxxxxxxxxx> on behalf of Ming Cheng <chengm349@xxxxxxxxxxx>
Sent: Thursday, February 13, 2020 1:17 AM
To: CDT General developers list. <cdt-dev@xxxxxxxxxxx>
Subject: Re: [cdt-dev] Any comment is welcome to my topics in Eclipse Forum
 
Hi Jonah,

"Look how the new C++ class wizard is implemented for some clues."

I can see setClassName(String name) in NewClassCreationWizard class but my compiler complains no this interface. I suspect what umlet pom.xml got from the repo could be an older version which may not have.

<repositories>
<repository>
<id>eclipse-mars</id>
<url>http://download.eclipse.org/releases/mars</url>
<layout>p2</layout>
</repository>
</repositories>

So I tried to copy NewClassCreationWizard  class directly into my project with a new name NewClassWizard.java.  No single char was changed. When I compile my project, I got this error:

Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:1.2.0:compile (default-compile) on project com.umlet.plugin: Compilation failure: Compilation failure:
C:\Users\mcheng\FlexTrade\autoplugin\qfixsoden_papyrus - CDT\umlet-eclipse-plugin\src\main\java\com\baselet\plugin\wizard\NewClassWizard.java:[55]
fPage.createClass(monitor); // use the full progress monitor
^^^^^^^^^^^^^^^^^^^^^^^^^^
Unhandled exception type InterruptedException
-> [Help 1]

Thanks.

From: cdt-dev-bounces@xxxxxxxxxxx <cdt-dev-bounces@xxxxxxxxxxx> on behalf of Jonah Graham <jonah@xxxxxxxxxxxxxxxx>
Sent: Thursday, December 5, 2019 2:00 AM
To: CDT General developers list. <cdt-dev@xxxxxxxxxxx>
Subject: Re: [cdt-dev] Any comment is welcome to my topics in Eclipse Forum
 
Hi,

I had a quick look at all these questions - I am not surprised that no one has answered on the forums, the forums are really meant for Users of the Eclipse CDT IDE - i.e. people writing C/C++ code.

I don't have answers to most of your questions, but I can try an answer on some of them:

> How to stop inserting same include stmt more than once

Try looking at how organize imports in CDT is implemented, it manipulates includes so may give you a good idea.

>  How to load a file content into a new editor tab

Look up the IDE class in Eclipse platform (such as openEditor method)

> How to use CDT to create a .h with a class decl?

Look how the new C++ class wizard is implemented for some clues.


I don't t

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


On Wed, 4 Dec 2019 at 20:33, Ming Cheng <chengm349@xxxxxxxxxxx> wrote:
_______________________________________________
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