2 * Copyright 2000-2009 JetBrains s.r.o.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package com
.intellij
.uiDesigner
.make
;
18 import com
.intellij
.uiDesigner
.lw
.LwComponent
;
19 import com
.intellij
.uiDesigner
.lw
.LwSplitPane
;
20 import org
.jetbrains
.annotations
.NonNls
;
25 public class SplitPaneLayoutSourceGenerator
extends LayoutSourceGenerator
{
26 public void generateComponentLayout(final LwComponent component
,
27 final FormSourceCodeGenerator generator
,
28 final String variable
,
29 final String parentVariable
) {
30 @NonNls final String methodName
=
31 LwSplitPane
.POSITION_LEFT
.equals(component
.getCustomLayoutConstraints()) ?
35 generator
.startMethodCall(parentVariable
, methodName
);
36 generator
.pushVar(variable
);
37 generator
.endMethod();