コード例 #1
0
 /**
  * Creates this part using standard dialog widgets and adds it to the given composite.
  *
  * @param parent parent composite
  * @return generated instance of the table part
  */
 public static TargetContentsGroup createInDialog(Composite parent) {
   TargetContentsGroup contentTable = new TargetContentsGroup();
   contentTable.createDialogContents(parent);
   return contentTable;
 }
コード例 #2
0
 /**
  * Creates this part using the form toolkit and adds it to the given composite.
  *
  * @param parent parent composite
  * @param toolkit toolkit to create the widgets with
  * @return generated instance of the table part
  */
 public static TargetContentsGroup createInForm(Composite parent, FormToolkit toolkit) {
   TargetContentsGroup contentTable = new TargetContentsGroup();
   contentTable.createFormContents(parent, toolkit);
   return contentTable;
 }