当前位置: 首页>>代码示例>>Java>>正文


Java SWTObservables.getRealm方法代码示例

本文整理汇总了Java中org.eclipse.jface.databinding.swt.SWTObservables.getRealm方法的典型用法代码示例。如果您正苦于以下问题:Java SWTObservables.getRealm方法的具体用法?Java SWTObservables.getRealm怎么用?Java SWTObservables.getRealm使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.eclipse.jface.databinding.swt.SWTObservables的用法示例。


在下文中一共展示了SWTObservables.getRealm方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setTreeTimelineContentProvider

import org.eclipse.jface.databinding.swt.SWTObservables; //导入方法依赖的package包/类
public void setTreeTimelineContentProvider(TreeTimelineContentProvider newContentProvider) {
	TreeTimelineContentProvider oldContentProvider = getTreeTimelineContentProvider();
	if (oldContentProvider != null) {
		oldContentProvider.dispose();
	}
	if (newContentProvider != null) {
		newContentProvider.activate();
		if (timeline != null) {
			Control control = timeline.getControl();
			if (control != null) {
				Display display = control.getDisplay();
				Realm realm = SWTObservables.getRealm(display);
				newContentProvider.setRealm(realm);
			}
		}
	}
	setProperty(CONTENT_PROVIDER, newContentProvider);
}
 
开发者ID:nasa,项目名称:OpenSPIFe,代码行数:19,代码来源:TimelineViewer.java

示例2: setConnection

import org.eclipse.jface.databinding.swt.SWTObservables; //导入方法依赖的package包/类
@Override
protected void setConnection ( final Connection connection )
{
    if ( this.privileges != null )
    {
        this.privileges.dispose ();
        this.privileges = null;
    }

    if ( connection != null )
    {
        this.privileges = new PrivilegeSet ( connection, SWTObservables.getRealm ( this.display ) );
        this.viewer.setInput ( this.privileges );
    }
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:16,代码来源:PrivilegeTab.java

示例3: start

import org.eclipse.jface.databinding.swt.SWTObservables; //导入方法依赖的package包/类
@Override
public void start ( final BundleContext context ) throws Exception
{
    super.start ( context );
    this.sessionManager = new SessionManagerImpl ( SWTObservables.getRealm ( getWorkbench ().getDisplay () ) );
    plugin = this;
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:8,代码来源:Activator.java

示例4: handleFinish

import org.eclipse.jface.databinding.swt.SWTObservables; //导入方法依赖的package包/类
protected void handleFinish () throws Exception
{
    final Set<Export> exporters = new HashSet<> ();

    final TestHive hive = new TestHive ();

    final NgpExport ngpExport = createNgpExport ( hive );
    if ( ngpExport != null )
    {
        exporters.add ( ngpExport );
    }

    final ServerDescriptorImpl desc = new TestServerDescriptorImpl ( SWTObservables.getRealm ( Display.getDefault () ), hive, exporters, "Foo Bar" );
    HivesPlugin.registerServer ( desc );
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:16,代码来源:NewTestWizard.java

示例5: setupRealm

import org.eclipse.jface.databinding.swt.SWTObservables; //导入方法依赖的package包/类
protected void setupRealm(Display display) {
	final UISession uiSession = RWT.getUISession();
	if (uiSession.getAttribute("realm") == null) {
		final Realm realm = SWTObservables.getRealm(display);
		RealmSetter.setRealm(realm);
		RWT.getUISession().setAttribute("realm", realm);
	}
}
 
开发者ID:amgaera,项目名称:emf-forms-rap-showcase,代码行数:9,代码来源:MainUi.java

示例6: bind

import org.eclipse.jface.databinding.swt.SWTObservables; //导入方法依赖的package包/类
private void bind()
{
  Realm realm = SWTObservables.getRealm(getShell().getDisplay());
  DataBindingContext bindingContext = new DataBindingContext(realm);

  // Bind the location value
  bindingContext.bindValue(SWTObservables.observeText(fileText, SWT.Modify), BeansObservables.observeValue(bean, "location"), null, null);
}
 
开发者ID:terraframe,项目名称:Runway-SDK,代码行数:9,代码来源:ImportDialog.java

示例7: EntityView

import org.eclipse.jface.databinding.swt.SWTObservables; //导入方法依赖的package包/类
public EntityView(IComponentObject entity, IAdminModule module)
{
  this.entity = entity;
  this.controls = new LinkedHashMap<String, Object>();
  this.realm = SWTObservables.getRealm(module.getDisplay());
  this.bindingContext = new DataBindingContext(realm);
  this.module = module;
  this.message = null;
}
 
开发者ID:terraframe,项目名称:Runway-SDK,代码行数:10,代码来源:EntityView.java

示例8: bind

import org.eclipse.jface.databinding.swt.SWTObservables; //导入方法依赖的package包/类
private void bind()
{
  Realm realm = SWTObservables.getRealm(getShell().getDisplay());
  DataBindingContext bindingContext = new DataBindingContext(realm);

  // Bind the type value
  bindingContext.bindValue(new RadioGroupObservableValue(realm, group), BeansObservables.observeValue(bean, "type"), null, null);

  // Bind the lower value
  bindingContext.bindValue(SWTObservables.observeText(startText, SWT.Modify), BeansObservables.observeValue(bean, "lower"), null, null);

  // Bind the location value
  bindingContext.bindValue(SWTObservables.observeText(fileText, SWT.Modify), BeansObservables.observeValue(bean, "location"), null, null);
}
 
开发者ID:terraframe,项目名称:Runway-SDK,代码行数:15,代码来源:ExportDialog.java

示例9: ShapeFileBeanPage

import org.eclipse.jface.databinding.swt.SWTObservables; //导入方法依赖的package包/类
public ShapeFileBeanPage(String pageName, ShapeFileBean data)
{
  super(pageName);

  this.data = data;
  this.bindingContext = new DataBindingContext(SWTObservables.getRealm(Display.getDefault()));
}
 
开发者ID:terraframe,项目名称:geoprism,代码行数:8,代码来源:ShapeFileBeanPage.java

示例10: LocatedInPage

import org.eclipse.jface.databinding.swt.SWTObservables; //导入方法依赖的package包/类
public LocatedInPage(LocatedInBean bean)
{
  super(PAGE_NAME);

  setTitle(Localizer.getMessage("LOCATED_IN_WIZARD"));
  setDescription(Localizer.getMessage("LOCATED_IN_WIZARD_OPTIONS"));

  this.bean = bean;
  this.bean.addPropertyChangeListener("option", this);
  this.bindingContext = new DataBindingContext(SWTObservables.getRealm(Display.getDefault()));

  setPageComplete(bean.getOption() != null);
}
 
开发者ID:terraframe,项目名称:geoprism,代码行数:14,代码来源:LocatedInPage.java

示例11: EventQueryView

import org.eclipse.jface.databinding.swt.SWTObservables; //导入方法依赖的package包/类
public EventQueryView ()
{
    this.events = new WritableSet ( SWTObservables.getRealm ( Display.getDefault () ) );
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:5,代码来源:EventQueryView.java

示例12: MonitorsView

import org.eclipse.jface.databinding.swt.SWTObservables; //导入方法依赖的package包/类
public MonitorsView ()
{
    this.monitors = new WritableSet ( SWTObservables.getRealm ( Display.getDefault () ) );
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:5,代码来源:MonitorsView.java

示例13: startLogin

import org.eclipse.jface.databinding.swt.SWTObservables; //导入方法依赖的package包/类
private void startLogin ( final LoginContext loginContext )
{
    if ( this.creator != null )
    {
        logger.error ( "Found pre-existing creator instance. This should not happen!" ); //$NON-NLS-1$
        this.creator.dispose ();
        this.creator = null;
    }

    final Button button = getButton ( OK );

    button.setEnabled ( false );
    this.contextSelector.getControl ().setEnabled ( false );
    this.userText.setEnabled ( false );
    this.passwordText.setEnabled ( false );

    // close tray ... put seats in an upright position
    if ( getTray () != null )
    {
        closeTray ();
    }

    this.analyzer.clear ();

    final Realm realm = SWTObservables.getRealm ( getShell ().getDisplay () );
    this.creator = new ContextCreator ( realm, loginContext, this.analyzer, new ContextCreatorResultListener () {

        @Override
        public void complete ( final Collection<LoginHandler> result )
        {
            handleComplete ( result );
        }
    } );

    final Map<String, String> properties = new HashMap<String, String> ();
    if ( this.flagCredentialsAsProperties )
    {
        properties.put ( ConnectionLoginFactory.OPTION_CREDENTIALS_AS_PROPERTIES, "true" ); //$NON-NLS-1$
    }

    this.creator.start ( this.userText.getText (), this.passwordText.getText (), properties );
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:43,代码来源:LoginDialog.java

示例14: FolderObserver

import org.eclipse.jface.databinding.swt.SWTObservables; //导入方法依赖的package包/类
public FolderObserver ()
{
    this.data = new WritableSet ( SWTObservables.getRealm ( Display.getDefault () ) );
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:5,代码来源:FolderObserver.java

示例15: AnnotationsContentProvider

import org.eclipse.jface.databinding.swt.SWTObservables; //导入方法依赖的package包/类
/**
 * Instantiates a new annotations content provider.
 */
public AnnotationsContentProvider() {
    knownElements = new WritableSet(SWTObservables.getRealm(Display.getDefault()));
}
 
开发者ID:synergynet,项目名称:synergyview,代码行数:7,代码来源:AnnotationTableViewPart.java


注:本文中的org.eclipse.jface.databinding.swt.SWTObservables.getRealm方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。