Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Some problems with the VE 1.1 and Eclipse 3.1
Some problems with the VE 1.1 and Eclipse 3.1 [message #100065] Tue, 26 July 2005 06:57 Go to next message
Flik is currently offline FlikFriend
Messages: 51
Registered: July 2009
Member
hello,

first i have to thank you for your great work! the new VE is really good!!!

but i have got some problems with it - i hope you can help me:

1) i have a swt shell which is shown correctly - when running in eclipse.
But if i load it in the ve, the editor doesn't show the content of my
Label...

_the code:_
dlScreen = new Label (CSvisiblecrmWelcomeScr,SWT.LEFT );
dlScreen.setBounds(new org.eclipse.swt.graphics.Rectangle(0, 0,(int)
(810), (int) (24)));
dlScreen.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"MS Sans
Serif",16,SWT.BOLD));
dlScreen.setText("this is just an example");

the VE shows me the border of the Label but unfortunately it does not
show the "this is just an example" text...

2) another shell which is loading in the ve even doesn't start at all.
the editor throws the message that there is a
java.lang.NullPointerException. "Error trying to set new file into
editor". - the screen is blank.

-> but some of my other files runs without any problems...

so i hope you can help me

thanks

Flik
Re: Some problems with the VE 1.1 and Eclipse 3.1 [message #100098 is a reply to message #100065] Tue, 26 July 2005 09:49 Go to previous messageGo to next message
Srimanth  is currently offline Srimanth Friend
Messages: 225
Registered: July 2009
Senior Member
Hi Flik,

(1) I was able to load the following code without any problems. Do you
see any exceptions/messages in the logs? Which layout is the shell in?
--------------------------------------
public class Empty1 {

private Shell sShell = null; //
@jve:decl-index=0:visual-constraint="22,30"
private Label dlScreen = null;

private void createSShell() {
sShell = new Shell();
sShell.setSize(new org.eclipse.swt.graphics.Point(172,133));
dlScreen = new Label (sShell,SWT.LEFT );
dlScreen.setBounds(new org.eclipse.swt.graphics.Rectangle(0, 0,(int)
(810), (int) (24)));
dlScreen.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"MS Sans
Serif",16,SWT.BOLD));
dlScreen.setText("this is just an example");
}
}
--------------------------------------


(2) Do you see any exceptions/messages in the logs? Is this in the same
project as the above file which seems to atleast load?

Regards,
Sri.



Flik wrote:
> hello,
>
> first i have to thank you for your great work! the new VE is really good!!!
>
> but i have got some problems with it - i hope you can help me:
>
> 1) i have a swt shell which is shown correctly - when running in eclipse.
> But if i load it in the ve, the editor doesn't show the content of my
> Label...
>
> _the code:_
> dlScreen = new Label (CSvisiblecrmWelcomeScr,SWT.LEFT );
> dlScreen.setBounds(new org.eclipse.swt.graphics.Rectangle(0, 0,(int)
> (810), (int) (24)));
> dlScreen.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"MS Sans
> Serif",16,SWT.BOLD));
> dlScreen.setText("this is just an example");
>
> the VE shows me the border of the Label but unfortunately it does not
> show the "this is just an example" text...
>
> 2) another shell which is loading in the ve even doesn't start at all.
> the editor throws the message that there is a
> java.lang.NullPointerException. "Error trying to set new file into
> editor". - the screen is blank.
>
> -> but some of my other files runs without any problems...
>
> so i hope you can help me
>
> thanks
>
> Flik
Re: Some problems with the VE 1.1 and Eclipse 3.1 [message #100141 is a reply to message #100098] Tue, 26 July 2005 10:51 Go to previous messageGo to next message
Flik is currently offline FlikFriend
Messages: 51
Registered: July 2009
Member
Sri Gunturi schrieb:
> Hi Flik,
>
> (1) I was able to load the following code without any problems. Do you
> see any exceptions/messages in the logs? Which layout is the shell in?
> --------------------------------------
> public class Empty1 {
>
> private Shell sShell = null; //
> @jve:decl-index=0:visual-constraint="22,30"
> private Label dlScreen = null;
>
> private void createSShell() {
> sShell = new Shell();
> sShell.setSize(new org.eclipse.swt.graphics.Point(172,133));
> dlScreen = new Label (sShell,SWT.LEFT );
> dlScreen.setBounds(new org.eclipse.swt.graphics.Rectangle(0,
> 0,(int) (810), (int) (24)));
> dlScreen.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"MS Sans
> Serif",16,SWT.BOLD));
> dlScreen.setText("this is just an example");
> }
> }
> --------------------------------------

(1) very strange: your code runs well.

so please try this file, where the error occures. the ve only shows the
borders of the widgets...

filename: crmLogin.java

---------

import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.TabFolder;
import org.eclipse.swt.widgets.TabItem;
import org.eclipse.swt.widgets.Text;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Combo;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.widgets.TableItem;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.events.MouseEvent;
import org.eclipse.swt.events.MouseListener;
import org.eclipse.swt.events.VerifyEvent;
import org.eclipse.swt.events.VerifyListener;
import org.eclipse.ui.part.ViewPart;
import org.eclipse.jface.action.IMenuManager;
import org.eclipse.jface.action.IToolBarManager;
import java.io.FileNotFoundException;
import org.eclipse.swt.custom.ScrolledComposite;
public class crmLogin extends ViewPart {
private Shell crmLoginScr = null;
private TabFolder tabFoldercrmLoginScr = null;
private TabItem tabItemVisiblecrmLoginScr = null;
private Composite CSvisiblecrmLoginScr = null;
private TabItem tabItemHiddencrmLoginScr = null;
private Composite CShiddencrmLoginScr = null;
private ScrolledComposite CSvisiblecrmLoginScrSC = null;
private ScrolledComposite CShiddencrmLoginScrSC = null;
TableItem tabitem;
private Label F1gen = null;
private Combo clientOM = null;
private Text login = null;
private Text password = null;
private Label userid = null;
private Label clientid = null;
private Button loginPb = null;
private Label personid = null;
private Label dlScreen = null;
private Label LLogin = null;
private Label LPassword = null;
private void createcrmLoginScr() {
crmLoginScr = new Shell (); // @jve:decl-index=0:visual-constraint="10,10"
crmLoginScr.setText("Anmeldung");
crmLoginScr.setSize(new org.eclipse.swt.graphics.Point((int) (6*41.17) +
10, (int) (14*12.07) + 35));
createtabFoldercrmLoginScr(crmLoginScr);
}
private void createtabFoldercrmLoginScr(Composite crmLoginScr) {
tabFoldercrmLoginScr = new TabFolder(crmLoginScr,SWT.BOTTOM);
tabFoldercrmLoginScr.setBounds(new
org.eclipse.swt.graphics.Rectangle(0,0,(int) (6*41.17) + 10, (int)
(14*12.07) + 35 ));
TabItem tabItemVisiblecrmLoginScr = new TabItem
(tabFoldercrmLoginScr,SWT.NONE);
TabItem tabItemHiddencrmLoginScr = new TabItem
(tabFoldercrmLoginScr,SWT.NONE);
createCSvisiblecrmLoginScr();
createCShiddencrmLoginScr();
tabItemVisiblecrmLoginScr.setText("workplace");
tabItemHiddencrmLoginScr.setText("hidden-always");
tabItemVisiblecrmLoginScr.setControl(CSvisiblecrmLoginScrSC );
tabItemHiddencrmLoginScr.setControl(CShiddencrmLoginScrSC );
}

private void createCShiddencrmLoginScr() {
// Create the ScrolledComposite to scroll horizontally and vertically
CShiddencrmLoginScrSC = new
ScrolledComposite(tabFoldercrmLoginScr,SWT.H_SCROLL | SWT.V_SCROLL);
CShiddencrmLoginScrSC.setBounds(0,0,750,550);
// Create a child composite to hold the controls
CShiddencrmLoginScr = new Composite(CShiddencrmLoginScrSC,SWT.NONE);
CShiddencrmLoginScr.setBounds(tabFoldercrmLoginScr.getBounds ().x,tabFoldercrmLoginScr.getBounds().y,tabFoldercrmLoginScr .getBounds().width,tabFoldercrmLoginScr.getBounds().height);
F1gen = new Label (CShiddencrmLoginScr,SWT.LEFT );
F1gen.setBounds(new org.eclipse.swt.graphics.Rectangle(42, 36,(int)
(48), (int) (14)));
F1gen.setVisible(true);
F1gen.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
F1gen.setText("Mandant");

clientOM = new Combo (CShiddencrmLoginScr,SWT.DROP_DOWN | SWT.READ_ONLY );
clientOM.setBounds(new org.eclipse.swt.graphics.Rectangle(96, 32,(int)
(132), (int) (21)));
clientOM.setVisible(true);
clientOM.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));

userid = new Label (CShiddencrmLoginScr,SWT.LEFT );
userid.setBounds(new org.eclipse.swt.graphics.Rectangle(12, 120,(int)
(54), (int) (14)));
userid.setVisible(true);
userid.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));

clientid = new Label (CShiddencrmLoginScr,SWT.LEFT );
clientid.setBounds(new org.eclipse.swt.graphics.Rectangle(12, 134,(int)
(54), (int) (14)));
clientid.setVisible(true);
clientid.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));

personid = new Label (CShiddencrmLoginScr,SWT.LEFT );
personid.setBounds(new org.eclipse.swt.graphics.Rectangle(12, 148,(int)
(54), (int) (14)));
personid.setVisible(true);
personid.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));

CShiddencrmLoginScrSC.setContent(CShiddencrmLoginScr);
CShiddencrmLoginScrSC.setMinSize((int)(6*41.17) + 10 ,(int)(14*12.07) +
35 );
CShiddencrmLoginScrSC.setExpandHorizontal(true);
CShiddencrmLoginScrSC.setExpandVertical(true);
}
private void createCSvisiblecrmLoginScr() {
// Create the ScrolledComposite to scroll horizontally and vertically
CSvisiblecrmLoginScrSC = new
ScrolledComposite(tabFoldercrmLoginScr,SWT.H_SCROLL | SWT.V_SCROLL);
CSvisiblecrmLoginScrSC.setBounds(0,0,750,550);
// Create a child composite to hold the controls
CSvisiblecrmLoginScr = new Composite(CSvisiblecrmLoginScrSC,SWT.NONE);
CSvisiblecrmLoginScr.setBounds(tabFoldercrmLoginScr.getBound s().x,tabFoldercrmLoginScr.getBounds().y,tabFoldercrmLoginSc r.getBounds().width,tabFoldercrmLoginScr.getBounds().height) ;
// END of TabDecks
// END of TabCards
// END of GridFrames
// END of GridFrameColumns
login = new Text (CSvisiblecrmLoginScr,SWT.LEFT | SWT.BORDER );
login.setBounds(new org.eclipse.swt.graphics.Rectangle(96, 59,(int)
(100), (int) (23)));
login.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
login.setText("db2admin");

password = new Text (CSvisiblecrmLoginScr,SWT.LEFT | SWT.BORDER );
password.setBounds(new org.eclipse.swt.graphics.Rectangle(96, 87,(int)
(100), (int) (23)));
password.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
password.setEchoChar('*');
password.setText("db2admin");

loginPb = new Button (CSvisiblecrmLoginScr,SWT.CENTER );
loginPb.setBounds(new org.eclipse.swt.graphics.Rectangle(110, 129,(int)
(74), (int) (23)));
loginPb.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));

dlScreen = new Label (CSvisiblecrmLoginScr,SWT.LEFT );
dlScreen.setBounds(new org.eclipse.swt.graphics.Rectangle(2, 0,(int)
(244), (int) (24)));
dlScreen.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"MS Sans
Serif",16,SWT.BOLD));
dlScreen.setText("Login");

LLogin = new Label (CSvisiblecrmLoginScr,SWT.LEFT );
LLogin.setBounds(new org.eclipse.swt.graphics.Rectangle(39, 64,(int)
(54), (int) (13)));
LLogin.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
LLogin.setText("Username");

LPassword = new Label (CSvisiblecrmLoginScr,SWT.LEFT );
LPassword.setBounds(new org.eclipse.swt.graphics.Rectangle(40, 92,(int)
(52), (int) (13)));
LPassword.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
LPassword.setText("Passwort");

CSvisiblecrmLoginScrSC.setContent(CSvisiblecrmLoginScr);
CSvisiblecrmLoginScrSC.setMinSize((int)(6*41.17) + 10 ,(int)(14*12.07) +
35 );
CSvisiblecrmLoginScrSC.setExpandHorizontal(true);
CSvisiblecrmLoginScrSC.setExpandVertical(true);
}
public void setFocus() {
// viewer.getControl().setFocus();
}
/**
* This is a callback that will allow us to create the viewer and initialize
* it.
*/
public void createPartControl(Composite scanner) {
Composite crmLoginScr = scanner;
createtabFoldercrmLoginScr(crmLoginScr);
}
public static void main(String[] args) {
org.eclipse.swt.widgets.Display display =
org.eclipse.swt.widgets.Display.getDefault();
crmLogin jClasscrmLogin = new crmLogin();
jClasscrmLogin.createcrmLoginScr();
jClasscrmLogin.crmLoginScr.open();
while (!jClasscrmLogin.crmLoginScr.isDisposed()) {
if (!display.readAndDispatch ()) display.sleep();
}
display.dispose ();
}
}


> (2) Do you see any exceptions/messages in the logs? Is this in the same
> project as the above file which seems to atleast load?

(2) extract of my log file:

I am sorry, but i do not understand the meaning of the log-extract...
.... does anybody see what the problem is?

!ENTRY org.eclipse.ve.java.core 4 0 2005-07-26 12:44:27.906
!MESSAGE Exception thrown.
!STACK 0
java.lang.NullPointerException
at
org.eclipse.ve.internal.swt.CompositeGraphicalEditPart.setup Control(CompositeGraphicalEditPart.java:96)
at
org.eclipse.ve.internal.swt.CompositeGraphicalEditPart.creat eChild(CompositeGraphicalEditPart.java:84)
at
org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:733)
at
org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:684)
at
org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:554)
at
org.eclipse.gef.editparts.AbstractEditPart.addNotify(Abstrac tEditPart.java:232)
at
org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotif y(AbstractGraphicalEditPart.java:212)
at
org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:195)
at
org.eclipse.ve.internal.swt.TabFolderGraphicalEditPart.addCh ild(TabFolderGraphicalEditPart.java:86)
at
org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:734)
at
org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:684)
at
org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:554)
at
org.eclipse.gef.editparts.AbstractEditPart.addNotify(Abstrac tEditPart.java:232)
at
org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotif y(AbstractGraphicalEditPart.java:212)
at
org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:195)
at
org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:734)
at
org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:684)
at
org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:554)
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart.setRootModel(JavaVisualEditorPart.java:506)
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart.initializeViewers(JavaVisualEditorPart.java:987)
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart$12.run(JavaVisualEditorPart.java:1977)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3057)
at org.eclipse.swt.widgets.Display.msgFilterProc(Display.java:2 505)
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1651 )
at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable .java:77)
at org.eclipse.swt.widgets.Composite.WM_SYSCOMMAND(Composite.ja va:1315)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3110 )
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3706 )
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1651 )
at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable .java:77)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3123 )
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3706 )
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:16 56)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2711)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
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.core.launcher.Main.invokeFramework(Main.java:334 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)

!ENTRY org.eclipse.jem.proxy 2 0 2005-07-26 12:44:28.265
!MESSAGE
+++ Warning +++: Tue Jul 26 12:44:28 CEST 2005 Project
(proCrmAntlrE31)-VM for proCrmAntlrE31:err>

org.eclipse.jem.internal.proxy.common.remote.CommandErrorExc eption--
Error code:7 Value data:"java.lang.NullPointerException:null"
at
org.eclipse.jem.internal.proxy.common.remote.Commands.readBa ckValue(Commands.java:1254)
at
org.eclipse.jem.internal.proxy.vm.remote.ConnectionHandler.r un(ConnectionHandler.java:454)
at
org.eclipse.jem.internal.proxy.vm.remote.CallbackHandler.cal lbackWithParms(CallbackHandler.java:150)
at
org.eclipse.ve.internal.swt.targetvm.ControlManager$5.run(Co ntrolManager.java:637)
at
org.eclipse.jem.internal.proxy.vm.remote.RemoteVMServerThrea d.doCallback(RemoteVMServerThread.java:541)
at
org.eclipse.ve.internal.swt.targetvm.ControlManager$ControlM anagerFeedbackController.run(ControlManager.java:634)
at
org.eclipse.ve.internal.swt.targetvm.ControlManager$1.run(Co ntrolManager.java:480)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3057)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2716)
at
org.eclipse.ve.internal.swt.targetvm.Environment$3.run(Envir onment.java:68)

!ENTRY org.eclipse.ui 4 4 2005-07-26 12:44:30.140
!MESSAGE Unhandled event loop exception

!ENTRY org.eclipse.ui 4 0 2005-07-26 12:44:30.218
!MESSAGE Failed to execute runnable (java.lang.NullPointerException)
!STACK 0
org.eclipse.swt.SWTException: Failed to execute runnable
(java.lang.NullPointerException)
at org.eclipse.swt.SWT.error(SWT.java:2942)
at org.eclipse.swt.SWT.error(SWT.java:2865)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:126)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3057)
at org.eclipse.swt.widgets.Display.msgFilterProc(Display.java:2 505)
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1651 )
at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable .java:77)
at org.eclipse.swt.widgets.Composite.WM_SYSCOMMAND(Composite.ja va:1315)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3110 )
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3706 )
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1651 )
at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable .java:77)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3123 )
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3706 )
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:16 56)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2711)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
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.core.launcher.Main.invokeFramework(Main.java:334 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)
Caused by: java.lang.NullPointerException
at
org.eclipse.ve.internal.swt.CompositeGraphicalEditPart.setup Control(CompositeGraphicalEditPart.java:96)
at
org.eclipse.ve.internal.swt.CompositeGraphicalEditPart.creat eChild(CompositeGraphicalEditPart.java:84)
at
org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:733)
at
org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:684)
at
org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:554)
at
org.eclipse.gef.editparts.AbstractEditPart.addNotify(Abstrac tEditPart.java:232)
at
org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotif y(AbstractGraphicalEditPart.java:212)
at
org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:195)
at
org.eclipse.ve.internal.swt.TabFolderGraphicalEditPart.addCh ild(TabFolderGraphicalEditPart.java:86)
at
org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:734)
at
org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:684)
at
org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:554)
at
org.eclipse.gef.editparts.AbstractEditPart.addNotify(Abstrac tEditPart.java:232)
at
org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotif y(AbstractGraphicalEditPart.java:212)
at
org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:195)
at
org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:734)
at
org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:684)
at
org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:554)
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart.setRootModel(JavaVisualEditorPart.java:506)
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart.initializeViewers(JavaVisualEditorPart.java:987)
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart$12.run(JavaVisualEditorPart.java:1977)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
... 32 more
Re: Some problems with the VE 1.1 and Eclipse 3.1 [message #100291 is a reply to message #100141] Tue, 26 July 2005 15:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

I was able to produce the first problem with labels not showing up.
Please open a bugzilla against VE component SWT and attach the source
crmLogin to it.

I don't know what caused the trace exception you first showed because
you didn't include the code for the shell that wouldn't start at all.
Please append the shell that failed so we can see it too.

--
Thanks,
Rich Kulp
Re: Some problems with the VE 1.1 and Eclipse 3.1 [message #100303 is a reply to message #100141] Tue, 26 July 2005 17:05 Go to previous messageGo to next message
Srimanth  is currently offline Srimanth Friend
Messages: 225
Registered: July 2009
Senior Member
Hi Flik,
It turns out that the code was in a pattern not supported by VE 1.1.
1) For example a Composite (crmLoginScr) was defined as a local variable
and codegen in VE 1.1 doesnt understand passing of arguments between
methods - it only understands fields and local variables.
2) the name of the Shell and a composite to be the same.
3) You dont need the main() class and a shell in your source, to see how
the view's contents look at runtime simply run the view as a 'Java Bean'.

I have refactored the source so that VE can show the visuals correctly.
Please make sure this works for you.
Regards,
Sri.
------------------------------------------------

import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.TabFolder;
import org.eclipse.swt.widgets.TabItem;
import org.eclipse.swt.widgets.Text;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Combo;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.widgets.TableItem;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.events.MouseEvent;
import org.eclipse.swt.events.MouseListener;
import org.eclipse.swt.events.VerifyEvent;
import org.eclipse.swt.events.VerifyListener;
import org.eclipse.ui.part.ViewPart;
import org.eclipse.jface.action.IMenuManager;
import org.eclipse.jface.action.IToolBarManager;
import java.io.FileNotFoundException;
import org.eclipse.swt.custom.ScrolledComposite;

public class CopyOfcrmLogin3 extends ViewPart {
private Shell crmLoginScr = null;
private TabFolder tabFoldercrmLoginScr = null;
private TabItem tabItemVisiblecrmLoginScr = null;
private Composite CSvisiblecrmLoginScr = null;
private TabItem tabItemHiddencrmLoginScr = null;
private Composite CShiddencrmLoginScr = null;
private ScrolledComposite CSvisiblecrmLoginScrSC = null;
private ScrolledComposite CShiddencrmLoginScrSC = null;
TableItem tabitem;
private Label F1gen = null;
private Combo clientOM = null;
private Text login = null;
private Text password = null;
private Label userid = null;
private Label clientid = null;
private Button loginPb = null;
private Label personid = null;
private Label dlScreen = null;
private Label LLogin = null;
private Label LPassword = null;
private Composite crmLoginScr2;
//private void createcrmLoginScr() {
//crmLoginScr = new Shell (); // @jve:decl-index=0:visual-constraint="10,10"
//crmLoginScr.setText("Anmeldung");
//crmLoginScr.setSize(new org.eclipse.swt.graphics.Point((int) (6*41.17)
+ 10, (int) (14*12.07) + 35));
//createtabFoldercrmLoginScr();
//}
private void createtabFoldercrmLoginScr() {
tabFoldercrmLoginScr = new TabFolder(crmLoginScr2,SWT.BOTTOM);
tabFoldercrmLoginScr.setBounds(new
org.eclipse.swt.graphics.Rectangle(0,0,(int) (6*41.17) + 10, (int)
(14*12.07) + 35 ));
TabItem tabItemVisiblecrmLoginScr = new TabItem
(tabFoldercrmLoginScr,SWT.NONE);
TabItem tabItemHiddencrmLoginScr = new TabItem
(tabFoldercrmLoginScr,SWT.NONE);
createCSvisiblecrmLoginScr();
createCShiddencrmLoginScr();
tabItemVisiblecrmLoginScr.setText("workplace");
tabItemHiddencrmLoginScr.setText("hidden-always");
tabItemVisiblecrmLoginScr.setControl(CSvisiblecrmLoginScrSC );
tabItemHiddencrmLoginScr.setControl(CShiddencrmLoginScrSC );
}

private void createCShiddencrmLoginScr() {
// Create the ScrolledComposite to scroll horizontally and vertically
CShiddencrmLoginScrSC = new
ScrolledComposite(tabFoldercrmLoginScr,SWT.H_SCROLL | SWT.V_SCROLL);
CShiddencrmLoginScrSC.setBounds(0,0,750,550);
// Create a child composite to hold the controls
CShiddencrmLoginScr = new Composite(CShiddencrmLoginScrSC,SWT.NONE);
CShiddencrmLoginScr.setBounds(tabFoldercrmLoginScr.getBounds ().x,tabFoldercrmLoginScr.getBounds().y,tabFoldercrmLoginScr .getBounds().width,tabFoldercrmLoginScr.getBounds().height);
F1gen = new Label (CShiddencrmLoginScr,SWT.LEFT );
F1gen.setBounds(new org.eclipse.swt.graphics.Rectangle(42, 36,(int)
(48), (int) (14)));
F1gen.setVisible(true);
F1gen.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
F1gen.setText("Mandant");

clientOM = new Combo (CShiddencrmLoginScr,SWT.DROP_DOWN | SWT.READ_ONLY );
clientOM.setBounds(new org.eclipse.swt.graphics.Rectangle(96, 32,(int)
(132), (int) (21)));
clientOM.setVisible(true);
clientOM.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));

userid = new Label (CShiddencrmLoginScr,SWT.LEFT );
userid.setBounds(new org.eclipse.swt.graphics.Rectangle(12, 120,(int)
(54), (int) (14)));
userid.setVisible(true);
userid.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));

clientid = new Label (CShiddencrmLoginScr,SWT.LEFT );
clientid.setBounds(new org.eclipse.swt.graphics.Rectangle(12, 134,(int)
(54), (int) (14)));
clientid.setVisible(true);
clientid.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));

personid = new Label (CShiddencrmLoginScr,SWT.LEFT );
personid.setBounds(new org.eclipse.swt.graphics.Rectangle(12, 148,(int)
(54), (int) (14)));
personid.setVisible(true);
personid.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));

CShiddencrmLoginScrSC.setContent(CShiddencrmLoginScr);
CShiddencrmLoginScrSC.setMinSize((int)(6*41.17) + 10 ,(int)(14*12.07) +
35 );
CShiddencrmLoginScrSC.setExpandHorizontal(true);
CShiddencrmLoginScrSC.setExpandVertical(true);
}
private void createCSvisiblecrmLoginScr() {
// Create the ScrolledComposite to scroll horizontally and vertically
CSvisiblecrmLoginScrSC = new
ScrolledComposite(tabFoldercrmLoginScr,SWT.H_SCROLL | SWT.V_SCROLL);
CSvisiblecrmLoginScrSC.setBounds(0,0,750,550);
// Create a child composite to hold the controls
CSvisiblecrmLoginScr = new Composite(CSvisiblecrmLoginScrSC,SWT.NONE);
CSvisiblecrmLoginScr.setBounds(tabFoldercrmLoginScr.getBound s().x,tabFoldercrmLoginScr.getBounds().y,tabFoldercrmLoginSc r.getBounds().width,tabFoldercrmLoginScr.getBounds().height) ;
// END of TabDecks
// END of TabCards
// END of GridFrames
// END of GridFrameColumns
login = new Text (CSvisiblecrmLoginScr,SWT.LEFT | SWT.BORDER );
login.setBounds(new org.eclipse.swt.graphics.Rectangle(96, 59,(int)
(100), (int) (23)));
login.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
login.setText("db2admin");

password = new Text (CSvisiblecrmLoginScr,SWT.LEFT | SWT.BORDER );
password.setBounds(new org.eclipse.swt.graphics.Rectangle(96, 87,(int)
(100), (int) (23)));
password.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
password.setEchoChar('*');
password.setText("db2admin");

loginPb = new Button (CSvisiblecrmLoginScr,SWT.CENTER );
loginPb.setBounds(new org.eclipse.swt.graphics.Rectangle(110, 129,(int)
(74), (int) (23)));
loginPb.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));

dlScreen = new Label (CSvisiblecrmLoginScr,SWT.LEFT );
dlScreen.setBounds(new org.eclipse.swt.graphics.Rectangle(2, 0,(int)
(244), (int) (24)));
dlScreen.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"MS Sans
Serif",16,SWT.BOLD));
dlScreen.setText("Login");

LLogin = new Label (CSvisiblecrmLoginScr,SWT.LEFT );
LLogin.setBounds(new org.eclipse.swt.graphics.Rectangle(39, 64,(int)
(54), (int) (13)));
LLogin.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
LLogin.setText("Username");

LPassword = new Label (CSvisiblecrmLoginScr,SWT.LEFT );
LPassword.setBounds(new org.eclipse.swt.graphics.Rectangle(40, 92,(int)
(52), (int) (13)));
LPassword.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
LPassword.setText("Passwort");

CSvisiblecrmLoginScrSC.setContent(CSvisiblecrmLoginScr);
CSvisiblecrmLoginScrSC.setMinSize((int)(6*41.17) + 10 ,(int)(14*12.07) +
35 );
CSvisiblecrmLoginScrSC.setExpandHorizontal(true);
CSvisiblecrmLoginScrSC.setExpandVertical(true);
}
public void setFocus() {
// viewer.getControl().setFocus();
}
/**
* This is a callback that will allow us to create the viewer and initialize
* it.
*/
public void createPartControl(Composite scanner) {
crmLoginScr2 = scanner;
createtabFoldercrmLoginScr();
}
public static void main(String[] args) {
org.eclipse.swt.widgets.Display display =
org.eclipse.swt.widgets.Display.getDefault();
CopyOfcrmLogin3 jClasscrmLogin = new CopyOfcrmLogin3();
//jClasscrmLogin.createcrmLoginScr();
jClasscrmLogin.crmLoginScr.open();
while (!jClasscrmLogin.crmLoginScr.isDisposed()) {
if (!display.readAndDispatch ()) display.sleep();
}
display.dispose ();
}
}
------------------------------------------------


Flik wrote:
>
>
> Sri Gunturi schrieb:
>
>> Hi Flik,
>>
>> (1) I was able to load the following code without any problems. Do you
>> see any exceptions/messages in the logs? Which layout is the shell in?
>> --------------------------------------
>> public class Empty1 {
>>
>> private Shell sShell = null; //
>> @jve:decl-index=0:visual-constraint="22,30"
>> private Label dlScreen = null;
>>
>> private void createSShell() {
>> sShell = new Shell();
>> sShell.setSize(new org.eclipse.swt.graphics.Point(172,133));
>> dlScreen = new Label (sShell,SWT.LEFT );
>> dlScreen.setBounds(new org.eclipse.swt.graphics.Rectangle(0,
>> 0,(int) (810), (int) (24)));
>> dlScreen.setFont(new
>> Font(org.eclipse.swt.widgets.Display.getDefault(),"MS Sans
>> Serif",16,SWT.BOLD));
>> dlScreen.setText("this is just an example");
>> }
>> }
>> --------------------------------------
>
>
> (1) very strange: your code runs well.
>
> so please try this file, where the error occures. the ve only shows the
> borders of the widgets...
>
> filename: crmLogin.java
>
> ---------
>
> import org.eclipse.swt.widgets.Composite;
> import org.eclipse.swt.widgets.TabFolder;
> import org.eclipse.swt.widgets.TabItem;
> import org.eclipse.swt.widgets.Text;
> import org.eclipse.swt.widgets.Button;
> import org.eclipse.swt.widgets.Label;
> import org.eclipse.swt.widgets.Combo;
> import org.eclipse.swt.widgets.Display;
> import org.eclipse.swt.widgets.Shell;
> import org.eclipse.swt.SWT;
> import org.eclipse.swt.graphics.Font;
> import org.eclipse.swt.widgets.TableItem;
> import org.eclipse.swt.graphics.Image;
> import org.eclipse.swt.events.MouseEvent;
> import org.eclipse.swt.events.MouseListener;
> import org.eclipse.swt.events.VerifyEvent;
> import org.eclipse.swt.events.VerifyListener;
> import org.eclipse.ui.part.ViewPart;
> import org.eclipse.jface.action.IMenuManager;
> import org.eclipse.jface.action.IToolBarManager;
> import java.io.FileNotFoundException;
> import org.eclipse.swt.custom.ScrolledComposite;
> public class crmLogin extends ViewPart {
> private Shell crmLoginScr = null;
> private TabFolder tabFoldercrmLoginScr = null;
> private TabItem tabItemVisiblecrmLoginScr = null;
> private Composite CSvisiblecrmLoginScr = null;
> private TabItem tabItemHiddencrmLoginScr = null;
> private Composite CShiddencrmLoginScr = null;
> private ScrolledComposite CSvisiblecrmLoginScrSC = null;
> private ScrolledComposite CShiddencrmLoginScrSC = null;
> TableItem tabitem;
> private Label F1gen = null;
> private Combo clientOM = null;
> private Text login = null;
> private Text password = null;
> private Label userid = null;
> private Label clientid = null;
> private Button loginPb = null;
> private Label personid = null;
> private Label dlScreen = null;
> private Label LLogin = null;
> private Label LPassword = null;
> private void createcrmLoginScr() {
> crmLoginScr = new Shell (); // @jve:decl-index=0:visual-constraint="10,10"
> crmLoginScr.setText("Anmeldung");
> crmLoginScr.setSize(new org.eclipse.swt.graphics.Point((int) (6*41.17) +
> 10, (int) (14*12.07) + 35));
> createtabFoldercrmLoginScr(crmLoginScr);
> }
> private void createtabFoldercrmLoginScr(Composite crmLoginScr) {
> tabFoldercrmLoginScr = new TabFolder(crmLoginScr,SWT.BOTTOM);
> tabFoldercrmLoginScr.setBounds(new
> org.eclipse.swt.graphics.Rectangle(0,0,(int) (6*41.17) + 10, (int)
> (14*12.07) + 35 ));
> TabItem tabItemVisiblecrmLoginScr = new TabItem
> (tabFoldercrmLoginScr,SWT.NONE);
> TabItem tabItemHiddencrmLoginScr = new TabItem
> (tabFoldercrmLoginScr,SWT.NONE);
> createCSvisiblecrmLoginScr();
> createCShiddencrmLoginScr();
> tabItemVisiblecrmLoginScr.setText("workplace");
> tabItemHiddencrmLoginScr.setText("hidden-always");
> tabItemVisiblecrmLoginScr.setControl(CSvisiblecrmLoginScrSC );
> tabItemHiddencrmLoginScr.setControl(CShiddencrmLoginScrSC );
> }
>
> private void createCShiddencrmLoginScr() {
> // Create the ScrolledComposite to scroll horizontally and vertically
> CShiddencrmLoginScrSC = new
> ScrolledComposite(tabFoldercrmLoginScr,SWT.H_SCROLL | SWT.V_SCROLL);
> CShiddencrmLoginScrSC.setBounds(0,0,750,550);
> // Create a child composite to hold the controls
> CShiddencrmLoginScr = new Composite(CShiddencrmLoginScrSC,SWT.NONE);
> CShiddencrmLoginScr.setBounds(tabFoldercrmLoginScr.getBounds ().x,tabFoldercrmLoginScr.getBounds().y,tabFoldercrmLoginScr .getBounds().width,tabFoldercrmLoginScr.getBounds().height);
>
> F1gen = new Label (CShiddencrmLoginScr,SWT.LEFT );
> F1gen.setBounds(new org.eclipse.swt.graphics.Rectangle(42, 36,(int)
> (48), (int) (14)));
> F1gen.setVisible(true);
> F1gen.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
> F1gen.setText("Mandant");
>
> clientOM = new Combo (CShiddencrmLoginScr,SWT.DROP_DOWN | SWT.READ_ONLY );
> clientOM.setBounds(new org.eclipse.swt.graphics.Rectangle(96, 32,(int)
> (132), (int) (21)));
> clientOM.setVisible(true);
> clientOM.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
>
> userid = new Label (CShiddencrmLoginScr,SWT.LEFT );
> userid.setBounds(new org.eclipse.swt.graphics.Rectangle(12, 120,(int)
> (54), (int) (14)));
> userid.setVisible(true);
> userid.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
>
> clientid = new Label (CShiddencrmLoginScr,SWT.LEFT );
> clientid.setBounds(new org.eclipse.swt.graphics.Rectangle(12, 134,(int)
> (54), (int) (14)));
> clientid.setVisible(true);
> clientid.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
>
> personid = new Label (CShiddencrmLoginScr,SWT.LEFT );
> personid.setBounds(new org.eclipse.swt.graphics.Rectangle(12, 148,(int)
> (54), (int) (14)));
> personid.setVisible(true);
> personid.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
>
> CShiddencrmLoginScrSC.setContent(CShiddencrmLoginScr);
> CShiddencrmLoginScrSC.setMinSize((int)(6*41.17) + 10 ,(int)(14*12.07) +
> 35 );
> CShiddencrmLoginScrSC.setExpandHorizontal(true);
> CShiddencrmLoginScrSC.setExpandVertical(true);
> }
> private void createCSvisiblecrmLoginScr() {
> // Create the ScrolledComposite to scroll horizontally and vertically
> CSvisiblecrmLoginScrSC = new
> ScrolledComposite(tabFoldercrmLoginScr,SWT.H_SCROLL | SWT.V_SCROLL);
> CSvisiblecrmLoginScrSC.setBounds(0,0,750,550);
> // Create a child composite to hold the controls
> CSvisiblecrmLoginScr = new Composite(CSvisiblecrmLoginScrSC,SWT.NONE);
> CSvisiblecrmLoginScr.setBounds(tabFoldercrmLoginScr.getBound s().x,tabFoldercrmLoginScr.getBounds().y,tabFoldercrmLoginSc r.getBounds().width,tabFoldercrmLoginScr.getBounds().height) ;
>
> // END of TabDecks
> // END of TabCards
> // END of GridFrames
> // END of GridFrameColumns
> login = new Text (CSvisiblecrmLoginScr,SWT.LEFT | SWT.BORDER );
> login.setBounds(new org.eclipse.swt.graphics.Rectangle(96, 59,(int)
> (100), (int) (23)));
> login.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
> login.setText("db2admin");
>
> password = new Text (CSvisiblecrmLoginScr,SWT.LEFT | SWT.BORDER );
> password.setBounds(new org.eclipse.swt.graphics.Rectangle(96, 87,(int)
> (100), (int) (23)));
> password.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
> password.setEchoChar('*');
> password.setText("db2admin");
>
> loginPb = new Button (CSvisiblecrmLoginScr,SWT.CENTER );
> loginPb.setBounds(new org.eclipse.swt.graphics.Rectangle(110, 129,(int)
> (74), (int) (23)));
> loginPb.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
>
> dlScreen = new Label (CSvisiblecrmLoginScr,SWT.LEFT );
> dlScreen.setBounds(new org.eclipse.swt.graphics.Rectangle(2, 0,(int)
> (244), (int) (24)));
> dlScreen.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"MS Sans
> Serif",16,SWT.BOLD));
> dlScreen.setText("Login");
>
> LLogin = new Label (CSvisiblecrmLoginScr,SWT.LEFT );
> LLogin.setBounds(new org.eclipse.swt.graphics.Rectangle(39, 64,(int)
> (54), (int) (13)));
> LLogin.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
> LLogin.setText("Username");
>
> LPassword = new Label (CSvisiblecrmLoginScr,SWT.LEFT );
> LPassword.setBounds(new org.eclipse.swt.graphics.Rectangle(40, 92,(int)
> (52), (int) (13)));
> LPassword.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
> LPassword.setText("Passwort");
>
> CSvisiblecrmLoginScrSC.setContent(CSvisiblecrmLoginScr);
> CSvisiblecrmLoginScrSC.setMinSize((int)(6*41.17) + 10 ,(int)(14*12.07) +
> 35 );
> CSvisiblecrmLoginScrSC.setExpandHorizontal(true);
> CSvisiblecrmLoginScrSC.setExpandVertical(true);
> }
> public void setFocus() {
> // viewer.getControl().setFocus();
> }
> /**
> * This is a callback that will allow us to create the viewer and initialize
> * it.
> */
> public void createPartControl(Composite scanner) {
> Composite crmLoginScr = scanner;
> createtabFoldercrmLoginScr(crmLoginScr);
> }
> public static void main(String[] args) {
> org.eclipse.swt.widgets.Display display =
> org.eclipse.swt.widgets.Display.getDefault();
> crmLogin jClasscrmLogin = new crmLogin();
> jClasscrmLogin.createcrmLoginScr();
> jClasscrmLogin.crmLoginScr.open();
> while (!jClasscrmLogin.crmLoginScr.isDisposed()) {
> if (!display.readAndDispatch ()) display.sleep();
> }
> display.dispose ();
> }
> }
>
>
>> (2) Do you see any exceptions/messages in the logs? Is this in the
>> same project as the above file which seems to atleast load?
>
>
> (2) extract of my log file:
>
> I am sorry, but i do not understand the meaning of the log-extract...
> ... does anybody see what the problem is?
>
> !ENTRY org.eclipse.ve.java.core 4 0 2005-07-26 12:44:27.906
> !MESSAGE Exception thrown.
> !STACK 0
> java.lang.NullPointerException
> at
> org.eclipse.ve.internal.swt.CompositeGraphicalEditPart.setup Control(CompositeGraphicalEditPart.java:96)
>
> at
> org.eclipse.ve.internal.swt.CompositeGraphicalEditPart.creat eChild(CompositeGraphicalEditPart.java:84)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:733)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:684)
>
> at
> org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:554)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.addNotify(Abstrac tEditPart.java:232)
>
> at
> org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotif y(AbstractGraphicalEditPart.java:212)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:195)
>
> at
> org.eclipse.ve.internal.swt.TabFolderGraphicalEditPart.addCh ild(TabFolderGraphicalEditPart.java:86)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:734)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:684)
>
> at
> org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:554)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.addNotify(Abstrac tEditPart.java:232)
>
> at
> org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotif y(AbstractGraphicalEditPart.java:212)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:195)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:734)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:684)
>
> at
> org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:554)
>
> at
> org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart.setRootModel(JavaVisualEditorPart.java:506)
>
> at
> org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart.initializeViewers(JavaVisualEditorPart.java:987)
>
> at
> org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart$12.run(JavaVisualEditorPart.java:1977)
>
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
> at
> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
>
> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3057)
> at org.eclipse.swt.widgets.Display.msgFilterProc(Display.java:2 505)
> at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
> at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1651 )
> at
> org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable .java:77)
> at org.eclipse.swt.widgets.Composite.WM_SYSCOMMAND(Composite.ja va:1315)
> at org.eclipse.swt.widgets.Control.windowProc(Control.java:3110 )
> at org.eclipse.swt.widgets.Display.windowProc(Display.java:3706 )
> at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
> at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1651 )
> at
> org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable .java:77)
> at org.eclipse.swt.widgets.Control.windowProc(Control.java:3123 )
> at org.eclipse.swt.widgets.Display.windowProc(Display.java:3706 )
> at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
> at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:16 56)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2711)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
> at
> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
> at
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
>
> 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.core.launcher.Main.invokeFramework(Main.java:334 )
> at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
> at org.eclipse.core.launcher.Main.run(Main.java:973)
> at org.eclipse.core.launcher.Main.main(Main.java:948)
>
> !ENTRY org.eclipse.jem.proxy 2 0 2005-07-26 12:44:28.265
> !MESSAGE
> +++ Warning +++: Tue Jul 26 12:44:28 CEST 2005 Project
> (proCrmAntlrE31)-VM for proCrmAntlrE31:err>
>
> org.eclipse.jem.internal.proxy.common.remote.CommandErrorExc eption--
> Error code:7 Value data:"java.lang.NullPointerException:null"
> at
> org.eclipse.jem.internal.proxy.common.remote.Commands.readBa ckValue(Commands.java:1254)
>
> at
> org.eclipse.jem.internal.proxy.vm.remote.ConnectionHandler.r un(ConnectionHandler.java:454)
>
> at
> org.eclipse.jem.internal.proxy.vm.remote.CallbackHandler.cal lbackWithParms(CallbackHandler.java:150)
>
> at
> org.eclipse.ve.internal.swt.targetvm.ControlManager$5.run(Co ntrolManager.java:637)
>
> at
> org.eclipse.jem.internal.proxy.vm.remote.RemoteVMServerThrea d.doCallback(RemoteVMServerThread.java:541)
>
> at
> org.eclipse.ve.internal.swt.targetvm.ControlManager$ControlM anagerFeedbackController.run(ControlManager.java:634)
>
> at
> org.eclipse.ve.internal.swt.targetvm.ControlManager$1.run(Co ntrolManager.java:480)
>
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
> at
> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
>
> at
> org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3057)
> at
> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2716)
> at
> org.eclipse.ve.internal.swt.targetvm.Environment$3.run(Envir onment.java:68)
>
> !ENTRY org.eclipse.ui 4 4 2005-07-26 12:44:30.140
> !MESSAGE Unhandled event loop exception
>
> !ENTRY org.eclipse.ui 4 0 2005-07-26 12:44:30.218
> !MESSAGE Failed to execute runnable (java.lang.NullPointerException)
> !STACK 0
> org.eclipse.swt.SWTException: Failed to execute runnable
> (java.lang.NullPointerException)
> at org.eclipse.swt.SWT.error(SWT.java:2942)
> at org.eclipse.swt.SWT.error(SWT.java:2865)
> at
> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:126)
>
> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3057)
> at org.eclipse.swt.widgets.Display.msgFilterProc(Display.java:2 505)
> at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
> at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1651 )
> at
> org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable .java:77)
> at org.eclipse.swt.widgets.Composite.WM_SYSCOMMAND(Composite.ja va:1315)
> at org.eclipse.swt.widgets.Control.windowProc(Control.java:3110 )
> at org.eclipse.swt.widgets.Display.windowProc(Display.java:3706 )
> at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
> at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1651 )
> at
> org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable .java:77)
> at org.eclipse.swt.widgets.Control.windowProc(Control.java:3123 )
> at org.eclipse.swt.widgets.Display.windowProc(Display.java:3706 )
> at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
> at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:16 56)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2711)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
> at
> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
> at
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
>
> 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.core.launcher.Main.invokeFramework(Main.java:334 )
> at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
> at org.eclipse.core.launcher.Main.run(Main.java:973)
> at org.eclipse.core.launcher.Main.main(Main.java:948)
> Caused by: java.lang.NullPointerException
> at
> org.eclipse.ve.internal.swt.CompositeGraphicalEditPart.setup Control(CompositeGraphicalEditPart.java:96)
>
> at
> org.eclipse.ve.internal.swt.CompositeGraphicalEditPart.creat eChild(CompositeGraphicalEditPart.java:84)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:733)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:684)
>
> at
> org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:554)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.addNotify(Abstrac tEditPart.java:232)
>
> at
> org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotif y(AbstractGraphicalEditPart.java:212)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:195)
>
> at
> org.eclipse.ve.internal.swt.TabFolderGraphicalEditPart.addCh ild(TabFolderGraphicalEditPart.java:86)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:734)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:684)
>
> at
> org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:554)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.addNotify(Abstrac tEditPart.java:232)
>
> at
> org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotif y(AbstractGraphicalEditPart.java:212)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:195)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:734)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:684)
>
> at
> org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:554)
>
> at
> org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart.setRootModel(JavaVisualEditorPart.java:506)
>
> at
> org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart.initializeViewers(JavaVisualEditorPart.java:987)
>
> at
> org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart$12.run(JavaVisualEditorPart.java:1977)
>
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
> at
> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
>
> ... 32 more
new bugzilla entry [message #100419 is a reply to message #100291] Wed, 27 July 2005 07:20 Go to previous messageGo to next message
Flik is currently offline FlikFriend
Messages: 51
Registered: July 2009
Member
hello rich,

i have just added a new bugzilla entry:

-> https://bugs.eclipse.org/bugs/show_bug.cgi?id=105274

thanks for your help

Flik


Rich Kulp schrieb:
> I was able to produce the first problem with labels not showing up.
> Please open a bugzilla against VE component SWT and attach the source
> crmLogin to it.
>
> I don't know what caused the trace exception you first showed because
> you didn't include the code for the shell that wouldn't start at all.
> Please append the shell that failed so we can see it too.
>
Re: second problem -> NullPointerException [message #100433 is a reply to message #100291] Wed, 27 July 2005 07:25 Go to previous messageGo to next message
Flik is currently offline FlikFriend
Messages: 51
Registered: July 2009
Member
hello rich,

my second problem was the issue with the 'NullPointerException' when
loading my file in the visual editor.

I only get the message and the screen is blank!

thanks

Flik

see file crmCompany2.java
---------------------------------

import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.ScrolledComposite;
import org.eclipse.swt.events.MouseEvent;
import org.eclipse.swt.events.MouseListener;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Link;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.TabFolder;
import org.eclipse.swt.widgets.TabItem;
import org.eclipse.swt.widgets.Table;
import org.eclipse.swt.widgets.TableColumn;
import org.eclipse.swt.widgets.TableItem;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.part.ViewPart;
public class crmCompany2 extends ViewPart {
private Shell crmCompany2Scr = null;
private TabFolder tabFoldercrmCompany2Scr = null;
String[][] gridContentB1gen = new String[6][0];
private TabItem tabItemVisiblecrmCompany2Scr = null;
private Composite CSvisiblecrmCompany2Scr = null;
private TabItem tabItemHiddencrmCompany2Scr = null;
private Composite CShiddencrmCompany2Scr = null;
private ScrolledComposite CSvisiblecrmCompany2ScrSC = null;
private ScrolledComposite CShiddencrmCompany2ScrSC = null;
TableItem tabitem;
private Label dlScreen = null;
private Label id = null;
private Label branchId = null;
private Label version = null;
private Label modDate = null;
private Label createDate = null;
private Link K3employee = null;
private Link K6employee = null;
private Text name1 = null;
private Text name2 = null;
private TableColumn lbPerson = null;
private TableColumn perId = null;
private TableColumn name5 = null;
private TableColumn firstname = null;
private TableColumn sex = null;
private Label LName1 = null;
private Label LName2 = null;
private Composite B1gencs = null;
private Table B1gen = null;
private Button pbSelect = null;
private void createcrmCompany2Scr() {
crmCompany2Scr = new Shell (); //
@jve:decl-index=0:visual-constraint="10,10"
crmCompany2Scr.setText("");
crmCompany2Scr.setSize(new org.eclipse.swt.graphics.Point((int)
(6*143.50) + 10, (int) (14*30.36) + 35));
createtabFoldercrmCompany2Scr(crmCompany2Scr);
}
private void createtabFoldercrmCompany2Scr(Composite crmCompany2Scr) {

tabFoldercrmCompany2Scr = new TabFolder(crmCompany2Scr,SWT.BOTTOM);
tabFoldercrmCompany2Scr.setBounds(new
org.eclipse.swt.graphics.Rectangle(0,0,(int) (6*143.50) + 10, (int)
(14*30.36) + 35 ));
TabItem tabItemVisiblecrmCompany2Scr = new TabItem
(tabFoldercrmCompany2Scr,SWT.NONE);
TabItem tabItemHiddencrmCompany2Scr = new TabItem
(tabFoldercrmCompany2Scr,SWT.NONE);
createCSvisiblecrmCompany2Scr();
createCShiddencrmCompany2Scr();
tabItemVisiblecrmCompany2Scr.setText("workplace");
tabItemHiddencrmCompany2Scr.setText("hidden-always");
tabItemVisiblecrmCompany2Scr.setControl(CSvisiblecrmCompany2 ScrSC );
tabItemHiddencrmCompany2Scr.setControl(CShiddencrmCompany2Sc rSC );
}

private void createCShiddencrmCompany2Scr() {
// Create the ScrolledComposite to scroll horizontally and vertically
CShiddencrmCompany2ScrSC = new
ScrolledComposite(tabFoldercrmCompany2Scr,SWT.H_SCROLL | SWT.V_SCROLL);
CShiddencrmCompany2ScrSC.setBounds(0,0,750,550);
// Create a child composite to hold the controls
CShiddencrmCompany2Scr = new Composite(CShiddencrmCompany2ScrSC,SWT.NONE);
CShiddencrmCompany2Scr.setBounds(tabFoldercrmCompany2Scr.get Bounds().x,tabFoldercrmCompany2Scr.getBounds().y,tabFoldercr mCompany2Scr.getBounds().width,tabFoldercrmCompany2Scr.getBo unds().height);
id = new Label (CShiddencrmCompany2Scr,SWT.LEFT );
id.setBounds(new org.eclipse.swt.graphics.Rectangle(40, 31,(int) (66),
(int) (14)));
id.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
id.setVisible(true);

branchId = new Label (CShiddencrmCompany2Scr,SWT.LEFT );
branchId.setBounds(new org.eclipse.swt.graphics.Rectangle(115, 31,(int)
(66), (int) (14)));
branchId.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
branchId.setVisible(true);

version = new Label (CShiddencrmCompany2Scr,SWT.LEFT );
version.setBounds(new org.eclipse.swt.graphics.Rectangle(189, 31,(int)
(66), (int) (14)));
version.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
version.setVisible(true);

modDate = new Label (CShiddencrmCompany2Scr,SWT.LEFT );
modDate.setBounds(new org.eclipse.swt.graphics.Rectangle(435, 31,(int)
(60), (int) (14)));
modDate.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
modDate.setVisible(true);

createDate = new Label (CShiddencrmCompany2Scr,SWT.LEFT );
createDate.setBounds(new org.eclipse.swt.graphics.Rectangle(503,
31,(int) (60), (int) (14)));
createDate.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
createDate.setVisible(true);

perId = new TableColumn (B1gen,SWT.LEFT);
perId.setWidth((int)(6 *11) + 15 );
perId.setWidth(0);
perId.setResizable(false);
perId.setText("Per_id");

name5 = new TableColumn (B1gen,SWT.LEFT);
name5.setWidth((int)(6 *33) + 15 );
name5.setWidth(0);
name5.setResizable(false);
name5.setText("Name");

firstname = new TableColumn (B1gen,SWT.LEFT);
firstname.setWidth((int)(6 *33) + 15 );
firstname.setWidth(0);
firstname.setResizable(false);
firstname.setText("Firstname");

sex = new TableColumn (B1gen,SWT.LEFT);
sex.setWidth((int)(6 *1) + 15 );
sex.setWidth(0);
sex.setResizable(false);
sex.setText("Sex");

CShiddencrmCompany2ScrSC.setContent(CShiddencrmCompany2Scr);
CShiddencrmCompany2ScrSC.setMinSize((int)(6*143.50) + 10
,(int)(14*30.36) + 35 );
CShiddencrmCompany2ScrSC.setExpandHorizontal(true);
CShiddencrmCompany2ScrSC.setExpandVertical(true);
}
private void createCSvisiblecrmCompany2Scr() {
// Create the ScrolledComposite to scroll horizontally and vertically
CSvisiblecrmCompany2ScrSC = new
ScrolledComposite(tabFoldercrmCompany2Scr,SWT.H_SCROLL | SWT.V_SCROLL);
CSvisiblecrmCompany2ScrSC.setBounds(0,0,750,550);
// Create a child composite to hold the controls
CSvisiblecrmCompany2Scr = new Composite(CSvisiblecrmCompany2ScrSC,SWT.NONE);
CSvisiblecrmCompany2Scr.setBounds(tabFoldercrmCompany2Scr.ge tBounds().x,tabFoldercrmCompany2Scr.getBounds().y,tabFolderc rmCompany2Scr.getBounds().width,tabFoldercrmCompany2Scr.getB ounds().height);
// END of TabDecks
// END of TabCards
B1gencs = new Composite (CSvisiblecrmCompany2Scr,SWT.NONE);
B1gencs.setBounds(new org.eclipse.swt.graphics.Rectangle(6, 134,(int)
(471), (int) (188)));
B1gen = new Table (B1gencs,SWT.SINGLE | SWT.BORDER | SWT.H_SCROLL |
SWT.V_SCROLL | SWT.FULL_SELECTION | SWT.HIDE_SELECTION);
B1gen.setBounds(new org.eclipse.swt.graphics.Rectangle(0, 0,(int) (471),
(int) (188)));
B1gen.setLinesVisible(true);
B1gen.setHeaderVisible(true);

// END of GridFrames
lbPerson = new TableColumn (B1gen,SWT.LEFT);
lbPerson.setWidth((int)(6 *60) + 15 );


// END of GridFrameColumns
dlScreen = new Label (CSvisiblecrmCompany2Scr,SWT.LEFT );
dlScreen.setBounds(new org.eclipse.swt.graphics.Rectangle(0, 0,(int)
(858), (int) (25)));
dlScreen.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",16,SWT.BOLD));
dlScreen.setText("Company");

K3employee = new Link (CSvisiblecrmCompany2Scr,SWT.NULL );
K3employee.setBounds(new org.eclipse.swt.graphics.Rectangle(275,
36,(int) (96), (int) (14)));
K3employee.setVisible(false);
K3employee.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
K3employee.setText("company employee");

K6employee = new Link (CSvisiblecrmCompany2Scr,SWT.NULL );
K6employee.setBounds(new org.eclipse.swt.graphics.Rectangle(275,
50,(int) (90), (int) (14)));
K6employee.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
K6employee.setVisible(false);
K6employee.setText("employee person");

name1 = new Text (CSvisiblecrmCompany2Scr,SWT.LEFT | SWT.BORDER );
name1.setBounds(new org.eclipse.swt.graphics.Rectangle(46, 73,(int)
(255), (int) (26)));
name1.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",10,SWT.NORMAL));

name2 = new Text (CSvisiblecrmCompany2Scr,SWT.LEFT | SWT.BORDER );
name2.setBounds(new org.eclipse.swt.graphics.Rectangle(46, 101,(int)
(255), (int) (26)));
name2.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",10,SWT.NORMAL));

LName1 = new Label (CSvisiblecrmCompany2Scr,SWT.LEFT );
LName1.setBounds(new org.eclipse.swt.graphics.Rectangle(6, 78,(int)
(34), (int) (13)));
LName1.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
LName1.setText("Name1");

LName2 = new Label (CSvisiblecrmCompany2Scr,SWT.LEFT );
LName2.setBounds(new org.eclipse.swt.graphics.Rectangle(6, 106,(int)
(34), (int) (13)));
LName2.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
LName2.setText("Name2");

pbSelect = new Button(CSvisiblecrmCompany2Scr,SWT.BORDER);
pbSelect.setBounds(new org.eclipse.swt.graphics.Rectangle(6, 400,(int)
(200), (int) (20)));
pbSelect.setText("method: select()");
pbSelect.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
pbSelect.addMouseListener(new MouseListener() {
public void mouseDown(MouseEvent e) {
}

public void mouseUp(MouseEvent e) {}

public void mouseDoubleClick(MouseEvent e) {}
}
);

CSvisiblecrmCompany2ScrSC.setContent(CSvisiblecrmCompany2Scr );
CSvisiblecrmCompany2ScrSC.setMinSize((int)(6*143.50) + 10
,(int)(14*30.36) + 35 );
CSvisiblecrmCompany2ScrSC.setExpandHorizontal(true);
CSvisiblecrmCompany2ScrSC.setExpandVertical(true);

}
public void setFocus() {
// viewer.getControl().setFocus();
}
/**
* This is a callback that will allow us to create the viewer and initialize
* it.
*/
public void createPartControl(Composite scanner) {
Composite crmCompany2Scr = scanner;
createtabFoldercrmCompany2Scr(crmCompany2Scr);
}
public static void main(String[] args) {
org.eclipse.swt.widgets.Display display =
org.eclipse.swt.widgets.Display.getDefault();
crmCompany2 jClasscrmCompany2 = new crmCompany2();
jClasscrmCompany2.createcrmCompany2Scr();
jClasscrmCompany2.crmCompany2Scr.open();
while (!jClasscrmCompany2.crmCompany2Scr.isDisposed()) {
if (!display.readAndDispatch ()) {display.sleep();}
}
display.dispose ();
}
}


Rich Kulp schrieb:
> I was able to produce the first problem with labels not showing up.
> Please open a bugzilla against VE component SWT and attach the source
> crmLogin to it.
>
> I don't know what caused the trace exception you first showed because
> you didn't include the code for the shell that wouldn't start at all.
> Please append the shell that failed so we can see it too.
>
Re: Some problems with the VE 1.1 and Eclipse 3.1 [message #100462 is a reply to message #100303] Wed, 27 July 2005 07:53 Go to previous messageGo to next message
Flik is currently offline FlikFriend
Messages: 51
Registered: July 2009
Member
hey Sri,

thanks for your code!

I have compare it with my own one and copy the changes to it.

Now I can see the fields and their contents - BUT I cannot edit them
with drag&drop.

All I can do is to click on the java-beans-window to select a specific
widget. But I cannot click on the widget itself in the drawn ve-area.

Another thing is that all widgets are displayed within a viewpart. This
is exactly what i want: that's why i had uses swt shell and viewpart
within one file.... (swt shell -> editing with VE && viewpart -> working
with Eclipse Runtime)
(In the past the ve had shown me an empty view part and an SWT-area for
editing the widgets.)

So, this is now pretty cool, but unfortunatly i cannot edit this
viewpart directly within the editor (see above)

Can you please try my attached file?

thanks

Flik

import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.TabFolder;
import org.eclipse.swt.widgets.TabItem;
import org.eclipse.swt.widgets.Text;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Combo;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.widgets.TableItem;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.events.MouseEvent;
import org.eclipse.swt.events.MouseListener;
import org.eclipse.swt.events.VerifyEvent;
import org.eclipse.swt.events.VerifyListener;
import org.eclipse.ui.part.ViewPart;
import org.eclipse.jface.action.IMenuManager;
import org.eclipse.jface.action.IToolBarManager;
import java.io.FileNotFoundException;
import org.eclipse.swt.custom.ScrolledComposite;


public class crmLogin extends ViewPart {
private Shell crmLoginScr = null;
private TabFolder tabFoldercrmLoginScr = null;
private TabItem tabItemVisiblecrmLoginScr = null;
private Composite CSvisiblecrmLoginScr = null;
private TabItem tabItemHiddencrmLoginScr = null;
private Composite CShiddencrmLoginScr = null;
private ScrolledComposite CSvisiblecrmLoginScrSC = null;
private ScrolledComposite CShiddencrmLoginScrSC = null;
TableItem tabitem;
private Label F1gen = null;
private Combo clientOM = null;
private Text login = null;
private Text password = null;
private Label userid = null;
private Label clientid = null;
private Button loginPb = null;
private Label personid = null;
private Label dlScreen = null;
private Label LLogin = null;
private Label LPassword = null;

private Composite crmLoginScr2;


/*private void createcrmLoginScr() {
crmLoginScr = new Shell (); // @jve:decl-index=0:visual-constraint="10,10"
crmLoginScr.setText("Anmeldung");
crmLoginScr.setSize(new org.eclipse.swt.graphics.Point((int) (6*41.17) +
10, (int) (14*12.07) + 35));
createtabFoldercrmLoginScr(crmLoginScr);
}
*/
private void createtabFoldercrmLoginScr() {
tabFoldercrmLoginScr = new TabFolder(crmLoginScr2,SWT.BOTTOM);
tabFoldercrmLoginScr.setBounds(new
org.eclipse.swt.graphics.Rectangle(0,0,(int) (6*41.17) + 10, (int)
(14*12.07) + 35 ));
TabItem tabItemVisiblecrmLoginScr = new TabItem
(tabFoldercrmLoginScr,SWT.NONE);
TabItem tabItemHiddencrmLoginScr = new TabItem
(tabFoldercrmLoginScr,SWT.NONE);
createCSvisiblecrmLoginScr();
createCShiddencrmLoginScr();
tabItemVisiblecrmLoginScr.setText("workplace");
tabItemHiddencrmLoginScr.setText("hidden-always");
tabItemVisiblecrmLoginScr.setControl(CSvisiblecrmLoginScrSC );
tabItemHiddencrmLoginScr.setControl(CShiddencrmLoginScrSC );
}

private void createCShiddencrmLoginScr() {
// Create the ScrolledComposite to scroll horizontally and vertically
CShiddencrmLoginScrSC = new
ScrolledComposite(tabFoldercrmLoginScr,SWT.H_SCROLL | SWT.V_SCROLL);
CShiddencrmLoginScrSC.setBounds(0,0,750,550);
// Create a child composite to hold the controls
CShiddencrmLoginScr = new Composite(CShiddencrmLoginScrSC,SWT.NONE);
CShiddencrmLoginScr.setBounds(tabFoldercrmLoginScr.getBounds ().x,tabFoldercrmLoginScr.getBounds().y,tabFoldercrmLoginScr .getBounds().width,tabFoldercrmLoginScr.getBounds().height);
F1gen = new Label (CShiddencrmLoginScr,SWT.LEFT );
F1gen.setBounds(new org.eclipse.swt.graphics.Rectangle(42, 36,(int)
(48), (int) (14)));
F1gen.setVisible(true);
F1gen.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
F1gen.setText("Mandant");

clientOM = new Combo (CShiddencrmLoginScr,SWT.DROP_DOWN | SWT.READ_ONLY );
clientOM.setBounds(new org.eclipse.swt.graphics.Rectangle(96, 32,(int)
(132), (int) (21)));
clientOM.setVisible(true);
clientOM.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));

userid = new Label (CShiddencrmLoginScr,SWT.LEFT );
userid.setBounds(new org.eclipse.swt.graphics.Rectangle(12, 120,(int)
(54), (int) (14)));
userid.setVisible(true);
userid.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));

clientid = new Label (CShiddencrmLoginScr,SWT.LEFT );
clientid.setBounds(new org.eclipse.swt.graphics.Rectangle(12, 134,(int)
(54), (int) (14)));
clientid.setVisible(true);
clientid.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));

personid = new Label (CShiddencrmLoginScr,SWT.LEFT );
personid.setBounds(new org.eclipse.swt.graphics.Rectangle(12, 148,(int)
(54), (int) (14)));
personid.setVisible(true);
personid.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));

CShiddencrmLoginScrSC.setContent(CShiddencrmLoginScr);
CShiddencrmLoginScrSC.setMinSize((int)(6*41.17) + 10 ,(int)(14*12.07) +
35 );
CShiddencrmLoginScrSC.setExpandHorizontal(true);
CShiddencrmLoginScrSC.setExpandVertical(true);
}
private void createCSvisiblecrmLoginScr() {
// Create the ScrolledComposite to scroll horizontally and vertically
CSvisiblecrmLoginScrSC = new
ScrolledComposite(tabFoldercrmLoginScr,SWT.H_SCROLL | SWT.V_SCROLL);
CSvisiblecrmLoginScrSC.setBounds(0,0,750,550);
// Create a child composite to hold the controls
CSvisiblecrmLoginScr = new Composite(CSvisiblecrmLoginScrSC,SWT.NONE);
CSvisiblecrmLoginScr.setBounds(tabFoldercrmLoginScr.getBound s().x,tabFoldercrmLoginScr.getBounds().y,tabFoldercrmLoginSc r.getBounds().width,tabFoldercrmLoginScr.getBounds().height) ;
// END of TabDecks
// END of TabCards
// END of GridFrames
// END of GridFrameColumns
login = new Text (CSvisiblecrmLoginScr,SWT.LEFT | SWT.BORDER );
login.setBounds(new org.eclipse.swt.graphics.Rectangle(96, 59,(int)
(100), (int) (23)));
login.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
login.setText("db2admin");

password = new Text (CSvisiblecrmLoginScr,SWT.LEFT | SWT.BORDER );
password.setBounds(new org.eclipse.swt.graphics.Rectangle(96, 87,(int)
(100), (int) (23)));
password.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
password.setEchoChar('*');
password.setText("db2admin");

loginPb = new Button (CSvisiblecrmLoginScr,SWT.CENTER );
loginPb.setBounds(new org.eclipse.swt.graphics.Rectangle(110, 129,(int)
(74), (int) (23)));
loginPb.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));

dlScreen = new Label (CSvisiblecrmLoginScr,SWT.LEFT );
dlScreen.setBounds(new org.eclipse.swt.graphics.Rectangle(2, 0,(int)
(244), (int) (24)));
dlScreen.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"MS Sans
Serif",16,SWT.BOLD));
dlScreen.setText("Login");

LLogin = new Label (CSvisiblecrmLoginScr,SWT.LEFT );
LLogin.setBounds(new org.eclipse.swt.graphics.Rectangle(39, 64,(int)
(54), (int) (13)));
LLogin.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
LLogin.setText("Username");

LPassword = new Label (CSvisiblecrmLoginScr,SWT.LEFT );
LPassword.setBounds(new org.eclipse.swt.graphics.Rectangle(40, 92,(int)
(52), (int) (13)));
LPassword.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
LPassword.setText("Passwort");

CSvisiblecrmLoginScrSC.setContent(CSvisiblecrmLoginScr);
CSvisiblecrmLoginScrSC.setMinSize((int)(6*41.17) + 10 ,(int)(14*12.07) +
35 );
CSvisiblecrmLoginScrSC.setExpandHorizontal(true);
CSvisiblecrmLoginScrSC.setExpandVertical(true);
}
public void setFocus() {
// viewer.getControl().setFocus();
}
/**
* This is a callback that will allow us to create the viewer and initialize
* it.
*/
public void createPartControl(Composite scanner) {
crmLoginScr2 = scanner;
createtabFoldercrmLoginScr();
}
public static void main(String[] args) {
org.eclipse.swt.widgets.Display display =
org.eclipse.swt.widgets.Display.getDefault();
crmLogin jClasscrmLogin = new crmLogin();
//jClasscrmLogin.createcrmLoginScr();
jClasscrmLogin.crmLoginScr.open();
while (!jClasscrmLogin.crmLoginScr.isDisposed()) {
if (!display.readAndDispatch ()) display.sleep();
}
display.dispose ();
}
} // @jve:decl-index=0:visual-constraint="30,11"


Sri Gunturi schrieb:
> Hi Flik,
> It turns out that the code was in a pattern not supported by VE 1.1.
> 1) For example a Composite (crmLoginScr) was defined as a local variable
> and codegen in VE 1.1 doesnt understand passing of arguments between
> methods - it only understands fields and local variables.
> 2) the name of the Shell and a composite to be the same.
> 3) You dont need the main() class and a shell in your source, to see how
> the view's contents look at runtime simply run the view as a 'Java Bean'.
>
> I have refactored the source so that VE can show the visuals correctly.
> Please make sure this works for you.
> Regards,
> Sri.
> ------------------------------------------------
Re: second problem -> NullPointerException [message #100477 is a reply to message #100433] Wed, 27 July 2005 10:33 Go to previous messageGo to next message
Flik is currently offline FlikFriend
Messages: 51
Registered: July 2009
Member
hello together,

i just have tried to use Sri's solution for my second problem!
I rewrite the code and ... the error is gone!

Everything is shown correclty now - except one thing:
all of the widgets are displayed within a view-part area that does not
'understand' drag&drop... i cannot click on a single widget and move it.
It is like the view-part area is disabled or so!
The only thing i can do is to click the entry in the java beans listbox.


thanks in advance

flik


p.s.: the table columns are also displayed incorrectly (little icons
under the view-part-area), but i have learned some time ago that this is
a known problem...


--------------------------------------
see code for example:

crmCompany2.java

import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.ScrolledComposite;
import org.eclipse.swt.events.MouseEvent;
import org.eclipse.swt.events.MouseListener;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Link;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.TabFolder;
import org.eclipse.swt.widgets.TabItem;
import org.eclipse.swt.widgets.Table;
import org.eclipse.swt.widgets.TableColumn;
import org.eclipse.swt.widgets.TableItem;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.part.ViewPart;
public class crmCompany2 extends ViewPart {
private Shell crmCompany2Scr = null;
private TabFolder tabFoldercrmCompany2Scr = null;
String[][] gridContentB1gen = new String[6][0];
private TabItem tabItemVisiblecrmCompany2Scr = null;
private Composite CSvisiblecrmCompany2Scr = null;
private TabItem tabItemHiddencrmCompany2Scr = null;
private Composite CShiddencrmCompany2Scr = null;
private ScrolledComposite CSvisiblecrmCompany2ScrSC = null;
private ScrolledComposite CShiddencrmCompany2ScrSC = null;
TableItem tabitem;
private Label dlScreen = null;
private Label id = null;
private Label branchId = null;
private Label version = null;
private Label modDate = null;
private Label createDate = null;
private Link K3employee = null;
private Link K6employee = null;
private Text name1 = null;
private Text name2 = null;
private TableColumn lbPerson = null;
private TableColumn perId = null;
private TableColumn name5 = null;
private TableColumn firstname = null;
private TableColumn sex = null;
private Label LName1 = null;
private Label LName2 = null;
private Composite B1gencs = null;
private Table B1gen = null;
private Button pbSelect = null;
private Composite crmCompany2ScrCS;
//private void createcrmCompany2Scr() {
//crmCompany2Scr = new Shell (); //
@jve:decl-index=0:visual-constraint="10,10"
//crmCompany2Scr.setText("");
//crmCompany2Scr.setSize(new org.eclipse.swt.graphics.Point((int)
(6*143.50) + 10, (int) (14*30.36) + 35));
//createtabFoldercrmCompany2Scr(crmCompany2Scr);
//}
private void createtabFoldercrmCompany2Scr() {

tabFoldercrmCompany2Scr = new TabFolder(crmCompany2ScrCS,SWT.BOTTOM);
tabFoldercrmCompany2Scr.setBounds(new
org.eclipse.swt.graphics.Rectangle(0,0,(int) (6*143.50) + 10, (int)
(14*30.36) + 35 ));
TabItem tabItemVisiblecrmCompany2Scr = new TabItem
(tabFoldercrmCompany2Scr,SWT.NONE);
TabItem tabItemHiddencrmCompany2Scr = new TabItem
(tabFoldercrmCompany2Scr,SWT.NONE);
createCSvisiblecrmCompany2Scr();
createCShiddencrmCompany2Scr();
tabItemVisiblecrmCompany2Scr.setText("workplace");
tabItemHiddencrmCompany2Scr.setText("hidden-always");
tabItemVisiblecrmCompany2Scr.setControl(CSvisiblecrmCompany2 ScrSC );
tabItemHiddencrmCompany2Scr.setControl(CShiddencrmCompany2Sc rSC );
}

private void createCShiddencrmCompany2Scr() {
// Create the ScrolledComposite to scroll horizontally and vertically
CShiddencrmCompany2ScrSC = new
ScrolledComposite(tabFoldercrmCompany2Scr,SWT.H_SCROLL | SWT.V_SCROLL);
CShiddencrmCompany2ScrSC.setBounds(0,0,750,550);
// Create a child composite to hold the controls
CShiddencrmCompany2Scr = new Composite(CShiddencrmCompany2ScrSC,SWT.NONE);
CShiddencrmCompany2Scr.setBounds(tabFoldercrmCompany2Scr.get Bounds().x,tabFoldercrmCompany2Scr.getBounds().y,tabFoldercr mCompany2Scr.getBounds().width,tabFoldercrmCompany2Scr.getBo unds().height);
id = new Label (CShiddencrmCompany2Scr,SWT.LEFT );
id.setBounds(new org.eclipse.swt.graphics.Rectangle(40, 31,(int) (66),
(int) (14)));
id.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),8,SWT.NORMAL));
id.setVisible(true);

branchId = new Label (CShiddencrmCompany2Scr,SWT.LEFT );
branchId.setBounds(new org.eclipse.swt.graphics.Rectangle(115, 31,(int)
(66), (int) (14)));
branchId.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),8,SWT.NORMAL));
branchId.setVisible(true);

version = new Label (CShiddencrmCompany2Scr,SWT.LEFT );
version.setBounds(new org.eclipse.swt.graphics.Rectangle(189, 31,(int)
(66), (int) (14)));
version.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),8,SWT.NORMAL));
version.setVisible(true);

modDate = new Label (CShiddencrmCompany2Scr,SWT.LEFT );
modDate.setBounds(new org.eclipse.swt.graphics.Rectangle(435, 31,(int)
(60), (int) (14)));
modDate.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),8,SWT.NORMAL));
modDate.setVisible(true);

createDate = new Label (CShiddencrmCompany2Scr,SWT.LEFT );
createDate.setBounds(new org.eclipse.swt.graphics.Rectangle(503,
31,(int) (60), (int) (14)));
createDate.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),8,SWT.NORMAL));
createDate.setVisible(true);

perId = new TableColumn (B1gen,SWT.LEFT);
perId.setWidth((int)(6 *11) + 15 );
perId.setWidth(0);
perId.setResizable(false);
perId.setText("Per_id");

name5 = new TableColumn (B1gen,SWT.LEFT);
name5.setWidth((int)(6 *33) + 15 );
name5.setWidth(0);
name5.setResizable(false);
name5.setText("Name");

firstname = new TableColumn (B1gen,SWT.LEFT);
firstname.setWidth((int)(6 *33) + 15 );
firstname.setWidth(0);
firstname.setResizable(false);
firstname.setText("Firstname");

sex = new TableColumn (B1gen,SWT.LEFT);
sex.setWidth((int)(6 *1) + 15 );
sex.setWidth(0);
sex.setResizable(false);
sex.setText("Sex");

CShiddencrmCompany2ScrSC.setContent(CShiddencrmCompany2Scr);
CShiddencrmCompany2ScrSC.setMinSize((int)(6*143.50) + 10
,(int)(14*30.36) + 35 );
CShiddencrmCompany2ScrSC.setExpandHorizontal(true);
CShiddencrmCompany2ScrSC.setExpandVertical(true);
}
private void createCSvisiblecrmCompany2Scr() {
// Create the ScrolledComposite to scroll horizontally and vertically
CSvisiblecrmCompany2ScrSC = new
ScrolledComposite(tabFoldercrmCompany2Scr,SWT.H_SCROLL | SWT.V_SCROLL);
CSvisiblecrmCompany2ScrSC.setBounds(0,0,750,550);
// Create a child composite to hold the controls
CSvisiblecrmCompany2Scr = new Composite(CSvisiblecrmCompany2ScrSC,SWT.NONE);
CSvisiblecrmCompany2Scr.setBounds(tabFoldercrmCompany2Scr.ge tBounds().x,tabFoldercrmCompany2Scr.getBounds().y,tabFolderc rmCompany2Scr.getBounds().width,tabFoldercrmCompany2Scr.getB ounds().height);
// END of TabDecks
// END of TabCards
B1gencs = new Composite (CSvisiblecrmCompany2Scr,SWT.NONE);
B1gencs.setBounds(new org.eclipse.swt.graphics.Rectangle(6, 134,(int)
(471), (int) (188)));
B1gen = new Table (B1gencs,SWT.SINGLE | SWT.BORDER | SWT.H_SCROLL |
SWT.V_SCROLL | SWT.FULL_SELECTION | SWT.HIDE_SELECTION);
B1gen.setBounds(new org.eclipse.swt.graphics.Rectangle(0, 0,(int) (471),
(int) (188)));
B1gen.setLinesVisible(true);
B1gen.setHeaderVisible(true);

// END of GridFrames
lbPerson = new TableColumn (B1gen,SWT.LEFT);
lbPerson.setWidth((int)(6 *60) + 15 );


// END of GridFrameColumns
dlScreen = new Label (CSvisiblecrmCompany2Scr,SWT.LEFT );
dlScreen.setBounds(new org.eclipse.swt.graphics.Rectangle(0, 0,(int)
(858), (int) (25)));
dlScreen.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),16,SWT.BOLD));
dlScreen.setText("Company");

K3employee = new Link (CSvisiblecrmCompany2Scr,SWT.NULL );
K3employee.setBounds(new org.eclipse.swt.graphics.Rectangle(275,
36,(int) (96), (int) (14)));
K3employee.setVisible(false);
K3employee.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),8,SWT.NORMAL));
K3employee.setText("company employee");

K6employee = new Link (CSvisiblecrmCompany2Scr,SWT.NULL );
K6employee.setBounds(new org.eclipse.swt.graphics.Rectangle(275,
50,(int) (90), (int) (14)));
K6employee.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),8,SWT.NORMAL));
K6employee.setVisible(false);
K6employee.setText("employee person");

name1 = new Text (CSvisiblecrmCompany2Scr,SWT.LEFT | SWT.BORDER );
name1.setBounds(new org.eclipse.swt.graphics.Rectangle(46, 73,(int)
(255), (int) (26)));
name1.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),10,SWT.NORMAL));

name2 = new Text (CSvisiblecrmCompany2Scr,SWT.LEFT | SWT.BORDER );
name2.setBounds(new org.eclipse.swt.graphics.Rectangle(46, 101,(int)
(255), (int) (26)));
name2.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),10,SWT.NORMAL));

LName1 = new Label (CSvisiblecrmCompany2Scr,SWT.LEFT );
LName1.setBounds(new org.eclipse.swt.graphics.Rectangle(6, 78,(int)
(34), (int) (13)));
LName1.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),8,SWT.NORMAL));
LName1.setText("Name1");

LName2 = new Label (CSvisiblecrmCompany2Scr,SWT.LEFT );
LName2.setBounds(new org.eclipse.swt.graphics.Rectangle(6, 106,(int)
(34), (int) (13)));
LName2.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),8,SWT.NORMAL));
LName2.setText("Name2");

pbSelect = new Button(CSvisiblecrmCompany2Scr,SWT.BORDER);
pbSelect.setBounds(new org.eclipse.swt.graphics.Rectangle(6, 400,(int)
(200), (int) (20)));
pbSelect.setText("method: select()");
pbSelect.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),8,SWT.NORMAL));
pbSelect.addMouseListener(new MouseListener() {
public void mouseDown(MouseEvent e) {
}

public void mouseUp(MouseEvent e) {}

public void mouseDoubleClick(MouseEvent e) {}
}
);

CSvisiblecrmCompany2ScrSC.setContent(CSvisiblecrmCompany2Scr );
CSvisiblecrmCompany2ScrSC.setMinSize((int)(6*143.50) + 10
,(int)(14*30.36) + 35 );
CSvisiblecrmCompany2ScrSC.setExpandHorizontal(true);
CSvisiblecrmCompany2ScrSC.setExpandVertical(true);

}
public void setFocus() {
// viewer.getControl().setFocus();
}
/**
* This is a callback that will allow us to create the viewer and initialize
* it.
*/
public void createPartControl(Composite scanner) {
crmCompany2ScrCS = scanner;
createtabFoldercrmCompany2Scr();
}
public static void main(String[] args) {
org.eclipse.swt.widgets.Display display =
org.eclipse.swt.widgets.Display.getDefault();
crmCompany2 jClasscrmCompany2 = new crmCompany2();
//jClasscrmCompany2.createcrmCompany2Scr();
jClasscrmCompany2.crmCompany2Scr.open();
while (!jClasscrmCompany2.crmCompany2Scr.isDisposed()) {
if (!display.readAndDispatch ()) {display.sleep();}
}
display.dispose ();
}
}


Flik schrieb:
> hello rich,
>
> my second problem was the issue with the 'NullPointerException' when
> loading my file in the visual editor.
>
> I only get the message and the screen is blank!
>
> thanks
>
> Flik
>
> see file crmCompany2.java
> ---------------------------------
>
> import org.eclipse.swt.SWT;
> import org.eclipse.swt.custom.ScrolledComposite;
> import org.eclipse.swt.events.MouseEvent;
> import org.eclipse.swt.events.MouseListener;
> import org.eclipse.swt.graphics.Font;
> import org.eclipse.swt.widgets.Button;
> import org.eclipse.swt.widgets.Composite;
> import org.eclipse.swt.widgets.Label;
> import org.eclipse.swt.widgets.Link;
> import org.eclipse.swt.widgets.Shell;
> import org.eclipse.swt.widgets.TabFolder;
> import org.eclipse.swt.widgets.TabItem;
> import org.eclipse.swt.widgets.Table;
> import org.eclipse.swt.widgets.TableColumn;
> import org.eclipse.swt.widgets.TableItem;
> import org.eclipse.swt.widgets.Text;
> import org.eclipse.ui.part.ViewPart;
> public class crmCompany2 extends ViewPart {
> private Shell crmCompany2Scr = null;
> private TabFolder tabFoldercrmCompany2Scr = null;
> String[][] gridContentB1gen = new String[6][0];
> private TabItem tabItemVisiblecrmCompany2Scr = null;
> private Composite CSvisiblecrmCompany2Scr = null;
> private TabItem tabItemHiddencrmCompany2Scr = null;
> private Composite CShiddencrmCompany2Scr = null;
> private ScrolledComposite CSvisiblecrmCompany2ScrSC = null;
> private ScrolledComposite CShiddencrmCompany2ScrSC = null;
> TableItem tabitem;
> private Label dlScreen = null;
> private Label id = null;
> private Label branchId = null;
> private Label version = null;
> private Label modDate = null;
> private Label createDate = null;
> private Link K3employee = null;
> private Link K6employee = null;
> private Text name1 = null;
> private Text name2 = null;
> private TableColumn lbPerson = null;
> private TableColumn perId = null;
> private TableColumn name5 = null;
> private TableColumn firstname = null;
> private TableColumn sex = null;
> private Label LName1 = null;
> private Label LName2 = null;
> private Composite B1gencs = null;
> private Table B1gen = null;
> private Button pbSelect = null;
> private void createcrmCompany2Scr() {
> crmCompany2Scr = new Shell (); //
> @jve:decl-index=0:visual-constraint="10,10"
> crmCompany2Scr.setText("");
> crmCompany2Scr.setSize(new org.eclipse.swt.graphics.Point((int)
> (6*143.50) + 10, (int) (14*30.36) + 35));
> createtabFoldercrmCompany2Scr(crmCompany2Scr);
> }
> private void createtabFoldercrmCompany2Scr(Composite crmCompany2Scr) {
>
> tabFoldercrmCompany2Scr = new TabFolder(crmCompany2Scr,SWT.BOTTOM);
> tabFoldercrmCompany2Scr.setBounds(new
> org.eclipse.swt.graphics.Rectangle(0,0,(int) (6*143.50) + 10, (int)
> (14*30.36) + 35 ));
> TabItem tabItemVisiblecrmCompany2Scr = new TabItem
> (tabFoldercrmCompany2Scr,SWT.NONE);
> TabItem tabItemHiddencrmCompany2Scr = new TabItem
> (tabFoldercrmCompany2Scr,SWT.NONE);
> createCSvisiblecrmCompany2Scr();
> createCShiddencrmCompany2Scr();
> tabItemVisiblecrmCompany2Scr.setText("workplace");
> tabItemHiddencrmCompany2Scr.setText("hidden-always");
> tabItemVisiblecrmCompany2Scr.setControl(CSvisiblecrmCompany2 ScrSC );
> tabItemHiddencrmCompany2Scr.setControl(CShiddencrmCompany2Sc rSC );
> }
>
> private void createCShiddencrmCompany2Scr() {
> // Create the ScrolledComposite to scroll horizontally and vertically
> CShiddencrmCompany2ScrSC = new
> ScrolledComposite(tabFoldercrmCompany2Scr,SWT.H_SCROLL | SWT.V_SCROLL);
> CShiddencrmCompany2ScrSC.setBounds(0,0,750,550);
> // Create a child composite to hold the controls
> CShiddencrmCompany2Scr = new Composite(CShiddencrmCompany2ScrSC,SWT.NONE);
> CShiddencrmCompany2Scr.setBounds(tabFoldercrmCompany2Scr.get Bounds().x,tabFoldercrmCompany2Scr.getBounds().y,tabFoldercr mCompany2Scr.getBounds().width,tabFoldercrmCompany2Scr.getBo unds().height);
>
> id = new Label (CShiddencrmCompany2Scr,SWT.LEFT );
> id.setBounds(new org.eclipse.swt.graphics.Rectangle(40, 31,(int) (66),
> (int) (14)));
> id.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
> id.setVisible(true);
>
> branchId = new Label (CShiddencrmCompany2Scr,SWT.LEFT );
> branchId.setBounds(new org.eclipse.swt.graphics.Rectangle(115, 31,(int)
> (66), (int) (14)));
> branchId.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
> branchId.setVisible(true);
>
> version = new Label (CShiddencrmCompany2Scr,SWT.LEFT );
> version.setBounds(new org.eclipse.swt.graphics.Rectangle(189, 31,(int)
> (66), (int) (14)));
> version.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
> version.setVisible(true);
>
> modDate = new Label (CShiddencrmCompany2Scr,SWT.LEFT );
> modDate.setBounds(new org.eclipse.swt.graphics.Rectangle(435, 31,(int)
> (60), (int) (14)));
> modDate.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
> modDate.setVisible(true);
>
> createDate = new Label (CShiddencrmCompany2Scr,SWT.LEFT );
> createDate.setBounds(new org.eclipse.swt.graphics.Rectangle(503,
> 31,(int) (60), (int) (14)));
> createDate.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
> createDate.setVisible(true);
>
> perId = new TableColumn (B1gen,SWT.LEFT);
> perId.setWidth((int)(6 *11) + 15 );
> perId.setWidth(0);
> perId.setResizable(false);
> perId.setText("Per_id");
>
> name5 = new TableColumn (B1gen,SWT.LEFT);
> name5.setWidth((int)(6 *33) + 15 );
> name5.setWidth(0);
> name5.setResizable(false);
> name5.setText("Name");
>
> firstname = new TableColumn (B1gen,SWT.LEFT);
> firstname.setWidth((int)(6 *33) + 15 );
> firstname.setWidth(0);
> firstname.setResizable(false);
> firstname.setText("Firstname");
>
> sex = new TableColumn (B1gen,SWT.LEFT);
> sex.setWidth((int)(6 *1) + 15 );
> sex.setWidth(0);
> sex.setResizable(false);
> sex.setText("Sex");
>
> CShiddencrmCompany2ScrSC.setContent(CShiddencrmCompany2Scr);
> CShiddencrmCompany2ScrSC.setMinSize((int)(6*143.50) + 10
> ,(int)(14*30.36) + 35 );
> CShiddencrmCompany2ScrSC.setExpandHorizontal(true);
> CShiddencrmCompany2ScrSC.setExpandVertical(true);
> }
> private void createCSvisiblecrmCompany2Scr() {
> // Create the ScrolledComposite to scroll horizontally and vertically
> CSvisiblecrmCompany2ScrSC = new
> ScrolledComposite(tabFoldercrmCompany2Scr,SWT.H_SCROLL | SWT.V_SCROLL);
> CSvisiblecrmCompany2ScrSC.setBounds(0,0,750,550);
> // Create a child composite to hold the controls
> CSvisiblecrmCompany2Scr = new
> Composite(CSvisiblecrmCompany2ScrSC,SWT.NONE);
> CSvisiblecrmCompany2Scr.setBounds(tabFoldercrmCompany2Scr.ge tBounds().x,tabFoldercrmCompany2Scr.getBounds().y,tabFolderc rmCompany2Scr.getBounds().width,tabFoldercrmCompany2Scr.getB ounds().height);
>
> // END of TabDecks
> // END of TabCards
> B1gencs = new Composite (CSvisiblecrmCompany2Scr,SWT.NONE);
> B1gencs.setBounds(new org.eclipse.swt.graphics.Rectangle(6, 134,(int)
> (471), (int) (188)));
> B1gen = new Table (B1gencs,SWT.SINGLE | SWT.BORDER | SWT.H_SCROLL |
> SWT.V_SCROLL | SWT.FULL_SELECTION | SWT.HIDE_SELECTION);
> B1gen.setBounds(new org.eclipse.swt.graphics.Rectangle(0, 0,(int) (471),
> (int) (188)));
> B1gen.setLinesVisible(true);
> B1gen.setHeaderVisible(true);
>
> // END of GridFrames
> lbPerson = new TableColumn (B1gen,SWT.LEFT);
> lbPerson.setWidth((int)(6 *60) + 15 );
>
>
> // END of GridFrameColumns
> dlScreen = new Label (CSvisiblecrmCompany2Scr,SWT.LEFT );
> dlScreen.setBounds(new org.eclipse.swt.graphics.Rectangle(0, 0,(int)
> (858), (int) (25)));
> dlScreen.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",16,SWT.BOLD));
> dlScreen.setText("Company");
>
> K3employee = new Link (CSvisiblecrmCompany2Scr,SWT.NULL );
> K3employee.setBounds(new org.eclipse.swt.graphics.Rectangle(275,
> 36,(int) (96), (int) (14)));
> K3employee.setVisible(false);
> K3employee.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
> K3employee.setText("company employee");
>
> K6employee = new Link (CSvisiblecrmCompany2Scr,SWT.NULL );
> K6employee.setBounds(new org.eclipse.swt.graphics.Rectangle(275,
> 50,(int) (90), (int) (14)));
> K6employee.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
> K6employee.setVisible(false);
> K6employee.setText("employee person");
>
> name1 = new Text (CSvisiblecrmCompany2Scr,SWT.LEFT | SWT.BORDER );
> name1.setBounds(new org.eclipse.swt.graphics.Rectangle(46, 73,(int)
> (255), (int) (26)));
> name1.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",10,SWT.NORMAL));
>
> name2 = new Text (CSvisiblecrmCompany2Scr,SWT.LEFT | SWT.BORDER );
> name2.setBounds(new org.eclipse.swt.graphics.Rectangle(46, 101,(int)
> (255), (int) (26)));
> name2.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",10,SWT.NORMAL));
>
> LName1 = new Label (CSvisiblecrmCompany2Scr,SWT.LEFT );
> LName1.setBounds(new org.eclipse.swt.graphics.Rectangle(6, 78,(int)
> (34), (int) (13)));
> LName1.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
> LName1.setText("Name1");
>
> LName2 = new Label (CSvisiblecrmCompany2Scr,SWT.LEFT );
> LName2.setBounds(new org.eclipse.swt.graphics.Rectangle(6, 106,(int)
> (34), (int) (13)));
> LName2.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
> LName2.setText("Name2");
>
> pbSelect = new Button(CSvisiblecrmCompany2Scr,SWT.BORDER);
> pbSelect.setBounds(new org.eclipse.swt.graphics.Rectangle(6, 400,(int)
> (200), (int) (20)));
> pbSelect.setText("method: select()");
> pbSelect.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
> pbSelect.addMouseListener(new MouseListener() {
> public void mouseDown(MouseEvent e) {
> }
>
> public void mouseUp(MouseEvent e) {}
>
> public void mouseDoubleClick(MouseEvent e) {}
> }
> );
>
> CSvisiblecrmCompany2ScrSC.setContent(CSvisiblecrmCompany2Scr );
> CSvisiblecrmCompany2ScrSC.setMinSize((int)(6*143.50) + 10
> ,(int)(14*30.36) + 35 );
> CSvisiblecrmCompany2ScrSC.setExpandHorizontal(true);
> CSvisiblecrmCompany2ScrSC.setExpandVertical(true);
>
> }
> public void setFocus() {
> // viewer.getControl().setFocus();
> }
> /**
> * This is a callback that will allow us to create the viewer and initialize
> * it.
> */
> public void createPartControl(Composite scanner) {
> Composite crmCompany2Scr = scanner;
> createtabFoldercrmCompany2Scr(crmCompany2Scr);
> }
> public static void main(String[] args) {
> org.eclipse.swt.widgets.Display display =
> org.eclipse.swt.widgets.Display.getDefault();
> crmCompany2 jClasscrmCompany2 = new crmCompany2();
> jClasscrmCompany2.createcrmCompany2Scr();
> jClasscrmCompany2.crmCompany2Scr.open();
> while (!jClasscrmCompany2.crmCompany2Scr.isDisposed()) {
> if (!display.readAndDispatch ()) {display.sleep();}
> }
> display.dispose ();
> }
> }
>
>
> Rich Kulp schrieb:
>
>> I was able to produce the first problem with labels not showing up.
>> Please open a bugzilla against VE component SWT and attach the source
>> crmLogin to it.
>>
>> I don't know what caused the trace exception you first showed because
>> you didn't include the code for the shell that wouldn't start at all.
>> Please append the shell that failed so we can see it too.
>>
problem solved *fixed* [message #100493 is a reply to message #100477] Wed, 27 July 2005 11:50 Go to previous message
Flik is currently offline FlikFriend
Messages: 51
Registered: July 2009
Member
hey,

i am sooo happy !!!! :-))))

all of my problems are solved!

-> the npe was 'killed' with SRI's code
-> the problem that VE could not edit the viewpart was the following:

i used: crmCompany2ScrCS = new Composite(scanner,SWT.NONE);
in stead of : crmCompany2ScrCS = scanner;

+ i have added : // @jve:decl-index=0:visual-constraint="10,10"
in the last line of my code..


thank you very much for your help

Flik

P.S.: i will close the bugzilla entry!

------

just for your interest: the file that works...

import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.ScrolledComposite;
import org.eclipse.swt.events.MouseEvent;
import org.eclipse.swt.events.MouseListener;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Link;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.TabFolder;
import org.eclipse.swt.widgets.TabItem;
import org.eclipse.swt.widgets.Table;
import org.eclipse.swt.widgets.TableColumn;
import org.eclipse.swt.widgets.TableItem;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.part.ViewPart;
public class crmCompany2 extends ViewPart {
private Shell crmCompany2Scr = null;
private TabFolder tabFoldercrmCompany2Scr = null;
String[][] gridContentB1gen = new String[6][0];
private TabItem tabItemVisiblecrmCompany2Scr = null;
private Composite CSvisiblecrmCompany2Scr = null;
private TabItem tabItemHiddencrmCompany2Scr = null;
private Composite CShiddencrmCompany2Scr = null;
private ScrolledComposite CSvisiblecrmCompany2ScrSC = null;
private ScrolledComposite CShiddencrmCompany2ScrSC = null;
TableItem tabitem;
private Label dlScreen = null;
private Label id = null;
private Label branchId = null;
private Label version = null;
private Label modDate = null;
private Label createDate = null;
private Link K3employee = null;
private Link K6employee = null;
private Text name1 = null;
private Text name2 = null;
private TableColumn lbPerson = null;
private TableColumn perId = null;
private TableColumn name5 = null;
private TableColumn firstname = null;
private TableColumn sex = null;
private Label LName1 = null;
private Label LName2 = null;
private Composite B1gencs = null;
private Table B1gen = null;
private Button pbSelect = null;
private Composite crmCompany2ScrCS;

private void createtabFoldercrmCompany2Scr() {

tabFoldercrmCompany2Scr = new TabFolder(crmCompany2ScrCS,SWT.BOTTOM);
tabFoldercrmCompany2Scr.setBounds(new
org.eclipse.swt.graphics.Rectangle(0,0,(int) (6*143.50) + 10, (int)
(14*30.36) + 35 ));
TabItem tabItemVisiblecrmCompany2Scr = new TabItem
(tabFoldercrmCompany2Scr,SWT.NONE);
TabItem tabItemHiddencrmCompany2Scr = new TabItem
(tabFoldercrmCompany2Scr,SWT.NONE);
createCSvisiblecrmCompany2Scr();
createCShiddencrmCompany2Scr();
tabItemVisiblecrmCompany2Scr.setText("workplace");
tabItemHiddencrmCompany2Scr.setText("hidden-always");
tabItemVisiblecrmCompany2Scr.setControl(CSvisiblecrmCompany2 ScrSC );
tabItemHiddencrmCompany2Scr.setControl(CShiddencrmCompany2Sc rSC );
}

private void createCShiddencrmCompany2Scr() {
// Create the ScrolledComposite to scroll horizontally and vertically
CShiddencrmCompany2ScrSC = new
ScrolledComposite(tabFoldercrmCompany2Scr,SWT.H_SCROLL | SWT.V_SCROLL);
CShiddencrmCompany2ScrSC.setBounds(0,0,750,550);
// Create a child composite to hold the controls
CShiddencrmCompany2Scr = new Composite(CShiddencrmCompany2ScrSC,SWT.NONE);
CShiddencrmCompany2Scr.setBounds(tabFoldercrmCompany2Scr.get Bounds().x,tabFoldercrmCompany2Scr.getBounds().y,tabFoldercr mCompany2Scr.getBounds().width,tabFoldercrmCompany2Scr.getBo unds().height);
id = new Label (CShiddencrmCompany2Scr,SWT.LEFT );
id.setBounds(new org.eclipse.swt.graphics.Rectangle(40, 31,(int) (66),
(int) (14)));
id.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),8,SWT.NORMAL));
id.setVisible(true);

branchId = new Label (CShiddencrmCompany2Scr,SWT.LEFT );
branchId.setBounds(new org.eclipse.swt.graphics.Rectangle(115, 31,(int)
(66), (int) (14)));
branchId.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),8,SWT.NORMAL));
branchId.setVisible(true);

version = new Label (CShiddencrmCompany2Scr,SWT.LEFT );
version.setBounds(new org.eclipse.swt.graphics.Rectangle(189, 31,(int)
(66), (int) (14)));
version.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),8,SWT.NORMAL));
version.setVisible(true);

modDate = new Label (CShiddencrmCompany2Scr,SWT.LEFT );
modDate.setBounds(new org.eclipse.swt.graphics.Rectangle(435, 31,(int)
(60), (int) (14)));
modDate.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),8,SWT.NORMAL));
modDate.setVisible(true);

createDate = new Label (CShiddencrmCompany2Scr,SWT.LEFT );
createDate.setBounds(new org.eclipse.swt.graphics.Rectangle(503,
31,(int) (60), (int) (14)));
createDate.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),8,SWT.NORMAL));
createDate.setVisible(true);

perId = new TableColumn (B1gen,SWT.LEFT);
perId.setWidth((int)(6 *11) + 15 );
perId.setWidth(0);
perId.setResizable(false);
perId.setText("Per_id");

name5 = new TableColumn (B1gen,SWT.LEFT);
name5.setWidth((int)(6 *33) + 15 );
name5.setWidth(0);
name5.setResizable(false);
name5.setText("Name");

firstname = new TableColumn (B1gen,SWT.LEFT);
firstname.setWidth((int)(6 *33) + 15 );
firstname.setWidth(0);
firstname.setResizable(false);
firstname.setText("Firstname");

sex = new TableColumn (B1gen,SWT.LEFT);
sex.setWidth((int)(6 *1) + 15 );
sex.setWidth(0);
sex.setResizable(false);
sex.setText("Sex");

CShiddencrmCompany2ScrSC.setContent(CShiddencrmCompany2Scr);
CShiddencrmCompany2ScrSC.setMinSize((int)(6*143.50) + 10
,(int)(14*30.36) + 35 );
CShiddencrmCompany2ScrSC.setExpandHorizontal(true);
CShiddencrmCompany2ScrSC.setExpandVertical(true);
}
private void createCSvisiblecrmCompany2Scr() {
// Create the ScrolledComposite to scroll horizontally and vertically
CSvisiblecrmCompany2ScrSC = new
ScrolledComposite(tabFoldercrmCompany2Scr,SWT.H_SCROLL | SWT.V_SCROLL);
CSvisiblecrmCompany2ScrSC.setBounds(0,0,750,550);
// Create a child composite to hold the controls
CSvisiblecrmCompany2Scr = new Composite(CSvisiblecrmCompany2ScrSC,SWT.NONE);
CSvisiblecrmCompany2Scr.setBounds(tabFoldercrmCompany2Scr.ge tBounds().x,tabFoldercrmCompany2Scr.getBounds().y,tabFolderc rmCompany2Scr.getBounds().width,tabFoldercrmCompany2Scr.getB ounds().height);
// END of TabDecks
// END of TabCards
B1gencs = new Composite (CSvisiblecrmCompany2Scr,SWT.NONE);
B1gencs.setBounds(new org.eclipse.swt.graphics.Rectangle(6, 134,(int)
(471), (int) (188)));
B1gen = new Table (B1gencs,SWT.SINGLE | SWT.BORDER | SWT.H_SCROLL |
SWT.V_SCROLL | SWT.FULL_SELECTION | SWT.HIDE_SELECTION);
B1gen.setBounds(new org.eclipse.swt.graphics.Rectangle(0, 0,(int) (471),
(int) (188)));
B1gen.setLinesVisible(true);
B1gen.setHeaderVisible(true);

// END of GridFrames
lbPerson = new TableColumn (B1gen,SWT.LEFT);
lbPerson.setWidth((int)(6 *60) + 15 );


// END of GridFrameColumns
dlScreen = new Label (CSvisiblecrmCompany2Scr,SWT.LEFT );
dlScreen.setBounds(new org.eclipse.swt.graphics.Rectangle(0, 0,(int)
(858), (int) (25)));
dlScreen.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),16,SWT.BOLD));
dlScreen.setText("Company");

K3employee = new Link (CSvisiblecrmCompany2Scr,SWT.NULL );
K3employee.setBounds(new org.eclipse.swt.graphics.Rectangle(275,
36,(int) (96), (int) (14)));
K3employee.setVisible(false);
K3employee.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),8,SWT.NORMAL));
K3employee.setText("company employee");

K6employee = new Link (CSvisiblecrmCompany2Scr,SWT.NULL );
K6employee.setBounds(new org.eclipse.swt.graphics.Rectangle(275,
50,(int) (90), (int) (14)));
K6employee.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),8,SWT.NORMAL));
K6employee.setVisible(false);
K6employee.setText("employee person");

name1 = new Text (CSvisiblecrmCompany2Scr,SWT.LEFT | SWT.BORDER );
name1.setBounds(new org.eclipse.swt.graphics.Rectangle(46, 73,(int)
(255), (int) (26)));
name1.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),10,SWT.NORMAL));

name2 = new Text (CSvisiblecrmCompany2Scr,SWT.LEFT | SWT.BORDER );
name2.setBounds(new org.eclipse.swt.graphics.Rectangle(46, 101,(int)
(255), (int) (26)));
name2.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),10,SWT.NORMAL));

LName1 = new Label (CSvisiblecrmCompany2Scr,SWT.LEFT );
LName1.setBounds(new org.eclipse.swt.graphics.Rectangle(6, 78,(int)
(34), (int) (13)));
LName1.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),8,SWT.NORMAL));
LName1.setText("Name1");

LName2 = new Label (CSvisiblecrmCompany2Scr,SWT.LEFT );
LName2.setBounds(new org.eclipse.swt.graphics.Rectangle(6, 106,(int)
(34), (int) (13)));
LName2.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),8,SWT.NORMAL));
LName2.setText("Name2");

pbSelect = new Button(CSvisiblecrmCompany2Scr,SWT.BORDER);
pbSelect.setBounds(new org.eclipse.swt.graphics.Rectangle(6, 400,(int)
(200), (int) (20)));
pbSelect.setText("method: select()");
pbSelect.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),8,SWT.NORMAL));
pbSelect.addMouseListener(new MouseListener() {
public void mouseDown(MouseEvent e) {
}

public void mouseUp(MouseEvent e) {}

public void mouseDoubleClick(MouseEvent e) {}
}
);

CSvisiblecrmCompany2ScrSC.setContent(CSvisiblecrmCompany2Scr );
CSvisiblecrmCompany2ScrSC.setMinSize((int)(6*143.50) + 10
,(int)(14*30.36) + 35 );
CSvisiblecrmCompany2ScrSC.setExpandHorizontal(true);
CSvisiblecrmCompany2ScrSC.setExpandVertical(true);

}
public void setFocus() {
// viewer.getControl().setFocus();
}
/**
* This is a callback that will allow us to create the viewer and initialize
* it.
*/
public void createPartControl(Composite scanner) {
crmCompany2ScrCS = new Composite(scanner,SWT.NONE);
createtabFoldercrmCompany2Scr();
}
} // @jve:decl-index=0:visual-constraint="10,10"
Re: Some problems with the VE 1.1 and Eclipse 3.1 [message #609242 is a reply to message #100065] Tue, 26 July 2005 09:49 Go to previous message
Srimanth  is currently offline Srimanth Friend
Messages: 225
Registered: July 2009
Senior Member
Hi Flik,

(1) I was able to load the following code without any problems. Do you
see any exceptions/messages in the logs? Which layout is the shell in?
--------------------------------------
public class Empty1 {

private Shell sShell = null; //
@jve:decl-index=0:visual-constraint="22,30"
private Label dlScreen = null;

private void createSShell() {
sShell = new Shell();
sShell.setSize(new org.eclipse.swt.graphics.Point(172,133));
dlScreen = new Label (sShell,SWT.LEFT );
dlScreen.setBounds(new org.eclipse.swt.graphics.Rectangle(0, 0,(int)
(810), (int) (24)));
dlScreen.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"MS Sans
Serif",16,SWT.BOLD));
dlScreen.setText("this is just an example");
}
}
--------------------------------------


(2) Do you see any exceptions/messages in the logs? Is this in the same
project as the above file which seems to atleast load?

Regards,
Sri.



Flik wrote:
> hello,
>
> first i have to thank you for your great work! the new VE is really good!!!
>
> but i have got some problems with it - i hope you can help me:
>
> 1) i have a swt shell which is shown correctly - when running in eclipse.
> But if i load it in the ve, the editor doesn't show the content of my
> Label...
>
> _the code:_
> dlScreen = new Label (CSvisiblecrmWelcomeScr,SWT.LEFT );
> dlScreen.setBounds(new org.eclipse.swt.graphics.Rectangle(0, 0,(int)
> (810), (int) (24)));
> dlScreen.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"MS Sans
> Serif",16,SWT.BOLD));
> dlScreen.setText("this is just an example");
>
> the VE shows me the border of the Label but unfortunately it does not
> show the "this is just an example" text...
>
> 2) another shell which is loading in the ve even doesn't start at all.
> the editor throws the message that there is a
> java.lang.NullPointerException. "Error trying to set new file into
> editor". - the screen is blank.
>
> -> but some of my other files runs without any problems...
>
> so i hope you can help me
>
> thanks
>
> Flik
Re: Some problems with the VE 1.1 and Eclipse 3.1 [message #609245 is a reply to message #100098] Tue, 26 July 2005 10:51 Go to previous message
Flik is currently offline FlikFriend
Messages: 51
Registered: July 2009
Member
Sri Gunturi schrieb:
> Hi Flik,
>
> (1) I was able to load the following code without any problems. Do you
> see any exceptions/messages in the logs? Which layout is the shell in?
> --------------------------------------
> public class Empty1 {
>
> private Shell sShell = null; //
> @jve:decl-index=0:visual-constraint="22,30"
> private Label dlScreen = null;
>
> private void createSShell() {
> sShell = new Shell();
> sShell.setSize(new org.eclipse.swt.graphics.Point(172,133));
> dlScreen = new Label (sShell,SWT.LEFT );
> dlScreen.setBounds(new org.eclipse.swt.graphics.Rectangle(0,
> 0,(int) (810), (int) (24)));
> dlScreen.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"MS Sans
> Serif",16,SWT.BOLD));
> dlScreen.setText("this is just an example");
> }
> }
> --------------------------------------

(1) very strange: your code runs well.

so please try this file, where the error occures. the ve only shows the
borders of the widgets...

filename: crmLogin.java

---------

import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.TabFolder;
import org.eclipse.swt.widgets.TabItem;
import org.eclipse.swt.widgets.Text;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Combo;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.widgets.TableItem;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.events.MouseEvent;
import org.eclipse.swt.events.MouseListener;
import org.eclipse.swt.events.VerifyEvent;
import org.eclipse.swt.events.VerifyListener;
import org.eclipse.ui.part.ViewPart;
import org.eclipse.jface.action.IMenuManager;
import org.eclipse.jface.action.IToolBarManager;
import java.io.FileNotFoundException;
import org.eclipse.swt.custom.ScrolledComposite;
public class crmLogin extends ViewPart {
private Shell crmLoginScr = null;
private TabFolder tabFoldercrmLoginScr = null;
private TabItem tabItemVisiblecrmLoginScr = null;
private Composite CSvisiblecrmLoginScr = null;
private TabItem tabItemHiddencrmLoginScr = null;
private Composite CShiddencrmLoginScr = null;
private ScrolledComposite CSvisiblecrmLoginScrSC = null;
private ScrolledComposite CShiddencrmLoginScrSC = null;
TableItem tabitem;
private Label F1gen = null;
private Combo clientOM = null;
private Text login = null;
private Text password = null;
private Label userid = null;
private Label clientid = null;
private Button loginPb = null;
private Label personid = null;
private Label dlScreen = null;
private Label LLogin = null;
private Label LPassword = null;
private void createcrmLoginScr() {
crmLoginScr = new Shell (); // @jve:decl-index=0:visual-constraint="10,10"
crmLoginScr.setText("Anmeldung");
crmLoginScr.setSize(new org.eclipse.swt.graphics.Point((int) (6*41.17) +
10, (int) (14*12.07) + 35));
createtabFoldercrmLoginScr(crmLoginScr);
}
private void createtabFoldercrmLoginScr(Composite crmLoginScr) {
tabFoldercrmLoginScr = new TabFolder(crmLoginScr,SWT.BOTTOM);
tabFoldercrmLoginScr.setBounds(new
org.eclipse.swt.graphics.Rectangle(0,0,(int) (6*41.17) + 10, (int)
(14*12.07) + 35 ));
TabItem tabItemVisiblecrmLoginScr = new TabItem
(tabFoldercrmLoginScr,SWT.NONE);
TabItem tabItemHiddencrmLoginScr = new TabItem
(tabFoldercrmLoginScr,SWT.NONE);
createCSvisiblecrmLoginScr();
createCShiddencrmLoginScr();
tabItemVisiblecrmLoginScr.setText("workplace");
tabItemHiddencrmLoginScr.setText("hidden-always");
tabItemVisiblecrmLoginScr.setControl(CSvisiblecrmLoginScrSC );
tabItemHiddencrmLoginScr.setControl(CShiddencrmLoginScrSC );
}

private void createCShiddencrmLoginScr() {
// Create the ScrolledComposite to scroll horizontally and vertically
CShiddencrmLoginScrSC = new
ScrolledComposite(tabFoldercrmLoginScr,SWT.H_SCROLL | SWT.V_SCROLL);
CShiddencrmLoginScrSC.setBounds(0,0,750,550);
// Create a child composite to hold the controls
CShiddencrmLoginScr = new Composite(CShiddencrmLoginScrSC,SWT.NONE);
CShiddencrmLoginScr.setBounds(tabFoldercrmLoginScr.getBounds ().x,tabFoldercrmLoginScr.getBounds().y,tabFoldercrmLoginScr .getBounds().width,tabFoldercrmLoginScr.getBounds().height);
F1gen = new Label (CShiddencrmLoginScr,SWT.LEFT );
F1gen.setBounds(new org.eclipse.swt.graphics.Rectangle(42, 36,(int)
(48), (int) (14)));
F1gen.setVisible(true);
F1gen.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
F1gen.setText("Mandant");

clientOM = new Combo (CShiddencrmLoginScr,SWT.DROP_DOWN | SWT.READ_ONLY );
clientOM.setBounds(new org.eclipse.swt.graphics.Rectangle(96, 32,(int)
(132), (int) (21)));
clientOM.setVisible(true);
clientOM.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));

userid = new Label (CShiddencrmLoginScr,SWT.LEFT );
userid.setBounds(new org.eclipse.swt.graphics.Rectangle(12, 120,(int)
(54), (int) (14)));
userid.setVisible(true);
userid.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));

clientid = new Label (CShiddencrmLoginScr,SWT.LEFT );
clientid.setBounds(new org.eclipse.swt.graphics.Rectangle(12, 134,(int)
(54), (int) (14)));
clientid.setVisible(true);
clientid.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));

personid = new Label (CShiddencrmLoginScr,SWT.LEFT );
personid.setBounds(new org.eclipse.swt.graphics.Rectangle(12, 148,(int)
(54), (int) (14)));
personid.setVisible(true);
personid.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));

CShiddencrmLoginScrSC.setContent(CShiddencrmLoginScr);
CShiddencrmLoginScrSC.setMinSize((int)(6*41.17) + 10 ,(int)(14*12.07) +
35 );
CShiddencrmLoginScrSC.setExpandHorizontal(true);
CShiddencrmLoginScrSC.setExpandVertical(true);
}
private void createCSvisiblecrmLoginScr() {
// Create the ScrolledComposite to scroll horizontally and vertically
CSvisiblecrmLoginScrSC = new
ScrolledComposite(tabFoldercrmLoginScr,SWT.H_SCROLL | SWT.V_SCROLL);
CSvisiblecrmLoginScrSC.setBounds(0,0,750,550);
// Create a child composite to hold the controls
CSvisiblecrmLoginScr = new Composite(CSvisiblecrmLoginScrSC,SWT.NONE);
CSvisiblecrmLoginScr.setBounds(tabFoldercrmLoginScr.getBound s().x,tabFoldercrmLoginScr.getBounds().y,tabFoldercrmLoginSc r.getBounds().width,tabFoldercrmLoginScr.getBounds().height) ;
// END of TabDecks
// END of TabCards
// END of GridFrames
// END of GridFrameColumns
login = new Text (CSvisiblecrmLoginScr,SWT.LEFT | SWT.BORDER );
login.setBounds(new org.eclipse.swt.graphics.Rectangle(96, 59,(int)
(100), (int) (23)));
login.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
login.setText("db2admin");

password = new Text (CSvisiblecrmLoginScr,SWT.LEFT | SWT.BORDER );
password.setBounds(new org.eclipse.swt.graphics.Rectangle(96, 87,(int)
(100), (int) (23)));
password.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
password.setEchoChar('*');
password.setText("db2admin");

loginPb = new Button (CSvisiblecrmLoginScr,SWT.CENTER );
loginPb.setBounds(new org.eclipse.swt.graphics.Rectangle(110, 129,(int)
(74), (int) (23)));
loginPb.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));

dlScreen = new Label (CSvisiblecrmLoginScr,SWT.LEFT );
dlScreen.setBounds(new org.eclipse.swt.graphics.Rectangle(2, 0,(int)
(244), (int) (24)));
dlScreen.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"MS Sans
Serif",16,SWT.BOLD));
dlScreen.setText("Login");

LLogin = new Label (CSvisiblecrmLoginScr,SWT.LEFT );
LLogin.setBounds(new org.eclipse.swt.graphics.Rectangle(39, 64,(int)
(54), (int) (13)));
LLogin.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
LLogin.setText("Username");

LPassword = new Label (CSvisiblecrmLoginScr,SWT.LEFT );
LPassword.setBounds(new org.eclipse.swt.graphics.Rectangle(40, 92,(int)
(52), (int) (13)));
LPassword.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
LPassword.setText("Passwort");

CSvisiblecrmLoginScrSC.setContent(CSvisiblecrmLoginScr);
CSvisiblecrmLoginScrSC.setMinSize((int)(6*41.17) + 10 ,(int)(14*12.07) +
35 );
CSvisiblecrmLoginScrSC.setExpandHorizontal(true);
CSvisiblecrmLoginScrSC.setExpandVertical(true);
}
public void setFocus() {
// viewer.getControl().setFocus();
}
/**
* This is a callback that will allow us to create the viewer and initialize
* it.
*/
public void createPartControl(Composite scanner) {
Composite crmLoginScr = scanner;
createtabFoldercrmLoginScr(crmLoginScr);
}
public static void main(String[] args) {
org.eclipse.swt.widgets.Display display =
org.eclipse.swt.widgets.Display.getDefault();
crmLogin jClasscrmLogin = new crmLogin();
jClasscrmLogin.createcrmLoginScr();
jClasscrmLogin.crmLoginScr.open();
while (!jClasscrmLogin.crmLoginScr.isDisposed()) {
if (!display.readAndDispatch ()) display.sleep();
}
display.dispose ();
}
}


> (2) Do you see any exceptions/messages in the logs? Is this in the same
> project as the above file which seems to atleast load?

(2) extract of my log file:

I am sorry, but i do not understand the meaning of the log-extract...
.... does anybody see what the problem is?

!ENTRY org.eclipse.ve.java.core 4 0 2005-07-26 12:44:27.906
!MESSAGE Exception thrown.
!STACK 0
java.lang.NullPointerException
at
org.eclipse.ve.internal.swt.CompositeGraphicalEditPart.setup Control(CompositeGraphicalEditPart.java:96)
at
org.eclipse.ve.internal.swt.CompositeGraphicalEditPart.creat eChild(CompositeGraphicalEditPart.java:84)
at
org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:733)
at
org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:684)
at
org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:554)
at
org.eclipse.gef.editparts.AbstractEditPart.addNotify(Abstrac tEditPart.java:232)
at
org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotif y(AbstractGraphicalEditPart.java:212)
at
org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:195)
at
org.eclipse.ve.internal.swt.TabFolderGraphicalEditPart.addCh ild(TabFolderGraphicalEditPart.java:86)
at
org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:734)
at
org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:684)
at
org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:554)
at
org.eclipse.gef.editparts.AbstractEditPart.addNotify(Abstrac tEditPart.java:232)
at
org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotif y(AbstractGraphicalEditPart.java:212)
at
org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:195)
at
org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:734)
at
org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:684)
at
org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:554)
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart.setRootModel(JavaVisualEditorPart.java:506)
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart.initializeViewers(JavaVisualEditorPart.java:987)
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart$12.run(JavaVisualEditorPart.java:1977)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3057)
at org.eclipse.swt.widgets.Display.msgFilterProc(Display.java:2 505)
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1651 )
at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable .java:77)
at org.eclipse.swt.widgets.Composite.WM_SYSCOMMAND(Composite.ja va:1315)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3110 )
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3706 )
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1651 )
at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable .java:77)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3123 )
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3706 )
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:16 56)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2711)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
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.core.launcher.Main.invokeFramework(Main.java:334 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)

!ENTRY org.eclipse.jem.proxy 2 0 2005-07-26 12:44:28.265
!MESSAGE
+++ Warning +++: Tue Jul 26 12:44:28 CEST 2005 Project
(proCrmAntlrE31)-VM for proCrmAntlrE31:err>

org.eclipse.jem.internal.proxy.common.remote.CommandErrorExc eption--
Error code:7 Value data:"java.lang.NullPointerException:null"
at
org.eclipse.jem.internal.proxy.common.remote.Commands.readBa ckValue(Commands.java:1254)
at
org.eclipse.jem.internal.proxy.vm.remote.ConnectionHandler.r un(ConnectionHandler.java:454)
at
org.eclipse.jem.internal.proxy.vm.remote.CallbackHandler.cal lbackWithParms(CallbackHandler.java:150)
at
org.eclipse.ve.internal.swt.targetvm.ControlManager$5.run(Co ntrolManager.java:637)
at
org.eclipse.jem.internal.proxy.vm.remote.RemoteVMServerThrea d.doCallback(RemoteVMServerThread.java:541)
at
org.eclipse.ve.internal.swt.targetvm.ControlManager$ControlM anagerFeedbackController.run(ControlManager.java:634)
at
org.eclipse.ve.internal.swt.targetvm.ControlManager$1.run(Co ntrolManager.java:480)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3057)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2716)
at
org.eclipse.ve.internal.swt.targetvm.Environment$3.run(Envir onment.java:68)

!ENTRY org.eclipse.ui 4 4 2005-07-26 12:44:30.140
!MESSAGE Unhandled event loop exception

!ENTRY org.eclipse.ui 4 0 2005-07-26 12:44:30.218
!MESSAGE Failed to execute runnable (java.lang.NullPointerException)
!STACK 0
org.eclipse.swt.SWTException: Failed to execute runnable
(java.lang.NullPointerException)
at org.eclipse.swt.SWT.error(SWT.java:2942)
at org.eclipse.swt.SWT.error(SWT.java:2865)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:126)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3057)
at org.eclipse.swt.widgets.Display.msgFilterProc(Display.java:2 505)
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1651 )
at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable .java:77)
at org.eclipse.swt.widgets.Composite.WM_SYSCOMMAND(Composite.ja va:1315)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3110 )
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3706 )
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1651 )
at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable .java:77)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3123 )
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3706 )
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:16 56)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2711)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
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.core.launcher.Main.invokeFramework(Main.java:334 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)
Caused by: java.lang.NullPointerException
at
org.eclipse.ve.internal.swt.CompositeGraphicalEditPart.setup Control(CompositeGraphicalEditPart.java:96)
at
org.eclipse.ve.internal.swt.CompositeGraphicalEditPart.creat eChild(CompositeGraphicalEditPart.java:84)
at
org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:733)
at
org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:684)
at
org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:554)
at
org.eclipse.gef.editparts.AbstractEditPart.addNotify(Abstrac tEditPart.java:232)
at
org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotif y(AbstractGraphicalEditPart.java:212)
at
org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:195)
at
org.eclipse.ve.internal.swt.TabFolderGraphicalEditPart.addCh ild(TabFolderGraphicalEditPart.java:86)
at
org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:734)
at
org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:684)
at
org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:554)
at
org.eclipse.gef.editparts.AbstractEditPart.addNotify(Abstrac tEditPart.java:232)
at
org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotif y(AbstractGraphicalEditPart.java:212)
at
org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:195)
at
org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:734)
at
org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:684)
at
org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:554)
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart.setRootModel(JavaVisualEditorPart.java:506)
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart.initializeViewers(JavaVisualEditorPart.java:987)
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart$12.run(JavaVisualEditorPart.java:1977)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
... 32 more
Re: Some problems with the VE 1.1 and Eclipse 3.1 [message #610011 is a reply to message #100141] Tue, 26 July 2005 15:37 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

I was able to produce the first problem with labels not showing up.
Please open a bugzilla against VE component SWT and attach the source
crmLogin to it.

I don't know what caused the trace exception you first showed because
you didn't include the code for the shell that wouldn't start at all.
Please append the shell that failed so we can see it too.

--
Thanks,
Rich Kulp
Re: Some problems with the VE 1.1 and Eclipse 3.1 [message #610012 is a reply to message #100141] Tue, 26 July 2005 17:05 Go to previous message
Srimanth  is currently offline Srimanth Friend
Messages: 225
Registered: July 2009
Senior Member
Hi Flik,
It turns out that the code was in a pattern not supported by VE 1.1.
1) For example a Composite (crmLoginScr) was defined as a local variable
and codegen in VE 1.1 doesnt understand passing of arguments between
methods - it only understands fields and local variables.
2) the name of the Shell and a composite to be the same.
3) You dont need the main() class and a shell in your source, to see how
the view's contents look at runtime simply run the view as a 'Java Bean'.

I have refactored the source so that VE can show the visuals correctly.
Please make sure this works for you.
Regards,
Sri.
------------------------------------------------

import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.TabFolder;
import org.eclipse.swt.widgets.TabItem;
import org.eclipse.swt.widgets.Text;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Combo;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.widgets.TableItem;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.events.MouseEvent;
import org.eclipse.swt.events.MouseListener;
import org.eclipse.swt.events.VerifyEvent;
import org.eclipse.swt.events.VerifyListener;
import org.eclipse.ui.part.ViewPart;
import org.eclipse.jface.action.IMenuManager;
import org.eclipse.jface.action.IToolBarManager;
import java.io.FileNotFoundException;
import org.eclipse.swt.custom.ScrolledComposite;

public class CopyOfcrmLogin3 extends ViewPart {
private Shell crmLoginScr = null;
private TabFolder tabFoldercrmLoginScr = null;
private TabItem tabItemVisiblecrmLoginScr = null;
private Composite CSvisiblecrmLoginScr = null;
private TabItem tabItemHiddencrmLoginScr = null;
private Composite CShiddencrmLoginScr = null;
private ScrolledComposite CSvisiblecrmLoginScrSC = null;
private ScrolledComposite CShiddencrmLoginScrSC = null;
TableItem tabitem;
private Label F1gen = null;
private Combo clientOM = null;
private Text login = null;
private Text password = null;
private Label userid = null;
private Label clientid = null;
private Button loginPb = null;
private Label personid = null;
private Label dlScreen = null;
private Label LLogin = null;
private Label LPassword = null;
private Composite crmLoginScr2;
//private void createcrmLoginScr() {
//crmLoginScr = new Shell (); // @jve:decl-index=0:visual-constraint="10,10"
//crmLoginScr.setText("Anmeldung");
//crmLoginScr.setSize(new org.eclipse.swt.graphics.Point((int) (6*41.17)
+ 10, (int) (14*12.07) + 35));
//createtabFoldercrmLoginScr();
//}
private void createtabFoldercrmLoginScr() {
tabFoldercrmLoginScr = new TabFolder(crmLoginScr2,SWT.BOTTOM);
tabFoldercrmLoginScr.setBounds(new
org.eclipse.swt.graphics.Rectangle(0,0,(int) (6*41.17) + 10, (int)
(14*12.07) + 35 ));
TabItem tabItemVisiblecrmLoginScr = new TabItem
(tabFoldercrmLoginScr,SWT.NONE);
TabItem tabItemHiddencrmLoginScr = new TabItem
(tabFoldercrmLoginScr,SWT.NONE);
createCSvisiblecrmLoginScr();
createCShiddencrmLoginScr();
tabItemVisiblecrmLoginScr.setText("workplace");
tabItemHiddencrmLoginScr.setText("hidden-always");
tabItemVisiblecrmLoginScr.setControl(CSvisiblecrmLoginScrSC );
tabItemHiddencrmLoginScr.setControl(CShiddencrmLoginScrSC );
}

private void createCShiddencrmLoginScr() {
// Create the ScrolledComposite to scroll horizontally and vertically
CShiddencrmLoginScrSC = new
ScrolledComposite(tabFoldercrmLoginScr,SWT.H_SCROLL | SWT.V_SCROLL);
CShiddencrmLoginScrSC.setBounds(0,0,750,550);
// Create a child composite to hold the controls
CShiddencrmLoginScr = new Composite(CShiddencrmLoginScrSC,SWT.NONE);
CShiddencrmLoginScr.setBounds(tabFoldercrmLoginScr.getBounds ().x,tabFoldercrmLoginScr.getBounds().y,tabFoldercrmLoginScr .getBounds().width,tabFoldercrmLoginScr.getBounds().height);
F1gen = new Label (CShiddencrmLoginScr,SWT.LEFT );
F1gen.setBounds(new org.eclipse.swt.graphics.Rectangle(42, 36,(int)
(48), (int) (14)));
F1gen.setVisible(true);
F1gen.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
F1gen.setText("Mandant");

clientOM = new Combo (CShiddencrmLoginScr,SWT.DROP_DOWN | SWT.READ_ONLY );
clientOM.setBounds(new org.eclipse.swt.graphics.Rectangle(96, 32,(int)
(132), (int) (21)));
clientOM.setVisible(true);
clientOM.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));

userid = new Label (CShiddencrmLoginScr,SWT.LEFT );
userid.setBounds(new org.eclipse.swt.graphics.Rectangle(12, 120,(int)
(54), (int) (14)));
userid.setVisible(true);
userid.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));

clientid = new Label (CShiddencrmLoginScr,SWT.LEFT );
clientid.setBounds(new org.eclipse.swt.graphics.Rectangle(12, 134,(int)
(54), (int) (14)));
clientid.setVisible(true);
clientid.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));

personid = new Label (CShiddencrmLoginScr,SWT.LEFT );
personid.setBounds(new org.eclipse.swt.graphics.Rectangle(12, 148,(int)
(54), (int) (14)));
personid.setVisible(true);
personid.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));

CShiddencrmLoginScrSC.setContent(CShiddencrmLoginScr);
CShiddencrmLoginScrSC.setMinSize((int)(6*41.17) + 10 ,(int)(14*12.07) +
35 );
CShiddencrmLoginScrSC.setExpandHorizontal(true);
CShiddencrmLoginScrSC.setExpandVertical(true);
}
private void createCSvisiblecrmLoginScr() {
// Create the ScrolledComposite to scroll horizontally and vertically
CSvisiblecrmLoginScrSC = new
ScrolledComposite(tabFoldercrmLoginScr,SWT.H_SCROLL | SWT.V_SCROLL);
CSvisiblecrmLoginScrSC.setBounds(0,0,750,550);
// Create a child composite to hold the controls
CSvisiblecrmLoginScr = new Composite(CSvisiblecrmLoginScrSC,SWT.NONE);
CSvisiblecrmLoginScr.setBounds(tabFoldercrmLoginScr.getBound s().x,tabFoldercrmLoginScr.getBounds().y,tabFoldercrmLoginSc r.getBounds().width,tabFoldercrmLoginScr.getBounds().height) ;
// END of TabDecks
// END of TabCards
// END of GridFrames
// END of GridFrameColumns
login = new Text (CSvisiblecrmLoginScr,SWT.LEFT | SWT.BORDER );
login.setBounds(new org.eclipse.swt.graphics.Rectangle(96, 59,(int)
(100), (int) (23)));
login.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
login.setText("db2admin");

password = new Text (CSvisiblecrmLoginScr,SWT.LEFT | SWT.BORDER );
password.setBounds(new org.eclipse.swt.graphics.Rectangle(96, 87,(int)
(100), (int) (23)));
password.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
password.setEchoChar('*');
password.setText("db2admin");

loginPb = new Button (CSvisiblecrmLoginScr,SWT.CENTER );
loginPb.setBounds(new org.eclipse.swt.graphics.Rectangle(110, 129,(int)
(74), (int) (23)));
loginPb.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));

dlScreen = new Label (CSvisiblecrmLoginScr,SWT.LEFT );
dlScreen.setBounds(new org.eclipse.swt.graphics.Rectangle(2, 0,(int)
(244), (int) (24)));
dlScreen.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"MS Sans
Serif",16,SWT.BOLD));
dlScreen.setText("Login");

LLogin = new Label (CSvisiblecrmLoginScr,SWT.LEFT );
LLogin.setBounds(new org.eclipse.swt.graphics.Rectangle(39, 64,(int)
(54), (int) (13)));
LLogin.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
LLogin.setText("Username");

LPassword = new Label (CSvisiblecrmLoginScr,SWT.LEFT );
LPassword.setBounds(new org.eclipse.swt.graphics.Rectangle(40, 92,(int)
(52), (int) (13)));
LPassword.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
LPassword.setText("Passwort");

CSvisiblecrmLoginScrSC.setContent(CSvisiblecrmLoginScr);
CSvisiblecrmLoginScrSC.setMinSize((int)(6*41.17) + 10 ,(int)(14*12.07) +
35 );
CSvisiblecrmLoginScrSC.setExpandHorizontal(true);
CSvisiblecrmLoginScrSC.setExpandVertical(true);
}
public void setFocus() {
// viewer.getControl().setFocus();
}
/**
* This is a callback that will allow us to create the viewer and initialize
* it.
*/
public void createPartControl(Composite scanner) {
crmLoginScr2 = scanner;
createtabFoldercrmLoginScr();
}
public static void main(String[] args) {
org.eclipse.swt.widgets.Display display =
org.eclipse.swt.widgets.Display.getDefault();
CopyOfcrmLogin3 jClasscrmLogin = new CopyOfcrmLogin3();
//jClasscrmLogin.createcrmLoginScr();
jClasscrmLogin.crmLoginScr.open();
while (!jClasscrmLogin.crmLoginScr.isDisposed()) {
if (!display.readAndDispatch ()) display.sleep();
}
display.dispose ();
}
}
------------------------------------------------


Flik wrote:
>
>
> Sri Gunturi schrieb:
>
>> Hi Flik,
>>
>> (1) I was able to load the following code without any problems. Do you
>> see any exceptions/messages in the logs? Which layout is the shell in?
>> --------------------------------------
>> public class Empty1 {
>>
>> private Shell sShell = null; //
>> @jve:decl-index=0:visual-constraint="22,30"
>> private Label dlScreen = null;
>>
>> private void createSShell() {
>> sShell = new Shell();
>> sShell.setSize(new org.eclipse.swt.graphics.Point(172,133));
>> dlScreen = new Label (sShell,SWT.LEFT );
>> dlScreen.setBounds(new org.eclipse.swt.graphics.Rectangle(0,
>> 0,(int) (810), (int) (24)));
>> dlScreen.setFont(new
>> Font(org.eclipse.swt.widgets.Display.getDefault(),"MS Sans
>> Serif",16,SWT.BOLD));
>> dlScreen.setText("this is just an example");
>> }
>> }
>> --------------------------------------
>
>
> (1) very strange: your code runs well.
>
> so please try this file, where the error occures. the ve only shows the
> borders of the widgets...
>
> filename: crmLogin.java
>
> ---------
>
> import org.eclipse.swt.widgets.Composite;
> import org.eclipse.swt.widgets.TabFolder;
> import org.eclipse.swt.widgets.TabItem;
> import org.eclipse.swt.widgets.Text;
> import org.eclipse.swt.widgets.Button;
> import org.eclipse.swt.widgets.Label;
> import org.eclipse.swt.widgets.Combo;
> import org.eclipse.swt.widgets.Display;
> import org.eclipse.swt.widgets.Shell;
> import org.eclipse.swt.SWT;
> import org.eclipse.swt.graphics.Font;
> import org.eclipse.swt.widgets.TableItem;
> import org.eclipse.swt.graphics.Image;
> import org.eclipse.swt.events.MouseEvent;
> import org.eclipse.swt.events.MouseListener;
> import org.eclipse.swt.events.VerifyEvent;
> import org.eclipse.swt.events.VerifyListener;
> import org.eclipse.ui.part.ViewPart;
> import org.eclipse.jface.action.IMenuManager;
> import org.eclipse.jface.action.IToolBarManager;
> import java.io.FileNotFoundException;
> import org.eclipse.swt.custom.ScrolledComposite;
> public class crmLogin extends ViewPart {
> private Shell crmLoginScr = null;
> private TabFolder tabFoldercrmLoginScr = null;
> private TabItem tabItemVisiblecrmLoginScr = null;
> private Composite CSvisiblecrmLoginScr = null;
> private TabItem tabItemHiddencrmLoginScr = null;
> private Composite CShiddencrmLoginScr = null;
> private ScrolledComposite CSvisiblecrmLoginScrSC = null;
> private ScrolledComposite CShiddencrmLoginScrSC = null;
> TableItem tabitem;
> private Label F1gen = null;
> private Combo clientOM = null;
> private Text login = null;
> private Text password = null;
> private Label userid = null;
> private Label clientid = null;
> private Button loginPb = null;
> private Label personid = null;
> private Label dlScreen = null;
> private Label LLogin = null;
> private Label LPassword = null;
> private void createcrmLoginScr() {
> crmLoginScr = new Shell (); // @jve:decl-index=0:visual-constraint="10,10"
> crmLoginScr.setText("Anmeldung");
> crmLoginScr.setSize(new org.eclipse.swt.graphics.Point((int) (6*41.17) +
> 10, (int) (14*12.07) + 35));
> createtabFoldercrmLoginScr(crmLoginScr);
> }
> private void createtabFoldercrmLoginScr(Composite crmLoginScr) {
> tabFoldercrmLoginScr = new TabFolder(crmLoginScr,SWT.BOTTOM);
> tabFoldercrmLoginScr.setBounds(new
> org.eclipse.swt.graphics.Rectangle(0,0,(int) (6*41.17) + 10, (int)
> (14*12.07) + 35 ));
> TabItem tabItemVisiblecrmLoginScr = new TabItem
> (tabFoldercrmLoginScr,SWT.NONE);
> TabItem tabItemHiddencrmLoginScr = new TabItem
> (tabFoldercrmLoginScr,SWT.NONE);
> createCSvisiblecrmLoginScr();
> createCShiddencrmLoginScr();
> tabItemVisiblecrmLoginScr.setText("workplace");
> tabItemHiddencrmLoginScr.setText("hidden-always");
> tabItemVisiblecrmLoginScr.setControl(CSvisiblecrmLoginScrSC );
> tabItemHiddencrmLoginScr.setControl(CShiddencrmLoginScrSC );
> }
>
> private void createCShiddencrmLoginScr() {
> // Create the ScrolledComposite to scroll horizontally and vertically
> CShiddencrmLoginScrSC = new
> ScrolledComposite(tabFoldercrmLoginScr,SWT.H_SCROLL | SWT.V_SCROLL);
> CShiddencrmLoginScrSC.setBounds(0,0,750,550);
> // Create a child composite to hold the controls
> CShiddencrmLoginScr = new Composite(CShiddencrmLoginScrSC,SWT.NONE);
> CShiddencrmLoginScr.setBounds(tabFoldercrmLoginScr.getBounds ().x,tabFoldercrmLoginScr.getBounds().y,tabFoldercrmLoginScr .getBounds().width,tabFoldercrmLoginScr.getBounds().height);
>
> F1gen = new Label (CShiddencrmLoginScr,SWT.LEFT );
> F1gen.setBounds(new org.eclipse.swt.graphics.Rectangle(42, 36,(int)
> (48), (int) (14)));
> F1gen.setVisible(true);
> F1gen.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
> F1gen.setText("Mandant");
>
> clientOM = new Combo (CShiddencrmLoginScr,SWT.DROP_DOWN | SWT.READ_ONLY );
> clientOM.setBounds(new org.eclipse.swt.graphics.Rectangle(96, 32,(int)
> (132), (int) (21)));
> clientOM.setVisible(true);
> clientOM.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
>
> userid = new Label (CShiddencrmLoginScr,SWT.LEFT );
> userid.setBounds(new org.eclipse.swt.graphics.Rectangle(12, 120,(int)
> (54), (int) (14)));
> userid.setVisible(true);
> userid.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
>
> clientid = new Label (CShiddencrmLoginScr,SWT.LEFT );
> clientid.setBounds(new org.eclipse.swt.graphics.Rectangle(12, 134,(int)
> (54), (int) (14)));
> clientid.setVisible(true);
> clientid.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
>
> personid = new Label (CShiddencrmLoginScr,SWT.LEFT );
> personid.setBounds(new org.eclipse.swt.graphics.Rectangle(12, 148,(int)
> (54), (int) (14)));
> personid.setVisible(true);
> personid.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
>
> CShiddencrmLoginScrSC.setContent(CShiddencrmLoginScr);
> CShiddencrmLoginScrSC.setMinSize((int)(6*41.17) + 10 ,(int)(14*12.07) +
> 35 );
> CShiddencrmLoginScrSC.setExpandHorizontal(true);
> CShiddencrmLoginScrSC.setExpandVertical(true);
> }
> private void createCSvisiblecrmLoginScr() {
> // Create the ScrolledComposite to scroll horizontally and vertically
> CSvisiblecrmLoginScrSC = new
> ScrolledComposite(tabFoldercrmLoginScr,SWT.H_SCROLL | SWT.V_SCROLL);
> CSvisiblecrmLoginScrSC.setBounds(0,0,750,550);
> // Create a child composite to hold the controls
> CSvisiblecrmLoginScr = new Composite(CSvisiblecrmLoginScrSC,SWT.NONE);
> CSvisiblecrmLoginScr.setBounds(tabFoldercrmLoginScr.getBound s().x,tabFoldercrmLoginScr.getBounds().y,tabFoldercrmLoginSc r.getBounds().width,tabFoldercrmLoginScr.getBounds().height) ;
>
> // END of TabDecks
> // END of TabCards
> // END of GridFrames
> // END of GridFrameColumns
> login = new Text (CSvisiblecrmLoginScr,SWT.LEFT | SWT.BORDER );
> login.setBounds(new org.eclipse.swt.graphics.Rectangle(96, 59,(int)
> (100), (int) (23)));
> login.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
> login.setText("db2admin");
>
> password = new Text (CSvisiblecrmLoginScr,SWT.LEFT | SWT.BORDER );
> password.setBounds(new org.eclipse.swt.graphics.Rectangle(96, 87,(int)
> (100), (int) (23)));
> password.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
> password.setEchoChar('*');
> password.setText("db2admin");
>
> loginPb = new Button (CSvisiblecrmLoginScr,SWT.CENTER );
> loginPb.setBounds(new org.eclipse.swt.graphics.Rectangle(110, 129,(int)
> (74), (int) (23)));
> loginPb.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
>
> dlScreen = new Label (CSvisiblecrmLoginScr,SWT.LEFT );
> dlScreen.setBounds(new org.eclipse.swt.graphics.Rectangle(2, 0,(int)
> (244), (int) (24)));
> dlScreen.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"MS Sans
> Serif",16,SWT.BOLD));
> dlScreen.setText("Login");
>
> LLogin = new Label (CSvisiblecrmLoginScr,SWT.LEFT );
> LLogin.setBounds(new org.eclipse.swt.graphics.Rectangle(39, 64,(int)
> (54), (int) (13)));
> LLogin.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
> LLogin.setText("Username");
>
> LPassword = new Label (CSvisiblecrmLoginScr,SWT.LEFT );
> LPassword.setBounds(new org.eclipse.swt.graphics.Rectangle(40, 92,(int)
> (52), (int) (13)));
> LPassword.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
> LPassword.setText("Passwort");
>
> CSvisiblecrmLoginScrSC.setContent(CSvisiblecrmLoginScr);
> CSvisiblecrmLoginScrSC.setMinSize((int)(6*41.17) + 10 ,(int)(14*12.07) +
> 35 );
> CSvisiblecrmLoginScrSC.setExpandHorizontal(true);
> CSvisiblecrmLoginScrSC.setExpandVertical(true);
> }
> public void setFocus() {
> // viewer.getControl().setFocus();
> }
> /**
> * This is a callback that will allow us to create the viewer and initialize
> * it.
> */
> public void createPartControl(Composite scanner) {
> Composite crmLoginScr = scanner;
> createtabFoldercrmLoginScr(crmLoginScr);
> }
> public static void main(String[] args) {
> org.eclipse.swt.widgets.Display display =
> org.eclipse.swt.widgets.Display.getDefault();
> crmLogin jClasscrmLogin = new crmLogin();
> jClasscrmLogin.createcrmLoginScr();
> jClasscrmLogin.crmLoginScr.open();
> while (!jClasscrmLogin.crmLoginScr.isDisposed()) {
> if (!display.readAndDispatch ()) display.sleep();
> }
> display.dispose ();
> }
> }
>
>
>> (2) Do you see any exceptions/messages in the logs? Is this in the
>> same project as the above file which seems to atleast load?
>
>
> (2) extract of my log file:
>
> I am sorry, but i do not understand the meaning of the log-extract...
> ... does anybody see what the problem is?
>
> !ENTRY org.eclipse.ve.java.core 4 0 2005-07-26 12:44:27.906
> !MESSAGE Exception thrown.
> !STACK 0
> java.lang.NullPointerException
> at
> org.eclipse.ve.internal.swt.CompositeGraphicalEditPart.setup Control(CompositeGraphicalEditPart.java:96)
>
> at
> org.eclipse.ve.internal.swt.CompositeGraphicalEditPart.creat eChild(CompositeGraphicalEditPart.java:84)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:733)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:684)
>
> at
> org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:554)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.addNotify(Abstrac tEditPart.java:232)
>
> at
> org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotif y(AbstractGraphicalEditPart.java:212)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:195)
>
> at
> org.eclipse.ve.internal.swt.TabFolderGraphicalEditPart.addCh ild(TabFolderGraphicalEditPart.java:86)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:734)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:684)
>
> at
> org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:554)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.addNotify(Abstrac tEditPart.java:232)
>
> at
> org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotif y(AbstractGraphicalEditPart.java:212)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:195)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:734)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:684)
>
> at
> org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:554)
>
> at
> org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart.setRootModel(JavaVisualEditorPart.java:506)
>
> at
> org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart.initializeViewers(JavaVisualEditorPart.java:987)
>
> at
> org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart$12.run(JavaVisualEditorPart.java:1977)
>
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
> at
> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
>
> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3057)
> at org.eclipse.swt.widgets.Display.msgFilterProc(Display.java:2 505)
> at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
> at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1651 )
> at
> org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable .java:77)
> at org.eclipse.swt.widgets.Composite.WM_SYSCOMMAND(Composite.ja va:1315)
> at org.eclipse.swt.widgets.Control.windowProc(Control.java:3110 )
> at org.eclipse.swt.widgets.Display.windowProc(Display.java:3706 )
> at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
> at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1651 )
> at
> org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable .java:77)
> at org.eclipse.swt.widgets.Control.windowProc(Control.java:3123 )
> at org.eclipse.swt.widgets.Display.windowProc(Display.java:3706 )
> at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
> at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:16 56)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2711)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
> at
> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
> at
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
>
> 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.core.launcher.Main.invokeFramework(Main.java:334 )
> at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
> at org.eclipse.core.launcher.Main.run(Main.java:973)
> at org.eclipse.core.launcher.Main.main(Main.java:948)
>
> !ENTRY org.eclipse.jem.proxy 2 0 2005-07-26 12:44:28.265
> !MESSAGE
> +++ Warning +++: Tue Jul 26 12:44:28 CEST 2005 Project
> (proCrmAntlrE31)-VM for proCrmAntlrE31:err>
>
> org.eclipse.jem.internal.proxy.common.remote.CommandErrorExc eption--
> Error code:7 Value data:"java.lang.NullPointerException:null"
> at
> org.eclipse.jem.internal.proxy.common.remote.Commands.readBa ckValue(Commands.java:1254)
>
> at
> org.eclipse.jem.internal.proxy.vm.remote.ConnectionHandler.r un(ConnectionHandler.java:454)
>
> at
> org.eclipse.jem.internal.proxy.vm.remote.CallbackHandler.cal lbackWithParms(CallbackHandler.java:150)
>
> at
> org.eclipse.ve.internal.swt.targetvm.ControlManager$5.run(Co ntrolManager.java:637)
>
> at
> org.eclipse.jem.internal.proxy.vm.remote.RemoteVMServerThrea d.doCallback(RemoteVMServerThread.java:541)
>
> at
> org.eclipse.ve.internal.swt.targetvm.ControlManager$ControlM anagerFeedbackController.run(ControlManager.java:634)
>
> at
> org.eclipse.ve.internal.swt.targetvm.ControlManager$1.run(Co ntrolManager.java:480)
>
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
> at
> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
>
> at
> org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3057)
> at
> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2716)
> at
> org.eclipse.ve.internal.swt.targetvm.Environment$3.run(Envir onment.java:68)
>
> !ENTRY org.eclipse.ui 4 4 2005-07-26 12:44:30.140
> !MESSAGE Unhandled event loop exception
>
> !ENTRY org.eclipse.ui 4 0 2005-07-26 12:44:30.218
> !MESSAGE Failed to execute runnable (java.lang.NullPointerException)
> !STACK 0
> org.eclipse.swt.SWTException: Failed to execute runnable
> (java.lang.NullPointerException)
> at org.eclipse.swt.SWT.error(SWT.java:2942)
> at org.eclipse.swt.SWT.error(SWT.java:2865)
> at
> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:126)
>
> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3057)
> at org.eclipse.swt.widgets.Display.msgFilterProc(Display.java:2 505)
> at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
> at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1651 )
> at
> org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable .java:77)
> at org.eclipse.swt.widgets.Composite.WM_SYSCOMMAND(Composite.ja va:1315)
> at org.eclipse.swt.widgets.Control.windowProc(Control.java:3110 )
> at org.eclipse.swt.widgets.Display.windowProc(Display.java:3706 )
> at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
> at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1651 )
> at
> org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable .java:77)
> at org.eclipse.swt.widgets.Control.windowProc(Control.java:3123 )
> at org.eclipse.swt.widgets.Display.windowProc(Display.java:3706 )
> at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
> at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:16 56)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2711)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
> at
> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
> at
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
>
> 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.core.launcher.Main.invokeFramework(Main.java:334 )
> at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
> at org.eclipse.core.launcher.Main.run(Main.java:973)
> at org.eclipse.core.launcher.Main.main(Main.java:948)
> Caused by: java.lang.NullPointerException
> at
> org.eclipse.ve.internal.swt.CompositeGraphicalEditPart.setup Control(CompositeGraphicalEditPart.java:96)
>
> at
> org.eclipse.ve.internal.swt.CompositeGraphicalEditPart.creat eChild(CompositeGraphicalEditPart.java:84)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:733)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:684)
>
> at
> org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:554)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.addNotify(Abstrac tEditPart.java:232)
>
> at
> org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotif y(AbstractGraphicalEditPart.java:212)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:195)
>
> at
> org.eclipse.ve.internal.swt.TabFolderGraphicalEditPart.addCh ild(TabFolderGraphicalEditPart.java:86)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:734)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:684)
>
> at
> org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:554)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.addNotify(Abstrac tEditPart.java:232)
>
> at
> org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotif y(AbstractGraphicalEditPart.java:212)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:195)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:734)
>
> at
> org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:684)
>
> at
> org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:554)
>
> at
> org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart.setRootModel(JavaVisualEditorPart.java:506)
>
> at
> org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart.initializeViewers(JavaVisualEditorPart.java:987)
>
> at
> org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart$12.run(JavaVisualEditorPart.java:1977)
>
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
> at
> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
>
> ... 32 more
new bugzilla entry [message #610027 is a reply to message #100291] Wed, 27 July 2005 07:20 Go to previous message
Flik is currently offline FlikFriend
Messages: 51
Registered: July 2009
Member
hello rich,

i have just added a new bugzilla entry:

-> https://bugs.eclipse.org/bugs/show_bug.cgi?id=105274

thanks for your help

Flik


Rich Kulp schrieb:
> I was able to produce the first problem with labels not showing up.
> Please open a bugzilla against VE component SWT and attach the source
> crmLogin to it.
>
> I don't know what caused the trace exception you first showed because
> you didn't include the code for the shell that wouldn't start at all.
> Please append the shell that failed so we can see it too.
>
Re: second problem -> NullPointerException [message #610028 is a reply to message #100291] Wed, 27 July 2005 07:25 Go to previous message
Flik is currently offline FlikFriend
Messages: 51
Registered: July 2009
Member
hello rich,

my second problem was the issue with the 'NullPointerException' when
loading my file in the visual editor.

I only get the message and the screen is blank!

thanks

Flik

see file crmCompany2.java
---------------------------------

import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.ScrolledComposite;
import org.eclipse.swt.events.MouseEvent;
import org.eclipse.swt.events.MouseListener;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Link;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.TabFolder;
import org.eclipse.swt.widgets.TabItem;
import org.eclipse.swt.widgets.Table;
import org.eclipse.swt.widgets.TableColumn;
import org.eclipse.swt.widgets.TableItem;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.part.ViewPart;
public class crmCompany2 extends ViewPart {
private Shell crmCompany2Scr = null;
private TabFolder tabFoldercrmCompany2Scr = null;
String[][] gridContentB1gen = new String[6][0];
private TabItem tabItemVisiblecrmCompany2Scr = null;
private Composite CSvisiblecrmCompany2Scr = null;
private TabItem tabItemHiddencrmCompany2Scr = null;
private Composite CShiddencrmCompany2Scr = null;
private ScrolledComposite CSvisiblecrmCompany2ScrSC = null;
private ScrolledComposite CShiddencrmCompany2ScrSC = null;
TableItem tabitem;
private Label dlScreen = null;
private Label id = null;
private Label branchId = null;
private Label version = null;
private Label modDate = null;
private Label createDate = null;
private Link K3employee = null;
private Link K6employee = null;
private Text name1 = null;
private Text name2 = null;
private TableColumn lbPerson = null;
private TableColumn perId = null;
private TableColumn name5 = null;
private TableColumn firstname = null;
private TableColumn sex = null;
private Label LName1 = null;
private Label LName2 = null;
private Composite B1gencs = null;
private Table B1gen = null;
private Button pbSelect = null;
private void createcrmCompany2Scr() {
crmCompany2Scr = new Shell (); //
@jve:decl-index=0:visual-constraint="10,10"
crmCompany2Scr.setText("");
crmCompany2Scr.setSize(new org.eclipse.swt.graphics.Point((int)
(6*143.50) + 10, (int) (14*30.36) + 35));
createtabFoldercrmCompany2Scr(crmCompany2Scr);
}
private void createtabFoldercrmCompany2Scr(Composite crmCompany2Scr) {

tabFoldercrmCompany2Scr = new TabFolder(crmCompany2Scr,SWT.BOTTOM);
tabFoldercrmCompany2Scr.setBounds(new
org.eclipse.swt.graphics.Rectangle(0,0,(int) (6*143.50) + 10, (int)
(14*30.36) + 35 ));
TabItem tabItemVisiblecrmCompany2Scr = new TabItem
(tabFoldercrmCompany2Scr,SWT.NONE);
TabItem tabItemHiddencrmCompany2Scr = new TabItem
(tabFoldercrmCompany2Scr,SWT.NONE);
createCSvisiblecrmCompany2Scr();
createCShiddencrmCompany2Scr();
tabItemVisiblecrmCompany2Scr.setText("workplace");
tabItemHiddencrmCompany2Scr.setText("hidden-always");
tabItemVisiblecrmCompany2Scr.setControl(CSvisiblecrmCompany2 ScrSC );
tabItemHiddencrmCompany2Scr.setControl(CShiddencrmCompany2Sc rSC );
}

private void createCShiddencrmCompany2Scr() {
// Create the ScrolledComposite to scroll horizontally and vertically
CShiddencrmCompany2ScrSC = new
ScrolledComposite(tabFoldercrmCompany2Scr,SWT.H_SCROLL | SWT.V_SCROLL);
CShiddencrmCompany2ScrSC.setBounds(0,0,750,550);
// Create a child composite to hold the controls
CShiddencrmCompany2Scr = new Composite(CShiddencrmCompany2ScrSC,SWT.NONE);
CShiddencrmCompany2Scr.setBounds(tabFoldercrmCompany2Scr.get Bounds().x,tabFoldercrmCompany2Scr.getBounds().y,tabFoldercr mCompany2Scr.getBounds().width,tabFoldercrmCompany2Scr.getBo unds().height);
id = new Label (CShiddencrmCompany2Scr,SWT.LEFT );
id.setBounds(new org.eclipse.swt.graphics.Rectangle(40, 31,(int) (66),
(int) (14)));
id.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
id.setVisible(true);

branchId = new Label (CShiddencrmCompany2Scr,SWT.LEFT );
branchId.setBounds(new org.eclipse.swt.graphics.Rectangle(115, 31,(int)
(66), (int) (14)));
branchId.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
branchId.setVisible(true);

version = new Label (CShiddencrmCompany2Scr,SWT.LEFT );
version.setBounds(new org.eclipse.swt.graphics.Rectangle(189, 31,(int)
(66), (int) (14)));
version.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
version.setVisible(true);

modDate = new Label (CShiddencrmCompany2Scr,SWT.LEFT );
modDate.setBounds(new org.eclipse.swt.graphics.Rectangle(435, 31,(int)
(60), (int) (14)));
modDate.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
modDate.setVisible(true);

createDate = new Label (CShiddencrmCompany2Scr,SWT.LEFT );
createDate.setBounds(new org.eclipse.swt.graphics.Rectangle(503,
31,(int) (60), (int) (14)));
createDate.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
createDate.setVisible(true);

perId = new TableColumn (B1gen,SWT.LEFT);
perId.setWidth((int)(6 *11) + 15 );
perId.setWidth(0);
perId.setResizable(false);
perId.setText("Per_id");

name5 = new TableColumn (B1gen,SWT.LEFT);
name5.setWidth((int)(6 *33) + 15 );
name5.setWidth(0);
name5.setResizable(false);
name5.setText("Name");

firstname = new TableColumn (B1gen,SWT.LEFT);
firstname.setWidth((int)(6 *33) + 15 );
firstname.setWidth(0);
firstname.setResizable(false);
firstname.setText("Firstname");

sex = new TableColumn (B1gen,SWT.LEFT);
sex.setWidth((int)(6 *1) + 15 );
sex.setWidth(0);
sex.setResizable(false);
sex.setText("Sex");

CShiddencrmCompany2ScrSC.setContent(CShiddencrmCompany2Scr);
CShiddencrmCompany2ScrSC.setMinSize((int)(6*143.50) + 10
,(int)(14*30.36) + 35 );
CShiddencrmCompany2ScrSC.setExpandHorizontal(true);
CShiddencrmCompany2ScrSC.setExpandVertical(true);
}
private void createCSvisiblecrmCompany2Scr() {
// Create the ScrolledComposite to scroll horizontally and vertically
CSvisiblecrmCompany2ScrSC = new
ScrolledComposite(tabFoldercrmCompany2Scr,SWT.H_SCROLL | SWT.V_SCROLL);
CSvisiblecrmCompany2ScrSC.setBounds(0,0,750,550);
// Create a child composite to hold the controls
CSvisiblecrmCompany2Scr = new Composite(CSvisiblecrmCompany2ScrSC,SWT.NONE);
CSvisiblecrmCompany2Scr.setBounds(tabFoldercrmCompany2Scr.ge tBounds().x,tabFoldercrmCompany2Scr.getBounds().y,tabFolderc rmCompany2Scr.getBounds().width,tabFoldercrmCompany2Scr.getB ounds().height);
// END of TabDecks
// END of TabCards
B1gencs = new Composite (CSvisiblecrmCompany2Scr,SWT.NONE);
B1gencs.setBounds(new org.eclipse.swt.graphics.Rectangle(6, 134,(int)
(471), (int) (188)));
B1gen = new Table (B1gencs,SWT.SINGLE | SWT.BORDER | SWT.H_SCROLL |
SWT.V_SCROLL | SWT.FULL_SELECTION | SWT.HIDE_SELECTION);
B1gen.setBounds(new org.eclipse.swt.graphics.Rectangle(0, 0,(int) (471),
(int) (188)));
B1gen.setLinesVisible(true);
B1gen.setHeaderVisible(true);

// END of GridFrames
lbPerson = new TableColumn (B1gen,SWT.LEFT);
lbPerson.setWidth((int)(6 *60) + 15 );


// END of GridFrameColumns
dlScreen = new Label (CSvisiblecrmCompany2Scr,SWT.LEFT );
dlScreen.setBounds(new org.eclipse.swt.graphics.Rectangle(0, 0,(int)
(858), (int) (25)));
dlScreen.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",16,SWT.BOLD));
dlScreen.setText("Company");

K3employee = new Link (CSvisiblecrmCompany2Scr,SWT.NULL );
K3employee.setBounds(new org.eclipse.swt.graphics.Rectangle(275,
36,(int) (96), (int) (14)));
K3employee.setVisible(false);
K3employee.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
K3employee.setText("company employee");

K6employee = new Link (CSvisiblecrmCompany2Scr,SWT.NULL );
K6employee.setBounds(new org.eclipse.swt.graphics.Rectangle(275,
50,(int) (90), (int) (14)));
K6employee.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
K6employee.setVisible(false);
K6employee.setText("employee person");

name1 = new Text (CSvisiblecrmCompany2Scr,SWT.LEFT | SWT.BORDER );
name1.setBounds(new org.eclipse.swt.graphics.Rectangle(46, 73,(int)
(255), (int) (26)));
name1.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",10,SWT.NORMAL));

name2 = new Text (CSvisiblecrmCompany2Scr,SWT.LEFT | SWT.BORDER );
name2.setBounds(new org.eclipse.swt.graphics.Rectangle(46, 101,(int)
(255), (int) (26)));
name2.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",10,SWT.NORMAL));

LName1 = new Label (CSvisiblecrmCompany2Scr,SWT.LEFT );
LName1.setBounds(new org.eclipse.swt.graphics.Rectangle(6, 78,(int)
(34), (int) (13)));
LName1.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
LName1.setText("Name1");

LName2 = new Label (CSvisiblecrmCompany2Scr,SWT.LEFT );
LName2.setBounds(new org.eclipse.swt.graphics.Rectangle(6, 106,(int)
(34), (int) (13)));
LName2.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
LName2.setText("Name2");

pbSelect = new Button(CSvisiblecrmCompany2Scr,SWT.BORDER);
pbSelect.setBounds(new org.eclipse.swt.graphics.Rectangle(6, 400,(int)
(200), (int) (20)));
pbSelect.setText("method: select()");
pbSelect.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
pbSelect.addMouseListener(new MouseListener() {
public void mouseDown(MouseEvent e) {
}

public void mouseUp(MouseEvent e) {}

public void mouseDoubleClick(MouseEvent e) {}
}
);

CSvisiblecrmCompany2ScrSC.setContent(CSvisiblecrmCompany2Scr );
CSvisiblecrmCompany2ScrSC.setMinSize((int)(6*143.50) + 10
,(int)(14*30.36) + 35 );
CSvisiblecrmCompany2ScrSC.setExpandHorizontal(true);
CSvisiblecrmCompany2ScrSC.setExpandVertical(true);

}
public void setFocus() {
// viewer.getControl().setFocus();
}
/**
* This is a callback that will allow us to create the viewer and initialize
* it.
*/
public void createPartControl(Composite scanner) {
Composite crmCompany2Scr = scanner;
createtabFoldercrmCompany2Scr(crmCompany2Scr);
}
public static void main(String[] args) {
org.eclipse.swt.widgets.Display display =
org.eclipse.swt.widgets.Display.getDefault();
crmCompany2 jClasscrmCompany2 = new crmCompany2();
jClasscrmCompany2.createcrmCompany2Scr();
jClasscrmCompany2.crmCompany2Scr.open();
while (!jClasscrmCompany2.crmCompany2Scr.isDisposed()) {
if (!display.readAndDispatch ()) {display.sleep();}
}
display.dispose ();
}
}


Rich Kulp schrieb:
> I was able to produce the first problem with labels not showing up.
> Please open a bugzilla against VE component SWT and attach the source
> crmLogin to it.
>
> I don't know what caused the trace exception you first showed because
> you didn't include the code for the shell that wouldn't start at all.
> Please append the shell that failed so we can see it too.
>
Re: Some problems with the VE 1.1 and Eclipse 3.1 [message #610033 is a reply to message #100303] Wed, 27 July 2005 07:53 Go to previous message
Flik is currently offline FlikFriend
Messages: 51
Registered: July 2009
Member
hey Sri,

thanks for your code!

I have compare it with my own one and copy the changes to it.

Now I can see the fields and their contents - BUT I cannot edit them
with drag&drop.

All I can do is to click on the java-beans-window to select a specific
widget. But I cannot click on the widget itself in the drawn ve-area.

Another thing is that all widgets are displayed within a viewpart. This
is exactly what i want: that's why i had uses swt shell and viewpart
within one file.... (swt shell -> editing with VE && viewpart -> working
with Eclipse Runtime)
(In the past the ve had shown me an empty view part and an SWT-area for
editing the widgets.)

So, this is now pretty cool, but unfortunatly i cannot edit this
viewpart directly within the editor (see above)

Can you please try my attached file?

thanks

Flik

import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.TabFolder;
import org.eclipse.swt.widgets.TabItem;
import org.eclipse.swt.widgets.Text;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Combo;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.widgets.TableItem;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.events.MouseEvent;
import org.eclipse.swt.events.MouseListener;
import org.eclipse.swt.events.VerifyEvent;
import org.eclipse.swt.events.VerifyListener;
import org.eclipse.ui.part.ViewPart;
import org.eclipse.jface.action.IMenuManager;
import org.eclipse.jface.action.IToolBarManager;
import java.io.FileNotFoundException;
import org.eclipse.swt.custom.ScrolledComposite;


public class crmLogin extends ViewPart {
private Shell crmLoginScr = null;
private TabFolder tabFoldercrmLoginScr = null;
private TabItem tabItemVisiblecrmLoginScr = null;
private Composite CSvisiblecrmLoginScr = null;
private TabItem tabItemHiddencrmLoginScr = null;
private Composite CShiddencrmLoginScr = null;
private ScrolledComposite CSvisiblecrmLoginScrSC = null;
private ScrolledComposite CShiddencrmLoginScrSC = null;
TableItem tabitem;
private Label F1gen = null;
private Combo clientOM = null;
private Text login = null;
private Text password = null;
private Label userid = null;
private Label clientid = null;
private Button loginPb = null;
private Label personid = null;
private Label dlScreen = null;
private Label LLogin = null;
private Label LPassword = null;

private Composite crmLoginScr2;


/*private void createcrmLoginScr() {
crmLoginScr = new Shell (); // @jve:decl-index=0:visual-constraint="10,10"
crmLoginScr.setText("Anmeldung");
crmLoginScr.setSize(new org.eclipse.swt.graphics.Point((int) (6*41.17) +
10, (int) (14*12.07) + 35));
createtabFoldercrmLoginScr(crmLoginScr);
}
*/
private void createtabFoldercrmLoginScr() {
tabFoldercrmLoginScr = new TabFolder(crmLoginScr2,SWT.BOTTOM);
tabFoldercrmLoginScr.setBounds(new
org.eclipse.swt.graphics.Rectangle(0,0,(int) (6*41.17) + 10, (int)
(14*12.07) + 35 ));
TabItem tabItemVisiblecrmLoginScr = new TabItem
(tabFoldercrmLoginScr,SWT.NONE);
TabItem tabItemHiddencrmLoginScr = new TabItem
(tabFoldercrmLoginScr,SWT.NONE);
createCSvisiblecrmLoginScr();
createCShiddencrmLoginScr();
tabItemVisiblecrmLoginScr.setText("workplace");
tabItemHiddencrmLoginScr.setText("hidden-always");
tabItemVisiblecrmLoginScr.setControl(CSvisiblecrmLoginScrSC );
tabItemHiddencrmLoginScr.setControl(CShiddencrmLoginScrSC );
}

private void createCShiddencrmLoginScr() {
// Create the ScrolledComposite to scroll horizontally and vertically
CShiddencrmLoginScrSC = new
ScrolledComposite(tabFoldercrmLoginScr,SWT.H_SCROLL | SWT.V_SCROLL);
CShiddencrmLoginScrSC.setBounds(0,0,750,550);
// Create a child composite to hold the controls
CShiddencrmLoginScr = new Composite(CShiddencrmLoginScrSC,SWT.NONE);
CShiddencrmLoginScr.setBounds(tabFoldercrmLoginScr.getBounds ().x,tabFoldercrmLoginScr.getBounds().y,tabFoldercrmLoginScr .getBounds().width,tabFoldercrmLoginScr.getBounds().height);
F1gen = new Label (CShiddencrmLoginScr,SWT.LEFT );
F1gen.setBounds(new org.eclipse.swt.graphics.Rectangle(42, 36,(int)
(48), (int) (14)));
F1gen.setVisible(true);
F1gen.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
F1gen.setText("Mandant");

clientOM = new Combo (CShiddencrmLoginScr,SWT.DROP_DOWN | SWT.READ_ONLY );
clientOM.setBounds(new org.eclipse.swt.graphics.Rectangle(96, 32,(int)
(132), (int) (21)));
clientOM.setVisible(true);
clientOM.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));

userid = new Label (CShiddencrmLoginScr,SWT.LEFT );
userid.setBounds(new org.eclipse.swt.graphics.Rectangle(12, 120,(int)
(54), (int) (14)));
userid.setVisible(true);
userid.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));

clientid = new Label (CShiddencrmLoginScr,SWT.LEFT );
clientid.setBounds(new org.eclipse.swt.graphics.Rectangle(12, 134,(int)
(54), (int) (14)));
clientid.setVisible(true);
clientid.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));

personid = new Label (CShiddencrmLoginScr,SWT.LEFT );
personid.setBounds(new org.eclipse.swt.graphics.Rectangle(12, 148,(int)
(54), (int) (14)));
personid.setVisible(true);
personid.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));

CShiddencrmLoginScrSC.setContent(CShiddencrmLoginScr);
CShiddencrmLoginScrSC.setMinSize((int)(6*41.17) + 10 ,(int)(14*12.07) +
35 );
CShiddencrmLoginScrSC.setExpandHorizontal(true);
CShiddencrmLoginScrSC.setExpandVertical(true);
}
private void createCSvisiblecrmLoginScr() {
// Create the ScrolledComposite to scroll horizontally and vertically
CSvisiblecrmLoginScrSC = new
ScrolledComposite(tabFoldercrmLoginScr,SWT.H_SCROLL | SWT.V_SCROLL);
CSvisiblecrmLoginScrSC.setBounds(0,0,750,550);
// Create a child composite to hold the controls
CSvisiblecrmLoginScr = new Composite(CSvisiblecrmLoginScrSC,SWT.NONE);
CSvisiblecrmLoginScr.setBounds(tabFoldercrmLoginScr.getBound s().x,tabFoldercrmLoginScr.getBounds().y,tabFoldercrmLoginSc r.getBounds().width,tabFoldercrmLoginScr.getBounds().height) ;
// END of TabDecks
// END of TabCards
// END of GridFrames
// END of GridFrameColumns
login = new Text (CSvisiblecrmLoginScr,SWT.LEFT | SWT.BORDER );
login.setBounds(new org.eclipse.swt.graphics.Rectangle(96, 59,(int)
(100), (int) (23)));
login.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
login.setText("db2admin");

password = new Text (CSvisiblecrmLoginScr,SWT.LEFT | SWT.BORDER );
password.setBounds(new org.eclipse.swt.graphics.Rectangle(96, 87,(int)
(100), (int) (23)));
password.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
password.setEchoChar('*');
password.setText("db2admin");

loginPb = new Button (CSvisiblecrmLoginScr,SWT.CENTER );
loginPb.setBounds(new org.eclipse.swt.graphics.Rectangle(110, 129,(int)
(74), (int) (23)));
loginPb.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));

dlScreen = new Label (CSvisiblecrmLoginScr,SWT.LEFT );
dlScreen.setBounds(new org.eclipse.swt.graphics.Rectangle(2, 0,(int)
(244), (int) (24)));
dlScreen.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"MS Sans
Serif",16,SWT.BOLD));
dlScreen.setText("Login");

LLogin = new Label (CSvisiblecrmLoginScr,SWT.LEFT );
LLogin.setBounds(new org.eclipse.swt.graphics.Rectangle(39, 64,(int)
(54), (int) (13)));
LLogin.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
LLogin.setText("Username");

LPassword = new Label (CSvisiblecrmLoginScr,SWT.LEFT );
LPassword.setBounds(new org.eclipse.swt.graphics.Rectangle(40, 92,(int)
(52), (int) (13)));
LPassword.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
LPassword.setText("Passwort");

CSvisiblecrmLoginScrSC.setContent(CSvisiblecrmLoginScr);
CSvisiblecrmLoginScrSC.setMinSize((int)(6*41.17) + 10 ,(int)(14*12.07) +
35 );
CSvisiblecrmLoginScrSC.setExpandHorizontal(true);
CSvisiblecrmLoginScrSC.setExpandVertical(true);
}
public void setFocus() {
// viewer.getControl().setFocus();
}
/**
* This is a callback that will allow us to create the viewer and initialize
* it.
*/
public void createPartControl(Composite scanner) {
crmLoginScr2 = scanner;
createtabFoldercrmLoginScr();
}
public static void main(String[] args) {
org.eclipse.swt.widgets.Display display =
org.eclipse.swt.widgets.Display.getDefault();
crmLogin jClasscrmLogin = new crmLogin();
//jClasscrmLogin.createcrmLoginScr();
jClasscrmLogin.crmLoginScr.open();
while (!jClasscrmLogin.crmLoginScr.isDisposed()) {
if (!display.readAndDispatch ()) display.sleep();
}
display.dispose ();
}
} // @jve:decl-index=0:visual-constraint="30,11"


Sri Gunturi schrieb:
> Hi Flik,
> It turns out that the code was in a pattern not supported by VE 1.1.
> 1) For example a Composite (crmLoginScr) was defined as a local variable
> and codegen in VE 1.1 doesnt understand passing of arguments between
> methods - it only understands fields and local variables.
> 2) the name of the Shell and a composite to be the same.
> 3) You dont need the main() class and a shell in your source, to see how
> the view's contents look at runtime simply run the view as a 'Java Bean'.
>
> I have refactored the source so that VE can show the visuals correctly.
> Please make sure this works for you.
> Regards,
> Sri.
> ------------------------------------------------
Re: second problem -> NullPointerException [message #610034 is a reply to message #100433] Wed, 27 July 2005 10:33 Go to previous message
Flik is currently offline FlikFriend
Messages: 51
Registered: July 2009
Member
hello together,

i just have tried to use Sri's solution for my second problem!
I rewrite the code and ... the error is gone!

Everything is shown correclty now - except one thing:
all of the widgets are displayed within a view-part area that does not
'understand' drag&drop... i cannot click on a single widget and move it.
It is like the view-part area is disabled or so!
The only thing i can do is to click the entry in the java beans listbox.


thanks in advance

flik


p.s.: the table columns are also displayed incorrectly (little icons
under the view-part-area), but i have learned some time ago that this is
a known problem...


--------------------------------------
see code for example:

crmCompany2.java

import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.ScrolledComposite;
import org.eclipse.swt.events.MouseEvent;
import org.eclipse.swt.events.MouseListener;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Link;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.TabFolder;
import org.eclipse.swt.widgets.TabItem;
import org.eclipse.swt.widgets.Table;
import org.eclipse.swt.widgets.TableColumn;
import org.eclipse.swt.widgets.TableItem;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.part.ViewPart;
public class crmCompany2 extends ViewPart {
private Shell crmCompany2Scr = null;
private TabFolder tabFoldercrmCompany2Scr = null;
String[][] gridContentB1gen = new String[6][0];
private TabItem tabItemVisiblecrmCompany2Scr = null;
private Composite CSvisiblecrmCompany2Scr = null;
private TabItem tabItemHiddencrmCompany2Scr = null;
private Composite CShiddencrmCompany2Scr = null;
private ScrolledComposite CSvisiblecrmCompany2ScrSC = null;
private ScrolledComposite CShiddencrmCompany2ScrSC = null;
TableItem tabitem;
private Label dlScreen = null;
private Label id = null;
private Label branchId = null;
private Label version = null;
private Label modDate = null;
private Label createDate = null;
private Link K3employee = null;
private Link K6employee = null;
private Text name1 = null;
private Text name2 = null;
private TableColumn lbPerson = null;
private TableColumn perId = null;
private TableColumn name5 = null;
private TableColumn firstname = null;
private TableColumn sex = null;
private Label LName1 = null;
private Label LName2 = null;
private Composite B1gencs = null;
private Table B1gen = null;
private Button pbSelect = null;
private Composite crmCompany2ScrCS;
//private void createcrmCompany2Scr() {
//crmCompany2Scr = new Shell (); //
@jve:decl-index=0:visual-constraint="10,10"
//crmCompany2Scr.setText("");
//crmCompany2Scr.setSize(new org.eclipse.swt.graphics.Point((int)
(6*143.50) + 10, (int) (14*30.36) + 35));
//createtabFoldercrmCompany2Scr(crmCompany2Scr);
//}
private void createtabFoldercrmCompany2Scr() {

tabFoldercrmCompany2Scr = new TabFolder(crmCompany2ScrCS,SWT.BOTTOM);
tabFoldercrmCompany2Scr.setBounds(new
org.eclipse.swt.graphics.Rectangle(0,0,(int) (6*143.50) + 10, (int)
(14*30.36) + 35 ));
TabItem tabItemVisiblecrmCompany2Scr = new TabItem
(tabFoldercrmCompany2Scr,SWT.NONE);
TabItem tabItemHiddencrmCompany2Scr = new TabItem
(tabFoldercrmCompany2Scr,SWT.NONE);
createCSvisiblecrmCompany2Scr();
createCShiddencrmCompany2Scr();
tabItemVisiblecrmCompany2Scr.setText("workplace");
tabItemHiddencrmCompany2Scr.setText("hidden-always");
tabItemVisiblecrmCompany2Scr.setControl(CSvisiblecrmCompany2 ScrSC );
tabItemHiddencrmCompany2Scr.setControl(CShiddencrmCompany2Sc rSC );
}

private void createCShiddencrmCompany2Scr() {
// Create the ScrolledComposite to scroll horizontally and vertically
CShiddencrmCompany2ScrSC = new
ScrolledComposite(tabFoldercrmCompany2Scr,SWT.H_SCROLL | SWT.V_SCROLL);
CShiddencrmCompany2ScrSC.setBounds(0,0,750,550);
// Create a child composite to hold the controls
CShiddencrmCompany2Scr = new Composite(CShiddencrmCompany2ScrSC,SWT.NONE);
CShiddencrmCompany2Scr.setBounds(tabFoldercrmCompany2Scr.get Bounds().x,tabFoldercrmCompany2Scr.getBounds().y,tabFoldercr mCompany2Scr.getBounds().width,tabFoldercrmCompany2Scr.getBo unds().height);
id = new Label (CShiddencrmCompany2Scr,SWT.LEFT );
id.setBounds(new org.eclipse.swt.graphics.Rectangle(40, 31,(int) (66),
(int) (14)));
id.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),8,SWT.NORMAL));
id.setVisible(true);

branchId = new Label (CShiddencrmCompany2Scr,SWT.LEFT );
branchId.setBounds(new org.eclipse.swt.graphics.Rectangle(115, 31,(int)
(66), (int) (14)));
branchId.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),8,SWT.NORMAL));
branchId.setVisible(true);

version = new Label (CShiddencrmCompany2Scr,SWT.LEFT );
version.setBounds(new org.eclipse.swt.graphics.Rectangle(189, 31,(int)
(66), (int) (14)));
version.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),8,SWT.NORMAL));
version.setVisible(true);

modDate = new Label (CShiddencrmCompany2Scr,SWT.LEFT );
modDate.setBounds(new org.eclipse.swt.graphics.Rectangle(435, 31,(int)
(60), (int) (14)));
modDate.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),8,SWT.NORMAL));
modDate.setVisible(true);

createDate = new Label (CShiddencrmCompany2Scr,SWT.LEFT );
createDate.setBounds(new org.eclipse.swt.graphics.Rectangle(503,
31,(int) (60), (int) (14)));
createDate.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),8,SWT.NORMAL));
createDate.setVisible(true);

perId = new TableColumn (B1gen,SWT.LEFT);
perId.setWidth((int)(6 *11) + 15 );
perId.setWidth(0);
perId.setResizable(false);
perId.setText("Per_id");

name5 = new TableColumn (B1gen,SWT.LEFT);
name5.setWidth((int)(6 *33) + 15 );
name5.setWidth(0);
name5.setResizable(false);
name5.setText("Name");

firstname = new TableColumn (B1gen,SWT.LEFT);
firstname.setWidth((int)(6 *33) + 15 );
firstname.setWidth(0);
firstname.setResizable(false);
firstname.setText("Firstname");

sex = new TableColumn (B1gen,SWT.LEFT);
sex.setWidth((int)(6 *1) + 15 );
sex.setWidth(0);
sex.setResizable(false);
sex.setText("Sex");

CShiddencrmCompany2ScrSC.setContent(CShiddencrmCompany2Scr);
CShiddencrmCompany2ScrSC.setMinSize((int)(6*143.50) + 10
,(int)(14*30.36) + 35 );
CShiddencrmCompany2ScrSC.setExpandHorizontal(true);
CShiddencrmCompany2ScrSC.setExpandVertical(true);
}
private void createCSvisiblecrmCompany2Scr() {
// Create the ScrolledComposite to scroll horizontally and vertically
CSvisiblecrmCompany2ScrSC = new
ScrolledComposite(tabFoldercrmCompany2Scr,SWT.H_SCROLL | SWT.V_SCROLL);
CSvisiblecrmCompany2ScrSC.setBounds(0,0,750,550);
// Create a child composite to hold the controls
CSvisiblecrmCompany2Scr = new Composite(CSvisiblecrmCompany2ScrSC,SWT.NONE);
CSvisiblecrmCompany2Scr.setBounds(tabFoldercrmCompany2Scr.ge tBounds().x,tabFoldercrmCompany2Scr.getBounds().y,tabFolderc rmCompany2Scr.getBounds().width,tabFoldercrmCompany2Scr.getB ounds().height);
// END of TabDecks
// END of TabCards
B1gencs = new Composite (CSvisiblecrmCompany2Scr,SWT.NONE);
B1gencs.setBounds(new org.eclipse.swt.graphics.Rectangle(6, 134,(int)
(471), (int) (188)));
B1gen = new Table (B1gencs,SWT.SINGLE | SWT.BORDER | SWT.H_SCROLL |
SWT.V_SCROLL | SWT.FULL_SELECTION | SWT.HIDE_SELECTION);
B1gen.setBounds(new org.eclipse.swt.graphics.Rectangle(0, 0,(int) (471),
(int) (188)));
B1gen.setLinesVisible(true);
B1gen.setHeaderVisible(true);

// END of GridFrames
lbPerson = new TableColumn (B1gen,SWT.LEFT);
lbPerson.setWidth((int)(6 *60) + 15 );


// END of GridFrameColumns
dlScreen = new Label (CSvisiblecrmCompany2Scr,SWT.LEFT );
dlScreen.setBounds(new org.eclipse.swt.graphics.Rectangle(0, 0,(int)
(858), (int) (25)));
dlScreen.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),16,SWT.BOLD));
dlScreen.setText("Company");

K3employee = new Link (CSvisiblecrmCompany2Scr,SWT.NULL );
K3employee.setBounds(new org.eclipse.swt.graphics.Rectangle(275,
36,(int) (96), (int) (14)));
K3employee.setVisible(false);
K3employee.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),8,SWT.NORMAL));
K3employee.setText("company employee");

K6employee = new Link (CSvisiblecrmCompany2Scr,SWT.NULL );
K6employee.setBounds(new org.eclipse.swt.graphics.Rectangle(275,
50,(int) (90), (int) (14)));
K6employee.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),8,SWT.NORMAL));
K6employee.setVisible(false);
K6employee.setText("employee person");

name1 = new Text (CSvisiblecrmCompany2Scr,SWT.LEFT | SWT.BORDER );
name1.setBounds(new org.eclipse.swt.graphics.Rectangle(46, 73,(int)
(255), (int) (26)));
name1.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),10,SWT.NORMAL));

name2 = new Text (CSvisiblecrmCompany2Scr,SWT.LEFT | SWT.BORDER );
name2.setBounds(new org.eclipse.swt.graphics.Rectangle(46, 101,(int)
(255), (int) (26)));
name2.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),10,SWT.NORMAL));

LName1 = new Label (CSvisiblecrmCompany2Scr,SWT.LEFT );
LName1.setBounds(new org.eclipse.swt.graphics.Rectangle(6, 78,(int)
(34), (int) (13)));
LName1.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),8,SWT.NORMAL));
LName1.setText("Name1");

LName2 = new Label (CSvisiblecrmCompany2Scr,SWT.LEFT );
LName2.setBounds(new org.eclipse.swt.graphics.Rectangle(6, 106,(int)
(34), (int) (13)));
LName2.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),8,SWT.NORMAL));
LName2.setText("Name2");

pbSelect = new Button(CSvisiblecrmCompany2Scr,SWT.BORDER);
pbSelect.setBounds(new org.eclipse.swt.graphics.Rectangle(6, 400,(int)
(200), (int) (20)));
pbSelect.setText("method: select()");
pbSelect.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),8,SWT.NORMAL));
pbSelect.addMouseListener(new MouseListener() {
public void mouseDown(MouseEvent e) {
}

public void mouseUp(MouseEvent e) {}

public void mouseDoubleClick(MouseEvent e) {}
}
);

CSvisiblecrmCompany2ScrSC.setContent(CSvisiblecrmCompany2Scr );
CSvisiblecrmCompany2ScrSC.setMinSize((int)(6*143.50) + 10
,(int)(14*30.36) + 35 );
CSvisiblecrmCompany2ScrSC.setExpandHorizontal(true);
CSvisiblecrmCompany2ScrSC.setExpandVertical(true);

}
public void setFocus() {
// viewer.getControl().setFocus();
}
/**
* This is a callback that will allow us to create the viewer and initialize
* it.
*/
public void createPartControl(Composite scanner) {
crmCompany2ScrCS = scanner;
createtabFoldercrmCompany2Scr();
}
public static void main(String[] args) {
org.eclipse.swt.widgets.Display display =
org.eclipse.swt.widgets.Display.getDefault();
crmCompany2 jClasscrmCompany2 = new crmCompany2();
//jClasscrmCompany2.createcrmCompany2Scr();
jClasscrmCompany2.crmCompany2Scr.open();
while (!jClasscrmCompany2.crmCompany2Scr.isDisposed()) {
if (!display.readAndDispatch ()) {display.sleep();}
}
display.dispose ();
}
}


Flik schrieb:
> hello rich,
>
> my second problem was the issue with the 'NullPointerException' when
> loading my file in the visual editor.
>
> I only get the message and the screen is blank!
>
> thanks
>
> Flik
>
> see file crmCompany2.java
> ---------------------------------
>
> import org.eclipse.swt.SWT;
> import org.eclipse.swt.custom.ScrolledComposite;
> import org.eclipse.swt.events.MouseEvent;
> import org.eclipse.swt.events.MouseListener;
> import org.eclipse.swt.graphics.Font;
> import org.eclipse.swt.widgets.Button;
> import org.eclipse.swt.widgets.Composite;
> import org.eclipse.swt.widgets.Label;
> import org.eclipse.swt.widgets.Link;
> import org.eclipse.swt.widgets.Shell;
> import org.eclipse.swt.widgets.TabFolder;
> import org.eclipse.swt.widgets.TabItem;
> import org.eclipse.swt.widgets.Table;
> import org.eclipse.swt.widgets.TableColumn;
> import org.eclipse.swt.widgets.TableItem;
> import org.eclipse.swt.widgets.Text;
> import org.eclipse.ui.part.ViewPart;
> public class crmCompany2 extends ViewPart {
> private Shell crmCompany2Scr = null;
> private TabFolder tabFoldercrmCompany2Scr = null;
> String[][] gridContentB1gen = new String[6][0];
> private TabItem tabItemVisiblecrmCompany2Scr = null;
> private Composite CSvisiblecrmCompany2Scr = null;
> private TabItem tabItemHiddencrmCompany2Scr = null;
> private Composite CShiddencrmCompany2Scr = null;
> private ScrolledComposite CSvisiblecrmCompany2ScrSC = null;
> private ScrolledComposite CShiddencrmCompany2ScrSC = null;
> TableItem tabitem;
> private Label dlScreen = null;
> private Label id = null;
> private Label branchId = null;
> private Label version = null;
> private Label modDate = null;
> private Label createDate = null;
> private Link K3employee = null;
> private Link K6employee = null;
> private Text name1 = null;
> private Text name2 = null;
> private TableColumn lbPerson = null;
> private TableColumn perId = null;
> private TableColumn name5 = null;
> private TableColumn firstname = null;
> private TableColumn sex = null;
> private Label LName1 = null;
> private Label LName2 = null;
> private Composite B1gencs = null;
> private Table B1gen = null;
> private Button pbSelect = null;
> private void createcrmCompany2Scr() {
> crmCompany2Scr = new Shell (); //
> @jve:decl-index=0:visual-constraint="10,10"
> crmCompany2Scr.setText("");
> crmCompany2Scr.setSize(new org.eclipse.swt.graphics.Point((int)
> (6*143.50) + 10, (int) (14*30.36) + 35));
> createtabFoldercrmCompany2Scr(crmCompany2Scr);
> }
> private void createtabFoldercrmCompany2Scr(Composite crmCompany2Scr) {
>
> tabFoldercrmCompany2Scr = new TabFolder(crmCompany2Scr,SWT.BOTTOM);
> tabFoldercrmCompany2Scr.setBounds(new
> org.eclipse.swt.graphics.Rectangle(0,0,(int) (6*143.50) + 10, (int)
> (14*30.36) + 35 ));
> TabItem tabItemVisiblecrmCompany2Scr = new TabItem
> (tabFoldercrmCompany2Scr,SWT.NONE);
> TabItem tabItemHiddencrmCompany2Scr = new TabItem
> (tabFoldercrmCompany2Scr,SWT.NONE);
> createCSvisiblecrmCompany2Scr();
> createCShiddencrmCompany2Scr();
> tabItemVisiblecrmCompany2Scr.setText("workplace");
> tabItemHiddencrmCompany2Scr.setText("hidden-always");
> tabItemVisiblecrmCompany2Scr.setControl(CSvisiblecrmCompany2 ScrSC );
> tabItemHiddencrmCompany2Scr.setControl(CShiddencrmCompany2Sc rSC );
> }
>
> private void createCShiddencrmCompany2Scr() {
> // Create the ScrolledComposite to scroll horizontally and vertically
> CShiddencrmCompany2ScrSC = new
> ScrolledComposite(tabFoldercrmCompany2Scr,SWT.H_SCROLL | SWT.V_SCROLL);
> CShiddencrmCompany2ScrSC.setBounds(0,0,750,550);
> // Create a child composite to hold the controls
> CShiddencrmCompany2Scr = new Composite(CShiddencrmCompany2ScrSC,SWT.NONE);
> CShiddencrmCompany2Scr.setBounds(tabFoldercrmCompany2Scr.get Bounds().x,tabFoldercrmCompany2Scr.getBounds().y,tabFoldercr mCompany2Scr.getBounds().width,tabFoldercrmCompany2Scr.getBo unds().height);
>
> id = new Label (CShiddencrmCompany2Scr,SWT.LEFT );
> id.setBounds(new org.eclipse.swt.graphics.Rectangle(40, 31,(int) (66),
> (int) (14)));
> id.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
> id.setVisible(true);
>
> branchId = new Label (CShiddencrmCompany2Scr,SWT.LEFT );
> branchId.setBounds(new org.eclipse.swt.graphics.Rectangle(115, 31,(int)
> (66), (int) (14)));
> branchId.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
> branchId.setVisible(true);
>
> version = new Label (CShiddencrmCompany2Scr,SWT.LEFT );
> version.setBounds(new org.eclipse.swt.graphics.Rectangle(189, 31,(int)
> (66), (int) (14)));
> version.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
> version.setVisible(true);
>
> modDate = new Label (CShiddencrmCompany2Scr,SWT.LEFT );
> modDate.setBounds(new org.eclipse.swt.graphics.Rectangle(435, 31,(int)
> (60), (int) (14)));
> modDate.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
> modDate.setVisible(true);
>
> createDate = new Label (CShiddencrmCompany2Scr,SWT.LEFT );
> createDate.setBounds(new org.eclipse.swt.graphics.Rectangle(503,
> 31,(int) (60), (int) (14)));
> createDate.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
> createDate.setVisible(true);
>
> perId = new TableColumn (B1gen,SWT.LEFT);
> perId.setWidth((int)(6 *11) + 15 );
> perId.setWidth(0);
> perId.setResizable(false);
> perId.setText("Per_id");
>
> name5 = new TableColumn (B1gen,SWT.LEFT);
> name5.setWidth((int)(6 *33) + 15 );
> name5.setWidth(0);
> name5.setResizable(false);
> name5.setText("Name");
>
> firstname = new TableColumn (B1gen,SWT.LEFT);
> firstname.setWidth((int)(6 *33) + 15 );
> firstname.setWidth(0);
> firstname.setResizable(false);
> firstname.setText("Firstname");
>
> sex = new TableColumn (B1gen,SWT.LEFT);
> sex.setWidth((int)(6 *1) + 15 );
> sex.setWidth(0);
> sex.setResizable(false);
> sex.setText("Sex");
>
> CShiddencrmCompany2ScrSC.setContent(CShiddencrmCompany2Scr);
> CShiddencrmCompany2ScrSC.setMinSize((int)(6*143.50) + 10
> ,(int)(14*30.36) + 35 );
> CShiddencrmCompany2ScrSC.setExpandHorizontal(true);
> CShiddencrmCompany2ScrSC.setExpandVertical(true);
> }
> private void createCSvisiblecrmCompany2Scr() {
> // Create the ScrolledComposite to scroll horizontally and vertically
> CSvisiblecrmCompany2ScrSC = new
> ScrolledComposite(tabFoldercrmCompany2Scr,SWT.H_SCROLL | SWT.V_SCROLL);
> CSvisiblecrmCompany2ScrSC.setBounds(0,0,750,550);
> // Create a child composite to hold the controls
> CSvisiblecrmCompany2Scr = new
> Composite(CSvisiblecrmCompany2ScrSC,SWT.NONE);
> CSvisiblecrmCompany2Scr.setBounds(tabFoldercrmCompany2Scr.ge tBounds().x,tabFoldercrmCompany2Scr.getBounds().y,tabFolderc rmCompany2Scr.getBounds().width,tabFoldercrmCompany2Scr.getB ounds().height);
>
> // END of TabDecks
> // END of TabCards
> B1gencs = new Composite (CSvisiblecrmCompany2Scr,SWT.NONE);
> B1gencs.setBounds(new org.eclipse.swt.graphics.Rectangle(6, 134,(int)
> (471), (int) (188)));
> B1gen = new Table (B1gencs,SWT.SINGLE | SWT.BORDER | SWT.H_SCROLL |
> SWT.V_SCROLL | SWT.FULL_SELECTION | SWT.HIDE_SELECTION);
> B1gen.setBounds(new org.eclipse.swt.graphics.Rectangle(0, 0,(int) (471),
> (int) (188)));
> B1gen.setLinesVisible(true);
> B1gen.setHeaderVisible(true);
>
> // END of GridFrames
> lbPerson = new TableColumn (B1gen,SWT.LEFT);
> lbPerson.setWidth((int)(6 *60) + 15 );
>
>
> // END of GridFrameColumns
> dlScreen = new Label (CSvisiblecrmCompany2Scr,SWT.LEFT );
> dlScreen.setBounds(new org.eclipse.swt.graphics.Rectangle(0, 0,(int)
> (858), (int) (25)));
> dlScreen.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",16,SWT.BOLD));
> dlScreen.setText("Company");
>
> K3employee = new Link (CSvisiblecrmCompany2Scr,SWT.NULL );
> K3employee.setBounds(new org.eclipse.swt.graphics.Rectangle(275,
> 36,(int) (96), (int) (14)));
> K3employee.setVisible(false);
> K3employee.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
> K3employee.setText("company employee");
>
> K6employee = new Link (CSvisiblecrmCompany2Scr,SWT.NULL );
> K6employee.setBounds(new org.eclipse.swt.graphics.Rectangle(275,
> 50,(int) (90), (int) (14)));
> K6employee.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
> K6employee.setVisible(false);
> K6employee.setText("employee person");
>
> name1 = new Text (CSvisiblecrmCompany2Scr,SWT.LEFT | SWT.BORDER );
> name1.setBounds(new org.eclipse.swt.graphics.Rectangle(46, 73,(int)
> (255), (int) (26)));
> name1.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",10,SWT.NORMAL));
>
> name2 = new Text (CSvisiblecrmCompany2Scr,SWT.LEFT | SWT.BORDER );
> name2.setBounds(new org.eclipse.swt.graphics.Rectangle(46, 101,(int)
> (255), (int) (26)));
> name2.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",10,SWT.NORMAL));
>
> LName1 = new Label (CSvisiblecrmCompany2Scr,SWT.LEFT );
> LName1.setBounds(new org.eclipse.swt.graphics.Rectangle(6, 78,(int)
> (34), (int) (13)));
> LName1.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
> LName1.setText("Name1");
>
> LName2 = new Label (CSvisiblecrmCompany2Scr,SWT.LEFT );
> LName2.setBounds(new org.eclipse.swt.graphics.Rectangle(6, 106,(int)
> (34), (int) (13)));
> LName2.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
> LName2.setText("Name2");
>
> pbSelect = new Button(CSvisiblecrmCompany2Scr,SWT.BORDER);
> pbSelect.setBounds(new org.eclipse.swt.graphics.Rectangle(6, 400,(int)
> (200), (int) (20)));
> pbSelect.setText("method: select()");
> pbSelect.setFont(new
> Font(org.eclipse.swt.widgets.Display.getDefault(),"Arial",8,SWT.NORMAL));
> pbSelect.addMouseListener(new MouseListener() {
> public void mouseDown(MouseEvent e) {
> }
>
> public void mouseUp(MouseEvent e) {}
>
> public void mouseDoubleClick(MouseEvent e) {}
> }
> );
>
> CSvisiblecrmCompany2ScrSC.setContent(CSvisiblecrmCompany2Scr );
> CSvisiblecrmCompany2ScrSC.setMinSize((int)(6*143.50) + 10
> ,(int)(14*30.36) + 35 );
> CSvisiblecrmCompany2ScrSC.setExpandHorizontal(true);
> CSvisiblecrmCompany2ScrSC.setExpandVertical(true);
>
> }
> public void setFocus() {
> // viewer.getControl().setFocus();
> }
> /**
> * This is a callback that will allow us to create the viewer and initialize
> * it.
> */
> public void createPartControl(Composite scanner) {
> Composite crmCompany2Scr = scanner;
> createtabFoldercrmCompany2Scr(crmCompany2Scr);
> }
> public static void main(String[] args) {
> org.eclipse.swt.widgets.Display display =
> org.eclipse.swt.widgets.Display.getDefault();
> crmCompany2 jClasscrmCompany2 = new crmCompany2();
> jClasscrmCompany2.createcrmCompany2Scr();
> jClasscrmCompany2.crmCompany2Scr.open();
> while (!jClasscrmCompany2.crmCompany2Scr.isDisposed()) {
> if (!display.readAndDispatch ()) {display.sleep();}
> }
> display.dispose ();
> }
> }
>
>
> Rich Kulp schrieb:
>
>> I was able to produce the first problem with labels not showing up.
>> Please open a bugzilla against VE component SWT and attach the source
>> crmLogin to it.
>>
>> I don't know what caused the trace exception you first showed because
>> you didn't include the code for the shell that wouldn't start at all.
>> Please append the shell that failed so we can see it too.
>>
problem solved *fixed* [message #610035 is a reply to message #100477] Wed, 27 July 2005 11:50 Go to previous message
Flik is currently offline FlikFriend
Messages: 51
Registered: July 2009
Member
hey,

i am sooo happy !!!! :-))))

all of my problems are solved!

-> the npe was 'killed' with SRI's code
-> the problem that VE could not edit the viewpart was the following:

i used: crmCompany2ScrCS = new Composite(scanner,SWT.NONE);
in stead of : crmCompany2ScrCS = scanner;

+ i have added : // @jve:decl-index=0:visual-constraint="10,10"
in the last line of my code..


thank you very much for your help

Flik

P.S.: i will close the bugzilla entry!

------

just for your interest: the file that works...

import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.ScrolledComposite;
import org.eclipse.swt.events.MouseEvent;
import org.eclipse.swt.events.MouseListener;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Link;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.TabFolder;
import org.eclipse.swt.widgets.TabItem;
import org.eclipse.swt.widgets.Table;
import org.eclipse.swt.widgets.TableColumn;
import org.eclipse.swt.widgets.TableItem;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.part.ViewPart;
public class crmCompany2 extends ViewPart {
private Shell crmCompany2Scr = null;
private TabFolder tabFoldercrmCompany2Scr = null;
String[][] gridContentB1gen = new String[6][0];
private TabItem tabItemVisiblecrmCompany2Scr = null;
private Composite CSvisiblecrmCompany2Scr = null;
private TabItem tabItemHiddencrmCompany2Scr = null;
private Composite CShiddencrmCompany2Scr = null;
private ScrolledComposite CSvisiblecrmCompany2ScrSC = null;
private ScrolledComposite CShiddencrmCompany2ScrSC = null;
TableItem tabitem;
private Label dlScreen = null;
private Label id = null;
private Label branchId = null;
private Label version = null;
private Label modDate = null;
private Label createDate = null;
private Link K3employee = null;
private Link K6employee = null;
private Text name1 = null;
private Text name2 = null;
private TableColumn lbPerson = null;
private TableColumn perId = null;
private TableColumn name5 = null;
private TableColumn firstname = null;
private TableColumn sex = null;
private Label LName1 = null;
private Label LName2 = null;
private Composite B1gencs = null;
private Table B1gen = null;
private Button pbSelect = null;
private Composite crmCompany2ScrCS;

private void createtabFoldercrmCompany2Scr() {

tabFoldercrmCompany2Scr = new TabFolder(crmCompany2ScrCS,SWT.BOTTOM);
tabFoldercrmCompany2Scr.setBounds(new
org.eclipse.swt.graphics.Rectangle(0,0,(int) (6*143.50) + 10, (int)
(14*30.36) + 35 ));
TabItem tabItemVisiblecrmCompany2Scr = new TabItem
(tabFoldercrmCompany2Scr,SWT.NONE);
TabItem tabItemHiddencrmCompany2Scr = new TabItem
(tabFoldercrmCompany2Scr,SWT.NONE);
createCSvisiblecrmCompany2Scr();
createCShiddencrmCompany2Scr();
tabItemVisiblecrmCompany2Scr.setText("workplace");
tabItemHiddencrmCompany2Scr.setText("hidden-always");
tabItemVisiblecrmCompany2Scr.setControl(CSvisiblecrmCompany2 ScrSC );
tabItemHiddencrmCompany2Scr.setControl(CShiddencrmCompany2Sc rSC );
}

private void createCShiddencrmCompany2Scr() {
// Create the ScrolledComposite to scroll horizontally and vertically
CShiddencrmCompany2ScrSC = new
ScrolledComposite(tabFoldercrmCompany2Scr,SWT.H_SCROLL | SWT.V_SCROLL);
CShiddencrmCompany2ScrSC.setBounds(0,0,750,550);
// Create a child composite to hold the controls
CShiddencrmCompany2Scr = new Composite(CShiddencrmCompany2ScrSC,SWT.NONE);
CShiddencrmCompany2Scr.setBounds(tabFoldercrmCompany2Scr.get Bounds().x,tabFoldercrmCompany2Scr.getBounds().y,tabFoldercr mCompany2Scr.getBounds().width,tabFoldercrmCompany2Scr.getBo unds().height);
id = new Label (CShiddencrmCompany2Scr,SWT.LEFT );
id.setBounds(new org.eclipse.swt.graphics.Rectangle(40, 31,(int) (66),
(int) (14)));
id.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),8,SWT.NORMAL));
id.setVisible(true);

branchId = new Label (CShiddencrmCompany2Scr,SWT.LEFT );
branchId.setBounds(new org.eclipse.swt.graphics.Rectangle(115, 31,(int)
(66), (int) (14)));
branchId.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),8,SWT.NORMAL));
branchId.setVisible(true);

version = new Label (CShiddencrmCompany2Scr,SWT.LEFT );
version.setBounds(new org.eclipse.swt.graphics.Rectangle(189, 31,(int)
(66), (int) (14)));
version.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),8,SWT.NORMAL));
version.setVisible(true);

modDate = new Label (CShiddencrmCompany2Scr,SWT.LEFT );
modDate.setBounds(new org.eclipse.swt.graphics.Rectangle(435, 31,(int)
(60), (int) (14)));
modDate.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),8,SWT.NORMAL));
modDate.setVisible(true);

createDate = new Label (CShiddencrmCompany2Scr,SWT.LEFT );
createDate.setBounds(new org.eclipse.swt.graphics.Rectangle(503,
31,(int) (60), (int) (14)));
createDate.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),8,SWT.NORMAL));
createDate.setVisible(true);

perId = new TableColumn (B1gen,SWT.LEFT);
perId.setWidth((int)(6 *11) + 15 );
perId.setWidth(0);
perId.setResizable(false);
perId.setText("Per_id");

name5 = new TableColumn (B1gen,SWT.LEFT);
name5.setWidth((int)(6 *33) + 15 );
name5.setWidth(0);
name5.setResizable(false);
name5.setText("Name");

firstname = new TableColumn (B1gen,SWT.LEFT);
firstname.setWidth((int)(6 *33) + 15 );
firstname.setWidth(0);
firstname.setResizable(false);
firstname.setText("Firstname");

sex = new TableColumn (B1gen,SWT.LEFT);
sex.setWidth((int)(6 *1) + 15 );
sex.setWidth(0);
sex.setResizable(false);
sex.setText("Sex");

CShiddencrmCompany2ScrSC.setContent(CShiddencrmCompany2Scr);
CShiddencrmCompany2ScrSC.setMinSize((int)(6*143.50) + 10
,(int)(14*30.36) + 35 );
CShiddencrmCompany2ScrSC.setExpandHorizontal(true);
CShiddencrmCompany2ScrSC.setExpandVertical(true);
}
private void createCSvisiblecrmCompany2Scr() {
// Create the ScrolledComposite to scroll horizontally and vertically
CSvisiblecrmCompany2ScrSC = new
ScrolledComposite(tabFoldercrmCompany2Scr,SWT.H_SCROLL | SWT.V_SCROLL);
CSvisiblecrmCompany2ScrSC.setBounds(0,0,750,550);
// Create a child composite to hold the controls
CSvisiblecrmCompany2Scr = new Composite(CSvisiblecrmCompany2ScrSC,SWT.NONE);
CSvisiblecrmCompany2Scr.setBounds(tabFoldercrmCompany2Scr.ge tBounds().x,tabFoldercrmCompany2Scr.getBounds().y,tabFolderc rmCompany2Scr.getBounds().width,tabFoldercrmCompany2Scr.getB ounds().height);
// END of TabDecks
// END of TabCards
B1gencs = new Composite (CSvisiblecrmCompany2Scr,SWT.NONE);
B1gencs.setBounds(new org.eclipse.swt.graphics.Rectangle(6, 134,(int)
(471), (int) (188)));
B1gen = new Table (B1gencs,SWT.SINGLE | SWT.BORDER | SWT.H_SCROLL |
SWT.V_SCROLL | SWT.FULL_SELECTION | SWT.HIDE_SELECTION);
B1gen.setBounds(new org.eclipse.swt.graphics.Rectangle(0, 0,(int) (471),
(int) (188)));
B1gen.setLinesVisible(true);
B1gen.setHeaderVisible(true);

// END of GridFrames
lbPerson = new TableColumn (B1gen,SWT.LEFT);
lbPerson.setWidth((int)(6 *60) + 15 );


// END of GridFrameColumns
dlScreen = new Label (CSvisiblecrmCompany2Scr,SWT.LEFT );
dlScreen.setBounds(new org.eclipse.swt.graphics.Rectangle(0, 0,(int)
(858), (int) (25)));
dlScreen.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),16,SWT.BOLD));
dlScreen.setText("Company");

K3employee = new Link (CSvisiblecrmCompany2Scr,SWT.NULL );
K3employee.setBounds(new org.eclipse.swt.graphics.Rectangle(275,
36,(int) (96), (int) (14)));
K3employee.setVisible(false);
K3employee.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),8,SWT.NORMAL));
K3employee.setText("company employee");

K6employee = new Link (CSvisiblecrmCompany2Scr,SWT.NULL );
K6employee.setBounds(new org.eclipse.swt.graphics.Rectangle(275,
50,(int) (90), (int) (14)));
K6employee.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),8,SWT.NORMAL));
K6employee.setVisible(false);
K6employee.setText("employee person");

name1 = new Text (CSvisiblecrmCompany2Scr,SWT.LEFT | SWT.BORDER );
name1.setBounds(new org.eclipse.swt.graphics.Rectangle(46, 73,(int)
(255), (int) (26)));
name1.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),10,SWT.NORMAL));

name2 = new Text (CSvisiblecrmCompany2Scr,SWT.LEFT | SWT.BORDER );
name2.setBounds(new org.eclipse.swt.graphics.Rectangle(46, 101,(int)
(255), (int) (26)));
name2.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),10,SWT.NORMAL));

LName1 = new Label (CSvisiblecrmCompany2Scr,SWT.LEFT );
LName1.setBounds(new org.eclipse.swt.graphics.Rectangle(6, 78,(int)
(34), (int) (13)));
LName1.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),8,SWT.NORMAL));
LName1.setText("Name1");

LName2 = new Label (CSvisiblecrmCompany2Scr,SWT.LEFT );
LName2.setBounds(new org.eclipse.swt.graphics.Rectangle(6, 106,(int)
(34), (int) (13)));
LName2.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),8,SWT.NORMAL));
LName2.setText("Name2");

pbSelect = new Button(CSvisiblecrmCompany2Scr,SWT.BORDER);
pbSelect.setBounds(new org.eclipse.swt.graphics.Rectangle(6, 400,(int)
(200), (int) (20)));
pbSelect.setText("method: select()");
pbSelect.setFont(new
Font(org.eclipse.swt.widgets.Display.getDefault(),JPSourceAc tion.returnFont( "text"),8,SWT.NORMAL));
pbSelect.addMouseListener(new MouseListener() {
public void mouseDown(MouseEvent e) {
}

public void mouseUp(MouseEvent e) {}

public void mouseDoubleClick(MouseEvent e) {}
}
);

CSvisiblecrmCompany2ScrSC.setContent(CSvisiblecrmCompany2Scr );
CSvisiblecrmCompany2ScrSC.setMinSize((int)(6*143.50) + 10
,(int)(14*30.36) + 35 );
CSvisiblecrmCompany2ScrSC.setExpandHorizontal(true);
CSvisiblecrmCompany2ScrSC.setExpandVertical(true);

}
public void setFocus() {
// viewer.getControl().setFocus();
}
/**
* This is a callback that will allow us to create the viewer and initialize
* it.
*/
public void createPartControl(Composite scanner) {
crmCompany2ScrCS = new Composite(scanner,SWT.NONE);
createtabFoldercrmCompany2Scr();
}
} // @jve:decl-index=0:visual-constraint="10,10"
Previous Topic:Also Problems to get Ve to work
Next Topic:Embedding VE questions
Goto Forum:
  


Current Time: Thu Sep 19 12:23:14 GMT 2024

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

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

Back to the top