How can I define an interface as default to a class? [message #617438] |
Tue, 29 September 2009 12:17 |
Danilo 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="br.com.ibanking.ide.ve.iWorkplaceCategory"
name="Menu Panel"
type="java.lang.Object">
</visualElement>
<visualElement
category="br.com.ibanking.ide.ve.iWorkplaceCategory"
name="Transaction Panel"
type="TransactionPanel">
</visualElement>
</extension>
</plugin>
My aim is, at the end, generate a class like that one:
public class MyClass implements MenuPanel {
}
|
|
|
Powered by
FUDForum. Page generated in 0.03087 seconds