Examples of RootElement


Examples of com.nirima.jenkins.repo.RootElement

    IMimeTypeResolver mimeTypeResolver;
    final RepositoryDirectory rootElement;

    public BridgeRepository(IMimeTypeResolver mimeTypeResolver)
    {
        this(new RootElement(),mimeTypeResolver);
    }
View Full Code Here

Examples of com.onpositive.commons.elements.RootElement

   
  }

 
  public void createPartControl(Composite parent) {
    RootElement el=new RootElement(parent);
    FormEditor fed=new FormEditor();
    fed.setText("Authentification");
    fed.setShowSeparator(true);
    ListEnumeratedValueSelector<AuthRecord>rs=new ListEnumeratedValueSelector<AuthRecord>();
    fed.add(rs);
    ButtonSelector bs=new ButtonSelector();
    bs.setText("Add User");
    ButtonSelector bs1=new ButtonSelector();
    bs1.setText("Remove User");
    ButtonSelector bs2=new ButtonSelector();
    bs2.setText("Change Password");
    el.add(fed);
  }
View Full Code Here

Examples of com.onpositive.commons.elements.RootElement

      // layout.marginHeight=0;
      owner.setLayout(layout);

      // Link la = new Link(owner, SWT.NONE);
      // la.setText("Add view of kind:");
      RootElement r = new RootElement(owner);
      r.setLayoutData(GridDataFactory.fillDefaults().grab(true, false)
          .create());
      GridLayout layout32 = new GridLayout(7, false);
      r.setLayout(layout32);
      layout32.marginHeight = 3;

      Binding bnd = new Binding("");

      // //\\\\
      // bnd.setValue(kind, null);
      // //\\\\\

      // bnd.setName("");
      // bnd.setRequired(true);

      Binding b = new Binding(this);
      b.setAutoCommit(true);
      OneLineTextElement<String> l = new OneLineTextElement<String>();
      l.setCaption("Display not more then:");
      Binding binding2 = b.getBinding("limit");
      binding2.setRealm(new Realm<String>("All", "10", "100", "500",
          "1000", "10000"));
      binding2.addCommitListener(new ICommitListener() {

        public void commitPerformed(ICommand command) {
          CTabItem selection = viewHolder.getSelection();
          if (selection != null) {
            BaseDataFacade bf = (BaseDataFacade) selection
                .getData();
            try {
              bf.setLimit(Integer.parseInt(limit));
            } catch (NumberFormatException e1) {
              bf.setLimit(-1);
            }
          }
        }
      });
      l.setBinding(binding2);
      l.setLayoutData(GridDataFactory.fillDefaults().hint(50, -1)
          .create());
      ComboEnumeratedValueSelector<IProject> v = new ComboEnumeratedValueSelector<IProject>();
      DisposeBindingListener.linkBindingLifeCycle(b, l);
      binding = new Binding("");
      binding.setRequired(true);

      binding.setName("Project:");
      projects = new Realm<IProject>();
      initProjects(projects);
      binding.setRealm(projects);
      v.setBinding(binding);
      if (projectString != null) {
        for (IProject p : projects) {
          if (p.getName().equals(projectString)) {
            setProject(JavaCore.create(p));
          }
        }
      }
      DisposeBindingListener.linkBindingLifeCycle(binding, v);
      binding.addValueListener(new IValueListener<Object>() {

        public void valueChanged(Object oldValue, Object newValue) {
          IProject pr = null;
          if (newValue instanceof String) {
            pr = ResourcesPlugin.getWorkspace().getRoot()
                .getProject(newValue.toString());
          }
          if (newValue instanceof IProject) {
            pr = (IProject) newValue;
          }
          if (pr != null) {
            IJavaProject create = JavaCore.create(pr);
            if (project == null
                || !create.getElementName().equals(
                    project.getElementName())) {
              setProject(create);
            }
          } else {
            setProject(null);
          }
        }
      });
      binding.setAdapter(ITextLabelProvider.class,
          new ITextLabelProvider() {

            public String getText(Object object) {
              if (object == null) {
                return "";
              }
              IProject p = (IProject) object;
              return p.getName();
            }

            public String getDescription(Object object) {
              return "";
            }
          });
      r.add(l);
      r.add(v);
      r.add(new UniversalUIElement<ToolBar>(ToolBar.class, SWT.NONE) {

        protected ToolBar createControl(Composite conComposite) {
          ToolBarManager tm = new ToolBarManager();

          tm.add(new Action("Add view") { // Add view from development
View Full Code Here

Examples of com.onpositive.commons.elements.RootElement

      // layout.marginHeight=0;
      owner.setLayout(layout);

      Link la = new Link(owner, SWT.NONE);
      la.setText("Add view of kind:");
      RootElement r = new RootElement(owner);
      r.setLayoutData(GridDataFactory.fillDefaults().grab(true, false)
          .create());
      GridLayout layout32 = new GridLayout(7, false);
      r.setLayout(layout32);
      layout32.marginHeight = 3;
      kindsText = new BaseViewerOneLineTextElement<String>();
      Binding bnd = new Binding("");
      if (kind != null) {
        bnd.setValue(kind, null);
      } else {
        bnd.setValue("", null);
      }
      // bnd.setName("");
      // bnd.setRequired(true);
      kindsText.setContentAssistLabelProvider(new LabelProvider() {

        public Image getImage(Object element) {
          return imageDescriptorFromPlugin;
        }
      });

      kindsText.setBinding(bnd);
      kindsRealm = new Realm<String>();
      kindsText.addListener(SWT.FocusIn, new SWTEventListener<Text>() {

        public void handleEvent(AbstractUIElement<Text> element,
            Event event) {
          if (!isDebug()) {
            addKindsFromStats();
          } else {
            try {
              BaseDataFacade f = tableUi.getFacade();
              String ns = "";
              if (f != null) {
                ns = f.getNamespace();
                if (ns == null) {
                  ns = "";
                }
              }
              appendKInds(project, ns);
            } catch (Exception e) {
              // e.printStackTrace();
              Activator
                  .getDefault()
                  .getLog()
                  .log(new Status(0, Activator.PLUGIN_ID,
                      "Exception", e));
            }
          }
        }
      });

      bnd.setRealm(kindsRealm);
      kindsText.setContentAssistEnabled(true);
      kindsText.setLayoutData(GridDataFactory.fillDefaults()
          .grab(true, false).minSize(100, -1).create());
      r.add(kindsText);

      DisposeBindingListener.linkBindingLifeCycle(bnd, kindsText);
      Binding b = new Binding(this);
      b.setAutoCommit(true);
      OneLineTextElement<String> l = new OneLineTextElement<String>();
      l.setCaption("Display not more then:");
      Binding binding2 = b.getBinding("limit");
      binding2.setRealm(new Realm<String>("All", "10", "100", "500",
          "1000", "10000"));
      binding2.addCommitListener(new ICommitListener() {

        public void commitPerformed(ICommand command) {
          CTabItem selection = viewHolder.getSelection();
          if (selection != null) {
            BaseDataFacade bf = (BaseDataFacade) selection
                .getData();
            try {
              bf.setLimit(Integer.parseInt(limit));
            } catch (NumberFormatException e1) {
              bf.setLimit(-1);
            }
          }
        }
      });
      l.setBinding(binding2);
      l.setLayoutData(GridDataFactory.fillDefaults().hint(50, -1)
          .create());
      ComboEnumeratedValueSelector<IProject> v = new ComboEnumeratedValueSelector<IProject>();
      DisposeBindingListener.linkBindingLifeCycle(b, l);
      binding = new Binding("");
      binding.setRequired(true);

      binding.setName("Project:");
      projects = new Realm<IProject>();
      initProjects(projects);
      binding.setRealm(projects);
      v.setBinding(binding);
      if (projectString != null) {
        for (IProject p : projects) {
          if (p.getName().equals(projectString)) {
            setProject(JavaCore.create(p));
          }
        }
      }
      DisposeBindingListener.linkBindingLifeCycle(binding, v);
      binding.addValueListener(new IValueListener<Object>() {

        public void valueChanged(Object oldValue, Object newValue) {
          IProject pr = null;
          if (newValue instanceof String) {
            pr = ResourcesPlugin.getWorkspace().getRoot()
                .getProject(newValue.toString());
          }
          if (newValue instanceof IProject) {
            pr = (IProject) newValue;
          }
          if (pr != null) {
            IJavaProject create = JavaCore.create(pr);
            if (project == null
                || !create.getElementName().equals(
                    project.getElementName())) {
              setProject(create);
            }
          } else {
            setProject(null);
          }
        }
      });
      binding.setAdapter(ITextLabelProvider.class,
          new ITextLabelProvider() {

            public String getText(Object object) {
              if (object == null) {
                return "";
              }
              IProject p = (IProject) object;
              return p.getName();
            }

            public String getDescription(Object object) {
              return "";
            }
          });
      r.add(l);
      r.add(v);
      r.add(new UniversalUIElement<ToolBar>(ToolBar.class, SWT.NONE) {

        protected ToolBar createControl(Composite conComposite) {
          ToolBarManager tm = new ToolBarManager();

          tm.add(new Action("Add view") { // Add view from development
View Full Code Here

Examples of org.ajax4jsf.templatecompiler.elements.RootElement

      FResourceTemplateElement resourceTemplateElement = (FResourceTemplateElement) templateElement;
      String name = resourceTemplateElement.getName();

      configBean.addResource(name, packageName, null, true);
    } else if (templateElement instanceof RootElement) {
      RootElement rootElement = (RootElement) templateElement;

      CompilationContext compilationContext = rootElement
          .getComponentBean();

      addResource(configBean, renderer, builderConfig, compilationContext);
    } else if (templateElement instanceof HeaderResourceElement) {
      HeaderResourceElement resourceElement = (HeaderResourceElement) templateElement;
View Full Code Here

Examples of org.apache.wink.itest.providers.xml.RootElement

@XmlRegistry
public class ObjectFactory {

    public RootElement createRootElement() {
        return new RootElement();
    }
View Full Code Here

Examples of org.eclipse.bpmn2.RootElement

            if (result == null)
                result = defaultCase(theEObject);
            return result;
        }
        case Bpmn2Package.ROOT_ELEMENT: {
            RootElement rootElement = (RootElement) theEObject;
            T result = caseRootElement(rootElement);
            if (result == null)
                result = caseBaseElement(rootElement);
            if (result == null)
                result = defaultCase(theEObject);
View Full Code Here

Examples of org.eclipse.bpmn2.RootElement

      return true;
    }

  @Override
    public Object[] create(ICreateContext context) {
    RootElement element = null;
   
    try {
      ModelHandler handler = ModelHandlerLocator.getModelHandler(getDiagram().eResource());
      element = createRootElement();
//      element.setId(EcoreUtil.generateUUID());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.