It's all about the answers!

Ask a question

AbstractConfigurationElementEditor cannot find TeamForgePage


Steve White (4021213) | asked Feb 18 '11, 11:41 a.m.
Hi,
I'm attempting to extend Build.
I created a
ZBuildConfigurationEditorFactory implements IConfigurationElementEditorFactory

and

public class ZBuildConfigurationElementEditor extends
AbstractConfigurationElementEditor {
following the forum and rtc doc that are available.

The issue is that it cannot locate com.ibm.team.ui.editor.TeamFormPage which AbstractConfigurationElementEditor is based on.

In my plug-in dependencies there is no selection listed for com.ibm.team.ui so I cannot add it. Where is com.ibm.team.ui suppose to be and how can I get ti to appear in my dependency list so the code can use it and resolve the problem?

Regards, Steve

2 answers



permanent link
David Lafreniere (4.8k7) | answered Feb 18 '11, 3:01 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
Where is com.ibm.team.ui suppose to be
Regards, Steve


Hi Steve.

Assuming you download 'RTC-SDK-3.0' off Jazz.net...

The package 'com.ibm.team.ui.editor' can be found in RTC-SDK-3.0\plugins\com.ibm.team.jface_1.1.0.v20101110_2242.jar

permanent link
Steve White (4021213) | answered Feb 18 '11, 3:05 p.m.
Where is com.ibm.team.ui suppose to be
Regards, Steve


Hi Steve.

Assuming you download 'RTC-SDK-3.0' off Jazz.net...

The package 'com.ibm.team.ui.editor' can be found in RTC-SDK-3.0\plugins\com.ibm.team.jface_1.1.0.v20101110_2242.jar

David, thank-you. I just found out about the sdk earlier today and in progress of downloading it.
Regards, steve

Comments
Yehiel Glass commented Jul 24 '13, 6:03 a.m.

Hello steve,

I'm want to use build participant but need help on writing the ConfigurationElementEditorFactory1.java file.

I understand that the basic is:

package com.phoenix.build.participant.client;

import com.ibm.team.build.ui.editors.builddefinition.AbstractConfigurationElementEditor;
import com.ibm.team.build.ui.editors.builddefinition.IConfigurationElementEditorFactory;

public class ConfigurationElementEditorFactory1 implements IConfigurationElementEditorFactory {

 public ConfigurationElementEditorFactory1() {
  
  // TODO Auto-generated constructor stub
 }

 public AbstractConfigurationElementEditor createElementEditor(String elementId, String editorTitle) {
  // TODO Auto-generated method stub
  AbstractConfigurationElementEditor elementEditor= null;
  return elementEditor;
 }
}

Can you please write your file so I can understand how to make it ? (I need an example)

Thanks,

Yehiel


Steve White commented Jul 24 '13, 7:45 a.m.

public class ZBuildConfigurationEditorFactory implements IConfigurationElementEditorFactory
 {
    public AbstractConfigurationElementEditor createElementEditor(String arg0,
            String arg1)
{
        ZBuildConfigurationElementEditor editor = new ZBuildConfigurationElementEditor(arg0, arg1);
        return editor;
    }
}
public class ZBuildConfigurationElementEditor extends AbstractConfigurationElementEditor
{   
   public ZBuildConfigurationElementEditor( String elementId, String title )
   {      super( elementId, title );   }
   public void createContent( Composite parent, FormToolkit toolkit )
   {...}

Your answer


Register or to post your answer.