Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-swt-dev] Shell.setParent( canvas ) in X-Windows ?

Hi :-)
 
This is my first message here.
 
I’m starting development on a visual SWT form designer for eclipse.
Currently I’m using version 2.0.0 of eclipse.
 
What I’m doing is I have a Shell object inside a Canvas Composite
control in my custom Eclipse EditorPart.
I set the Shell’s parent to the panel inside the custom editor’s
initPartControls() method.
 
On windows the Shell is parented into the main panel fine, but on X it
isn’t been parented, that is the Shell opens fine, but it’s in the
Displays visual space.
 
Is this normal behaviour for X (Maybe this isn’t the proper design ?) I
have never programmed for X-Windows before.
Is there some special way I have to attach a Shell into a Composite
control to make it work on X ?
 
That brings me to another question.
I’m trying to use AST to do code generation. How do I get the source
generated from the AST object once I’ve added all my ASTNodes ?
(I know it’s not the correct group….still trying to get signed up. :-)




Back to the top