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 01:17:08 +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=hJ8umBIoiDhWnG5U8M6VUIVbaOGsPdR6TZkfS0ua8Zg=; b=YivO8PTxZohwZKAT8ceV3IHf1+KQgfBfgAqg1bxaSP1t/YxSAur4VUVtNnhnue4Dzty+Z5DLzL32+88E5boLmGi1D6AZQeD9P/8Ob/xxuRQP2uK4cO3KFVxHuVlb6+mCQDwlmh8abSJmjB+eyiBLBN0nk3QubZPKEchuBe+KJxEgG7gaaAaZlBFHHT0rc9G9Uj3s3lwAd9uacNdG3EWazOC92/IlThLoXD+JjsTsD/N6wBZ0PDwCL6AJRUMzcS4mVA5ldkcq5c9Fb+3btXGwiblE+Y+No2I8ec9q6TK9jDaNoYLOX1b0Pp1zKl2vc8Zh08WT+LNqMJ2pLP3oKw2KnQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=U/MOEum2qEZe3NYCrZw6mjbb2XRPx43JjGSfUCFly/grVyEmmmNFI+OQYBq8OAeYfhclFHL5J87PW7GT/KrmtJzMe0uIjGYuYSwRYy5QgKnJd3aE2PUYZQ8NU/3V08IDFCK3dQWdgPcb8YDg/2xpzmxwhZs+L0w5MX8lqc5r7lsZ1HkPPVmiz+uf6avqoY93NZXM/5ct45bY8UlulcYAgwtUQN0W3Gm2oPYKFoJzvKTFa6WLQR1tVGpPblfk7Hath1rJmLoqJd3r1peDzRvRO3/7hkgCnBcEhFkfscHcTRuyPGi9xNExFDFSSs/3b/M7I8JMy4utC3eGW0xUVpQYkw==
  • 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: AQHVqwsPman4yV3TP06y8wYySKvP3qeqyVwAgG31Q8k=
  • Thread-topic: [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