Package org.jayasoft.woj.common.model.content

Examples of org.jayasoft.woj.common.model.content.Visibility


    String org = element.getAttribute("org");
    String name = element.getAttribute("name");
    String revision = element.getAttribute("revision");
    String visibName = element.getAttribute("visibility");
    if(!StringUtils.isEmpty(org)&&!StringUtils.isEmpty(name)&&!StringUtils.isEmpty(revision)&&!StringUtils.isEmpty(visibName)) {
      Visibility visibility = Visibility.fromString(visibName);
      return new WojSourceContainer(org, name, revision, visibility);
    }
    return null;
  }
View Full Code Here


        del.addSelectionListener(new SelectionAdapter() {
            public void widgetSelected(SelectionEvent e) {
                String org = _browserComposite.getOrganisation();
                String mod = _browserComposite.getName();
                String rev = _browserComposite.getRevision();
                Visibility visibility = _browserComposite.getVisibility();
                if (rev == null) {
                    MessageDialog.openInformation(Display.getDefault().getActiveShell(),
                        Messages.getString("moduleadmin.action.please.select.title"),
                        Messages.getString("moduleadmin.action.please.select"));
                    return;
                }
                               
                if (MessageDialog.openQuestion(
                        Display.getDefault().getActiveShell(),
                        Messages.getString("moduleadmin.action.confirm.delete.title"),
                        Messages.getString("moduleadmin.action.confirm.delete", visibility+" "+org+" "+mod+" "+rev))) {
                    WojPlugin.log("deleting "+visibility+" "+org+" "+mod+" "+rev);
                    WojServicesHelper.getDefault().removeModule(visibility, org, mod, rev);
                    refresh();
                }
            }
        });
       
        _browserComposite.addRevisionChangedListener(new ISelectionChangedListener() {
            public void selectionChanged(SelectionChangedEvent event) {
                if (_browserComposite.getRevision() == null) {
                    setSelectedModule(null);
                } else {
                    String org = _browserComposite.getOrganisation();
                    String mod = _browserComposite.getName();
                    String rev = _browserComposite.getRevision();
                    Visibility visibility = _browserComposite.getVisibility();
                   
                    ModuleDescriptor md = WojServicesHelper.getDefault().getModuleDescriptor(visibility, org, mod, rev);
                    setSelectedModule(md);
                }
            }
View Full Code Here

          }
          final String className = classFullName.substring(0, classFullName.length()-5);
          final String organisation = _browserComposite.getOrganisation();
          final String moduleName = _browserComposite.getName();
          final String revision = _browserComposite.getRevision();
          final Visibility visibility = _browserComposite.getVisibility();
        if(_showDocAction.isChecked()) {
                    try {
                        URL javadocLocation = WojServicesHelper.getDefault().getJavadocUrl(organisation, moduleName, revision, className, visibility);
                        if (javadocLocation != null) {
                            OpenBrowserUtil.open(javadocLocation, getViewSite().getShell().getDisplay(), Messages.getString("modulebrowser.browser.title")); //$NON-NLS-1$
View Full Code Here

TOP

Related Classes of org.jayasoft.woj.common.model.content.Visibility

Copyright © 2018 www.massapicom. 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.