How to build a plugin or bean

Questions and answers on developing, deploying and using plugins and JavaBeans

How to build a plugin or bean

Postby Jan Blok » Tue Sep 14, 2010 4:41 pm

Some really nice tutorials produced by Patrick Talbot, about how to build a plugin or bean.
Jan Blok
Servoy
Jan Blok
 
Posts: 2684
Joined: Mon Jun 23, 2003 11:15 am
Location: Amsterdam

Re: How to build a plugin or bean

Postby Foobrother » Tue Sep 14, 2010 5:05 pm

Downloaded, used and approved :mrgreen:

Very nice indeed!

Thx Patrick.
Current configuration: Servoy 5.2.6 Build 1011, Java 6u24, PostgreSQL 8.3, Windows Server 2003

Servoy / Java Developer
http://www.assetguardian.com
User avatar
Foobrother
 
Posts: 530
Joined: Tue Jan 13, 2009 5:46 pm

Re: How to build a plugin or bean

Postby JuanMartin » Wed Sep 15, 2010 12:36 am

Many Many thanks, Patrick

It´s nice.
Juan Antonio Martín Pinilla
Servoy 7.4.3 - PostgreSql 9.4
[email protected]
User avatar
JuanMartin
 
Posts: 121
Joined: Tue Nov 25, 2008 9:20 pm
Location: Tenerife - Spain

Re: How to build a plugin or bean

Postby lalong » Wed Sep 21, 2011 5:51 am

I built the slider bean as the second tutorial, and it seems to be fine. I put it in the jar file in the servoy\applications_server\beans folder and restarted servoy, but it does not show in the "Place beans" list.

Any ideas?
Thanks,
Larry Long
lalong
 
Posts: 40
Joined: Thu Aug 05, 2010 1:42 pm

Re: How to build a plugin or bean

Postby rgansevles » Wed Sep 21, 2011 9:26 am

Larry,

Does your jar file have a MANIFEST.MF where your bean class is marked as such?

Rob

Code: Select all
Manifest-Version: 1.0

Name: net/stuff/servoy/beans/slider/ServoySlider.class
Java-Bean: True
Rob Gansevles
Servoy
User avatar
rgansevles
 
Posts: 1838
Joined: Wed Nov 15, 2006 6:17 pm
Location: Amersfoort, NL

Re: How to build a plugin or bean

Postby lalong » Wed Sep 21, 2011 4:05 pm

Yes I do...

Manifest-Version: 1.0
Name: servoy/beans/slider/ServoySlider.class
Java-Bean: True

-Servoy is located on my d:\servoy6 folder.
-The jar file is named servoy_slider.jar and is in the servoy6\application_server\beans folder
-The package is named ServoySlider.

Does the manifest "Name:" info need to match up to the file name/location?
lalong
 
Posts: 40
Joined: Thu Aug 05, 2010 1:42 pm

Re: How to build a plugin or bean

Postby rgansevles » Wed Sep 21, 2011 4:11 pm

Larry,

With which version has the bean been (echo?) compiled?
If a bean is compiled with java 6 and developer is running with java 5 it also does not show up.

Rob
Rob Gansevles
Servoy
User avatar
rgansevles
 
Posts: 1838
Joined: Wed Nov 15, 2006 6:17 pm
Location: Amersfoort, NL

Re: How to build a plugin or bean

Postby lalong » Wed Sep 21, 2011 4:39 pm

How do I tell for both instances?
lalong
 
Posts: 40
Joined: Thu Aug 05, 2010 1:42 pm

Re: How to build a plugin or bean

Postby ptalbot » Wed Sep 21, 2011 5:16 pm

In Eclipse check the preferences of the project, the one you are looking for is "Java compiler" and the "JDK Compliance'"
In Servoy, simply launch a debug client then click on the "Help > About..." menu, the dialog will tell you which Servoy and Java version you are running.

But have you checked the servoy_log.txt for any exception that might have prevented your bean from showing up?
Patrick Talbot
Freelance - Open Source - Servoy Valued Professional
http://www.servoy-stuff.net
https://www.servoyforge.net
--------------------------------------------
Servoy 5.2.16 / 6.0.9 / 6.1.6 / 7.3.1
All OSes / Java 5 & 6 & 7
User avatar
ptalbot
 
Posts: 1612
Joined: Wed Mar 11, 2009 5:13 am
Location: Montreal, QC

Re: How to build a plugin or bean

Postby lalong » Wed Sep 21, 2011 6:03 pm

Client - Java 1.7
JAR - JaveSE 1.6 (but it recompiled with 1.7 with same results)

My code at bottom...

No servoy_log.txt, but I am finding a log file w/errors in workspace/.metadata/.log
***************************************************************************
!ENTRY com.servoy.eclipse.model 4 0 2011-09-21 00:59:03.994
!MESSAGE Unexpected Exception
!STACK 0
java.lang.IllegalAccessException: Class com.servoy.eclipse.ui.property.BeanSubpropertyPropertySource can not access a member of class javax.swing.TransferHandler with modifiers "protected"
at sun.reflect.Reflection.ensureMemberAccess(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at com.servoy.eclipse.ui.property.BeanSubpropertyPropertySource.createNewValue(BeanSubpropertyPropertySource.java:188)
at com.servoy.eclipse.ui.property.BeanSubpropertyPropertySource.init(BeanSubpropertyPropertySource.java:96)
at com.servoy.eclipse.ui.property.BeanSubpropertyPropertySource.createPropertyDescriptors(BeanSubpropertyPropertySource.java:119)
at com.servoy.eclipse.ui.property.ComplexPropertySource.getPropertyDescriptors(ComplexPropertySource.java:54)
at com.servoy.eclipse.ui.views.properties.PropertySheetEntry.computeMergedPropertyDescriptors(PropertySheetEntry.java:191)
at com.servoy.eclipse.ui.views.ModifiedPropertySheetEntry.computeMergedPropertyDescriptors(ModifiedPropertySheetEntry.java:113)
at com.servoy.eclipse.ui.views.properties.PropertySheetEntry.hasChildEntries(PropertySheetEntry.java:577)
at org.eclipse.ui.views.properties.PropertySheetViewer.updatePlus(PropertySheetViewer.java:1365)
at org.eclipse.ui.views.properties.PropertySheetViewer.updateEntry(PropertySheetViewer.java:1344)
at org.eclipse.ui.views.properties.PropertySheetViewer.access$4(PropertySheetViewer.java:1328)
at org.eclipse.ui.views.properties.PropertySheetViewer$3.valueChanged(PropertySheetViewer.java:335)
at com.servoy.eclipse.ui.views.properties.PropertySheetEntry.fireValueChanged(PropertySheetEntry.java:362)
at com.servoy.eclipse.ui.views.properties.PropertySheetEntry.setValues(PropertySheetEntry.java:845)
at com.servoy.eclipse.ui.views.properties.PropertySheetEntry.refreshValues(PropertySheetEntry.java:687)
at com.servoy.eclipse.ui.views.ModifiedPropertySheetEntry.refreshValues(ModifiedPropertySheetEntry.java:194)
at com.servoy.eclipse.ui.views.properties.PropertySheetEntry.refreshChildEntries(PropertySheetEntry.java:634)
at com.servoy.eclipse.ui.views.properties.PropertySheetEntry.refreshFromRoot(PropertySheetEntry.java:662)
at com.servoy.eclipse.designer.property.UndoablePropertySheetEntry.access$0(UndoablePropertySheetEntry.java:1)
at com.servoy.eclipse.designer.property.UndoablePropertySheetEntry$1.commandStackChanged(UndoablePropertySheetEntry.java:141)
at org.eclipse.gef.commands.CommandStack.notifyListeners(CommandStack.java:310)
at org.eclipse.gef.commands.CommandStack.execute(CommandStack.java:209)
at org.eclipse.gef.ui.actions.WorkbenchPartAction.execute(WorkbenchPartAction.java:83)
at org.eclipse.gef.ui.actions.DeleteAction.run(DeleteAction.java:133)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:119)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:468)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:786)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:885)
at org.eclipse.ui.internal.keys.OutOfOrderListener.handleEvent(OutOfOrderListener.java:76)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1103)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1099)
at org.eclipse.swt.widgets.Widget.wmKeyDown(Widget.java:1808)
at org.eclipse.swt.widgets.Control.WM_KEYDOWN(Control.java:4498)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4193)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4886)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2459)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3655)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
at org.eclipse.equinox.launcher.Main.run(Main.java:1408)

!ENTRY com.servoy.eclipse.model 1 0 2011-09-21 11:27:19.188
!MESSAGE Time taken to read in the solution servoy_sample_bug_db: 616

!ENTRY com.servoy.eclipse.model 1 0 2011-09-21 11:27:19.879
!MESSAGE Time taken to read in the solution servoy_sample_crm: 689

!ENTRY com.servoy.eclipse.model 1 0 2011-09-21 11:27:20.034
!MESSAGE Time taken to read in the solution mod_dialog: 153

!ENTRY com.servoy.eclipse.model 1 0 2011-09-21 11:27:20.057
!MESSAGE Time taken to read in the solution test: 21

!ENTRY com.servoy.eclipse.model 1 0 2011-09-21 11:27:20.184
!MESSAGE Time taken to read in the solution servoy_sample_treeControl: 125
!SESSION 2011-09-21 11:41:00.821 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86

!ENTRY com.servoy.eclipse.model 1 0 2011-09-21 11:41:07.045
!MESSAGE Time taken to read in the solution beans_test: 384

!ENTRY com.servoy.eclipse.model 1 0 2011-09-21 11:41:09.080
!MESSAGE Time taken to read in the solution eir: 95

!ENTRY org.eclipse.ui.workbench 2 0 2011-09-21 11:41:12.974
!MESSAGE A handler conflict occurred. This may disable some commands.
!SUBENTRY 1 org.eclipse.ui.workbench 2 0 2011-09-21 11:41:12.974
!MESSAGE Conflict for 'AUTOGEN:::org.eclipse.ui.cheatsheets.actionSet/org.eclipse.ui.cheatsheets.actions.CheatSheetHelpMenuAction':
HandlerActivation(commandId=AUTOGEN:::org.eclipse.ui.cheatsheets.actionSet/org.eclipse.ui.cheatsheets.actions.CheatSheetHelpMenuAction,
handler=ActionDelegateHandlerProxy(null,org.eclipse.ui.cheatsheets.CheatSheetExtensionFactory:helpMenuAction),
expression=AndExpression(ActionSetExpression(org.eclipse.ui.cheatsheets.actionSet,[email protected]),WorkbenchWindowExpression([email protected])),sourcePriority=16640)
HandlerActivation(commandId=AUTOGEN:::org.eclipse.ui.cheatsheets.actionSet/org.eclipse.ui.cheatsheets.actions.CheatSheetHelpMenuAction,
handler=ActionDelegateHandlerProxy(null,org.eclipse.ui.cheatsheets.CheatSheetExtensionFactory:helpMenuAction),
expression=AndExpression(ActionSetExpression(org.eclipse.ui.cheatsheets.actionSet,[email protected]),WorkbenchWindowExpression([email protected])),sourcePriority=16640)


********************
My code
********************
package servoy.beans.slider;

import javax.swing.JSlider;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;

import com.servoy.j2db.dataprocessing.IFoundSet;
import com.servoy.j2db.dataprocessing.IRecord;
import com.servoy.j2db.dataui.IServoyAwareBean;
import com.servoy.j2db.plugins.IClientPluginAccess;

public class ServoySlider extends JSlider implements IServoyAwareBean, ChangeListener {
/**
*
*/
private static final long serialVersionUID = 1L;
protected IFoundSet currentFoundset;
protected boolean validationEnabled;
protected boolean ignoreUpdate = true;

public void setSelectedRecord(IRecord record) {
if (record != null) {
this.currentFoundset = record.getParentFoundSet();
updateSlider();
}
}



/**
* Updates the slider from the values of the current Foundset
*/
private void updateSlider() {
if (validationEnabled && currentFoundset != null)
{
setMinimum(1);
int max = currentFoundset.getSize();
setMaximum(max);
int tickSpacing = Math.max(Math.round(max/10),1);
setMajorTickSpacing(tickSpacing);
setValue(currentFoundset.getSelectedIndex()+1);
}
else
{
setMinimum(0);
setValue(0);
}
}

@Override
public boolean isReadOnly() {
// TODO Auto-generated method stub
return false;
}

@Override
public void setValidationEnabled(boolean arg0) {
// TODO Auto-generated method stub

}

@Override
public boolean stopUIEditing(boolean arg0) {
// TODO Auto-generated method stub
return false;
}

@Override
public void initialize(IClientPluginAccess arg0) {
// TODO Auto-generated method stub

}


@Override
public void stateChanged(ChangeEvent arg0) {
if (!ignoreUpdate) {
if (currentFoundset != null) {
currentFoundset.setSelectedIndex(getValue()-1);
}
}
ignoreUpdate = false;
}

private void setSliderValue(int x) {
ignoreUpdate = true;
setValue(x);
}
}
lalong
 
Posts: 40
Joined: Thu Aug 05, 2010 1:42 pm

Re: How to build a plugin or bean

Postby ptalbot » Wed Sep 21, 2011 6:49 pm

From the error log, it seems that you have declared a property you have no access to (probably in your BeanInfo implementation).

Look at your usage of javax.swing.TransferHandler, it might well be that the property you are trying to access is public in one version of Java but is now protected in the one version you are running your bean on.
Patrick Talbot
Freelance - Open Source - Servoy Valued Professional
http://www.servoy-stuff.net
https://www.servoyforge.net
--------------------------------------------
Servoy 5.2.16 / 6.0.9 / 6.1.6 / 7.3.1
All OSes / Java 5 & 6 & 7
User avatar
ptalbot
 
Posts: 1612
Joined: Wed Mar 11, 2009 5:13 am
Location: Montreal, QC

Re: How to build a plugin or bean

Postby lalong » Wed Sep 21, 2011 9:03 pm

I did a "clean" and that seems to have taken care of some of the errors...I still have what is shown below.
Any chance it has to do with using 1.7?



!ENTRY org.eclipse.ui 4 4 2011-09-21 14:06:39.218
!MESSAGE Invalid preference page path: HTML Syntax
!SESSION 2011-09-21 14:06:50.658 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.ui.workbench 2 0 2011-09-21 14:06:56.478
!MESSAGE A handler conflict occurred. This may disable some commands.
!SUBENTRY 1 org.eclipse.ui.workbench 2 0 2011-09-21 14:06:56.478
!MESSAGE Conflict for 'AUTOGEN:::org.eclipse.ui.cheatsheets.actionSet/org.eclipse.ui.cheatsheets.actions.CheatSheetHelpMenuAction':
HandlerActivation(commandId=AUTOGEN:::org.eclipse.ui.cheatsheets.actionSet/org.eclipse.ui.cheatsheets.actions.CheatSheetHelpMenuAction,
handler=ActionDelegateHandlerProxy(null,org.eclipse.ui.cheatsheets.CheatSheetExtensionFactory:helpMenuAction),
expression=AndExpression(ActionSetExpression(org.eclipse.ui.cheatsheets.actionSet,[email protected]),WorkbenchWindowExpression([email protected])),sourcePriority=16640)
HandlerActivation(commandId=AUTOGEN:::org.eclipse.ui.cheatsheets.actionSet/org.eclipse.ui.cheatsheets.actions.CheatSheetHelpMenuAction,
handler=ActionDelegateHandlerProxy(null,org.eclipse.ui.cheatsheets.CheatSheetExtensionFactory:helpMenuAction),
expression=AndExpression(ActionSetExpression(org.eclipse.ui.cheatsheets.actionSet,[email protected]),WorkbenchWindowExpression([email protected])),sourcePriority=16640)

!ENTRY com.servoy.eclipse.model 1 0 2011-09-21 14:06:59.464
!MESSAGE Time taken to read in the solution beans_test: 205

!ENTRY com.servoy.eclipse.model 1 0 2011-09-21 14:07:00.715
!MESSAGE Time taken to read in the solution eir: 44

!ENTRY com.servoy.eclipse.model 1 0 2011-09-21 14:10:45.646
!MESSAGE Time taken to read in the solution mod_dialog: 40

!ENTRY com.servoy.eclipse.model 1 0 2011-09-21 14:10:46.541
!MESSAGE Time taken to read in the solution servoy_sample_bug_db: 434

!ENTRY com.servoy.eclipse.model 1 0 2011-09-21 14:10:47.640
!MESSAGE Time taken to read in the solution servoy_sample_crm: 171

!ENTRY com.servoy.eclipse.model 4 0 2011-09-21 14:10:47.955
!MESSAGE Unexpected Exception
!STACK 0
com.servoy.j2db.persistence.RepositoryException: The dataprovider globals.core_const_2 or column solution_id does not exist as defined in the relation gconst2_to_solution_preferences
at com.servoy.j2db.persistence.Relation.makePrimaryDataProviders(Relation.java:699)
at com.servoy.j2db.persistence.Relation.getPrimaryDataProviders(Relation.java:568)
at com.servoy.eclipse.debug.script.TypeProvider.addRelations(TypeProvider.java:1285)
at com.servoy.eclipse.debug.script.TypeProvider.access$4(TypeProvider.java:1275)
at com.servoy.eclipse.debug.script.TypeProvider$RelationsScopeCreator.createType(TypeProvider.java:928)
at com.servoy.eclipse.debug.script.TypeCreator.createDynamicType(TypeCreator.java:358)
at com.servoy.eclipse.debug.script.TypeProvider.createDynamicType(TypeProvider.java:405)
at com.servoy.eclipse.debug.script.TypeProvider.createDynamicType(TypeProvider.java:401)
at com.servoy.eclipse.debug.script.TypeCreator.getType(TypeCreator.java:270)
at com.servoy.eclipse.debug.script.TypeProvider.getType(TypeProvider.java:223)
at org.eclipse.dltk.internal.javascript.ti.TypeInferencer2$InvariantTypeResourceSet.loadType(TypeInferencer2.java:634)
at org.eclipse.dltk.internal.javascript.ti.TypeInferencer2$InvariantTypeResourceSet.getType(TypeInferencer2.java:586)
at org.eclipse.dltk.internal.javascript.ti.TypeInferencer2$InvariantTypeResourceSet.resolveTypeProxy(TypeInferencer2.java:662)
at org.eclipse.dltk.internal.javascript.ti.TypeInferencer2$TypeResourceSet.getEObject(TypeInferencer2.java:497)
at org.eclipse.emf.ecore.util.EcoreUtil.resolve(EcoreUtil.java:202)
at org.eclipse.emf.ecore.util.EcoreUtil.resolve(EcoreUtil.java:262)
at org.eclipse.dltk.javascript.typeinfo.TypeUtil.resolve(TypeUtil.java:203)
at org.eclipse.dltk.javascript.typeinfo.model.impl.TypeImpl.eResolveProxy(TypeImpl.java:472)
at org.eclipse.dltk.javascript.typeinfo.model.impl.TypeImpl.getSuperType(TypeImpl.java:194)
at org.eclipse.dltk.javascript.typeinfo.TypeMemberQuery$TypeIterator.fetchNext(TypeMemberQuery.java:108)
at org.eclipse.dltk.utils.CompoundIterator.hasNext(CompoundIterator.java:24)
at org.eclipse.dltk.javascript.typeinfo.TypeMemberQuery$MemberIterator.fetchNext(TypeMemberQuery.java:142)
at org.eclipse.dltk.utils.CompoundIterator.hasNext(CompoundIterator.java:24)
at org.eclipse.dltk.internal.javascript.ti.ElementValue.findMembers(ElementValue.java:72)
at org.eclipse.dltk.internal.javascript.ti.ElementValue.findMember(ElementValue.java:53)
at org.eclipse.dltk.internal.javascript.ti.ElementValue.findMember(ElementValue.java:46)
at org.eclipse.dltk.internal.javascript.ti.ImmutableValue.findMember(ImmutableValue.java:249)
at org.eclipse.dltk.internal.javascript.ti.ImmutableValue.getChild(ImmutableValue.java:284)
at org.eclipse.dltk.internal.javascript.ti.ChildReference.getValue(ChildReference.java:41)
at org.eclipse.dltk.internal.javascript.ti.AbstractReference.getAttribute(AbstractReference.java:109)
at org.eclipse.dltk.internal.javascript.validation.TypeInfoValidator$ValidationVisitor.visitPropertyExpression(TypeInfoValidator.java:1433)
at org.eclipse.dltk.internal.javascript.ti.TypeInferencerVisitor.visitPropertyExpression(TypeInferencerVisitor.java:1)
at org.eclipse.dltk.javascript.ast.ASTVisitor$32.handle(ASTVisitor.java:199)
at org.eclipse.dltk.javascript.ast.ASTVisitor.visit(ASTVisitor.java:307)
at org.eclipse.dltk.internal.javascript.ti.TypeInferencerVisitorBase.visit(TypeInferencerVisitorBase.java:114)
at org.eclipse.dltk.internal.javascript.validation.TypeInfoValidator$ValidationVisitor.visit(TypeInfoValidator.java:384)
at org.eclipse.dltk.internal.javascript.ti.TypeInferencerVisitor.visitPropertyExpression(TypeInferencerVisitor.java:883)
at org.eclipse.dltk.internal.javascript.validation.TypeInfoValidator$ValidationVisitor.visitPropertyExpression(TypeInfoValidator.java:1431)
at org.eclipse.dltk.internal.javascript.ti.TypeInferencerVisitor.visitPropertyExpression(TypeInferencerVisitor.java:1)
at org.eclipse.dltk.javascript.ast.ASTVisitor$32.handle(ASTVisitor.java:199)
at org.eclipse.dltk.javascript.ast.ASTVisitor.visit(ASTVisitor.java:307)
at org.eclipse.dltk.internal.javascript.ti.TypeInferencerVisitorBase.visit(TypeInferencerVisitorBase.java:114)
at org.eclipse.dltk.internal.javascript.validation.TypeInfoValidator$ValidationVisitor.visit(TypeInfoValidator.java:384)
at org.eclipse.dltk.internal.javascript.ti.TypeInferencerVisitor.visitPropertyExpression(TypeInferencerVisitor.java:883)
at org.eclipse.dltk.internal.javascript.validation.TypeInfoValidator$ValidationVisitor.visitPropertyExpression(TypeInfoValidator.java:1431)
at org.eclipse.dltk.internal.javascript.ti.TypeInferencerVisitor.visitPropertyExpression(TypeInferencerVisitor.java:1)
at org.eclipse.dltk.javascript.ast.ASTVisitor$32.handle(ASTVisitor.java:199)
at org.eclipse.dltk.javascript.ast.ASTVisitor.visit(ASTVisitor.java:307)
at org.eclipse.dltk.internal.javascript.ti.TypeInferencerVisitorBase.visit(TypeInferencerVisitorBase.java:114)
at org.eclipse.dltk.internal.javascript.validation.TypeInfoValidator$ValidationVisitor.visit(TypeInfoValidator.java:384)
at org.eclipse.dltk.internal.javascript.ti.TypeInferencerVisitor.visitBinaryOperation(TypeInferencerVisitor.java:206)
at org.eclipse.dltk.internal.javascript.ti.TypeInferencerVisitor.visitBinaryOperation(TypeInferencerVisitor.java:1)
at org.eclipse.dltk.javascript.ast.ASTVisitor$2.handle(ASTVisitor.java:44)
at org.eclipse.dltk.javascript.ast.ASTVisitor.visit(ASTVisitor.java:307)
at org.eclipse.dltk.internal.javascript.ti.TypeInferencerVisitorBase.visit(TypeInferencerVisitorBase.java:114)
at org.eclipse.dltk.internal.javascript.validation.TypeInfoValidator$ValidationVisitor.visit(TypeInfoValidator.java:384)
at org.eclipse.dltk.internal.javascript.ti.TypeInferencerVisitor.visitVoidExpression(TypeInferencerVisitor.java:1053)
at org.eclipse.dltk.internal.javascript.ti.TypeInferencerVisitor.visitVoidExpression(TypeInferencerVisitor.java:1)
at org.eclipse.dltk.javascript.ast.ASTVisitor$39.handle(ASTVisitor.java:234)
at org.eclipse.dltk.javascript.ast.ASTVisitor.visit(ASTVisitor.java:307)
at org.eclipse.dltk.internal.javascript.ti.TypeInferencerVisitorBase.visit(TypeInferencerVisitorBase.java:114)
at org.eclipse.dltk.internal.javascript.validation.TypeInfoValidator$ValidationVisitor.visit(TypeInfoValidator.java:384)
at org.eclipse.dltk.internal.javascript.ti.TypeInferencerVisitor.visitStatementBlock(TypeInferencerVisitor.java:961)
at org.eclipse.dltk.internal.javascript.ti.TypeInferencerVisitor.visitStatementBlock(TypeInferencerVisitor.java:1)
at org.eclipse.dltk.javascript.ast.ASTVisitor$33.handle(ASTVisitor.java:204)
at org.eclipse.dltk.javascript.ast.ASTVisitor.visit(ASTVisitor.java:307)
at org.eclipse.dltk.internal.javascript.ti.TypeInferencerVisitorBase.visit(TypeInferencerVisitorBase.java:114)
at org.eclipse.dltk.internal.javascript.validation.TypeInfoValidator$ValidationVisitor.visit(TypeInfoValidator.java:384)
at org.eclipse.dltk.internal.javascript.ti.TypeInferencerVisitor.visitFunctionBody(TypeInferencerVisitor.java:601)
at org.eclipse.dltk.internal.javascript.ti.TypeInferencerVisitor.visitFunctionStatement(TypeInferencerVisitor.java:559)
at org.eclipse.dltk.internal.javascript.validation.TypeInfoValidator$ValidationVisitor.visitFunctionStatement(TypeInfoValidator.java:460)
at org.eclipse.dltk.internal.javascript.ti.TypeInferencerVisitor.visitFunctionStatement(TypeInferencerVisitor.java:1)
at org.eclipse.dltk.javascript.ast.ASTVisitor$18.handle(ASTVisitor.java:126)
at org.eclipse.dltk.javascript.ast.ASTVisitor.visit(ASTVisitor.java:307)
at org.eclipse.dltk.internal.javascript.ti.TypeInferencerVisitorBase.visit(TypeInferencerVisitorBase.java:114)
at org.eclipse.dltk.internal.javascript.validation.TypeInfoValidator$ValidationVisitor.visit(TypeInfoValidator.java:384)
at org.eclipse.dltk.internal.javascript.ti.TypeInferencerVisitor.visitVoidExpression(TypeInferencerVisitor.java:1053)
at org.eclipse.dltk.internal.javascript.ti.TypeInferencerVisitor.visitVoidExpression(TypeInferencerVisitor.java:1)
at org.eclipse.dltk.javascript.ast.ASTVisitor$39.handle(ASTVisitor.java:234)
at org.eclipse.dltk.javascript.ast.ASTVisitor.visit(ASTVisitor.java:307)
at org.eclipse.dltk.internal.javascript.ti.TypeInferencerVisitorBase.visit(TypeInferencerVisitorBase.java:114)
at org.eclipse.dltk.internal.javascript.validation.TypeInfoValidator$ValidationVisitor.visit(TypeInfoValidator.java:384)
at org.eclipse.dltk.internal.javascript.ti.TypeInferencerVisitorBase.visit(TypeInferencerVisitorBase.java:1)
at org.eclipse.dltk.javascript.ast.ASTVisitor.visit(ASTVisitor.java:25)
at org.eclipse.dltk.internal.javascript.ti.TypeInferencerVisitor.visitScript(TypeInferencerVisitor.java:955)
at org.eclipse.dltk.internal.javascript.ti.TypeInferencerVisitor.visitScript(TypeInferencerVisitor.java:1)
at org.eclipse.dltk.javascript.ast.ASTVisitor$15.handle(ASTVisitor.java:110)
at org.eclipse.dltk.javascript.ast.ASTVisitor.visit(ASTVisitor.java:307)
at org.eclipse.dltk.internal.javascript.ti.TypeInferencerVisitorBase.visit(TypeInferencerVisitorBase.java:114)
at org.eclipse.dltk.internal.javascript.validation.TypeInfoValidator$ValidationVisitor.visit(TypeInfoValidator.java:384)
at org.eclipse.dltk.internal.javascript.ti.TypeInferencer2.doInferencing(TypeInferencer2.java:107)
at org.eclipse.dltk.internal.javascript.validation.TypeInfoValidator.build(TypeInfoValidator.java:108)
at org.eclipse.dltk.internal.core.builder.StandardScriptBuilder.buildModule(StandardScriptBuilder.java:247)
at org.eclipse.dltk.internal.core.builder.StandardScriptBuilder.buildNatureModules(StandardScriptBuilder.java:195)
at org.eclipse.dltk.internal.core.builder.StandardScriptBuilder.build(StandardScriptBuilder.java:67)
at org.eclipse.dltk.internal.core.builder.ScriptBuilder.fullBuild(ScriptBuilder.java:433)
at org.eclipse.dltk.internal.core.builder.ScriptBuilder.build(ScriptBuilder.java:153)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:629)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:172)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:203)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:255)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:258)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:311)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:343)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:242)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

!ENTRY com.servoy.eclipse.model 1 0 2011-09-21 14:10:48.367
!MESSAGE Time taken to read in the solution servoy_sample_treeControl: 11

!ENTRY com.servoy.eclipse.model 1 0 2011-09-21 14:10:48.561
!MESSAGE Time taken to read in the solution test: 16

!ENTRY org.eclipse.ui 4 4 2011-09-21 14:12:50.262
!MESSAGE Invalid preference page path: HTML Syntax
!SESSION 2011-09-21 14:12:52.843 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86

!ENTRY com.servoy.eclipse.model 1 0 2011-09-21 14:12:58.756
!MESSAGE Time taken to read in the solution beans_test: 396

!ENTRY com.servoy.eclipse.model 1 0 2011-09-21 14:12:59.762
!MESSAGE Time taken to read in the solution eir: 36

!ENTRY org.eclipse.ui.workbench 2 0 2011-09-21 14:13:04.800
!MESSAGE A handler conflict occurred. This may disable some commands.
!SUBENTRY 1 org.eclipse.ui.workbench 2 0 2011-09-21 14:13:04.800
!MESSAGE Conflict for 'AUTOGEN:::org.eclipse.ui.cheatsheets.actionSet/org.eclipse.ui.cheatsheets.actions.CheatSheetHelpMenuAction':
HandlerActivation(commandId=AUTOGEN:::org.eclipse.ui.cheatsheets.actionSet/org.eclipse.ui.cheatsheets.actions.CheatSheetHelpMenuAction,
handler=ActionDelegateHandlerProxy(null,org.eclipse.ui.cheatsheets.CheatSheetExtensionFactory:helpMenuAction),
expression=AndExpression(ActionSetExpression(org.eclipse.ui.cheatsheets.actionSet,[email protected]),WorkbenchWindowExpression([email protected])),sourcePriority=16640)
HandlerActivation(commandId=AUTOGEN:::org.eclipse.ui.cheatsheets.actionSet/org.eclipse.ui.cheatsheets.actions.CheatSheetHelpMenuAction,
handler=ActionDelegateHandlerProxy(null,org.eclipse.ui.cheatsheets.CheatSheetExtensionFactory:helpMenuAction),
expression=AndExpression(ActionSetExpression(org.eclipse.ui.cheatsheets.actionSet,[email protected]),WorkbenchWindowExpression([email protected])),sourcePriority=16640)

!ENTRY org.eclipse.ui 4 4 2011-09-21 14:13:22.575
!MESSAGE Invalid preference page path: HTML Syntax
!SESSION 2011-09-21 14:13:33.141 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86

!ENTRY com.servoy.eclipse.model 1 0 2011-09-21 14:13:39.056
!MESSAGE Time taken to read in the solution beans_test: 390

!ENTRY com.servoy.eclipse.model 1 0 2011-09-21 14:13:40.057
!MESSAGE Time taken to read in the solution eir: 36

!ENTRY org.eclipse.ui.workbench 2 0 2011-09-21 14:13:44.977
!MESSAGE A handler conflict occurred. This may disable some commands.
!SUBENTRY 1 org.eclipse.ui.workbench 2 0 2011-09-21 14:13:44.977
!MESSAGE Conflict for 'AUTOGEN:::org.eclipse.ui.cheatsheets.actionSet/org.eclipse.ui.cheatsheets.actions.CheatSheetHelpMenuAction':
HandlerActivation(commandId=AUTOGEN:::org.eclipse.ui.cheatsheets.actionSet/org.eclipse.ui.cheatsheets.actions.CheatSheetHelpMenuAction,
handler=ActionDelegateHandlerProxy(null,org.eclipse.ui.cheatsheets.CheatSheetExtensionFactory:helpMenuAction),
expression=AndExpression(ActionSetExpression(org.eclipse.ui.cheatsheets.actionSet,[email protected]),WorkbenchWindowExpression([email protected])),sourcePriority=16640)
HandlerActivation(commandId=AUTOGEN:::org.eclipse.ui.cheatsheets.actionSet/org.eclipse.ui.cheatsheets.actions.CheatSheetHelpMenuAction,
handler=ActionDelegateHandlerProxy(null,org.eclipse.ui.cheatsheets.CheatSheetExtensionFactory:helpMenuAction),
expression=AndExpression(ActionSetExpression(org.eclipse.ui.cheatsheets.actionSet,[email protected]),WorkbenchWindowExpression([email protected])),sourcePriority=16640)

!ENTRY org.eclipse.ui 4 4 2011-09-21 14:15:53.344
!MESSAGE Invalid preference page path: HTML Syntax
!SESSION 2011-09-21 14:17:41.744 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86

!ENTRY com.servoy.eclipse.model 1 0 2011-09-21 14:17:47.609
!MESSAGE Time taken to read in the solution beans_test: 386

!ENTRY com.servoy.eclipse.model 1 0 2011-09-21 14:17:48.624
!MESSAGE Time taken to read in the solution eir: 36

!ENTRY org.eclipse.ui.workbench 2 0 2011-09-21 14:17:53.623
!MESSAGE A handler conflict occurred. This may disable some commands.
!SUBENTRY 1 org.eclipse.ui.workbench 2 0 2011-09-21 14:17:53.623
!MESSAGE Conflict for 'AUTOGEN:::org.eclipse.ui.cheatsheets.actionSet/org.eclipse.ui.cheatsheets.actions.CheatSheetHelpMenuAction':
HandlerActivation(commandId=AUTOGEN:::org.eclipse.ui.cheatsheets.actionSet/org.eclipse.ui.cheatsheets.actions.CheatSheetHelpMenuAction,
handler=ActionDelegateHandlerProxy(null,org.eclipse.ui.cheatsheets.CheatSheetExtensionFactory:helpMenuAction),
expression=AndExpression(ActionSetExpression(org.eclipse.ui.cheatsheets.actionSet,[email protected]),WorkbenchWindowExpression([email protected])),sourcePriority=16640)
HandlerActivation(commandId=AUTOGEN:::org.eclipse.ui.cheatsheets.actionSet/org.eclipse.ui.cheatsheets.actions.CheatSheetHelpMenuAction,
handler=ActionDelegateHandlerProxy(null,org.eclipse.ui.cheatsheets.CheatSheetExtensionFactory:helpMenuAction),
expression=AndExpression(ActionSetExpression(org.eclipse.ui.cheatsheets.actionSet,[email protected]),WorkbenchWindowExpression([email protected])),sourcePriority=16640)

!ENTRY org.eclipse.ui 4 4 2011-09-21 14:19:50.751
!MESSAGE Invalid preference page path: HTML Syntax
!SESSION 2011-09-21 14:35:34.787 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86

!ENTRY com.servoy.eclipse.model 1 0 2011-09-21 14:35:40.981
!MESSAGE Time taken to read in the solution beans_test: 390

!ENTRY com.servoy.eclipse.model 1 0 2011-09-21 14:35:41.979
!MESSAGE Time taken to read in the solution eir: 36

!ENTRY org.eclipse.ui.workbench 2 0 2011-09-21 14:35:46.946
!MESSAGE A handler conflict occurred. This may disable some commands.
!SUBENTRY 1 org.eclipse.ui.workbench 2 0 2011-09-21 14:35:46.946
!MESSAGE Conflict for 'AUTOGEN:::org.eclipse.ui.cheatsheets.actionSet/org.eclipse.ui.cheatsheets.actions.CheatSheetHelpMenuAction':
HandlerActivation(commandId=AUTOGEN:::org.eclipse.ui.cheatsheets.actionSet/org.eclipse.ui.cheatsheets.actions.CheatSheetHelpMenuAction,
handler=ActionDelegateHandlerProxy(null,org.eclipse.ui.cheatsheets.CheatSheetExtensionFactory:helpMenuAction),
expression=AndExpression(ActionSetExpression(org.eclipse.ui.cheatsheets.actionSet,[email protected]),WorkbenchWindowExpression([email protected])),sourcePriority=16640)
HandlerActivation(commandId=AUTOGEN:::org.eclipse.ui.cheatsheets.actionSet/org.eclipse.ui.cheatsheets.actions.CheatSheetHelpMenuAction,
handler=ActionDelegateHandlerProxy(null,org.eclipse.ui.cheatsheets.CheatSheetExtensionFactory:helpMenuAction),
expression=AndExpression(ActionSetExpression(org.eclipse.ui.cheatsheets.actionSet,[email protected]),WorkbenchWindowExpression([email protected])),sourcePriority=16640)

!ENTRY org.eclipse.ui 4 4 2011-09-21 14:35:53.801
!MESSAGE Invalid preference page path: HTML Syntax
!SESSION 2011-09-21 14:37:56.851 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86

!ENTRY com.servoy.eclipse.model 1 0 2011-09-21 14:38:02.785
!MESSAGE Time taken to read in the solution beans_test: 376

!ENTRY com.servoy.eclipse.model 1 0 2011-09-21 14:38:03.811
!MESSAGE Time taken to read in the solution eir: 35

!ENTRY org.eclipse.ui.workbench 2 0 2011-09-21 14:38:08.657
!MESSAGE A handler conflict occurred. This may disable some commands.
!SUBENTRY 1 org.eclipse.ui.workbench 2 0 2011-09-21 14:38:08.657
!MESSAGE Conflict for 'AUTOGEN:::org.eclipse.ui.cheatsheets.actionSet/org.eclipse.ui.cheatsheets.actions.CheatSheetHelpMenuAction':
HandlerActivation(commandId=AUTOGEN:::org.eclipse.ui.cheatsheets.actionSet/org.eclipse.ui.cheatsheets.actions.CheatSheetHelpMenuAction,
handler=ActionDelegateHandlerProxy(null,org.eclipse.ui.cheatsheets.CheatSheetExtensionFactory:helpMenuAction),
expression=AndExpression(ActionSetExpression(org.eclipse.ui.cheatsheets.actionSet,[email protected]),WorkbenchWindowExpression([email protected])),sourcePriority=16640)
HandlerActivation(commandId=AUTOGEN:::org.eclipse.ui.cheatsheets.actionSet/org.eclipse.ui.cheatsheets.actions.CheatSheetHelpMenuAction,
handler=ActionDelegateHandlerProxy(null,org.eclipse.ui.cheatsheets.CheatSheetExtensionFactory:helpMenuAction),
expression=AndExpression(ActionSetExpression(org.eclipse.ui.cheatsheets.actionSet,[email protected]),WorkbenchWindowExpression([email protected])),sourcePriority=16640)
lalong
 
Posts: 40
Joined: Thu Aug 05, 2010 1:42 pm

Re: How to build a plugin or bean

Postby ptalbot » Wed Sep 21, 2011 9:10 pm

There are no more errors related to your bean apparently (only one related to your solution and some Eclipse shortcut conflicts, but that's not a big issue and will not prevent Servoy to work).
Does your bean appear npw when you try to "Place bean..."?
Patrick Talbot
Freelance - Open Source - Servoy Valued Professional
http://www.servoy-stuff.net
https://www.servoyforge.net
--------------------------------------------
Servoy 5.2.16 / 6.0.9 / 6.1.6 / 7.3.1
All OSes / Java 5 & 6 & 7
User avatar
ptalbot
 
Posts: 1612
Joined: Wed Mar 11, 2009 5:13 am
Location: Montreal, QC

Re: How to build a plugin or bean

Postby lalong » Wed Sep 21, 2011 9:31 pm

npw?
lalong
 
Posts: 40
Joined: Thu Aug 05, 2010 1:42 pm

Re: How to build a plugin or bean

Postby lalong » Wed Sep 21, 2011 9:32 pm

Ah you meant "now"...No it doesn't
lalong
 
Posts: 40
Joined: Thu Aug 05, 2010 1:42 pm

Next

Return to Plugins and Beans

Who is online

Users browsing this forum: No registered users and 4 guests

cron