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

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

?? modepropertyeditorcomposite.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.editors;import java.io.IOException;import org.eclipse.core.resources.IFile;import org.eclipse.core.resources.IProject;import org.eclipse.core.resources.ResourcesPlugin;import org.eclipse.core.runtime.CoreException;import org.eclipse.core.runtime.IPath;import org.eclipse.jdt.core.IJavaProject;import org.eclipse.jface.dialogs.MessageDialog;import org.eclipse.swt.SWT;import org.eclipse.swt.events.SelectionAdapter;import org.eclipse.swt.events.SelectionEvent;import org.eclipse.swt.events.SelectionListener;import org.eclipse.swt.graphics.Point;import org.eclipse.swt.layout.FormAttachment;import org.eclipse.swt.layout.FormData;import org.eclipse.swt.layout.FormLayout;import org.eclipse.swt.widgets.Button;import org.eclipse.swt.widgets.Composite;import org.eclipse.swt.widgets.Group;import org.eclipse.swt.widgets.TabFolder;import org.eclipse.swt.widgets.TabItem;import org.eclipse.swt.widgets.Text;import com.javapathfinder.vjp.VJP;import com.javapathfinder.vjp.config.LaunchDialog;import com.javapathfinder.vjp.config.editors.defaultproperties.DefaultPropertiesTab;import com.javapathfinder.vjp.config.editors.userdefined.UserDefinedPropertiesTab;/** * This composite holds all of the modeproperty editors. * @author Sandro Badame */public class ModePropertyEditorComposite extends Composite implements SelectionListener, PropertyChangeListener{  private static final int DEFAULT_STYLE = SWT.NULL;    private ModePropertyConfiguration properties;  private Button save;  private Button revert;    private DefaultPropertiesTab defaultPropertiesTab;  private UserDefinedPropertiesTab userDefinedPropertiesTab;    /**   * Constructs this composite to hold all of the modeproperty editors.   * @param parent the parent for this composite   * @param project the java project associated to the modepropertyconfiguration   * @param properties the modepropertyconfiguration being modified.   */  public ModePropertyEditorComposite(Composite parent, ModePropertyConfiguration properties) {    super(parent, DEFAULT_STYLE);    this.properties = properties;    setLayout(new FormLayout());    createContents(this);    properties.addChangeListener(this);  }    /**   * Constructs this composite to hold all of the modeproperty editors.   * @param parent the parent for this composite   * @param project the java project associated to the modepropertyconfiguration   * @param file the modepropertyfile being modified.   */  public ModePropertyEditorComposite(Composite parent, IJavaProject project, IFile configFile){    this(parent,  new ModePropertyConfiguration(configFile, project));  }  private void createContents(Composite parent) {    Composite fileInfo = createFileInfoUI(parent);    Composite editorTabs = createEditorTabs(parent);    Composite saverevert = createSaveRevertButtons(parent);        FormData layoutData = new FormData();    layoutData.top = new FormAttachment(0, 10);    layoutData.left = new FormAttachment(0, 10);    layoutData.right = new FormAttachment(100, -10);    fileInfo.setLayoutData(layoutData);           layoutData = new FormData();    layoutData.top = new FormAttachment(fileInfo, 10);    layoutData.left = new FormAttachment(0, 10);    layoutData.right = new FormAttachment(100, -10);    layoutData.bottom = new FormAttachment(saverevert, -10);    editorTabs.setLayoutData(layoutData);        layoutData = new FormData();    layoutData.left = new FormAttachment(0, 10);    layoutData.right = new FormAttachment(100, -10);    layoutData.bottom = new FormAttachment(100, -10);    saverevert.setLayoutData(layoutData);  }  private Composite createFileInfoUI(Composite parent) {    Group group = new Group(parent, SWT.NULL);    group.setText("Configuration file location:");    group.setLayout(new FormLayout());        Button button = new Button(group, SWT.NULL);    button.setText("Move/Rename");    FormData buttonData = new FormData();    buttonData.right = new FormAttachment(100, -5);    button.setLayoutData(buttonData);    button.addSelectionListener(new SelectionAdapter() {      public void widgetSelected(SelectionEvent e) {        IPath path = getNewPath();        if (path == null)          return;        int matches = path.matchingFirstSegments(ResourcesPlugin.getWorkspace().getRoot().getLocation());        path = path.removeFirstSegments(matches).makeAbsolute();        try{             properties.getIFile().move(path, true, null);          properties.getIFile().refreshLocal(IFile.DEPTH_INFINITE, null);          refreshDialog(properties.getIFile());        }catch (CoreException e1) {          VJP.logError("Could not move property file.", e1);        }      }            private void refreshDialog(IFile file){        ((LaunchDialog)(getShell().getData())).updateTree();      }            private IPath getNewPath(){        ModePropertyFileDialog dialog = new ModePropertyFileDialog(getShell(), properties);        IFile file = dialog.getFile();        IProject project = dialog.getFileProject();        if (project == null){          new MessageDialog(getShell(),                            "Invalid Mode Property Location",                            null,                            "Mode Property Files must be kept within a project",                            MessageDialog.ERROR,                            new String[]{"OK"},                            0).open();          return null;        }        if (file.equals(properties.getIFile()))          return null;                return file.getLocation();      }          });    Text configPathField = new Text(group, SWT.SINGLE | SWT.LEFT);    configPathField.setText(properties.getIFile().getProjectRelativePath().toOSString());    configPathField.setEditable(false);       FormData textData = new FormData();    textData.left = new FormAttachment(0, 10);    textData.right = new FormAttachment(button, -5);    Point buttonsize = button.computeSize(SWT.DEFAULT, SWT.DEFAULT);    Point textsize = configPathField.computeSize(SWT.DEFAULT, SWT.DEFAULT);    int diff = Math.abs(buttonsize.y - textsize.y);    diff /= 2;    textData.top = new FormAttachment(0, diff);    configPathField.setLayoutData(textData);    return group;  }    private Composite createEditorTabs(Composite parent) {   TabFolder tabs = new TabFolder(parent, SWT.NULL);      TabItem heuristicsTabItem = new TabItem(tabs, SWT.NULL);   userDefinedPropertiesTab = new UserDefinedPropertiesTab(tabs, properties);   heuristicsTabItem.setControl(userDefinedPropertiesTab);   heuristicsTabItem.setText(userDefinedPropertiesTab.getTabName());      TabItem propertyTabItem = new TabItem(tabs, SWT.NULL);   defaultPropertiesTab = new DefaultPropertiesTab(tabs, properties);   propertyTabItem.setControl(defaultPropertiesTab);   propertyTabItem.setText(defaultPropertiesTab.getTabName());      return tabs;  }    private Composite createSaveRevertButtons(Composite parent) {    Composite top = new Composite(parent, SWT.NULL);    top.setLayout(new FormLayout());        save = new Button(top, SWT.NULL);    save.setEnabled(false);    save.setText("Save");    save.addSelectionListener(this);    save.setToolTipText("Saves the changes made to the modeproperties file.");        revert = new Button(top, SWT.NULL);    revert.setEnabled(false);    revert.setText("Revert");    revert.addSelectionListener(this);    revert.setToolTipText("Reverts the properties displayed to those stored "+                          "in the configuration file.");        FormData data = new FormData();    data.right = new FormAttachment(revert, -5);    save.setLayoutData(data);        data = new FormData();    data.right = new FormAttachment(100, -5);    revert.setLayoutData(data);        return top;  }  /**   * Executed when save or revert is clicked on.   */  public void widgetSelected(SelectionEvent e) {    if (e.widget.equals(save))      saveProperties();    else if (e.widget.equals(revert))      revertProperties();    refresh();  }    public void widgetDefaultSelected(SelectionEvent e) {    widgetSelected(e);  }    /**   * Saves the properties being modified to the configuration file   */  public void saveProperties(){    try {      properties.save();      setButtonsEnabled(false);    } catch (IOException e) {      VJP.logError("Could not save file.", e);    } catch (CoreException e) {      VJP.logError("Could not save file.", e);    }  }    /**   * Reverts this editor show the properties contained in the file.   *   */  public void revertProperties(){    try {      properties.reloadFromFile();      setButtonsEnabled(false);    } catch (IOException ioe) {      VJP.logError("IO exception when trying to reload from file.", ioe);    } catch (CoreException e) {      VJP.logError("Core exception when trying to reload from file.", e);    }  }    private void setButtonsEnabled(boolean enabled){    save.setEnabled(enabled);    revert.setEnabled(enabled);  }    private void refresh(){    defaultPropertiesTab.refresh();    userDefinedPropertiesTab.refresh();  }  /*   * Executed when a change to the properties being modified occurs   * Enables the save and revert buttons.   * (non-Javadoc)   * @see com.javapathfinder.vjp.launch.editors.PropertyChangeListener#changeOccurred()   */  public void changeOccurred() {    setButtonsEnabled(true);  }    /*   * True if there are changes to be saved to the config file.   */  public boolean isDirty(){    return save.isEnabled();  }    /**   * returns the mode property configuration this editor is modifying.   *@return modepropertyconfiguration   */  public ModePropertyConfiguration getModePropertyConfiguraton() {    return properties;      }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
97se亚洲国产综合自在线| 亚洲欧美日韩国产成人精品影院| 成人黄色综合网站| 蜜臀av国产精品久久久久 | 久久久久久亚洲综合影院红桃| 色哟哟一区二区三区| 国产一区二区三区在线看麻豆| 午夜激情一区二区| 亚瑟在线精品视频| 亚洲免费在线观看| 中文字幕+乱码+中文字幕一区| 日韩一区二区电影| 欧美一区三区四区| 欧美一区二区在线免费播放| 欧美电影一区二区三区| 99在线精品观看| 国产suv精品一区二区883| 亚洲国产精品久久不卡毛片 | 亚洲黄色av一区| 国产精品欧美久久久久无广告| 亚洲成人精品影院| 日本中文字幕一区二区有限公司| 一区二区三区四区激情| 舔着乳尖日韩一区| 91久久免费观看| 在线观看91av| 欧美va亚洲va国产综合| 26uuu国产日韩综合| 国产精品久久久久久亚洲伦| 国产精品毛片久久久久久久| 亚洲视频电影在线| 日本不卡视频一二三区| 国产91在线观看| 欧美探花视频资源| 国产亚洲精品福利| 亚洲欧美偷拍另类a∨色屁股| 亚洲电影中文字幕在线观看| 日韩福利电影在线| 国产91精品精华液一区二区三区 | 成人污污视频在线观看| 不卡电影一区二区三区| 91视频xxxx| 国产亚洲欧洲一区高清在线观看| 亚洲综合一区二区精品导航| 日韩精品免费专区| 91美女片黄在线观看| 欧美成人一区二区三区| 一区二区三区国产精品| av不卡在线观看| 欧美精品一区在线观看| 亚洲韩国一区二区三区| 精品一区二区三区影院在线午夜| 色拍拍在线精品视频8848| 欧美大片一区二区| 日韩二区在线观看| 日本福利一区二区| 亚洲视频一区在线| gogogo免费视频观看亚洲一| 日韩欧美色综合| 美女视频一区二区三区| 欧美日韩成人一区二区| 中文字幕一区二区三区不卡在线| 久久99国内精品| 日韩欧美久久久| 日本不卡不码高清免费观看| 555www色欧美视频| 免费成人在线网站| 日韩一区二区三区视频在线观看| 天天免费综合色| 欧美日本乱大交xxxxx| 视频一区在线视频| 精品国产91亚洲一区二区三区婷婷| 午夜精品国产更新| 精品国产百合女同互慰| 国产一区在线观看麻豆| 国产精品久久久一本精品| 91久久人澡人人添人人爽欧美| 一区二区三区精品| 欧美日韩精品一区视频| 日韩精品电影在线观看| 久久综合给合久久狠狠狠97色69| 成人性色生活片| 日韩**一区毛片| 国产欧美精品一区| 欧美性生活一区| 男人操女人的视频在线观看欧美| 欧美一区午夜精品| 成人免费不卡视频| 香蕉加勒比综合久久| 2022国产精品视频| 欧美亚洲综合一区| 国产精品77777竹菊影视小说| 亚洲人成精品久久久久| 欧美成人性福生活免费看| 91视视频在线观看入口直接观看www | 69堂国产成人免费视频| 成人免费高清在线| 国产一区二区三区在线观看精品| 国产精品人成在线观看免费 | 中文字幕中文乱码欧美一区二区| 欧美日韩电影在线播放| 国产剧情一区二区三区| 亚洲18色成人| 亚洲一区二区偷拍精品| 中文字幕av一区 二区| 精品不卡在线视频| 69堂成人精品免费视频| 欧美无砖砖区免费| 91免费观看在线| 93久久精品日日躁夜夜躁欧美| 国产成人综合视频| 国产呦精品一区二区三区网站| 国产一区二区在线观看免费| 欧美亚州韩日在线看免费版国语版| 免费在线观看精品| 国内一区二区在线| 91小视频免费看| 一本色道久久综合亚洲aⅴ蜜桃| 激情综合色综合久久| 日韩精品国产精品| 蜜臀av性久久久久蜜臀aⅴ | 五月天一区二区三区| 亚洲免费观看高清| 亚洲自拍与偷拍| 亚洲成精国产精品女| 婷婷开心久久网| 美国三级日本三级久久99| 波多野结衣在线一区| 91天堂素人约啪| 欧美一区二区三区在线看| 国产女人18水真多18精品一级做| 亚洲另类在线一区| 日韩国产欧美三级| 成人三级在线视频| 欧美精品日韩精品| 久久久久久9999| 亚洲欧美另类在线| 免费观看在线综合色| 成人av网站在线| 欧美乱妇20p| 亚洲婷婷在线视频| 蜜臀av一区二区三区| 91免费观看视频在线| 久久品道一品道久久精品| 亚洲国产一区视频| 欧美三级电影在线观看| 亚洲天堂福利av| 亚洲成人av在线电影| 综合欧美亚洲日本| 国产99久久久国产精品潘金网站| 日本道在线观看一区二区| 欧美电视剧在线观看完整版| 欧美日韩一卡二卡三卡| 久久你懂得1024| 亚洲成人777| 欧美猛男gaygay网站| 亚洲高清在线精品| 欧美日韩国产在线播放网站| 亚洲一区二区三区自拍| 色综合久久久久网| 亚洲图片另类小说| 日日夜夜精品视频免费| 99re这里都是精品| 51久久夜色精品国产麻豆| 欧美激情在线看| 久久99国产精品免费网站| 国产精品69久久久久水密桃 | 亚洲国产精品二十页| 欧美韩日一区二区三区| 樱桃视频在线观看一区| 国产成人丝袜美腿| 亚洲卡通动漫在线| 99国产精品国产精品久久| 欧美性受极品xxxx喷水| 夜夜操天天操亚洲| 国产成人免费网站| 欧美精品丝袜中出| 性欧美疯狂xxxxbbbb| 91免费版在线看| 国产精品福利一区| 亚洲动漫第一页| 久久国产精品99久久久久久老狼 | 高清av一区二区| 欧美性生活影院| 中文字幕一区日韩精品欧美| www.综合网.com| 亚洲一区二区影院| 欧美一级二级三级蜜桃| 国产激情偷乱视频一区二区三区| 一区二区三区在线播| 欧美日韩精品电影| 久久精品国产99久久6| 欧美极品另类videosde| 一本色道久久综合精品竹菊| 日本午夜一区二区| 欧美国产精品v| 欧美日韩www| 99久久婷婷国产综合精品电影| 一区二区不卡在线播放| 日韩欧美美女一区二区三区|