本文整理汇总了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);
}
示例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 );
}
}
示例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;
}
示例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 );
}
示例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);
}
}
示例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);
}
示例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;
}
示例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);
}
示例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()));
}
示例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);
}
示例11: EventQueryView
import org.eclipse.jface.databinding.swt.SWTObservables; //导入方法依赖的package包/类
public EventQueryView ()
{
this.events = new WritableSet ( SWTObservables.getRealm ( Display.getDefault () ) );
}
示例12: MonitorsView
import org.eclipse.jface.databinding.swt.SWTObservables; //导入方法依赖的package包/类
public MonitorsView ()
{
this.monitors = new WritableSet ( SWTObservables.getRealm ( Display.getDefault () ) );
}
示例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 );
}
示例14: FolderObserver
import org.eclipse.jface.databinding.swt.SWTObservables; //导入方法依赖的package包/类
public FolderObserver ()
{
this.data = new WritableSet ( SWTObservables.getRealm ( Display.getDefault () ) );
}
示例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()));
}