Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » How can I define an interface as default to a class?(I can't find a way (or tag) to define na interface as default in my class definition using newStyleComponent extension)
How can I define an interface as default to a class? [message #488602] Tue, 29 September 2009 12:17
Danilo  is currently offline Danilo Friend
Messages: 9
Registered: September 2009
Junior Member
Hi!

I have a problem, becouse I can't define an interface for a new Style of a Visual Class.
Using org.eclipse.ve.java.core.newStyleComponent extension, I defined a new entry for a Style and I still need add an interface as default in a Visual Class creation, but I don't know how.

So, I will explain what exacly how get in my problem:

1. I create a new Plug-in Project;
2. I define a new extension with a category and I need now define a interface as default...



<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<plugin
id="br.com.ibanking.ide.ve"
name="My VE plugin"
version="1.0.0.0"
provider-name="My Provicer"
class="VEPlugin">

<runtime>
<library name="ve.jar">
<export name="*"/>
</library>
</runtime>

<requires>
<import plugin="org.eclipse.ui"/>
<import plugin="org.eclipse.core.runtime"/>
<import plugin="org.eclipse.ve.java.core"/>
</requires>
<extension
point="org.eclipse.ve.java.core.newStyleComponent">
<category
id="br.com.ibanking.ide.ve.iWorkplaceCategory"
name="iBanking">
</category>
<visualElement
category="iWorkplaceCategory"
name="Menu Panel"
type="java.lang.Object">
</visualElement>

<visualElement
category="iWorkplaceCategory"
name="Transaction Panel"
type="TransactionPanel">
</visualElement>
</extension>

</plugin>


http://img143.imageshack.us/img143/9554/visualclass.jpg

My aim is, at the end, generate a class like that one:

public class MyClass implements MenuPanel {

}

[Updated on: Tue, 29 September 2009 12:30]

Report message to a moderator

Previous Topic:possible VE involvement?
Next Topic:How can I define an interface as default to a class?
Goto Forum:
  


Current Time: Sat Apr 20 03:12:41 GMT 2024

Powered by FUDForum. Page generated in 0.02916 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top