Package com.onpositive.semantic.model.realm

Examples of com.onpositive.semantic.model.realm.IFactory


  private static CompositeEditor createFilePageForExport(final Binding bndr) {
    CompositeEditor r = new CompositeEditor(bndr);
    OneLineTextElement<String> element = new OneLineTextElement<String>(
        bndr.getBinding("outPut"));
    element.setSelector(new IFactory() {

      public Object getValue(Object context) {
        FileDialog dialog = new FileDialog(Display.getCurrent()
            .getActiveShell(), SWT.OPEN);
View Full Code Here


  private static CompositeEditor createFilePage(final Binding bndr) {
    CompositeEditor r = new CompositeEditor(bndr);
    OneLineTextElement<String> element = new OneLineTextElement<String>(
        bndr.getBinding("outPut"));
    element.setSelector(new IFactory() {

      public Object getValue(Object context) {
        FileDialog dialog = new FileDialog(Display.getCurrent()
            .getActiveShell(), SWT.SAVE);
View Full Code Here

  private static CompositeEditor createDirectoryPage(final Binding bndr) {
    CompositeEditor r = new CompositeEditor(bndr);
    OneLineTextElement<String> element = new OneLineTextElement<String>(
        bndr.getBinding("outPut"));
    element.setSelector(new IFactory() {

      public Object getValue(Object context) {
        DirectoryDialog dialog = new DirectoryDialog(Display
            .getCurrent().getActiveShell(), SWT.SAVE);
        dialog.setMessage("Please choose path for import");
View Full Code Here

  private static CompositeEditor createFolderPage(final Binding bndr){
    CompositeEditor r = new CompositeEditor(bndr);

    OneLineTextElement<String> element = new OneLineTextElement<String>(
        bndr.getBinding("outPut"));
    element.setSelector(new IFactory() {

      public Object getValue(Object context) {
        DirectoryDialog dialog = new DirectoryDialog(Display.getCurrent()
            .getActiveShell(),SWT.OPEN | SWT.READ_ONLY | SWT.DIALOG_TRIM);       
        dialog.setText("Please select path");
View Full Code Here

      final Binding bndr) {
    CompositeEditor r = new CompositeEditor(bndr);

    OneLineTextElement<String> element = new OneLineTextElement<String>(
        bndr.getBinding("outPut"));
    element.setSelector(new IFactory() {

      public Object getValue(Object context) {
        FileDialog dialog = new FileDialog(Display.getCurrent()
            .getActiveShell(), SWT.MULTI | SWT.OPEN);
View Full Code Here

          tmpS = (String) entity.getProperty(f.name);
          binding.setValue(tmpS, null);
        }
        final String fname = tmpS;

        binding.setFactory(new IFactory() {

          public Object getValue(Object context) {
            FileDialog fd = null;
            if (!edit) {
              fd = new FileDialog(Display.getCurrent()
View Full Code Here

    return binding;
  }

  private static void createKey(CompositeEditor editor,
      final Binding binding, final Field f) {
    binding.setFactory(new IFactory() {

      public Object getValue(Object context) {
        GAEField d = (GAEField) f;

        if (d.keyKind == null) {
View Full Code Here

  private static void createBlob(CompositeEditor editor, Class<?> type,
      final Binding binding, final IJavaProject project) {
    final boolean isShort = type == ShortBlob.class;

    binding.setFactory(new IFactory() {

      public Object getValue(Object context) {
        Display current = Display.getCurrent();
        FileDialog fileDialog = new FileDialog(
            current.getActiveShell(), SWT.OPEN);
View Full Code Here

TOP

Related Classes of com.onpositive.semantic.model.realm.IFactory

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.