亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? launchdialog.java

?? AStar算法
?? JAVA
字號:
/******************************************************************************* * Copyright ? 2008 Sandro Badame. All Rights Reserved. *  * This software and the accompanying materials is available under the  * Eclipse Public License 1.0 (EPL), which accompanies this distribution, and is * available at http://visualjpf.sourceforge.net/epl-v10.html ******************************************************************************/package com.javapathfinder.vjp.config;import org.eclipse.core.resources.IFile;import org.eclipse.core.resources.IProject;import org.eclipse.core.resources.IResource;import org.eclipse.core.runtime.CoreException;import org.eclipse.jface.dialogs.MessageDialog;import org.eclipse.jface.dialogs.TitleAreaDialog;import org.eclipse.jface.viewers.ISelectionChangedListener;import org.eclipse.jface.viewers.SelectionChangedEvent;import org.eclipse.jface.viewers.TreePath;import org.eclipse.jface.viewers.TreeSelection;import org.eclipse.swt.SWT;import org.eclipse.swt.custom.SashForm;import org.eclipse.swt.events.SelectionEvent;import org.eclipse.swt.events.SelectionListener;import org.eclipse.swt.graphics.Point;import org.eclipse.swt.layout.FillLayout;import org.eclipse.swt.layout.FormAttachment;import org.eclipse.swt.layout.FormData;import org.eclipse.swt.layout.FormLayout;import org.eclipse.swt.layout.GridData;import org.eclipse.swt.widgets.Button;import org.eclipse.swt.widgets.Composite;import org.eclipse.swt.widgets.Control;import org.eclipse.swt.widgets.Shell;import com.javapathfinder.vjp.VJP;import com.javapathfinder.vjp.config.editors.ModePropertyEditorComposite;import com.javapathfinder.vjp.config.editors.ModePropertyFileDialog;import com.javapathfinder.vjp.config.tree.ModePropertyTree;import com.javapathfinder.vjp.config.tree.TreeProject;import com.javapathfinder.vjp.verify.VerifyJob;/** * This is the main Configuration that VJP creates for the user. It lists all * of the Mode Property Confguration files found along with an editor to  * modify them. *  * @author Sandro Badame */public class LaunchDialog extends TitleAreaDialog implements SelectionListener {    private static final Point DEFAULT_INITIAL_SIZE = new Point(1000, 620);  private static final int[] DEFAULT_SASH_WEIGHTS = new int[] {2,7};    private ModePropertyTree fileTree;  private ModePropertyEditorComposite editor;  private ConfigFileBar fileBar;  private Composite infoPanel;  private Button verifyRun;  private Button verifyStep;  private Button close;  /**   * Constructs this dialog with this shell specified.   * @param parentShell the parent shell for this dialog   */  public LaunchDialog(Shell parentShell) {    super(parentShell);    setShellStyle(getShellStyle() | SWT.RESIZE);  }     /**   * Creates the contents of the dialog   * @see org.eclipse.jface.dialogs.Dialog#createDialogArea(org.eclipse.swt.widgets.Composite)   */  protected Control createDialogArea(Composite parent) {    getShell().setText("Verify");    Composite dialogComp = (Composite)super.createDialogArea(parent);    setDialogTitleInfo();    SashForm sash = new SashForm(dialogComp, SWT.HORIZONTAL);    GridData gd  = new GridData(GridData.FILL_BOTH);    sash.setLayoutData(gd);        createFileTreeArea(sash);        infoPanel = new Composite(sash, SWT.BORDER);    infoPanel.setLayout(new FillLayout());        sash.setWeights(DEFAULT_SASH_WEIGHTS);        return dialogComp;  }    private Composite createFileTreeArea(Composite parent){    Composite top = new Composite(parent, SWT.NULL);    top.setLayout(new FormLayout());        fileBar = new ConfigFileBar(top, SWT.NULL);    Composite tree = createModePropertyTree(top);        fileBar.getNewFileButton().addSelectionListener(this);    fileBar.getDeleteFileButton().addSelectionListener(this);    FormData layoutData = new FormData();    layoutData.top = new FormAttachment(0, 0);    layoutData.left = new FormAttachment(0, 5);    layoutData.right = new FormAttachment(100, -5);    fileBar.setLayoutData(layoutData);        layoutData = new FormData();    layoutData.top = new FormAttachment(fileBar, 3);    layoutData.left = new FormAttachment(0, 5);    layoutData.right = new FormAttachment(100, -5);    layoutData.bottom = new FormAttachment(100, 5);    tree.setLayoutData(layoutData);        return top;      }    private Composite createModePropertyTree(Composite parent){    Composite top = new Composite(parent, SWT.BORDER);    top.setLayout(new FillLayout());    fileTree = new ModePropertyTree(top);    fileTree.addSelectionChangedListener(new ModePropertyTreeListener());    return top;  }      private void clearInfoPanel(){    for(Control child : infoPanel.getChildren())      child.dispose();  }    /**   * @return the panel that displays informaton about the currently selected   *         tree item.   */  public Composite getInfoPanel(){    return infoPanel;  }    private void setDialogTitleInfo(){    setTitle("Create, manage and verify configurations");    setMessage("Verify a Java application");  }    /**   * Creates the Verify and Cancel buttons for the button bar   * @see org.eclipse.jface.dialogs.Dialog#createButtonsForButtonBar(org.eclipse.swt.widgets.Composite)   */  public void createButtonsForButtonBar(Composite parent){     parent.setLayout(new FormLayout());       verifyRun = new Button(parent, SWT.NULL);    verifyRun.setText("Run Verify");    verifyRun.addSelectionListener(this);    verifyRun.setToolTipText("Completely runs through the verification of this program");        verifyStep = new Button(parent, SWT.NULL);    verifyStep.setText("Step Verify");    verifyStep.addSelectionListener(this);    verifyStep.setToolTipText("Step through the verification of this program");        close = new Button(parent, SWT.NULL);    close.setText("Close");        FormData formData = new FormData();    formData.right = new FormAttachment(close, -10);    formData.bottom = new FormAttachment(100, -10);    verifyRun.setLayoutData(formData);        formData = new FormData();    formData.right = new FormAttachment(verifyRun, -10);    formData.bottom = new FormAttachment(100, -10);    verifyStep.setLayoutData(formData);        formData = new FormData();    formData.right = new FormAttachment(100,-10);    formData.bottom = new FormAttachment(100,-10);    close.setLayoutData(formData);    close.addSelectionListener(this);      }    /**   * Called when a button is selected.   * (non-Javadoc)   * @see org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt.events.SelectionEvent)   */  public void widgetSelected(SelectionEvent e) {    if (e.widget.equals(verifyRun) || e.widget.equals(verifyStep))      handleVerify(e.widget.equals(verifyStep));    else if (e.widget.equals(close))      cancelPressed();    else if (e.widget.equals(fileBar.getNewFileButton()))      handleNewFile();    else if (e.widget.equals(fileBar.getDeleteFileButton()))      handleDeleteFile();        }    protected Point getInitialSize() {        return DEFAULT_INITIAL_SIZE;  }    private void refreshInfoPanel(){    getInfoPanel().layout(true);    getInfoPanel().redraw();  }    private class ModePropertyTreeListener implements ISelectionChangedListener {        public void selectionChanged(SelectionChangedEvent event) {        Object selection = ((TreeSelection)event.getSelection()).getFirstElement();        clearInfoPanel();        if (selection instanceof IFile){          TreePath tp = (TreePath)((TreeSelection)event.getSelection()).getPathsFor(selection)[0].getParentPath();          TreeProject treeProject = (TreeProject)(tp.getLastSegment());            editor = new ModePropertyEditorComposite(getInfoPanel(), treeProject.java_project, (IFile)selection);        }else{                    editor = null;          new VJPInfoComposite(getInfoPanel(), SWT.NULL);        }        refreshInfoPanel();      }  }    /**   * Handles the verify action. Checks whether is can be done or not.   */  private void handleVerify(boolean step){    if (!shouldVerify())      return;      TreeSelection s = ((TreeSelection)(fileTree.getSelection()));    TreeProject p = (TreeProject) s.getPaths()[0].getFirstSegment();    Object o = s.getFirstElement();    if (!(o instanceof IFile))      return;    VerifyJob.verify((IFile)o, p.java_project, step);    close();  }     private boolean shouldVerify(){    if (VerifyJob.isRunning()){      new MessageDialog(getShell(),                        "Program being verified.",                        null,                        "Only one program can be verified at a time.",                        MessageDialog.ERROR,                        new String[]{"OK"},                        0).open();      return false;    }    if (!editor.isDirty())      return true;    MessageDialog dialog = new MessageDialog(getShell(),                                             "Save Changes?",                                             null,                                             "Before the program can be verified changes made to the configuration must first be saved.",                                             MessageDialog.ERROR,                                             new String[]{"&Save New Properties and Verify", "&Revert to Old Properties and Verify", "&Cancel"},                                             2);    int option = dialog.open();    if (option == 0)      editor.saveProperties();    else if (option == 1)      editor.revertProperties();    else      return false;    return true;  }    private void handleNewFile(){    ModePropertyFileDialog dialog = new ModePropertyFileDialog(getShell());    IFile file = dialog.getFile();    if (file == null) return;    IProject project = dialog.getFileProject();    if (project == null){      new MessageDialog(getShell(),                        "Invalid Mode Property File location",                        null,                        "Mode Property Files can only be stored within a project.",                        MessageDialog.ERROR,                        new String[]{"OK"},                        0).open();            return;    }    if (file.exists()){      new MessageDialog(getShell(),                        "File already exists.",                        null,                        "This file location chosen already exists.",                        MessageDialog.ERROR,                        new String[]{"OK"},                        0).open();      return;    }    try{      file.getLocation().toFile().getParentFile().mkdirs();      file.getLocation().toFile().createNewFile();      file.refreshLocal(IResource.DEPTH_INFINITE, null);    }catch(Exception e){      VJP.logError("File could not be created or refreshed", e);    }    updateTree();  }  private void handleDeleteFile(){    Object selection = ((TreeSelection)fileTree.getSelection()).getFirstElement();    if (!(selection instanceof IFile))      return;    IFile file = (IFile) selection;    int option = new MessageDialog(getShell(),                                      "Delete "+file.getName()+"?",                                      null,                                      "Are you sure you want to delete "+                                      "the configuration file: "                                      +file.getName()+"?",                                      MessageDialog.QUESTION,                                      new String[]{"Yes","No"},                                      1).open();    if (option != 0)      return;    try {      file.delete(true, true, null);    } catch (CoreException e) {      VJP.logError("Could not delete file.", e);    }    updateTree();  }    /**   * Rebuilds the updateTree.   */  public void updateTree(){    fileTree.refresh();  }    /**   * @return the file tree that displays all of the configuration files   *         in the workspace.    */  public ModePropertyTree getTree(){    return fileTree;  }  public void widgetDefaultSelected(SelectionEvent e) {    widgetSelected(e);  }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品麻豆99久久久久久| 国产精品国产自产拍在线| 国产精品一区2区| 亚洲黄色小视频| 久久精品亚洲一区二区三区浴池 | 欧美午夜片在线看| 国模无码大尺度一区二区三区| 综合久久国产九一剧情麻豆| 日韩一级片网站| 91国产丝袜在线播放| 国产成人午夜精品5599| 日日摸夜夜添夜夜添国产精品| 国产蜜臀av在线一区二区三区| 欧美绝品在线观看成人午夜影视| 国产精品18久久久久| 亚洲伦理在线精品| 欧美国产一区在线| www国产成人免费观看视频 深夜成人网| 日本精品裸体写真集在线观看| 国产98色在线|日韩| 久久精品国产免费| 日韩电影在线免费看| 亚洲一区二区三区四区在线免费观看| 国产精品理伦片| 久久精品欧美一区二区三区麻豆 | 欧美日韩一区不卡| 91视频91自| 不卡电影一区二区三区| 国产乱码精品一区二区三区av | 日本成人在线一区| 亚洲最新视频在线观看| 自拍偷拍亚洲激情| 中文欧美字幕免费| 中文字幕欧美日本乱码一线二线| 国产日韩精品一区二区浪潮av| 制服丝袜一区二区三区| 欧美自拍偷拍一区| 在线视频一区二区三| 91老司机福利 在线| 成人高清视频免费观看| 国产白丝网站精品污在线入口| 国产一区二区美女诱惑| 国产精品一区二区三区乱码| 国产美女视频91| 国产精品影视网| 粉嫩高潮美女一区二区三区| 国产精品88av| aaa国产一区| eeuss鲁片一区二区三区在线观看| 国产成人免费在线视频| 国产91高潮流白浆在线麻豆 | 亚洲手机成人高清视频| 自拍偷拍国产亚洲| 一区二区久久久久久| 亚洲午夜免费视频| 免费人成在线不卡| 国产精品99久久久久久久vr | 欧美一区二区三区免费在线看 | 国产成人免费在线观看| av高清久久久| 在线观看网站黄不卡| 欧美久久久久久久久中文字幕| 欧美日本一区二区| 欧美一级黄色片| 久久综合九色综合97_久久久 | 日韩av中文字幕一区二区 | 国产99久久久久久免费看农村| 成人黄页在线观看| 色88888久久久久久影院野外| 欧美在线色视频| 精品国产乱码91久久久久久网站| 久久午夜电影网| 亚洲三级在线看| 日韩不卡一区二区| 国产不卡视频在线播放| 在线视频亚洲一区| 日韩欧美中文字幕精品| 中文字幕乱码一区二区免费| 亚洲激情五月婷婷| 韩日av一区二区| 在线观看一区不卡| 久久综合中文字幕| 亚洲一区在线播放| 国产专区欧美精品| 色婷婷狠狠综合| 亚洲精品一区二区三区精华液 | 麻豆国产精品官网| 成人黄色av网站在线| 91精品国产免费| 国产精品成人网| 久久精品国产99久久6| 色综合天天综合给合国产| 91精品欧美久久久久久动漫| 国产精品久久久久久久蜜臀| 日本成人在线电影网| av午夜一区麻豆| 日韩欧美久久久| 久久久久久久久久久久电影| 亚洲午夜久久久久久久久电影网| 国产一区二区三区香蕉| 欧美日韩大陆在线| 国产精品大尺度| 国产综合色产在线精品| 欧美日韩一区高清| 欧美激情一区二区三区全黄| 免费精品视频最新在线| 欧美在线你懂的| 中文字幕亚洲不卡| 国产精品一区二区在线看| 在线播放中文一区| 亚洲精品视频在线看| 国产成人午夜视频| 久久综合狠狠综合久久激情 | 成人免费观看av| 亚洲精品一区二区三区香蕉| 午夜亚洲福利老司机| 色猫猫国产区一区二在线视频| 欧美国产日本视频| 国产一区二区三区四 | 一区二区成人在线观看| 国产高清在线精品| 精品欧美乱码久久久久久1区2区 | 国产一区二区福利视频| 91精品国产综合久久婷婷香蕉| 亚洲大尺度视频在线观看| 色综合天天综合网天天狠天天| 国产精品毛片无遮挡高清| 国产做a爰片久久毛片| 精品国产不卡一区二区三区| 日韩电影免费在线观看网站| 欧美日韩国产精品自在自线| 亚洲一区免费视频| 欧美性感一类影片在线播放| 亚洲欧美激情插| 91高清视频在线| 一区二区三区国产精华| 色综合色狠狠综合色| 亚洲乱码国产乱码精品精98午夜 | 91网站在线播放| 自拍偷拍欧美激情| 91在线云播放| 一个色妞综合视频在线观看| 一本大道av一区二区在线播放| 成人免费在线观看入口| 99久久久无码国产精品| **欧美大码日韩| 91精品福利视频| 亚洲1区2区3区视频| 欧美精品vⅰdeose4hd| 日韩av在线免费观看不卡| 日韩午夜电影av| 久久国产精品露脸对白| 精品国产91久久久久久久妲己| 极品少妇一区二区| 久久久久久久免费视频了| 成人性视频免费网站| 中文字幕一区二区三区不卡在线 | 91精品国产美女浴室洗澡无遮挡| 乱一区二区av| 国产欧美一二三区| 色哟哟精品一区| 日韩av在线播放中文字幕| 日韩一区二区三区av| 国产高清亚洲一区| 亚洲男人的天堂在线aⅴ视频| 色噜噜夜夜夜综合网| 日韩1区2区日韩1区2区| 日韩美一区二区三区| 国产成人亚洲精品狼色在线| 亚洲欧美欧美一区二区三区| 欧美亚洲精品一区| 久久99精品国产| 综合色中文字幕| 欧美日韩精品一区二区三区蜜桃 | 亚洲精品成a人| 日韩精品一区二| 99在线精品视频| 亚洲一区二区三区视频在线 | 免费在线看成人av| 中文字幕+乱码+中文字幕一区| 色一情一乱一乱一91av| 另类中文字幕网| 一色桃子久久精品亚洲| 欧美肥妇free| 成人免费毛片aaaaa**| 午夜免费久久看| 国产精品卡一卡二卡三| 69精品人人人人| bt7086福利一区国产| 日韩一区精品字幕| 国产精品久线在线观看| 日韩欧美中文字幕制服| 日本韩国一区二区三区视频| 激情小说欧美图片| 亚洲一级电影视频| 国产精品传媒视频| 26uuu精品一区二区三区四区在线 26uuu精品一区二区在线观看 | 亚洲精品中文在线观看| 精品国产网站在线观看| 91国偷自产一区二区开放时间 |